Skip to main content
skill CX Codex

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add ai-driven-dev/framework
/plugin install aidd-context@aidd-framework
Open on GitHub

What 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-framework

This 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-code

3Manually: put the files in place

~/.claude/skills/04-skill-generate/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/04-skill-generate/

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

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set80

The whole set →
01-hello 01-hello is a Claude Code skill that runs the greet action to confirm the aidd-ui plugin is loaded. It checks plugin availability. CX Codex +1 ★ 571repo stars 7-auth 7-auth governs how assistant code reads and saves auth credentials: lazy GitHub token lookup, tight file permissions, and delayed error handling. CX Codex +1 ★ 571repo stars 0-error-handling The 0-error-handling rule gives TypeScript failures one path: a typed exception moves outward and is handled at the command boundary. CX Codex +1 ★ 571repo stars 00-onboard 00-onboard walks a project through AIDD: reads the repo, picks the next step, shows it on screen, then acts on your reply. CX Codex +1 ★ 571repo stars 03-context-generate The 03-context-generate skill routes requests to create skills, rules, agents, commands, or hooks to the matching generator. If you leave out the artifact type, it asks which one you mean. CX Codex +1 ★ 571repo stars 04-spec 04-spec writes spec.md, the contract for a single feature, from a request, a PRD or review notes. Or rewrites a spec that already exists. CX Codex +1 ★ 571repo stars resolve-conflict resolve-conflict resolves deterministic Git conflicts during merge, rebase, or cherry-pick. Stops right after staging modified files. CX Codex +1 ★ 571repo stars 0-deps-wiring The 0-deps-wiring rule sets where application dependencies are composed and how the graph is reused. It fits TypeScript projects with command handlers and use cases. CX Codex +1 ★ 571repo stars

Project sponsors

Companies that keep this analytics open