Agent Skill
Skill writer (Sentry)
Sentry's skill for writing and improving agent skills: gathers sources, drafts the SKILL.md, tunes the description and validates the result.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkInstall
Commands are pinned to commit a582c51, the version we read, wherever the install method supports it.
npx skills
npx skills add getsentry/skills@a582c51ee29d0f35e6ac321340796f77d43da733 --skill skill-writer -a claude-codeCopies the skill into .claude/skills/ in this project, pinned to the reviewed commit.
Plugin marketplace
/plugin marketplace add getsentry/skills
/plugin install sentry-skills@sentry-skillsRun inside Claude Code. Installs the whole sentry-skills plugin from its default branch, not the pinned commit.
npx skills
npx skills add getsentry/skills@a582c51ee29d0f35e6ac321340796f77d43da733 --skill skill-writer -a codexInstalls to .agents/skills/, which Codex scans from the working directory up to the repo root.
npx skills
npx skills add getsentry/skills@a582c51ee29d0f35e6ac321340796f77d43da733 --skill skill-writer -a cursorInstalls to .agents/skills/, one of the folders Cursor reads skills from.
gh skill
gh skill install getsentry/skills skills/skill-writer --pin a582c51ee29d0f35e6ac321340796f77d43da733 --agent github-copilotNeeds GitHub CLI 2.90.0 or later. Use --scope user to install for every repository.
npx skills
npx skills add getsentry/skills@a582c51ee29d0f35e6ac321340796f77d43da733 --skill skill-writerPinned to the commit we reviewed. The CLI asks which agents to install for; add -g to install for your user instead of this project.
What it does
Sentry’s skill for creating and maintaining other skills. It handles four operations: create a new skill, update one, synthesise a skill from source material (docs, examples, past conversations), and iterate on one from examples of good and bad output. The agent inspects how skills are laid out in your workspace before deciding where files go, picks the simplest “execution shape” that will work (inline instructions, reference-backed, script-backed, a router, a subagent fork) and records why it rejected simpler ones. Before adding guidance it looks for an existing rule to narrow or remove instead. It then tunes the description against sets of prompts that should and should not trigger the skill, registers it in the repository, and runs a bundled validator.
How it compares with skill-creator
Anthropic’s skill creator centres on testing: it runs evals with and without the skill, benchmarks, and optimises the description with a script. This skill centres on structure and maintenance: where a skill should live, which shape it should take, and how to change an existing skill without it growing. Use skill creator to prove a new skill helps; use skill writer when you maintain many skills in one repository and want them consistent. They overlap on description tuning.
When to use it
Teams that keep a library of skills in a repository, turning internal docs into a skill, or improving a skill from transcripts where it misfired.
When to skip it
A single quick personal skill: our first skill guide is faster.
Try it
Use skill-writer to synthesise a skill from docs/runbooks/deploys.md and the
three incident write-ups in docs/incidents/. Choose the simplest shape that
works, write should-trigger and should-not-trigger prompts, and run the
validator.
What it can touch
- Bundles scripts
- Yes
- Pre-approved tools
- None declared
- Needs
- Python 3 for the bundled validator
- Client-specific fields
- None, spec fields only
Its scripts run with your permissions, and it may have changed since the commit we read. How to check a skill.
It creates and edits files in your skills folders and runs scripts/quick_validate.py with Python. No allowed-tools, no network beyond what you ask for.
At commit a582c51 the SKILL.md is 156 lines long. Alongside it:
evals/(2 entries)references/(37 entries)scripts/(1 entry)EVAL.mdSOURCES.mdSPEC.md
The 37 reference files are the real content: layouts for each kind of skill, worked examples, description optimisation, evals, and a set of Claude Code-specific mechanics (argument substitution, dynamic context, hooks, subagent forks) that the skill keeps separate so portable skills stay portable.
Alternatives
obra’s writing skills for a TDD-style approach to skill writing, and our guide to writing descriptions that trigger.
SKILL.md
The file exactly as published at the reviewed commit, reproduced under its Apache-2.0 licence.
---
name: skill-writer
description: Create, synthesize, and iteratively improve agent skills following the Agent Skills specification. Use when asked to "create a skill", "write a skill", "synthesize sources into a skill", "improve a skill from positive/negative examples", "update a skill", or "maintain skill docs and registration". Handles source capture, precision passes, authoring, registration, and validation.
---
# Skill Writer
Use this as the single canonical workflow for skill creation and improvement.
Primary success condition: maximize high-value input coverage before authoring while minimizing wasted runtime tokens.
Follow the workflow steps in order. Load only the reference files required for the step you are on.
`SKILL.md` is the primary router: every bundled reference file should be flat under `references/` and listed here with a direct "open when..." reason.
## Core Workflow References
| Open when you need to... | Read |
|--------------------------|------|
| choose the minimum workflow path for create, update, iterate, or research-first work | `references/mode-selection.md` |
| choose the simplest adequate execution shape before deciding files | `references/execution-shapes.md` |
| apply writing constraints for depth, concision, and portability | `references/design-principles.md` |
| decide what belongs in `SKILL.md`, `references/`, `SPEC.md`, or supporting files | `references/reference-architecture.md` |
| create or update the maintenance contract for a skill | `references/spec-template.md` |
| find missing high-signal sources, including history and regressions | `references/source-discovery.md` |
| adapt an upstream prompt, workflow, rubric, benchmark, or docs into a skill | `references/source-adaptation.md` |
| run the full synthesis pass with coverage checks and source capture | `references/synthesis-path.md` |
| author or update `SKILL.md`, `SPEC.md`, and supporting files | `references/authoring-path.md` |
| improve trigger language and false-positive/false-negative behavior | `references/description-optimization.md` |
| iterate from positive, negative, or fix examples | `references/iteration-path.md` |
| store persistent working and holdout examples for future revisions | `references/iteration-evidence.md` |
| choose a response template, schema, or output contract | `references/output-contracts.md` |
| add or update evals for a skill's generated outputs or runtime behavior | `references/skill-evals.md` |
| troubleshoot overloaded layouts, hidden refs, or other structure failures | `references/structure-troubleshooting.md` |
| register the skill and run final validation checks | `references/registration-validation.md` |
## Artifact Layout References
| Open when you need to... | Read |
|--------------------------|------|
| keep the whole skill inline in one coherent `SKILL.md` | `references/layout-inline-skill.md` |
| split optional deep knowledge into focused routed references | `references/layout-reference-backed-skill.md` |
| add scripts for deterministic automation or validation | `references/layout-script-backed-workflow.md` |
| define a skill that is usually invoked with explicit arguments | `references/layout-argument-driven-skill.md` |
| ship reusable templates, schemas, or other static assets | `references/layout-asset-template-skill.md` |
## Workflow Mechanic References
| Open when you need to... | Read |
|--------------------------|------|
| break a task into fixed ordered steps | `references/workflow-prompt-chaining.md` |
| classify requests and route them to different downstream paths | `references/workflow-routing.md` |
| split independent work into parallel units or votes | `references/workflow-parallel.md` |
| discover work units dynamically and coordinate worker outputs | `references/workflow-orchestrator-workers.md` |
| run validate-fix-repeat checks during authoring or execution | `references/workflow-validation-loops.md` |
| validate a plan before executing a risky action | `references/workflow-plan-validate-execute.md` |
## Claude Code References
| Open when you need to... | Read |
|--------------------------|------|
| use Claude-specific frontmatter or invocation controls | `references/claude-frontmatter-invocation.md` |
| use Claude argument fields or substitution variables | `references/claude-argument-substitutions.md` |
| build a skill that runs in isolated `context: fork` | `references/claude-subagent-fork.md` |
| build a skill that uses Claude hooks for deterministic enforcement | `references/claude-hook-backed.md` |
| use Claude shell preprocessing for dynamic context injection | `references/claude-dynamic-context.md` |
## Example Profiles
| Open when you need to... | Read |
|--------------------------|------|
| see the expected depth for a documentation-heavy skill | `references/example-documentation-skill.md` |
| see the expected depth for a workflow-process skill | `references/example-workflow-process-skill.md` |
| see what a good routed skill looks like | `references/example-router-skill.md` |
| see what a good subagent-fork skill looks like | `references/example-subagent-fork-skill.md` |
| see what a good hook-backed skill looks like | `references/example-hook-backed-skill.md` |
## Step 1: Resolve target, path, and shape
1. Resolve the intended operation (`create`, `update`, `synthesize`, `iterate`) and inspect workspace prior art before choosing where files belong.
2. Choose the target skill root from observed conventions. If the canonical location is still unclear after inspection, ask one direct question before editing files.
3. Read `references/mode-selection.md` to choose the minimum required workflow paths.
4. Read `references/execution-shapes.md` to choose the primary execution shape.
5. Default to the simplest adequate shape. If selecting a more complex shape, record why simpler shapes were rejected.
6. Load only the exact artifact-layout, workflow-mechanic, and provider-specific leaf files required by that shape.
7. Before adding guidance, identify what existing rule, section, or file should be narrowed, replaced, or removed.
8. Record portability implications before using provider-specific mechanics.
## Step 2: Run synthesis when needed
Read `references/synthesis-path.md`.
1. Use this path for new skills, material changes, and research-first planning.
2. Collect and score relevant sources with provenance.
3. Read `references/source-discovery.md` when source material is thin, stale, or ambiguous.
4. Read `references/source-adaptation.md` when adapting an upstream prompt, workflow, rubric, benchmark, or docs.
5. Produce source-backed decisions and coverage/gap status, including the class and execution-shape choice.
6. Load example profiles only when they add concrete depth for the selected class or shape.
7. If the skill uses provider-specific mechanics, include current official provider docs and capture usage constraints.
8. Do not move to authoring until required coverage is understood or gaps are explicit.
## Step 3: Run iteration first when improving from outcomes/examples
Read `references/iteration-path.md` first when selected path includes `iteration` (for example operation `iterate`).
1. Capture and anonymize examples with provenance.
2. Read `references/iteration-evidence.md` when examples should persist beyond the current turn.
3. Review skill behavior against working and holdout slices.
4. Propose improvements from positive/negative/fix evidence.
5. Carry concrete behavior deltas into authoring.
Skip this step when selected path does not include `iteration`.
## Step 4: Author or update skill artifacts
Read `references/authoring-path.md`.
1. Write or update `SKILL.md` in imperative voice with trigger-rich description.
2. Keep `SKILL.md` as the runtime router, not an encyclopedia.
3. Run the pre-edit precision check in `references/authoring-path.md` before creating new sections or files.
4. Read `references/reference-architecture.md` before adding bulk instructions or new reference files.
5. Create or update `SPEC.md` using `references/spec-template.md` when creating a new skill or materially changing its contract.
6. Create focused reference files, scripts, and assets only when each one has a clear "open when..." reason and cannot be handled by tightening an existing file.
7. If you add a bundled reference file, add a direct routing entry for it in this `SKILL.md`.
8. Prefer checklists, tables, templates, and input/output examples over explanatory prose.
9. Follow only the specific artifact-layout, workflow-mechanic, Claude-specific, and output-contract references selected for this skill.
10. For advanced execution shapes, add the required routing, delegation, or safety contracts before considering the skill complete.
11. For authoring/generator skills, include transformed examples in references:
- happy-path
- secure/robust variant
- anti-pattern + corrected version
12. Read `references/skill-evals.md` when the request asks for evals, regression cases, benchmark cases, or model-graded quality checks for the skill being authored.
13. After any skill artifact changes, run the post-change precision pass in `references/authoring-path.md` before description optimization or validation.
## Step 5: Optimize description quality
Read `references/description-optimization.md`.
1. Validate should-trigger and should-not-trigger query sets.
2. Reduce false positives and false negatives with targeted description edits.
3. Keep trigger language generic across providers unless the skill is intentionally provider-specific.
## Step 6: Register and validate
Read `references/registration-validation.md`.
1. Apply repository registration steps for the active layout you verified in the workspace.
2. Run quick validation for structural checks.
3. Review validator warnings, precision-pass results, and coverage gaps with judgment before completion.
## Output format
Return:
1. `Summary`
2. `Changes Made`
3. `Validation Results`
4. `Open Gaps`Related skills
Skill creator
Anthropic's skill for writing new skills and improving old ones: interviews you, drafts SKILL.md, runs evals against a baseline and tunes the description.
Writing skills (Superpowers)
obra's test-first method for writing skills: watch an agent fail without the skill, write the minimum that fixes it, then pressure-test with subagents.
CLAUDE.md improver (Anthropic)
Anthropic's Claude Code skill that finds every CLAUDE.md in a repo, grades each one A to F, shows a report, then edits only the files you approve.
Guides and recipes that use Skill writer (Sentry)
- Skill description best practices: write descriptions that trigger
The description decides when a skill loads. Fix skills that fire too often or never trigger, with before and after examples and a prompt set to test them.
- Agent Skills authoring
Writing, testing and sharing SKILL.md packages that agents load on demand.