05-rule-generate — Claude Code skill: coding rules for AI hosts
05-rule-generate takes a coding rule from draft to the rule files of installed AI hosts: create, edit, publish, delete.
MIT ★ 571 updated 2026-10-29
/plugin marketplace add ai-driven-dev/framework
/plugin install aidd-context@aidd-frameworkWhat 05-rule-generate does
Two actions do the work. capture-rule frames the request, compares it against what the project already holds, and prepares a candidate; write-rule writes the approved version and verifies it. Nothing lands on disk until you approve the candidate shown last. A pick, a merge, an edit or a rename does not count as approval — the skill displays the revision and waits again.
The argument is topic | auto, so either you name the topic or the skill picks one. Hosts it does not support come back as a report with alternatives, and a single AGENTS file tells it no host is installed. An installed reference it cannot read halts the run and gets named.
Existing sources and publications change only with explicit permission that names them. Keep or cancel leaves project files as they were. Skills, subagents and hooks fall outside its scope.
What it helps with
- Add a naming convention to a project
- Revise an existing style rule and roll it out to each host
- Drop an outdated rule without touching neighbouring files
- Find out which AI hosts are actually installed
- Check that the stored rule matches the approved candidate
Example prompts for the agent
- Add a rule that sorts imports alphabetically, topic
imports. - Check which hosts are installed and write the rule for each, argument
auto. - Delete the logging rule, but show me the candidate first.
How to install 05-rule-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 05-rule-generate -a claude-code3Manually: put the files in place
~/.claude/skills/05-rule-generate/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/05-rule-generate/
1Skills CLI (Vercel)
npx skills add ai-driven-dev/framework --skill 05-rule-generate -a codex2Manually: put the files in place
.agents/skills/05-rule-generate/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ai-driven-dev/framework --skill 05-rule-generate -a cursor2Manually: put the files in place
.cursor/skills/05-rule-generate/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ai-driven-dev/framework plugins/aidd-context/skills/05-rule-generate2Manually: put the files in place
.github/skills/05-rule-generate/SKILL.md1Skills CLI (Vercel)
npx skills add ai-driven-dev/framework --skill 05-rule-generate -a gemini-cli2Platform CLI
gemini skills install https://github.com/ai-driven-dev/framework --path plugins/aidd-context/skills/05-rule-generateManually: put the files in place
.devin/skills/05-rule-generate/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ai-driven-dev/framework --skill 05-rule-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 05-rule-generate
How do I install 05-rule-generate in Claude Code?
Through the marketplace: run /plugin marketplace add ai-driven-dev/framework, then /plugin install aidd-context@aidd-framework. The other route is npx skills add ai-driven-dev/framework --skill 05-rule-generate -a claude-code.
What does 05-rule-generate do?
It creates, updates, publishes or deletes a coding rule across the AI hosts installed in the project. It prepares a candidate for you to review, then writes the approved version and verifies the result.
Does it write changes without asking?
No. It writes only once you approve the candidate shown last, and an edit or rename in your reply counts as a revision rather than approval. Existing sources and publications need explicit permission that names them.
Source text
SKILL.md · MIT
--- name: 05-rule-generate description: Create, update, publish or delete a coding rule across host AI tools. Use when adding, changing or removing a rule, convention or coding standard. Not for skills, agents or hooks. argument-hint: topic | auto --- # Rule Generate ```mermaid flowchart TD request[Rule request] --> capture-rule capture-rule -->|create/update| decision[Assessed candidate] decision -->|revise/clarify| capture-rule decision -->|keep/cancel| stop decision -->|approved| write-rule capture-rule -->|publish/delete confirmed| write-rule write-rule -->|revised| capture-rule write-rule -->|refused| stop write-rule -->|verified| result ``` ## Actions Follow the flow. Read only the next action and its references. | Action | Does | | --- | --- | | capture-rule | frame, compare, plan, decide | | write-rule | write the approved result, verify | ## Transversal rules - Report unsupported hosts with alternatives; a lone AGENTS file identifies no installed host. - Stop and name any installed reference that cannot be read. - Change existing sources or publications only with explicit permission naming them. - Write only after the user approves the candidate shown last. A choice, merge, edit or rename is not an approval: show the revision and wait. - Keep or cancel leaves project bytes unchanged.
© AI-Driven Dev · MIT · ai-driven-dev/framework