agentleFS
vosslabvosslab/vosslab-skills/skills/experts/color-accessibility-expert/SKILL.md

color-accessibility-expert

Skill5 starsChanged 22 days agoMITView on GitHub

Detect and fix WCAG color-contrast failures in source files and images using measured, hue-preserving replacements. Use for accessible palettes, contrast ratios, dark mode, screenshots, or `docs/PALETTE_CONTRAST_AUDIT.md`.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 0 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write or refresh docs/PALETTE_CONTRAST_AUDIT.md only through scripts/generate_palette_audit.py.

    line 19
  2. Very specific:

    Treat the shared docs/COLOR_CONTRAST_ACCESSIBILITY.md method guide as read-only authority.

    line 21
  3. Very specific:

    Read references/tooling.md for script flags, input and output formats, dependencies, and document-generation behavior before running the …

    line 32
  4. Very specific:

    Run scripts/extract_colors.py over the requested target paths and retain its path, line, and hex evidence.

    line 37
  5. Very specific:

    Run scripts/audit_palette.py against the required background and contrast ratio.

    line 39
  6. Very specific:

    When rendered output matters, use scripts/image_contrast.py for explicit pixel points or dominant-color inspection.

    line 46
  7. Very specific:

    When the target needs a new palette, use scripts/generate_color_wheel.py with its documented dependencies and audit output.

    line 48
  8. Very specific:

    Every path and color in the generated audit table must come from a target-repository file read in the current run, and every color must …

    line 58
  9. Very specific:

    Use references/testing_and_oracles.md for numeric proof and references/color_contrast_reference.md for WCAG thresholds, luminance, …

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Color accessibility expert

Overview

Measure contrast, compute hue-preserving replacements, apply them to source, and re-audit the actual result. Fixed source files are the primary deliverable. A generated docs/PALETTE_CONTRAST_AUDIT.md documents current evidence rather than replacing the fix.

Ownership boundary

  • Edit target-repository color values through scripts/apply_color_fixes.py after a dry-run.
  • Write or refresh docs/PALETTE_CONTRAST_AUDIT.md only through scripts/generate_palette_audit.py.
  • Treat the shared docs/COLOR_CONTRAST_ACCESSIBILITY.md method guide as read-only authority.
  • Ground every documented path and color in files inspected and extraction output produced during the current run.

Project shape and routing

Classify improve-existing versus greenfield work with references/project_workflow.md. Classify one color pair, one source, or one image with references/task_selection.md. Route observed symptoms through references/topic_index.md.

Read references/tooling.md for script flags, input and output formats, dependencies, and document-generation behavior before running the toolchain.

Workflow

  1. Run scripts/extract_colors.py over the requested target paths and retain its path, line, and hex evidence.
  2. Run scripts/audit_palette.py against the required background and contrast ratio. Capture the measured failures and replacement mapping.
  3. Preview the mapping with scripts/apply_color_fixes.py in its default dry-run mode, then apply it with --write when source edits are authorized.
  4. Re-run extraction and the same palette audit over the same paths. Continue correcting measured failures until every in-scope color passes. This re-audit is mandatory evidence for a completed fix.
  5. When rendered output matters, use scripts/image_contrast.py for explicit pixel points or dominant-color inspection.
  6. When the target needs a new palette, use scripts/generate_color_wheel.py with its documented dependencies and audit output.
  7. Generate or refresh docs/PALETTE_CONTRAST_AUDIT.md from the current run. Confirm the printed evidence manifest and that colors_documented matches the audit. A colorless repository carries no generated audit file.
  8. Record changed files, replacement values, audit evidence, and verification in the target repository's changelog when its rules require that update.

Evidence contract

Every path and color in the generated audit table must come from a target-repository file read in the current run, and every color must occur in the current extract_colors.py output. Follow references/palette_audit_template.md before accepting the generated document.

Use references/testing_and_oracles.md for numeric proof and references/color_contrast_reference.md for WCAG thresholds, luminance, formulas, backward solving, and external calculators.

Completion

Return the files and color values changed, before-and-after ratios, the exact re-audit result, image spot-check results when applicable, and the generated audit evidence manifest. Report a fix only after the post-edit audit passes every in-scope color.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.