Borrowing it
Nothing to install: this file belongs to alwkala/tidyfactor-design. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/alwkala/tidyfactor-design/main/.agents/skills/tidyfactor-design/references/commands/palette.mdgit clone --depth 1 https://github.com/alwkala/tidyfactor-designWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/alwkala/tidyfactor-design/palette)<a href="https://agentmods.dev/commands/alwkala/tidyfactor-design/palette"><img src="https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/palette.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00450 |
| Opus 5 | $0.00000 | $0.00225 |
| Sonnet 5 | $0.00000 | $0.00090 |
| Haiku 4.5 | $0.00000 | $0.00045 |
Grade A, and why
palette scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Command: palette — Brand Color Extraction & WCAG Contrast Check
Purpose
Extract dominant brand colors, background tones, accent highlights, and WCAG 2.1 AA contrast compliance scores from reference images, logos, or hero screenshots using the built-in Python tool scripts/extract_palette.py. Automatically updates brand.json and appends CSS custom properties to design-system/tokens.css.
When to run it
- User phrased: "extract color palette", "extract colors from logo", "check contrast ratio", "palette",
/palette. - During
initorclonewhen converting a reference logo or screenshot into a design token system.
What it does
- Color Quantization & Extraction:
- Runs
python scripts/extract_palette.py <image_path> --json brand.json --css design-system/tokens.css. - Quantizes the image palette to identify dominant Primary, Secondary, and Accent brand colors.
- Runs
- WCAG 2.1 AA Contrast Analysis:
- Computes relative luminance and contrast ratios between text/primary colors against dark (
#0F172A) and light (#F8FAFC) background surfaces. - Ensures text meets minimum 4.5:1 ratio (WCAG AA compliant).
- Computes relative luminance and contrast ratios between text/primary colors against dark (
- Token Synchronization:
- Updates
brand.jsoncolors object. - Appends CSS variables (
--color-primary,--color-secondary,--color-accent) todesign-system/tokens.css.
- Updates
Usage Examples
# Extract palette from logo and update brand.json
python scripts/extract_palette.py assets/logo.png --json brand.json
# Append extracted tokens to tokens.css
python scripts/extract_palette.py reference.png --css design-system/tokens.css
Checklist
- Image path is valid and readable by Pillow
- Primary, secondary, and accent colors extracted cleanly
- WCAG contrast ratio verified (≥ 4.5:1 for body text)
-
brand.jsonupdated with new color tokens -
design-system/tokens.cssupdated with matching CSS variables
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 36 lines · 0 tokens per session scan A 2cd8374bf8d8
palette is a command published in the GitHub repository alwkala/tidyfactor-design (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 450 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
start-here
Find where to start in the collection — name what you're working on and get routed to one command, the two that follow it, and the stages you can skip.
explore-options
Run a parallel exploration end to end — frame the decision, build a spread of behaviourally distinct concepts, pressure-test each, and converge with a decision record.
critique-screen
Run all seven visual critiques on a screen and output a prioritised fix list.
critique-ux
Run a focused UX critique on a screen — affordances, information density, and hierarchy — and output a prioritised fix list.
design-form
Design a form end to end — structure, decision points, chunking, validation, errors, and completion.
platform-audit
Audit a design for iOS and Android convention compliance — navigation, controls, typography, and platform-specific gaps.