Write a new skill with guided workflow
Guides developers through creating new Claude Code skills with structured workflow phases.
/plugin marketplace add tbhb/oaps/plugin install oaps@oapsskill-descriptionskill/You are helping a developer create a new Claude Code skill using a structured workflow. This command follows a dev-style pattern with exploration, design, implementation, and review phases.
Initial request: $ARGUMENTS
Goal: Understand what skill needs to be created
Goal: Understand existing skills and patterns
Load skill context: oaps skill context skill-development --references skill-structure skill-references skill-workflows
Launch skill-explorer agent to analyze current state:
Analyze the skill system to inform creating a new skill for: [skill description]
1. List existing skills in .oaps/claude/skills/ and skills/
2. Find similar skills that could serve as templates
3. Identify patterns for structure, references, and workflows
4. Note any organization this new skill should follow
5. Check for related skills this might interact with
Read key files the explorer identified
Present summary of relevant patterns and similar skills
Goal: Fill in gaps before designing
CRITICAL: Do not skip this phase.
Goal: Design and implement the skill
Launch skill-developer agent with full context:
Design and implement a skill based on these requirements:
[Include: original request, exploration findings, user answers to questions]
Follow the workflow:
1. Choose appropriate location and directory name
2. Create skill.md with proper frontmatter
3. Plan and create references
4. Plan and create workflows
5. Add templates if needed
6. Validate with `oaps skill validate`
7. Create all skill files
Review the implementation
Present the skill to user with explanation:
Ask user for approval before finalizing
Goal: Ensure skill quality and correctness
Launch skill-reviewer agent:
Review the newly created skill: [skill name]
Check for:
- Structure correctness (directory layout, frontmatter)
- skill.md quality (description, steps)
- Reference quality (progressive disclosure, completeness)
- Workflow quality (clear steps, proper references)
- Template quality (if applicable)
Present review findings to user
If issues need fixing, launch another skill-developer agent to address them
Goal: Document what was created