rpa-gen-rules

rpa-gen-rules is a skill for Claude Code from coddy-project/coddy-agent. It costs 61 tokens per session (1,087 once invoked), scanned A, original, MIT.

A project-rules generator that creates or refreshes instruction files for coding agents such as Cursor, Claude Code, and Codex. The rules describe architecture, implementation order, and test-first development.

In plain words
What is it for?
Use it to generate or update agent rule files, describe layered implementation order, connect rules to supported agents, and require tests before new behaviour and a full suite before completion.
Why use it?
It turns a project's existing code, documentation, and specifications into reusable guidance, so agents follow the repository's conventions across sessions and tools.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Use it to generate or update agent rule files, describe layered implementation order, connect rules to supported agents, and require tests before new behaviour and a full suite before completion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coddy-project/coddy-agent/rpa-gen-rules
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 coddy-project/coddy-agent --skill rpa-gen-rules
Clone the repo
git clone --depth 1 https://github.com/coddy-project/coddy-agent

Made for: Claude Code.

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 rpa-gen-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/coddy-project/coddy-agent/rpa-gen-rules/github.svg)](https://agentmods.dev/skills/coddy-project/coddy-agent/rpa-gen-rules)
Your own site
<a href="https://agentmods.dev/skills/coddy-project/coddy-agent/rpa-gen-rules"><img src="https://agentmods.dev/badge/skills/coddy-project/coddy-agent/rpa-gen-rules/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 rpa-gen-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/coddy-project/coddy-agent/rpa-gen-rules"><img src="https://agentmods.dev/badge/skills/coddy-project/coddy-agent/rpa-gen-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,087 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.
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.00061 $0.01087
Opus 5.5 $0.00024 $0.00435
Sonnet 5.5 $0.00012 $0.00217
Haiku 4.5 $0.00006 $0.00109

Measured 11d ago against content hash 9f53f7bed74d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rpa-gen-rules 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/codex-examples/.codex/hooks/attach_rules.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

internal/skills/bundled/rpa-gen-rules/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate project rules

Goal

Create project instructions for the coding-agent hosts the repository actually supports.

  • Keep repository-wide policy in root AGENTS.md;
  • enforce layered implementation from lower dependencies upward;
  • require RED-GREEN-REFACTOR for behavior changes;
  • use native Cursor and Claude Code formats accurately;
  • let the Codex project hook attach Cursor rules without duplicating their bodies;
  • never promise another host equivalent scoped delivery without a test.

Infer the contract from code, tests, docs, builds, and CI. Ask only when a real product decision is missing. Generated instruction files default to English unless the user or repository defines another language.

Read progressively

  • references/bdd-and-agents.md - BDD wording, host behavior, synchronization, and limitations;
  • references/cursor-examples/.cursor/rules/ and references/claude-examples/.claude/ - native templates;
  • references/codex-examples/.codex/hooks.json and hooks/attach_rules.py - Codex adapter templates.

Workflow

  1. Inventory root instructions, rule trees, architecture docs, tests, build files, and CI;
  2. choose only hosts the repository uses or the user requests;
  3. write architecture boundaries, real verification commands, security invariants, and documentation duties in repository terms;
  4. create scoped native rules without widening their activation;
  5. synchronize deliberate mirrors and install the Codex hook when Codex is in scope;
  6. run repository checks, probe adapters, verify symlinks, and report limitations honestly.

Quick reference

Surface Generated output Role
Common root AGENTS.md repository-wide baseline
Claude compatibility CLAUDE.md symlink or short import same top-level policy
Cursor .cursor/rules/*.mdc native Cursor rules and Codex hook input
Claude Code .claude/rules/*.md native Claude Code rules
Codex root AGENTS.md, .codex/hooks.json, .codex/hooks/attach_rules.py common policy plus project adapter
Other hosts existing, documented integration no invented adapter

Read the full file on GitHub · 90 lines

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. 11d ago Changed · -108 lines · -123 tokens per session 9f53f7bed74d
  2. 22d ago Changed · +1 lines c4765a501374
  3. 1mo ago First seen · 197 lines · 184 tokens per session scan A d3f908e1c6dd

Subscribe to this mod's changes

rpa-gen-rules is a skill published in the GitHub repository coddy-project/coddy-agent (175 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,087 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-16.