/syv-skills:write-a-skillfrom syv-skills
Guides creating, revising, and testing SKILL.md folders for Claude Code. Use when a user wants to write a new skill, fix an existing one, or understand skill structure.
Ships in syv-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A skill is a folder with a SKILL.md that a future agent loads when a task matches its description. It holds a technique, workflow or body of knowledge the agent lacks, not the story of how one problem was solved once.
Write one when the task recurs, the knowledge isn't something the agent already has, and getting it wrong is costly. Don't when the agent already does the task well without it (watch a run first), for a one-off fix, for project conventions (those go in the project's instructions file — AGENTS.md or CLAUDE.md), or for a rule a script, linter or hook can enforce.
SKILL.md first, depth in references, scripts for deterministic steps.skill-name/
├── SKILL.md # required
├── references/ # depth, read only when a step says so
├── scripts/ # deterministic operations
├── assets/ # templates, schemas, static files
└── agents/openai.yaml # Codex metadata, only when needed
Use the Agent Skills fields so the skill loads in any harness:
---
name: skill-name # 1–64 chars: lowercase, digits, single hyphens; matches the folder
description: <capability>. Use when <triggers>. # 1–1024 chars
---
Optional spec fields are license, compatibility, metadata and the experimental allowed-tools. Add harness fields (disable-model-invocation, argument-hint, context, …) only when the skill needs them. Read references/frontmatter-and-harnesses.md before adding one, before making a skill manual-only, or when a skill loads in one harness but not another.
Manual-only skills (side effects, or timing the user should control) set disable-model-invocation: true and add agents/openai.yaml with policy: { allow_implicit_invocation: false } for Codex. Gemini CLI ignores the field, so the skill stays model-invocable there.
The agent sees only names and descriptions when it picks a skill, and descriptions get cut when the listing is crowded, so put the key use case first.
# Summarises the workflow: agents follow this and skip the body
description: Use for TDD - write test first, watch it fail, write minimal code, refactor
# Capability, then triggers
description: Test-driven development with red-green-refactor. Use when implementing a feature or bugfix that has a testable seam.
package.json scripts, --help, its own tool names). Keep the unwritten convention, the reason behind a choice, and the gotcha. Models improve, so re-run the baseline when revising an old skill and cut what it no longer needs.bash scripts/check.sh, python3 scripts/build.py) with paths relative to the skill folder, since packagers can drop the executable bit.Read references/writing-the-body.md when choosing how to phrase a rule, when a draft isn't changing behaviour, or when designing a bundled script.
These apply when adding to the Syv.ai skills collection; in another project, treat them as defaults.
.claude/, docs/, GitHub or git unless the project's instructions say so. For questions: "ask with your harness's question tool, or in plain text if it has none", without listing each harness's tool name. For exploration: "delegate to an exploration subagent with a fresh context if your harness has one"; some harnesses fork the conversation into a subagent by default, which throws away the clean context it exists for.context: fork, ${CLAUDE_SKILL_DIR}, hooks and workflows appear only as short "In Claude Code, …" notes beside a portable default.Artifact tool) and otherwise written as a self-contained HTML file. Share full absolute paths for anything written for a person to read.@path syntax, which force-loads the file. State each rule once, in the file where it is acted on, and point to it from elsewhere; a subagent prompt keeps its own copy, since the subagent sees nothing else.name matches the folder and the spec rules; spec frontmatter unless a harness field is neededclaude plugin validate <plugin root>, where Claude Code is availabledisable-model-invocation: true, agents/openai.yaml for Codex, and a description that's safe for Gemini CLI to seeSKILL.md around 100 lines, most important first; each reference has a "read when" pointerWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub syv-ai/agentic-coding-playbook --plugin syv-skills20 skills in this plugin
/brainstormingThinks an idea through with the user before anything is built — new angles and radical alternatives, their thoughts organised and drawn, every open decision settled — and ends in an agreed design. Use when a feature or behaviour change is underspecified, when several approaches are plausible, when the user wants to explore an idea or think a design through, or wants their thinking organised or mapped. To only be questioned on a plan that already exists, use grill-me./executing-plansExecutes a written implementation plan task by task, verifying each step and reviewing the result against the plan before calling it done. Use when there is an existing plan to implement, in this session or one started fresh from a handoff./grill-meInterviews the user relentlessly about an idea, plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when the user wants to stress-test a plan, get grilled on an idea or design, or mentions "grill me". It is the interview inside brainstorming; when the idea also needs alternatives or a written design, use brainstorming./guardrailsReviews what a coding agent could damage in this repo, notes the controls already in place, and asks which remaining risks to cover./handoffCompacts the current conversation into a handoff document so another agent can pick up the work. Use when you want to hand off to a fresh session, or when continuing in a clean context would work better than carrying this one forward./improve-codebase-architectureFind deepening opportunities in a codebase — refactors that turn shallow modules into deep ones — and present them as a visual HTML report. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.Other plugins' skills for the same job