Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from bundle
Scans metapatterns.io pages for diagram images with weak alt text and exports exact update candidates in Markdown, JSON, or CSV.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: metapatterns-diagram-alt-audit3description: Use when auditing metapatterns.io pages for diagram images, weak alt text, and exact replacement suggestions. Runs a deterministic scanner over a page or section, extracts current alt text plus nearby heading and prose context, and helps draft short replacement alts for architectural diagrams.4---56# Metapatterns Diagram Alt Audit78Use this skill for `metapatterns.io` chapters that contain architecture diagrams under `/diagrams/`.910## Workflow11121. Run the scanner first:1314```bash15python scripts/audit_diagram_alts.py https://metapatterns.io/basic-metapatterns/layers/16```17182. For a whole section, crawl linked pages under the same prefix:1920```bash21python scripts/audit_diagram_alts.py https://metapatterns.io/basic-metapatterns/ --crawl --limit-pages 2522```23243. Review candidates marked with `needs_update=true`.25264. For unclear cases, open the image itself and inspect it before drafting replacement text.2728## What the scanner does2930- finds content images on `metapatterns.io`31- strongly prefers images whose path contains `/diagrams/`32- ignores obvious UI assets such as icons, logos, menus, and chevrons33- captures the page title, nearest heading, nearby paragraph text, image source, current alt, and a suggested issue label34- flags common weak alts such as missing alt text, filename-like alt text, and very short placeholder alt text3536## Writing replacement alt text3738- Keep the replacement short, usually one sentence.39- Describe the structure and the main takeaway, not every label in the drawing.40- Do not start with `image of` or `diagram of`.41- Prefer concrete nouns over abstractions. Example: `Three stacked layers: use cases, domain logic, and data, with requests flowing downward.`42- If the diagram is complex, write a short `alt` and add a longer explanatory sentence in nearby prose or a caption.4344## Output shape4546Default output is Markdown with one section per page and one bullet per candidate.4748Use JSON when the result needs post-processing:4950```bash51python scripts/audit_diagram_alts.py <url> --json52```5354Use CSV when the result needs spreadsheet review or bulk editing:5556```bash57python scripts/audit_diagram_alts.py <url> --csv58```5960CSV columns:6162- `page_url`63- `page_title`64- `nearest_heading`65- `image_url`66- `current_alt`67- `needs_update`68- `issue`69- `context_paragraph`7071## Notes7273- This skill audits and drafts updates; it does not blindly rewrite the site.74- If the site source is available locally, use the report to patch the exact `alt` attributes in the source files.75