Add Missing Alt Text
Finds every image without alt text and writes a real description for it.
Anyone shipping a site or app built quickly with an AI assistant, where images got added without alt text.
The problem
Alt text is easy to skip when you are moving fast, and it is scattered across many files. Opening each file and checking every img tag by hand takes forever and you will still miss some.
1. Work list
The command that lists every item. No AI involved.
grep -rlE '<img((?!alt=)[^>])*>' --include='*.html' --include='*.jsx' --include='*.tsx' .2. Unit of work
One item is one file containing at least one img tag with no alt attribute.
3. The check
The checker re-runs the same grep pattern against just that file. Exit code 0 means no img tag without alt is found anymore. Exit code 1 means one still is, and the checker prints the exact line back to the AI.
4. Stopping rule
Each file gets up to 3 attempts before quarantine, and the loop ends once every flagged file has been handled.
What this cannot catch
The check only proves an alt attribute exists, not that it describes the image well. An AI could write alt="image" everywhere and pass.
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.