/skill-audit
Audit, design, categorize, distribute, and measure agent skills using lessons from Anthropic's Lessons from building Claude Code: How we use skills. Use when reviewing an existing skill, deciding whether a workflow deserves a skill, planning a skill library, turning team
$ npx -y skills add majiayu000/spellbook --skill skill-audit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/skill-audit
Context preview
The summary Claude sees to decide when to auto-load this skill.
Audit, design, categorize, distribute, and measure agent skills using lessons from Anthropic's Lessons from building Claude Code: How we use skills. Use when reviewing an existing skill, deciding whether a workflow deserves a skill, planning a skill library, turning team
SKILL.md
skill-audit.SKILL.mdname: skill-audit
description: "Audit, design, categorize, distribute, and measure agent skills using lessons from Anthropic's Lessons from building Claude Code: How we use skills. Use when reviewing an existing skill, deciding whether a workflow deserves a skill, planning a skill library, turning team knowledge into skills, choosing skill categories, writing trigger descriptions, designing progressive disclosure, or planning skill marketplace and usage measurement."
Skill Audit
Use this skill to audit existing skills, turn workflow knowledge into useful agent skills, and review skill libraries at the strategy level. It complements `skill-creator`: use this skill to decide what a skill should be, how it should fit a library, and what needs improvement; use `skill-creator` when the user wants the concrete SKILL.md implementation and eval loop.
This workflow is based on Anthropic's June 3, 2026 blog post, "Lessons from building Claude Code: How we use skills": https://claude.com/blog/lessons-from-building-claude-code-how-we-use-skills
Core Principle
A good skill is not "some markdown about a topic." It is a compact extension point that gives the agent non-obvious domain knowledge, reusable files, deterministic helpers, setup rules, verification habits, and guardrails at the moment they matter.
Workflow
1. Decide Whether This Should Be A Skill
Create or improve a skill only when at least one of these is true:
- The workflow repeats often enough that users should not re-explain it.
- The agent regularly makes the same domain-specific mistake.
- The work needs local scripts, templates, examples, assets, hooks, or setup.
- The output must follow a stable structure or verification path.
- The knowledge is team-specific, product-specific, infrastructure-specific, or
otherwise not inferable from general model knowledge.
Do not make a skill when the content only restates obvious coding behavior, generic best practices, or one-off instructions.
2. Classify The Skill
Read `references/skill-taxonomy.md` and classify the candidate into exactly one primary category. If it appears to span several categories, tighten the scope or split it.
Report:
- Primary category
- Secondary category, if truly needed
- Why this category is the cleanest fit
- What would make the skill too broad
3. Draft A Skill Brief
Use `assets/skill-brief-template.md` for the output. Fill it with:
- Trigger description written for the model, not as a human-facing summary
- High-signal knowledge the model would not otherwise know
- Gotchas and failure modes
- Autonomy boundaries: what the skill may do directly, and what must be
escalated before acting
- Evidence-backed pushback rules: when the agent should challenge the proposed
path and what evidence it must cite
- Feedback loop: where repeated corrections, false-success signals, or manual
recovery steps should be promoted
- Progressive disclosure map: SKILL.md vs references vs scripts vs assets
- Setup requirements or config questions
- Verification strategy
- Reliable Skill Contract coverage for high-value workflow skills
- Distribution path
- Measurement plan
4. Design Progressive Disclosure
Keep `SKILL.md` focused on activation, decisions, and the main workflow. Move details into support files:
- `references/` for tables, API conventions, taxonomy, playbooks, and long docs
- `scripts/` for deterministic actions or repetitive checks
- `assets/` for templates, report formats, starter files, or examples
- `agents/` for specialized subagent prompts when the repo supports them
- `evals/` for realistic prompts and objective assertions
Tell the agent exactly when to read each support file.
5. Add Operational Design
Read `references/writing-and-operations.md` when deciding:
- Whether a setup step or config file is needed
- Whether the skill should remember past runs
- Whether scripts or hooks would improve reliability
- Whether the skill belongs in a repo, a shared plugin, or a marketplace
- What usage signals indicate undertriggering, overtriggering, or decay
6. Hand Off To Implementation
When the user wants the skill built, pass the brief into `skill-creator` and ask it to implement the files, generate realistic test prompts, and run validation.
If editing an existing skill, include the exact file paths and the smallest content changes needed. Do not rewrite unrelated skill behavior.
7. Check The Reliable Skill Contract
For agent-workflow, delivery, PR, automation, or high-impact skills, use `skill-lifeguard` or apply the same five-element score:
- explicit negative examples
- verification checkpoints
- machine-checkable done conditions
- replay or smoke hooks with a log-to-patch loop
- drift signal detection
Report each element as `present`, `partial`, `missing`, or `deferred`. A missing element is not always a blocker, but it must be visible in the brief and patch plan.
Output Format
For advisory requests, answer with:
1. Decision: create, improve, split, merge, or do not create 2. Category: one primary taxonomy category 3. Skill brief: filled from the template 4. Implementation notes: files to create/edit and validation commands 5. Reliable Skill Contract score, when applicable 6. Risks: overbreadth, obviousness, missing setup, missing verification, or weak trigger description
For repository work, actually create or update the files, then run the repo's skill validation command.
Gotchas
- Do not make a knowledge dump. Convert article or team knowledge into decisions,
checklists, templates, and verification.
- Do not put all details in SKILL.md. Long reference material belongs in support
files.
- Do not write a description as a marketing summary. It must name concrete user
phrases and contexts that should trigger the skill.
- Do not railroad the agent with brittle instructions. Provide defaults,
decision criteria, and escape hatches.
- Do not ship a skill without at least a lightw
Read more
name: skill-audit description: "Audit, design, categorize, distribute, and measure agent skills using lessons from Anthropic's Lessons from building Claude Code: How we use skills. Use when reviewing an existing skill, deciding whether a workflow deserves a skill, planning a skill library, turning team knowledge into skills, choosing skill categories, writing trigger descriptions, designing progressive disclosure, or planning skill marketplace and usage measurement."
Skill Audit
Use this skill to audit existing skills, turn workflow knowledge into useful agent skills, and review skill libraries at the strategy level. It complements `skill-creator`: use this skill to decide what a skill should be, how it should fit a library, and what needs improvement; use `skill-creator` when the user wants the concrete SKILL.md implementation and eval loop.
This workflow is based on Anthropic's June 3, 2026 blog post, "Lessons from building Claude Code: How we use skills": https://claude.com/blog/lessons-from-building-claude-code-how-we-use-skills
Core Principle
A good skill is not "some markdown about a topic." It is a compact extension point that gives the agent non-obvious domain knowledge, reusable files, deterministic helpers, setup rules, verification habits, and guardrails at the moment they matter.
Workflow
1. Decide Whether This Should Be A Skill
Create or improve a skill only when at least one of these is true:
- The workflow repeats often enough that users should not re-explain it.
- The agent regularly makes the same domain-specific mistake.
- The work needs local scripts, templates, examples, assets, hooks, or setup.
- The output must follow a stable structure or verification path.
- The knowledge is team-specific, product-specific, infrastructure-specific, or
otherwise not inferable from general model knowledge.
Do not make a skill when the content only restates obvious coding behavior, generic best practices, or one-off instructions.
2. Classify The Skill
Read `references/skill-taxonomy.md` and classify the candidate into exactly one primary category. If it appears to span several categories, tighten the scope or split it.
Report:
- Primary category
- Secondary category, if truly needed
- Why this category is the cleanest fit
- What would make the skill too broad
3. Draft A Skill Brief
Use `assets/skill-brief-template.md` for the output. Fill it with:
- Trigger description written for the model, not as a human-facing summary
- High-signal knowledge the model would not otherwise know
- Gotchas and failure modes
- Autonomy boundaries: what the skill may do directly, and what must be
escalated before acting
- Evidence-backed pushback rules: when the agent should challenge the proposed
path and what evidence it must cite
- Feedback loop: where repeated corrections, false-success signals, or manual
recovery steps should be promoted
- Progressive disclosure map: SKILL.md vs references vs scripts vs assets
- Setup requirements or config questions
- Verification strategy
- Reliable Skill Contract coverage for high-value workflow skills
- Distribution path
- Measurement plan
4. Design Progressive Disclosure
Keep `SKILL.md` focused on activation, decisions, and the main workflow. Move details into support files:
- `references/` for tables, API conventions, taxonomy, playbooks, and long docs
- `scripts/` for deterministic actions or repetitive checks
- `assets/` for templates, report formats, starter files, or examples
- `agents/` for specialized subagent prompts when the repo supports them
- `evals/` for realistic prompts and objective assertions
Tell the agent exactly when to read each support file.
5. Add Operational Design
Read `references/writing-and-operations.md` when deciding:
- Whether a setup step or config file is needed
- Whether the skill should remember past runs
- Whether scripts or hooks would improve reliability
- Whether the skill belongs in a repo, a shared plugin, or a marketplace
- What usage signals indicate undertriggering, overtriggering, or decay
6. Hand Off To Implementation
When the user wants the skill built, pass the brief into `skill-creator` and ask it to implement the files, generate realistic test prompts, and run validation.
If editing an existing skill, include the exact file paths and the smallest content changes needed. Do not rewrite unrelated skill behavior.
7. Check The Reliable Skill Contract
For agent-workflow, delivery, PR, automation, or high-impact skills, use `skill-lifeguard` or apply the same five-element score:
- explicit negative examples
- verification checkpoints
- machine-checkable done conditions
- replay or smoke hooks with a log-to-patch loop
- drift signal detection
Report each element as `present`, `partial`, `missing`, or `deferred`. A missing element is not always a blocker, but it must be visible in the brief and patch plan.
Output Format
For advisory requests, answer with:
1. Decision: create, improve, split, merge, or do not create 2. Category: one primary taxonomy category 3. Skill brief: filled from the template 4. Implementation notes: files to create/edit and validation commands 5. Reliable Skill Contract score, when applicable 6. Risks: overbreadth, obviousness, missing setup, missing verification, or weak trigger description
For repository work, actually create or update the files, then run the repo's skill validation command.
Gotchas
- Do not make a knowledge dump. Convert article or team knowledge into decisions,
checklists, templates, and verification.
- Do not put all details in SKILL.md. Long reference material belongs in support
files.
- Do not write a description as a marketing summary. It must name concrete user
phrases and contexts that should trigger the skill.
- Do not railroad the agent with brittle instructions. Provide defaults,
decision criteria, and escape hatches.
- Do not ship a skill without at least a lightw
Cross-runtime skills for Claude Code, Codex, and multi-agent workflows.
Repo: majiayu000/spellbook
Other skills on spellbook.
- /agentsmd-optimize
Audit AND optimize a CLAUDE.md / AGENTS.md instruction file — score it against the five high-leverage patterns, flag anti-patterns, then apply approved fixes in place. Use when the user says 优化 CLAUDE.md / 优化 AGENTS.md / optimize my agent doc / 帮我改 claudemd, or after an audit
Open skill - /agentsmd-scaffold
Generate or update repository-specific AGENTS.md instruction files from real repo evidence. Use when asked to create, design, scaffold, split, or improve root or scoped AGENTS.md files for Codex/Claude/agent workflows, especially when a repo needs directory-specific rules,
Open skill - /api-design
REST/GraphQL/gRPC API design best practices. Use when designing APIs, defining contracts, handling versioning. Covers OpenAPI 3.2, GraphQL Federation, gRPC streaming.
Open skill - /app-ui-design
Mobile app UI design expert for iOS and Android. Use when designing app interfaces, creating design systems, ensuring accessibility, or following platform guidelines. Covers Material Design 3, Human Interface Guidelines, color theory, typography, and 2025 trends.
Open skill - /app-user-story-qa
End-to-end app feature inventory and user-story testing workflow with a canonical tracker. Use when the user asks to audit every feature, derive expected behavior from code, test user journeys, or explicitly fix and retest documented UX or logistical defects.
Open skill - /architecture-foundation
Design architecture foundations before implementation. Use when asked to design or refactor architecture, choose Rust/Go crate, package, module, runtime, workflow, or service boundaries, compare mature project architecture, prevent stacked one-off PRs, audit migration debt in
Open skill

