hassanzohdy/copper/colors
Claude Code and agent skill by hassanzohdy/copper
- community
Checking that the SKILL.md file is still in the repository.
ANSI colorizer with a 20+ named palette (basic 4-bit + 256-color hues like `lime`, `teal`, `brown`, `gold`, `chocolate`, `pink`, `purple`, `lavender`, `indigo`, `orange`, `slate`), foreground / background / *Bright* / *bgBright* variants, plus modifiers (`bold`, `italic`, `dim`, `underline`, `inverse`, `hidden`, `strikethrough`, `reset`). Supports BOTH chalk-style chaining (`colors.red.bold("x")`) and picocolors-style composition (`colors.red(colors.bold("x"))`). `NO_COLOR` and `FORCE_COLOR` aware.
Install
npx vskill@latest install hassanzohdy/copper/colorsSKILL.md
Colors
Chain colors and modifiers chalk-style. Each chain step builds a fresh callable formatter — lazy, stateless, reusable.
Composition (colors.red(colors.bold(x))) produces identical ANSI output and is the natural shape for indexed access (colors[name](x)wherenameis a runtimeColorName). Every chain example below has a composition equivalent — pick whichever reads better at the call site.
Modifiers
| Function | Effect | |
|---|---|---|
bold(s) | Bold | |
dim(s) | Faint | |
italic(s) | Italic | |
underline(s) | Underline | |
strikethrough(s) | Strikethrough | |
inverse(s) | Swap fg/bg | |
hidden(s) | Invisible (still copies on select) | |
reset(s) | Wraps with CSI 0 on both sides |
Palette (foreground)
Each row also has *Bright, bg*, and bgBright* variants unless noted.
| Family | Names | |
|---|---|---|
| Neutral | black, gray, white, blackBright, whiteBright | |
| Slate | slate, slateBright | |
| Red | red, redBright | |
| Orange | orange, orangeBright | |
| Yellow | yellow, yellowBright | |
| Gold | gold, goldBright | |
| Chocolate | chocolate, chocolateBright | |
| Brown | brown, brownBright | |
| Green | green, greenBright | |
| Lime | lime, limeBright | |
| Teal | teal, tealBright | |
| Cyan | cyan, cyanBright | |
| Blue | blue, blueBright | |
| Magenta | magenta, magentaBright | |
| Purple | purple, purpleBright | |
| Pink | pink, pinkBright | |
| Lavender | lavender, lavenderBright | |
| Indigo | indigo, indigoBright |
The standard 4-bit colors (red/green/…/white) use the 30-37 / 90-97 sequences. The extended hues (lime,teal,brown,gold, …) use 256-color sequences (\x1b[38;5;Nm) so terminals must support 256 colors — which all common modern terminals do.
createColors(enabled?) — force on or off
Use this to:
- Strip ANSI from a colored builder before snapshotting a test (
createColors(false).red(x)). - Force ANSI in a sub-process whose
stdoutisn't a TTY but is being captured. - Build a separate "diff" or "patch" themed instance with its own palette.
Typed color names (the composition case)
When the color name is decided at runtime, indexed access + composition is the right shape — chains are a compile-time-only thing:
ColorName is derived from the COLOR_NAMES tuple — it excludes the meta keys isColorSupported and createColors so colors[name] is always a callable formatter.
Replacing chalk
Near-1:1 import swap thanks to chaining:
For chalk's tagged-template syntax (chalk\{red ${value}}\`), use colorize-template` against the copper instance:
Composition safety
When you nest colors.x(colors.y(text)) (or chain colors.x.y(text)) and text already contains the inner closer code, copper rewrites internal closers to re-open the outer color — so chains do not leak:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/colors/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hassanzohdy/copper/colors)