Skip to content
Back to skills

Palette

ASecurity

Build a contrast-checked light and dark palette from one colour, or measure the contrast of a pair.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
designgoswiftnode

Works with

  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add nirmalkcse/second-nature --skill palette --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Palette?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Palette
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nirmalkcse-palette-second-nature/badge)](https://www.skillsdirectory.com/skills/nirmalkcse-palette-second-nature)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: palette
description: "Build a contrast-checked light and dark palette from one colour, or measure the contrast of a pair."
argument-hint: "<colour> | --check <text> <background>"
disable-model-invocation: true
---

Arguments: $ARGUMENTS

- One colour (`#D11F41` or `"oklch(56% 0.2 18)"`): run `node ${CLAUDE_PLUGIN_ROOT}/skills/second-nature/scripts/palette.mjs <colour>` and show the custom properties and the checks. Explain any check marked "note". If the project already has colour tokens, map the scale onto their names instead of adding a second system.
- `--check <text> <background>`: run `node ${CLAUDE_PLUGIN_ROOT}/skills/second-nature/scripts/palette.mjs --check <text> <background>` and say what the pair is good for.
- For other formats (design-token JSON, with `--srgb` when it is for Figma; a Tailwind theme; Swift; Android), use `node ${CLAUDE_PLUGIN_ROOT}/skills/second-nature/scripts/tokens.mjs`.
- No arguments: ask for the colour, and where it comes from. A palette should start from something true about the product, not from a category habit.

The reasoning is in `${CLAUDE_PLUGIN_ROOT}/skills/second-nature/references/color.md`. Read it only if a question comes up that the script's output does not answer.

Paths: if a path above still begins with a literal dollar sign and braces, your host did not fill it in. The folder it means is `second-nature`, beside this skill's own folder; if that is missing too, use the tools of the `second-nature` MCP server instead (`library_read`, `audit`, `improve`, `palette`, `tokens`, `effort`, `direction`).

Files in this skill

  • SKILL.md1.5 KB
  • agents/openai.yaml320 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.