Agent skill
anthropic-skill-creator
Design, review, and improve Claude/Codex skills based on Anthropic's "The Complete Guide to Building Skills for Claude". Use when creating a new skill, rewriting SKILL.md frontmatter and workflows, fixing under-triggering or over-triggering, designing scripts/references/assets, building test cases, or preparing a skill for upload/distribution.
Install this agent skill to your Project
npx add-skill https://github.com/s-hiraoku/synapse-a2a/tree/main/.claude/skills/anthropic-skill-creator
SKILL.md
Create Skills
Build skills that trigger correctly, execute reliably, and stay concise.
Core Principles
- Use progressive disclosure:
- Frontmatter (
name,description) for trigger selection. SKILL.mdbody for core workflow.references/for deep details loaded only when needed.
- Frontmatter (
- Keep skills composable: avoid assumptions that this is the only active skill.
- Prefer deterministic scripts for fragile validation logic.
Workflow
- Define 2-3 concrete use cases.
- Draft trigger-strong frontmatter.
- Design reusable resources (
scripts/,references/,assets/). - Write actionable instructions and error handling.
- Run triggering/functional/performance tests.
- Iterate based on under-trigger/over-trigger signals.
1) Define Use Cases
Capture for each use case:
- User phrasing (what they actually say)
- Intended result
- Multi-step workflow and required tools (built-in and/or MCP)
- Failure points that need guardrails
If use cases are vague, ask targeted follow-up questions before authoring.
2) Frontmatter Design (Most Important)
Write only what is needed to trigger correctly.
Required fields:
name: kebab-case, matches folder namedescription: include BOTH- What the skill does
- When to use it (trigger phrases/context/file types)
Description formula:
[What it does] + [When to use it] + [Key capabilities]
Good pattern:
- "Processes PDF legal documents for contract review. Use when users ask for clause extraction, risk flags, or redline summaries from .pdf contracts."
Bad pattern:
- "Helps with projects."
Precision controls:
- Add negative triggers to reduce over-triggering.
- Mention relevant file types when applicable.
- Keep wording aligned with real user phrases from use cases.
3) Resource Plan
scripts/: deterministic checks/transforms used repeatedlyreferences/: large docs, domain logic, variant-specific guidanceassets/: templates and artifacts used in outputs
Rules:
- Keep
SKILL.mdcompact; link toreferences/. - Avoid extra docs in skill folder (
README.md, changelog, etc.).
4) Instruction Writing
Write imperative, testable steps.
Include:
- Clear step order and dependencies
- Validation checkpoints
- Common errors with concrete fixes
- Example user inputs and expected outputs
For critical checks, prefer scripts over prose-only checks.
5) Test Protocol
Run these three test groups.
A. Triggering Tests
- Should trigger on obvious requests
- Should trigger on paraphrased requests
- Should NOT trigger on unrelated requests
Target benchmark:
- Trigger on ~90% of relevant prompts in a 10-20 prompt suite
B. Functional Tests
Validate:
- Correct outputs
- Tool/API call success
- Error handling paths
- Edge cases
C. Performance Comparison
Compare with vs without skill:
- Number of clarification turns
- Failed tool/API calls
- Token usage
- End-to-end completion quality
6) Iteration Rules
Under-triggering signals:
- Skill does not load when expected
- Users keep manually invoking it
Fix:
- Add clearer trigger phrases and technical terms to
description.
Over-triggering signals:
- Skill loads for unrelated requests
Fix:
- Add negative triggers and tighten scope language.
Execution issues:
- Inconsistent outputs, retries, user corrections
Fix:
- Tighten instructions, add explicit validations, and script critical checks.
Troubleshooting Quick Guide
- Upload fails with missing
SKILL.md: file must be exactlySKILL.md. - Invalid frontmatter: verify YAML delimiters
---and valid syntax. - Invalid skill name: use lowercase kebab-case.
- Skill not followed: move critical instructions to top and make them concrete.
- Slow behavior: move long content to
references/; reduce enabled skills.
Scaffolding
Scaffold a new skill directory:
# Use default path (.agents/skills)
bash scripts/new_skill.sh <skill-name>
# Place in .claude/skills directory
bash scripts/new_skill.sh <skill-name> --path .claude/skills
References
references/checklist.mdreferences/prompt-templates.mdreferences/patterns.mdreferences/source.md: source PDF and extracted principlesreferences/trigger-examples.md: trigger/non-trigger examples for description tuningreferences/failure-remedies.md: failure patterns and minimum effective fixes
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
task-planner
Guide for decomposing large tasks into a structured plan with dependency chains, managing priorities, and distributing work across agents. Outputs plan cards or delegation messages as the team contract; TodoList for personal micro-steps.
react-performance
Comprehensive React and Next.js performance optimization guide. Covers waterfall elimination, bundle size reduction, server-side optimization, re-render prevention, and rendering performance. Use when building, reviewing, or optimizing React/Next.js applications for speed.
release
Update version in pyproject.toml, plugin.json, and add changelog entry. This skill should be used when the user wants to bump the version number and update CHANGELOG.md. Triggered by /release or /version commands.
api-design
Guide API design for REST, GraphQL, gRPC, and CLI interfaces. Use this skill when designing new APIs, reviewing existing API contracts, or establishing API conventions for a project. Produces consistent, well-documented API specifications.
pr-guardian
Continuously monitor a GitHub PR for merge conflicts, CI failures, and CodeRabbit review comments, then automatically fix any issues found. Polls every 5 minutes and loops until every check is green. Use this skill whenever a PR has just been created or code has been pushed to a PR branch — it should be the default follow-up action after any PR creation or push. Also trigger on: "watch this PR", "guard this PR", "monitor CI", "keep fixing until green", "PRを監視して", "CIが通るまで 直して", /pr-guardian. When a PostToolUse hook reports that a push or PR creation just happened, proactively invoke this skill to start monitoring without waiting for the user to ask.
post-impl2
Workflow: Test workflow with non-existent agent target. . Triggered by /post-impl2 command.
Didn't find tool you were looking for?