Goal: Create well-structured Agent Skills following best practices for discoverability, conciseness, and progressive disclosure.
IMPORTANT: Skills configuration should be concise and high-level. Only include context Claude does not already know.
Context
- $0 =
- $1 = or
- $2 = (conditionally required)
Instructions
If Action to be performed is create
If
skill-nameorinstructionsare not provided, then you should exit and ask the user to provide a skill name and instructions.
- Create a new skill in the
.claude/skills/directory with the name of theskill-name - Configure the skill with the
instructionsprovided by the user. - The
SKILL.mdfile should be created using the template from.claude/skills/claude-skills/templates/template.md - Add resources(reference files, scripts, etc.) alongside the SKILL.md file only if necessary. Use folder to organize resources.
- Save the
SKILL.mdfile to the.claude/skills/[skill-name]/SKILL.mdfile.
If Action to be performed is update
If
skill-nameorinstructionsare not provided, then you should exit and ask the user to provide a skill name and instructions.
- Update the existing skill in the
.claude/skills/directory with the name of theskill-name - Configure the skill with the
instructionsprovided by the user. - The
SKILL.mdfile should be updated using the template from.claude/skills/claude-skills/templates/template.md
If Action to be performed is delete
If
skill-nameis not provided, then you should exit and ask the user to provide a skill name.
- Delete the existing skill in the
.claude/skills/directory with the name of theskill-name - Delete the
SKILL.mdfile from the.claude/skills/[skill-name]/SKILL.mdfile.
If Action to be performed is list
- List all existing skills in the
.claude/skills/directory.
Note: Supporting files should be store within the skill folder. E.g.
.claude/skills/[skill-folder-name]/[supporting file name or folder]Note: The folder name and the skill name should be the same.
Workflow
- Analyze the arguments provided by the user.
- Implement the conditional instructions based on the arguments provided by the user.
- Read references:
skills-docs.mdandbest-practices.mdin.claude/skills/claude-skills/references/ - Read the template from
.claude/skills/claude-skills/templates/template.md - Implement the task based on the instructions above.
- Validate the
SKILL.mdfile against the acceptance criteria and the template. - Report completion with skill details and location.
Rules
- Only add context Claude doesn't already know
- Keep references one level deep from SKILL.md
- Provide one default approach, avoid offering multiple options
Updatetask should only focus on updating skills and should not touch any other files or folders.- Match freedom level to task fragility (high freedom for flexible tasks, low for critical operations)
Acceptance Criteria
- Skill saved to
.claude/skills/[skill-name]/SKILL.md - Name valid (max 64 chars, lowercase letters/numbers/hyphens only)
- Description valid (max 1024 chars, third person, no "I" or "you")
- Description includes what skill does AND when to use it
- SKILL.md body under 500 lines
- Consistent terminology throughout
- No duplicate or conflicting skills exist
- No time-sensitive information included
- Name defined using gerund form (e.g.,
processing-pdfs,analyzing-data) - Skill's structure is consistent with the template provided.