04-skill-generate — Claude Code skill: what it does, how to install
04-skill-generate generates router-based skills across AI tools through structured scoping and validation. Use it to scaffold new skills, turn manual workflows into skills, or refactor existing ones.
MIT ★ 571 updated 2026-10-29
/plugin marketplace add ai-driven-dev/framework
/plugin install aidd-context@aidd-frameworkWhat 04-skill-generate does
This skill structures the generation of router-based skills for host AI tools in a project. It strictly targets skills: creating rules, agents, commands, or hooks is explicitly outside its scope.
Execution splits into two distinct paths. By default, it runs the create flow through four stages: scoping the target, planning actions, writing the router files, and validating the output. Passing the modify argument skips the initial framing and starts directly at the planning stage.
The workflow forbids silent edits: every file path and target name requires user confirmation before writing. If a cited reference file cannot be accessed, the skill stops immediately and reports the missing path.
What it helps with
- scaffold a router-based skill structure from scratch
- turn an existing workflow into a reusable skill
- plan and apply modifications to an existing skill
- validate generated skill files and fix detected issues
Example prompts for the agent
- Scaffold a router-based skill for PR reviews: 04-skill-generate create
- Convert our release checklist into a project skill
- Refactor our existing test generator skill: 04-skill-generate modify
How to install 04-skill-generate
1Plugin marketplace
/plugin marketplace add ai-driven-dev/framework/plugin install aidd-context@aidd-frameworkThis installs the whole aidd-context plugin with all its skills
2Skills CLI (Vercel)
npx skills add ai-driven-dev/framework --skill 04-skill-generate -a claude-code3Manually: put the files in place
~/.claude/skills/04-skill-generate/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/04-skill-generate/
1Skills CLI (Vercel)
npx skills add ai-driven-dev/framework --skill 04-skill-generate -a codex2Manually: put the files in place
.agents/skills/04-skill-generate/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ai-driven-dev/framework --skill 04-skill-generate -a cursor2Manually: put the files in place
.cursor/skills/04-skill-generate/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ai-driven-dev/framework plugins/aidd-context/skills/04-skill-generate2Manually: put the files in place
.github/skills/04-skill-generate/SKILL.md1Skills CLI (Vercel)
npx skills add ai-driven-dev/framework --skill 04-skill-generate -a gemini-cli2Platform CLI
gemini skills install https://github.com/ai-driven-dev/framework --path plugins/aidd-context/skills/04-skill-generateManually: put the files in place
.devin/skills/04-skill-generate/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ai-driven-dev/framework --skill 04-skill-generate -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about 04-skill-generate
How to install 04-skill-generate in Claude Code?
Install via CLI using npx skills add ai-driven-dev/framework --skill 04-skill-generate -a claude-code. Alternatively, register the marketplace source with /plugin marketplace add ai-driven-dev/framework and run /plugin install aidd-context@aidd-framework.
What does 04-skill-generate do?
It guides the creation or modification of router-based skills through scoping, action planning, file generation, and validation phases.
Can 04-skill-generate build agent rules or hooks?
No, it is built exclusively for skills. Generating rules, subagents, commands, or hooks is restricted.
Source text
SKILL.md · MIT
--- name: 04-skill-generate description: Generate a router-based skill across the host AI tools a project uses. Use when the user wants to create, scaffold, or refactor a skill, or turn a workflow into one. Not for other artifacts like rules, agents, commands, hooks. argument-hint: create | modify --- # Skill Generate ```mermaid flowchart LR new([create]) --> scope --> plan --> write --> validate edit([modify]) --> plan ``` ## Actions Run the flow above. Read only the next action file. | Action | Does | | -------- | -------------------------- | | scope | frame the skill and target | | plan | break it into actions | | write | write the router and files | | validate | review the files and fix | ## Transversal rules - Default to `create`; follow `modify` when asked. - If a cited reference cannot be read, stop and report the missing file. - Confirm every target and name with the user. - Never write silently.
© AI-Driven Dev · MIT · ai-driven-dev/framework