Ghost: Skill for Claude Code

.agents/skills/shade-shadcn-install/SKILL.md

Shade ShadCN install is a skill for Claude Code, Codex from TryGhost/Ghost. It costs 72 tokens per session (935 once invoked), scanned A, original, MIT.

A set of project rules for adding ShadCN/UI components to the Shade design system. ShadCN/UI is a collection of reusable interface components, and semantic tokens are shared names for design values such as colors.

In plain words
What is it for?
Safely adding ShadCN components, handling installer prompts, and cleaning up generated styles in the Shade project.
Why use it?
It helps prevent the component installer from overwriting existing work and ensures new components match Shade's design system.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is TryGhost/Ghost's own configuration. It tells Claude Code and Codex how to work on Ghost itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Ghost configures →

About the project

Ghost is a publishing platform for creating websites, blogs, memberships, subscriptions, and newsletters. Publishers and developers can use it through managed hosting or run it themselves, while contributors work on its monorepo, themes, and API.

TryGhost/Ghost · 55,632 stars · on GitHub · ghost.org

Reuse

Borrowing it

Nothing to install: this file belongs to TryGhost/Ghost. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/TryGhost/Ghost/main/.agents/skills/shade-shadcn-install/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/TryGhost/Ghost

Made for: Claude Code, Codex.

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 Shade ShadCN install

README.md
[![agentmods](https://agentmods.dev/badge/skills/tryghost/ghost/shade-shadcn-install/github.svg)](https://agentmods.dev/skills/tryghost/ghost/shade-shadcn-install)
Your own site
<a href="https://agentmods.dev/skills/tryghost/ghost/shade-shadcn-install"><img src="https://agentmods.dev/badge/skills/tryghost/ghost/shade-shadcn-install/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 Shade ShadCN install

Your own site · 80×15
<a href="https://agentmods.dev/skills/tryghost/ghost/shade-shadcn-install"><img src="https://agentmods.dev/badge/skills/tryghost/ghost/shade-shadcn-install.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 935 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00072 $0.00935
Opus 5.5 $0.00029 $0.00374
Sonnet 5.5 $0.00014 $0.00187
Haiku 4.5 $0.00007 $0.00093

Measured 2d ago against content hash 7fdd2286c477, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Shade ShadCN install 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 2d 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.

.agents/skills/shade-shadcn-install/SKILL.md · 64 lines

How it starts

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

Shade — ShadCN install guardrails

Most new Shade components start from a ShadCN install. The CLI is destructive by default — follow these guardrails.

Command

pnpm dlx shadcn@latest add <component-name>

(Use pnpm, not npx / yarn / bunx. Ghost is pnpm.)

Before running

  1. Be on a fresh branch. The CLI's diff is mixed in with your branch's changes otherwise.
  2. Check if the component already exists in apps/shade/src/components/ui/. If it does, do not run the CLI against the repo — generate into a scratch repo and manually port the parts you want. The CLI will offer to overwrite, and you'd lose Shade customisations.

During the prompts

  • If asked to overwrite an existing file: choose No. Always.
  • If asked about path aliases: keep @/.

After the file lands — required cleanup

Raw ShadCN output is not Shade-quality yet. Do all of these:

  1. Swap raw colours for semantic tokens. ShadCN ships things like bg-white, border-gray-200, text-zinc-500. Replace with bg-surface-elevated, border-border-default, text-muted-foreground, etc. See the shade-tokens-not-hex skill for the inventory.
  2. Remove any dark: colour variants. Semantic tokens flip automatically. See shade-no-dark-variants.
  3. Use the @/ alias for internal imports (@/lib/utils, @/components/ui/...) — not relative paths.
  4. Ensure all four required states work: default, hover, focus-visible, disabled. (focus-visible: only — never focus:.)
  5. Trim props that hint at a specific surface. If a prop name reads like product workflow (isMembersPage, layoutMode), it doesn't belong on a generic Component — extract a Pattern instead.
  6. For form controls, drive border/background/focus through the inputSurface recipe instead of duplicating the chrome. See shade-input-surface-recipe.
  7. Add a sibling <name>.stories.tsx if one isn't already there. Copy useful examples from https://ui.shadcn.com/docs/components/<name> into stories. See shade-new-component.
  8. forwardRef + className merge via cn() — both are required.

Read the full file on GitHub · 64 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. 2d ago Changed · +1 lines 7fdd2286c477
  2. 2mo ago First seen · 63 lines · 72 tokens per session scan A 72fc0ffaf9b2

Subscribe to this mod's changes

Shade ShadCN install is a skill published in the GitHub repository TryGhost/Ghost (55,632 stars, last pushed today), licensed MIT. It adds 72 tokens to every session and 935 once invoked, about $0.0003 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-08-30.