Add Missing Page Titles and Meta Descriptions
Finds every HTML page missing a title or meta description and writes one in.
Anyone with a multi-page site where some pages were added quickly and never got a title tag or meta description.
The problem
Missing titles and descriptions are invisible when you are just clicking through a site, since the browser tab still shows something and the page still renders. Checking the HTML source of every page by hand to catch the gaps takes a long time.
1. Work list
The command that lists every item. No AI involved.
grep -rL '<meta name="description"' --include='*.html' .2. Unit of work
One item is one HTML file missing a title tag, a meta description, or both.
3. The check
The checker greps the file for a <title> tag with non-empty content and a <meta name="description" content="..."> tag whose content is at least 50 characters. Exit code 0 if both are present and long enough. Exit code 1 otherwise, naming which one is missing or too short.
4. Stopping rule
Each page gets up to 3 attempts before quarantine, ending when every file in the work list has been checked.
What this cannot catch
This checks that a description exists and is long enough. It does not check whether the description is accurate or a good summary of the page.
Build it
Install justloopit, then describe this task in your AI coding tool. It will ask about your project, then write the checker, the runner, and the spec.