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`.
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agents-md-fixerSkill
- arch-docsSkill
- book-to-markdownSkill
- docset-updaterSkill
- humanizerSkill
- news-release-docsSkill
- pdf-guideSkill
- readme-docsSkill
- screenshot-docsSkill
- see-also-docsSkill
- setup-install-usage-docsSkill
- bptools-writer-expertSkill
- css-creative-expertSkill
- game-design-expertSkill
- geometry-expertSkill
- glass-expertSkill
- hic-human-interact-expertSkill
- openscad-3d-printing-expertSkill
- podman-expertSkill
- postgresql-expertSkill
- pyside6-engineerSkill
- rust-code-expertSkill
- solid-js-expertSkill
- svg-creator-expertSkill
- typescript-engineerSkill
- ui-ux-engineerSkill
- vision-expertSkill
- wasm-rust-expertSkill
- webwork-writer-expertSkill
- delegate-manager-to-subagentsSkill
- gas-town-workflowSkill
- hang-checkSkill
- html-game-parallel-builderSkill
- parallel-planSkill
- stay-busySkill
- repo-rules-readerSkill
- blueprint-plan-drafterSkill
- ideonomy-plainSkill
- ideonomy-richSkill
- make-goalSkill
- modest-plan-drafterSkill
- audit-code-reviewerSkill
- old-python-code-reviewSkill
- prune-testsSkill
- unit-test-starterSkill
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
- Very specific: line 19
Write or refresh docs/PALETTE_CONTRAST_AUDIT.md only through scripts/generate_palette_audit.py.
- Very specific: line 21
Treat the shared docs/COLOR_CONTRAST_ACCESSIBILITY.md method guide as read-only authority.
- Very specific: line 32
Read references/tooling.md for script flags, input and output formats, dependencies, and document-generation behavior before running the …
- Very specific: line 37
Run scripts/extract_colors.py over the requested target paths and retain its path, line, and hex evidence.
- Very specific: line 39
Run scripts/audit_palette.py against the required background and contrast ratio.
- Very specific: line 46
When rendered output matters, use scripts/image_contrast.py for explicit pixel points or dominant-color inspection.
- Very specific: line 48
When the target needs a new palette, use scripts/generate_color_wheel.py with its documented dependencies and audit output.
- Very specific: line 58
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 …
- Very specific: line 63
Use references/testing_and_oracles.md for numeric proof and references/color_contrast_reference.md for WCAG thresholds, luminance, …
≈ “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.
Files
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.pyafter a dry-run. - Write or refresh
docs/PALETTE_CONTRAST_AUDIT.mdonly throughscripts/generate_palette_audit.py. - Treat the shared
docs/COLOR_CONTRAST_ACCESSIBILITY.mdmethod 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
- Run
scripts/extract_colors.pyover the requested target paths and retain its path, line, and hex evidence. - Run
scripts/audit_palette.pyagainst the required background and contrast ratio. Capture the measured failures and replacement mapping. - Preview the mapping with
scripts/apply_color_fixes.pyin its default dry-run mode, then apply it with--writewhen source edits are authorized. - 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.
- When rendered output matters, use
scripts/image_contrast.pyfor explicit pixel points or dominant-color inspection. - When the target needs a new palette, use
scripts/generate_color_wheel.pywith its documented dependencies and audit output. - Generate or refresh
docs/PALETTE_CONTRAST_AUDIT.mdfrom the current run. Confirm the printed evidence manifest and thatcolors_documentedmatches the audit. A colorless repository carries no generated audit file. - 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.
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
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.

