05-rule-generate

05-rule-generate is a skill for Claude Code from ai-driven-dev/framework. It costs 55 tokens per session (297 once invoked), scanned A, original, MIT.

A workflow for creating a coding rule that guides editor and AI-agent behavior. It writes one shared rule and adapts it for the project's supported tools.

In plain words
What is it for?
Use it to define coding standards, conventions, or other project rules for editors and AI assistants.
Why use it?
It keeps conventions consistent across tools and checks that each generated rule file follows the expected format.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the aidd-context plugin — 13 skills, 1 hook shipped together

Good fit Use it to define coding standards, conventions, or other project rules for editors and AI assistants.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-driven-dev/framework/05-rule-generate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ai-driven-dev/framework --skill 05-rule-generate
Clone the repo
git clone --depth 1 https://github.com/ai-driven-dev/framework

Made for: Claude Code.

Or install aidd-context, the plugin that ships this one along with the rest of its 13 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 05-rule-generate

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-driven-dev/framework/05-rule-generate/github.svg)](https://agentmods.dev/skills/ai-driven-dev/framework/05-rule-generate)
Your own site
<a href="https://agentmods.dev/skills/ai-driven-dev/framework/05-rule-generate"><img src="https://agentmods.dev/badge/skills/ai-driven-dev/framework/05-rule-generate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 05-rule-generate

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-driven-dev/framework/05-rule-generate"><img src="https://agentmods.dev/badge/skills/ai-driven-dev/framework/05-rule-generate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 297 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.00297
Opus 5.5 $0.00022 $0.00119
Sonnet 5.5 $0.00011 $0.00059
Haiku 4.5 $0.00006 $0.00030

Measured 1mo ago against content hash 2fada9661dc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

05-rule-generate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/aidd-context/skills/05-rule-generate/SKILL.md · 30 lines

What it actually says

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

# Action Role Input
01 capture-rule Capture the topic, pick category and slug user request
02 write-rule Write the rule file per supported tool the topic
03 validate Check each rule file the 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.
Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 30 lines · 55 tokens per session scan A 2fada9661dc7

Subscribe to this mod's changes

05-rule-generate is a skill published in the GitHub repository ai-driven-dev/framework (518 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 297 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

image-generation

Use this skill when the user requests to generate, create, imagine, or visualize images including characters, scenes, products, or any visual content. Supports structured prompts and reference images for guided generation.

bytedance/deer-flow · 42 tokens

podcast-generation

Use this skill when the user requests to generate, create, or produce podcasts from text content. Converts written content into a two-host conversational podcast audio format with natural dialogue.

bytedance/deer-flow · 38 tokens

skill-reviewer

Reviews DeerFlow skill packages for readiness, triggers, safety boundaries, resources, and evidence. Invoke when users ask to audit, grade, or production-check an existing skill.

bytedance/deer-flow · 38 tokens

knowledge-org

A guide to organising large bodies of knowledge so an AI system can navigate relationships, summaries, and layers instead of searching only flat text chunks. It covers tree indexes, knowledge graphs, file-like structures, incremental updates, and long-term memory layouts.

bojieli/ai-agent-book · 96 tokens

eval-dataset-design

A guide to creating reliable test sets for AI agents. Each evaluation task includes the request, the simulated user's behaviour, a reset starting state, and a success check that can be independently verified.

bojieli/ai-agent-book · 138 tokens

git-checkpoint

Use git as a safety net - create a checkpoint commit before risky or large changes and roll back cleanly if a change makes things worse. Use before multi-file refactors.

agentscope-ai/agentscope-java · 39 tokens