chromatic-drift-guard
Skill4 starsChanged 31 days agoMITView on GitHub
Quantify chromatic saturation drift, OKLCH color space adherence, and eliminate AI category reflex traps (cheerful drift, warm-cream bands, purple-blue gradient clichés, dark-mode inertia).
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- anti-slop-engineeringSkill
- anti-slop-engineeringSkill
- api-ergonomics-and-contract-governorSkill
- apple-craft-and-frame-budgetSkill
- apple-craft-and-interaction-physicsSkill
- asset-provenance-guardSkill
- backprop-guardSkill
- chaos-and-degradation-choreographerSkill
- cognitive-load-and-attention-governorSkill
- comment-budget-guardSkill
- context-window-and-token-economics-architectSkill
- cryptographic-agility-and-secret-lifecycle-gateSkill
- decision-guardSkill
- demock-guardSkill
- design-system-drift-guardSkill
- deterministic-simulation-and-property-testingSkill
- distributed-consensus-and-concurrency-gateSkill
- finops-and-unit-economics-governorSkill
- future-scale-gateSkill
- grumpy-senior-staff-engineerSkill
- honeypot-trap-guardSkill
- house-tell-guardSkill
- install-anti-slopSkill
- llm-eval-and-prompt-injection-fortressSkill
- mandela-guardSkill
- mechanical-sympathy-and-perf-gateSkill
- mechanical-sympathy-profilerSkill
- motion-runtime-guardSkill
- observability-and-slo-architectSkill
- observability-and-slo-gateSkill
- paranoid-principal-architectSkill
- pr-boundary-guardSkill
- privacy-and-data-lineage-gateSkill
- re0-handoff-guardSkill
- reduction-guardSkill
- repo-memory-and-invariant-stewardSkill
- root-fix-gateSkill
- safe-evolution-and-rollout-choreographerSkill
- scientific-fault-isolationSkill
- styleseed-guardSkill
- supply-chain-and-sbom-sentinelSkill
- tagore-guardSkill
- type-level-and-ast-slop-gateSkill
- ui-and-copy-disciplineSkill
- verification-oracle-architectSkill
- zero-downtime-migration-gateSkill
The file
Files
Chromatic Saturation Drift & OKLCH Reflex Guard
Quantify color space divergence, eliminate cheerful saturation drift, and break statistical AI color clichés using standard-library CIE OKLCH mathematics.
Why This Skill Is Needed & Target State
Generative AI models suffer from persistent chromatic biases:
- Cheerful Saturation Drift: Given a muted, analog, or near-monochrome brand direction, models subconsciously generate friendlier, bluer, oversaturated video-game pastels ($\text{Chroma} \gg \text{Target}$).
- The Dark-Mode Reflex: Sliding into near-black backgrounds ($L \approx 0.12$) on 90% of designs without physical scene motivation.
- The Warm-Cream Band Trap: Falling into the warm-cream default band ($L \in [0.84, 0.97], C < 0.06, H \in [40, 100]$) as an unargued reflex for "warmth".
- Purple-to-Blue Gradients: Defaulting to gradients with multiple stops in the $H \in [250, 290]$ band.
The target state is mathematical color discipline: working in CIE OKLCH, adhering to committed background lightness $L_{\text{target}}$ and chroma $C_{\text{target}}$, and requiring written justification for aesthetic choices.
Invariant Rules
- Cheerful Drift Bound: Actual painted chroma must not exceed committed target chroma by more than $\Delta C = 0.03$ without explicit commit-sheet justification.
- Committed Lightness Anchor: Theme and body background lightness must align with the committed target lightness $L_{\text{target}}$ within $\pm 0.12$ tolerance.
- Banned Category Reflex Bands: Warm-cream default bands and purple-blue gradient defaults are strictly rejected unless accompanied by an explicit
/* auteur-allow: RULE -- reason */comment.
Color Math: CIE OKLCH Transformation
$$\text{sRGB} \xrightarrow{\text{Gamma Expansion}} \text{Linear RGB} \xrightarrow{M_1} \text{LMS} \xrightarrow{\sqrt[3]{\cdot}} \text{LMS}' \xrightarrow{M_2} \text{OKLab} \xrightarrow{\text{Polar}} \text{OKLCH}$$
Where Euclidean Chroma is: $$C = \sqrt{a^2 + b^2}, \quad H = \text{atan2}(b, a) \pmod{360^\circ}$$
CLI Usage
# Scan directory for chromatic drift and reflex band violations
bunx anti-slop-engineering chroma-drift --scan src/ --target-l 0.55 --target-c 0.04
# Evaluate single hex or oklch color string
bunx anti-slop-engineering chroma-drift --color "#7b6b63"
# Validate pre-existing chroma report JSON
bunx anti-slop-engineering chroma-drift --file .anti-slop/chroma.json --strictDoes 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.

