Ghost: Skill for Claude Code

.agents/skills/shade-component-decision/SKILL.md

Shade component decision is a skill for Claude Code, Codex from TryGhost/Ghost. It costs 60 tokens per session (1,276 once invoked), scanned A, original, MIT.

A decision guide for placing a new user-interface building block in the Shade design system, or keeping it local instead. Shade organizes UI code into layers such as tokens, primitives, components, recipes, and patterns.

In plain words
What is it for?
Use it when creating files in Shade's component folders or proposing a new token, layout primitive, UI component, styling recipe, page pattern, or page template.
Why use it?
It prevents one-off or premature additions from creating the wrong reusable interface or design-system API.

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-component-decision/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 component decision

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tryghost/ghost/shade-component-decision"><img src="https://agentmods.dev/badge/skills/tryghost/ghost/shade-component-decision.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,276 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.00060 $0.01276
Opus 5.5 $0.00024 $0.00510
Sonnet 5.5 $0.00012 $0.00255
Haiku 4.5 $0.00006 $0.00128

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

Security

Grade A, and why

Shade component decision 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-component-decision/SKILL.md · 77 lines

How it starts

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

Shade — pick the right layer (and decide whether to add to Shade at all)

Before adding anything to Shade, walk the decision flow and the promotion checklist. The default is keep code local first — premature design system additions lock in the wrong API.

The five layers

Layer Lives in Examples
Token theme-variables.css, tailwind.theme.css --background, --text-base, --radius-md
Primitive src/components/primitives/ Stack, Inline, Box, Grid, Container, Text
Component src/components/ui/ Button, Input, Dialog, Tabs, Card
Recipe src/components/ui/<name>.ts (no JSX) inputSurface
Pattern src/components/patterns/ PageHeader, KpiCard, Filters, GhAreaChart

Plus one additional barrel:

  • page-templates/ (@tryghost/shade/page-templates) — top-level page wrappers (ListPage today). Composes Patterns + Components + Primitives. If you're building a new shape that wraps a whole admin page, this is where it goes. See shade-page-templates.

Decision flow (top-to-bottom, stop at first match)

  1. Just a colour, size, radius, duration? → Token. Add to theme-variables.css (semantic) or tailwind.theme.css (raw @theme).
  2. Layout-only (spacing, alignment, structure)? → Primitive. Reuse an existing one; only add a new one if the structural shape is genuinely novel.
  3. Generic, accessible UI control with no Ghost-specific knowledge? → Component. Reuse first; only add if it doesn't exist and the promotion checklist below passes.
  4. The same chrome / focus / density rule shared across ≥ 2 components? → Recipe. A class-string function (no JSX, no React) next to the components in src/components/ui/.
  5. Knows about Ghost (KPIs, members, posts, newsletters, analytics)? → Pattern.

Read the full file on GitHub · 77 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 · +2 lines c1fa1d2c28e7
  2. 2mo ago First seen · 75 lines · 60 tokens per session scan A 71d91abdb6ab

Subscribe to this mod's changes

Shade component decision is a skill published in the GitHub repository TryGhost/Ghost (55,632 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 1,276 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

cms-metadata-tagger

Takes a finished piece of content and produces a complete, archive-ready metadata record — including descriptive tags, subject classifications, rights notes, and an archival summary — for entry into a content management or digital archive system.

ur-grue/autopunk-media-skills · 49 tokens

cms-metadata-writer

Writes structured metadata fields — title tag, meta description, tags, category, slug, and Open Graph text — for a CMS entry, optimized for search discoverability and social sharing.

ur-grue/autopunk-media-skills · 42 tokens

dynamic-archify

Create professional architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as standalone animated HTML files with SVG graphics, flowing animation effects, a built-in dark/light theme toggle, and one-click export to PNG / JPEG / WebP / SVG / GIF / WebM. Accepts plain-language descriptions or pasted…

Unclecheng-li/AI_Animation · 163 tokens

diagram-design

Create technical and product diagrams — architecture, flowchart, sequence, state machine, ER / data model, timeline, swimlane, quadrant, nested, tree, org chart, layer stack, venn, pyramid — as standalone HTML files with inline SVG. Ships with a neutral editorial skin and a first-run gate that prompts users to…

Unclecheng-li/AI_Animation · 95 tokens

stacked-data-cards

A single-file HTML animation that presents data as a sequence of layered cards. Cards can show charts, numbers, comparisons, tables, icons, and short conclusions while playing automatically.

Unclecheng-li/AI_Animation · 141 tokens

swiss-shot-demos

A skill for making video storyboard animations as standalone HTML scenes in a Swiss graphic-design style. Each scene uses a content-matched chart or diagram, such as a timeline, flow, comparison, or matrix.

Unclecheng-li/AI_Animation · 256 tokens