pn-colorize

pn-colorize is a command for Claude Code, Cursor from perniemann/pnCore. It costs 33 tokens per session (606 once invoked), scanned A, original, MIT.

A focused process for creating or improving a website’s color system, including reusable color values, text contrast, and a dark theme.

In plain words
What is it for?
Use it to establish a palette, repair an existing one, add dark mode, or fix a specific color issue.
Why use it?
It helps resolve weak contrast, generic colors, missing color rules, and the lack of a dark mode.

Command for Claude CodeCursor

Written for Cursor and Claude Code: shipped in a Cursor plugin, but also a Claude Code command (commands/*.md).

Part of the pn-core plugin — 133 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it to establish a palette, repair an existing one, add dark mode, or fix a specific color issue.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/perniemann/pncore/pn-colorize
Install

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.

Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Claude Code, Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 133 skills, 19 commands, 9 agents, 1 MCP server.

Wrote 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.

agentmods badge for pn-colorize

README.md
[![agentmods](https://agentmods.dev/badge/commands/perniemann/pncore/pn-colorize/github.svg)](https://agentmods.dev/commands/perniemann/pncore/pn-colorize)
Your own site
<a href="https://agentmods.dev/commands/perniemann/pncore/pn-colorize"><img src="https://agentmods.dev/badge/commands/perniemann/pncore/pn-colorize/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.

agentmods 80×15 button for pn-colorize

Your own site · 80×15
<a href="https://agentmods.dev/commands/perniemann/pncore/pn-colorize"><img src="https://agentmods.dev/badge/commands/perniemann/pncore/pn-colorize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 606 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00606
Opus 5 $0.00016 $0.00303
Sonnet 5 $0.00007 $0.00121
Haiku 4.5 $0.00003 $0.00061

Measured 8d ago against content hash 4015a1042ad8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pn-colorize 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 8d 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.

packages/pn-core-mcp/content/commands/pn-colorize.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

pn-colorize

Start every response with: [pn-command] 🔺

Advanced (palette-hidden). Not in the / slash palette. Invoked by /pn-design (Color substep), /pn-visual-tweak, or /pn-polish, or directly via get_command("pn-colorize").

Focused color pass: establish or improve the color system, fix contrast issues, introduce strategic color, or implement dark mode. No layout or font changes — color only.

Flow

1. Context

Check .pncore-design.md for brand personality, visual ambition, and any existing brand colors. If not found, ask: "What's the brand hue or personality? Any existing brand colors to work with?"

2. Mode

Ask (if not clear from context):

  • Establish — build a new color system from scratch
  • Improve — audit and fix an existing palette (contrast, generic choices, token gaps)
  • Dark mode — add dark mode to an existing light system
  • Specific fix — address a particular issue (e.g., "fix contrast on the blue button")

3. Audit / Plan

Load get_skill("pn-color-system") and consult [reference/color-and-contrast.md](../skills/frontend/reference/color-and-contrast.md).

For Improve mode, audit:

  • Is the color system using OKLCH? If not, flag.
  • Are neutrals tinted with brand hue, or pure gray?
  • Does the system use primitive + semantic token layers?
  • Named anti-patterns present? (AI color palette, pure black/white, gray on color)
  • WCAG contrast: body text 4.5:1, UI components 3:1, placeholder text 4.5:1?
  • Does the accent color have appropriate rarity (≤10% of visual weight)?
  • Is there a defined palette structure (primary, neutral, semantic, surface)?

Output issues with severity. Gate on confirmation before fixing.

4. Implement

Apply changes using OKLCH. Typical outputs:

  • CSS custom properties with primitive + semantic layers
  • Tinted neutral scale (brand hue applied at chroma 0.005–0.01)
  • Dark mode semantic override block
  • Fix WCAG violations with specific new values

5. Summary

Colors changed, contrast ratios verified, dark mode coverage if applicable.

Read the full file on GitHub · 62 lines

Changes

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.

  1. 8d ago First seen · 62 lines · 33 tokens per session scan A 4015a1042ad8

Subscribe to this mod's changes

pn-colorize is a command published in the GitHub repository perniemann/pnCore (0 stars, last pushed 2d ago), licensed MIT. It adds 33 tokens to every session and 606 once invoked, about $0.0002 per session on Opus 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-08-31.