Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jtsang4/efficient-coding --skill site-palettegit clone --depth 1 https://github.com/jtsang4/efficient-codingWrote 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/skills/jtsang4/efficient-coding/site-palette)<a href="https://agentmods.dev/skills/jtsang4/efficient-coding/site-palette"><img src="https://agentmods.dev/badge/skills/jtsang4/efficient-coding/site-palette/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jtsang4/efficient-coding/site-palette"><img src="https://agentmods.dev/badge/skills/jtsang4/efficient-coding/site-palette.svg" alt="Reviewed on agentmods" width="80" 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.00211 | $0.02417 |
| Opus 5.5 | $0.00084 | $0.00967 |
| Sonnet 5.5 | $0.00042 | $0.00483 |
| Haiku 4.5 | $0.00021 | $0.00242 |
Grade A, and why
site-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 18d 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.
How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Site palette
Two lessons shape this skill:
- Don't generate colours from formulas; curate them. Every colour comes from Radix Colors: 31 hand-tuned 12-step scales, with light and dark themes tuned separately, plus documented grey pairings (
app/radix-colors.js, MIT). Algorithms only combine curated parts, check contrast, and map steps to tokens. - Don't guess the user's taste; learn it. A few directions written by Claude are a poor sample of what someone might like. The picker shows rounds of 8 complete palettes on the right kind of page. The first round is chosen to be as varied as possible. Later rounds move toward what the user liked and away from what they skipped. Reference images the user loves become candidates too.
Your job is to set good starting conditions: a brief, priors and references. After that, let the user's reactions decide, then turn the result into working code.
SKILL_DIR means this skill's directory. The scripts need Node 18+ or Bun (use bun in place of node), with no install step. Run them from the user's working directory.
| Path | Purpose |
|---|---|
scripts/serve.mjs |
Serves the picker on 127.0.0.1, waits for Send to Claude, writes the files, exits |
scripts/export.mjs |
Rebuilds the files from a saved state, with optional edits. Prints the report and a Tailwind v4 mapping |
app/ |
The picker page, palette-core.js (engine: scales → tokens → checks, candidate pool, taste learning) and radix-colors.js |
references/priors.md |
How to turn a brief into priors and references. Read it before step 3 |
references/integration.md |
How to wire the tokens into plain CSS, Tailwind v3/v4, shadcn/ui and design tools. Read it before step 6 |
1. Look before asking
In a web project, check the stack (package.json, the global stylesheet, the Tailwind config, shadcn/ui), the existing colours (CSS variables, frequent hex values, the logo fill) and the dark-mode convention (.dark or [data-theme="dark"]). An existing palette.state.json (usually in design/palette/) means this is a revision. Skip the interview and reopen it (step 4); the picker opens in fine-tune mode with every setting, vote and override restored.
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 18d ago First seen · 123 lines · 211 tokens per session scan A 7d839458971d
site-palette is a skill published in the GitHub repository jtsang4/efficient-coding (2 stars, last pushed 20d ago), licensed MIT. It adds 211 tokens to every session and 2,417 once invoked, about $0.0008 per session on Opus 5.5. 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-11-15.
site-palette compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| site-palettejtsang4/efficient-coding | Skill | 2 | 20d ago | MIT | A | 211 | Claude Code, Codex |
| frontend-designHmbown/CodeWhale | Skill | 41k | 5d ago | MIT | A | 21 | Claude Code, Codex |
| genuiLodyAI/Lody | Skill | 1.9k | today | Apache-2.0 | A | 121 | Claude Code, Codex |
| frame-build-minimalnexu-io/html-video | Skill | 5.0k | 17d ago | Apache-2.0 | A | 27 | Claude Code, Codex |
| ui_lookrazzant/ouroboros | Skill | 1.8k | today | MIT | A | 49 | Claude Code |
| frontend-designitmisx/deepx-code | Skill | 394 | 17d ago | MIT | A | 88 | Claude Code, Codex |
| design-skillOverbrilliant/ob-1 | Skill | 53 | 16d ago | Apache-2.0 | A | 82 | Claude Code, Codex |