Agent skill

05 Rule Generate

by ai-driven-dev in ai-driven-dev/framework

Generate a coding rule that governs editor and agent behavior across the host AI tools.

MITAuto-check passedDevelopment

Install 05 Rule Generate

skills CLI
$ npx skills add ai-driven-dev/framework --skill 05-rule-generate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ai-driven-dev/framework 05-rule-generate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ai-driven-dev/framework.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/aidd-context/skills/05-rule-generate .claude/skills/05-rule-generate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
05-rule-generate
GitHub stars
510
Token cost
~328 tokens
SKILL.md length
110 words
Files
7 (incl. references, assets)
Skills in repo
52
Repo updated
First seen
Licence
MIT

At a glance

Generate a coding rule that governs editor and agent behavior across the host AI tools.

  • The user wants to write
  • SKILL.md covers Actions, References and Assets
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Refactor a rule

What it does

05 Rule Generate is an agent skill from ai-driven-dev/framework. Generate a coding rule that governs editor and agent behavior across the host AI tools. Use when the user wants to write, add, or refactor a rule, convention, or coding standard. Not for other artifacts like skills, agents, or hooks.

Its SKILL.md is about 330 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files and assets (for example `actions/01-capture-rule.md`, `actions/02-write-rule.md` and `actions/03-validate.md`).

It sits in Development, covering Code quality. The repository describes itself as: Marketplace Framework AI-Driven Dev : Context Engineering, Plugins, Agents, Skills, Hooks, Templates, SDLC. The licence is MIT.

When your agent uses it

  • The user wants to write
  • Refactor a rule
  • Coding standard

Example prompts

  • “/05-rule-generate”

What it can do on your machine

Read from SKILL.md and the folder at commit 6e30640. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

05 Rule Generate loads about 328 tokens when it runs, and up to ~1.8k if it reads all its reference files. Until then it costs about 63 tokens; SKILL.md has 110 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~328
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ai-driven-dev/framework at commit 6e30640, republished under its MIT licence (© ai-driven-dev). 110 words, ~328 tokens.

Download SKILL.mdSave it as .claude/skills/05-rule-generate/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
05-rule-generate
description
Generate a coding rule that governs editor and agent behavior across the host AI tools. Use when the user wants to write, add, or refactor a rule, convention, or coding standard. Not for other artifacts like skills, agents, or hooks.
argument-hint
topic | auto

Rule Generate

Write one canonical rule from intent and render it per confirmed host tool that supports rules, or once as a plugin source.

Actions

#ActionRoleInput
01capture-ruleCapture the topic, pick category and sluguser request
02write-ruleWrite the rule file per supported toolthe topic
03validateCheck each rule filethe files

Run the actions in order, 01 → 03, and run each action's ## Test before the next. Before running an action, read its file in actions/, not only the table or assets.

References

  • references/rule-authoring.md: the contract (taxonomy, naming, frontmatter, content).
  • references/tool-paths.md: per-tool rules path, frontmatter, unsupported tools, the gate.

Assets

  • assets/rule-template.md: rule file scaffold.

© ai-driven-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references, assets) in plugins/aidd-context/skills/05-rule-generate of ai-driven-dev/framework.

  • SKILL.md
  • actions/01-capture-rule.md
  • actions/02-write-rule.md
  • actions/03-validate.md
  • assets/rule-template.md
  • references/rule-authoring.md
  • references/tool-paths.md

Open the folder on GitHubat commit 6e30640

Compare with similar skills

05 Rule Generate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

05 Rule Generate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
05 Rule Generate this skillai-driven-dev/framework510—~328Automated safety check: PassMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence
Systematic Code Refactoringluongnv89/claude-howto42k—~3kAutomated safety check: PassMIT
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.2k—~2.2kAutomated safety check: PassMIT
Constraint-Driven Developmentaddyosmani/agent-skills102k2 repos~5.2kAutomated safety check: PassMIT
Skill Doli Code ReviewDolibarr/dolibarr7.7k1 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Systematic Code Refactoring

    luongnv89/claude-howto

    Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

    42k GitHub stars~3k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.2k GitHub stars~2.2k tokensUpdated 27 days ago
    DevelopmentAuto-check passed
  • Constraint-Driven Development

    addyosmani/agent-skills

    Records a project's quality bar in CONSTRAINTS.md and watches diffs for signs an agent quietly weakened it, such as suppressions, skipped tests or lowered thresholds.

    102k GitHub starsUsed in 2 repos~5.2k tokens
    DevelopmentAuto-check passed
  • Skill Doli Code Review

    Dolibarr/dolibarr

    Reviews Dolibarr PHP code for compliance with coding standards and security best practices, and fixes identified issues.

    7.7k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Dignified Python Standards

    docling-project/docling

    Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.

    68k GitHub stars~1.5k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from ai-driven-dev/framework

All 52 skills in this repo
  • 00 Async Dev

    ai-driven-dev/framework

    Drive the async-dev pipeline from one entry point, whether setup, run, or review.

    510 GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • 01 Plan

    ai-driven-dev/framework

    Turn a request, ticket, or file into a phased implementation plan.

    510 GitHub stars~517 tokensUpdated today
    Auto-check passed
  • 01 Sdlc

    ai-driven-dev/framework

    Autonomously orchestrates a request from framing to a draft pull request, isolating implementation, independent review, and final outcome challenge.

    510 GitHub stars~583 tokensUpdated today
    Auto-check passed
  • 02 Backlog

    ai-driven-dev/framework

    Orchestrates a product backlog end to end. An agent skill from ai-driven-dev/framework.

    510 GitHub stars~613 tokensUpdated today
    Auto-check passed
  • 00 Onboard

    ai-driven-dev/framework

    Guide a project's journey through AIDD, from first setup to shipping a feature.

    510 GitHub stars~242 tokensUpdated today
    Auto-check passed
  • 01 Acceptance QA

    ai-driven-dev/framework

    Validate a reviewed candidate's observable behavior against its acceptance criteria and record short named videos as reviewer evidence.

    510 GitHub stars~434 tokensUpdated today
    Auto-check passed

Categories

Questions about 05 Rule Generate

What does 05 Rule Generate do?

Generate a coding rule that governs editor and agent behavior across the host AI tools. 05 Rule Generate is an agent skill from ai-driven-dev/framework. Generate a coding rule that governs editor and agent behavior across the host AI tools.

When should I use 05 Rule Generate?

05 Rule Generate fits situations like: the user wants to write; refactor a rule; coding standard.

How do I install 05 Rule Generate in Claude Code?

Run `npx skills add ai-driven-dev/framework --skill 05-rule-generate -a claude-code`. Or copy the skill folder (plugins/aidd-context/skills/05-rule-generate in ai-driven-dev/framework) into .claude/skills/05-rule-generate in your project. Claude Code loads it when a task matches its description.

How do I install 05 Rule Generate in Codex?

Run `npx skills add ai-driven-dev/framework --skill 05-rule-generate -a codex`. Or copy the skill folder (plugins/aidd-context/skills/05-rule-generate in ai-driven-dev/framework) into .agents/skills/05-rule-generate in your project. Codex loads it when a task matches its description.

Can I use 05 Rule Generate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ai-driven-dev/framework --skill 05-rule-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/05-rule-generate, .gemini/skills/05-rule-generate, .github/skills/05-rule-generate and .opencode/skills/05-rule-generate in your project.

What does 05 Rule Generate need to run?

SKILL.md names no scripts, command-line tools or credentials: 05 Rule Generate is instructions for the agent only.

Does 05 Rule Generate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is 05 Rule Generate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does 05 Rule Generate use?

05 Rule Generate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does 05 Rule Generate use?

About 328 tokens (SKILL.md is roughly 1.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to 05 Rule Generate?

Skills that share tags, products or a category with 05 Rule Generate: WooCommerce Code Review (woocommerce/woocommerce, 11k stars), Systematic Code Refactoring (luongnv89/claude-howto, 42k stars), Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.2k stars) and Constraint-Driven Development (addyosmani/agent-skills, 102k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains 05 Rule Generate?

ai-driven-dev (a GitHub organization) maintains it in ai-driven-dev/framework, which has 510 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on October 7, 2026.

Source: ai-driven-dev/framework on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.