# alt-text-audit

Audit image alt text across a site or docs folder (HTML and Markdown) and list missing, filename, redundant and overlong alts

- **Space:** accessibility-public (https://github.com/Tech-Realm/space-accessibility-public/tree/main/alt-text-audit)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-python; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use accessibility-public/alt-text-audit` or MCP `get_pack accessibility-public/alt-text-audit`
- **Files:** CHANGELOG.md, code/alt_audit.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/site/index.html, outcome/fixtures/site/post.md, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A CSV of every image with its alt text and a verdict (ok, missing, filename, redundant 'image of', too long > 150 chars, duplicate across different images) so writers can fix them in one pass.

Verified by: Fixture folder: 5 images; each problem type is detected once and the good alt is 'ok'.

## Steps

1. Run `python3 code/alt_audit.py content/ > alt-report.csv`.
2. Open in a spreadsheet; write new alt text per the decision tree.
3. Re-run until no rows are flagged.

## Edge cases

- Markdown reference-style images are not parsed.
- The same alt for the same image src is fine; only the same alt for different images is flagged.

## Don'ts

- Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.
- Don't auto-generate alt text and publish without a human reading it.



---

Canonical URL: https://logicpacks.io/packs/accessibility-public/alt-text-audit

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
