Reverse engineered prompt

Build me a simple Python command line tool for SEO content analysis. I want to paste in a page URL and a few target keywords, then get a clear report on how well that page is optimized for those terms.

It should check the main on page SEO stuff people care about, like title, meta description, headings, keyword usage and placement, word count, image alt text, links, canonical tags, and overall content structure. I also want a scoring system that feels useful, with both an overall score and keyword specific results, including support for longer keyword phrases and close matches.

Please make the terminal output look polished and easy to read, with colors, tables, and progress feedback. Add an option to export the full report as JSON.

If an API key is available, I want AI features too, like SEO recommendations, better title and meta suggestions, content quality feedback, and grammar fixes that keep the important keywords intact. Gemini should work as the default AI option, with OpenAI as another option. Look up current docs online if you need to.

Want more depth? Deep Reverse