/rpa-gen-rules:rpa-gen-rulesfrom rpa-gen-rules
Use when the user invokes /rpa-gen-rules or asks to create, refresh, audit, or synchronize project instructions such as root AGENTS.md, Cursor .cursor/rules, or Claude Code .claude/rules, especially when existing rule trees have drifted.
Ships in rpa-gen-rules. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create project instructions for the coding-agent hosts the repository actually supports.
AGENTS.md;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.
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.| 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 |
paths -> Cursor alwaysApply: true without a narrowing glob;paths -> Cursor globs with alwaysApply: false;globs with alwaysApply: false -> Claude paths;Never map a path-scoped rule to alwaysApply: true.
AGENTS.md + project hook)Root AGENTS.md carries common policy. The project hook reads .cursor/rules/*.mdc and attaches rules for supported Codex events and edit payloads.
hooks.json and hooks/attach_rules.py templates;.codex;.codex/rules.md; it is not model context and becomes a stale index;globs plus add, update, delete, rename, Edit, and Write payloads;/hooks once per clone and after either hook file changes.The hook attaches always-on rules at SessionStart and recognized scoped rules at PreToolUse. It is fail-open project code, not native Codex rule discovery or a security boundary. Keep critical constraints in root policy, permissions, code, tests, or CI. Codex execpolicy .rules are unrelated command policy.
Keep root AGENTS.md aligned with its compatibility entrypoints. Update deliberate Cursor and Claude Code mirrors together, with equivalent bodies and native metadata. The Codex hook reads the Cursor representation directly and needs no manual index. Label intentional host-specific differences.
Every generated workflow rule must carry this contract.
| Mistake | Correction |
|---|---|
Generate .codex/rules.md | Do not generate it; the hook reads Cursor rules directly |
Copy Cursor bodies into .codex | Keep one Cursor body |
| Call a vendor tree universally canonical | Describe its native role and explicit adapters |
Map Claude paths to alwaysApply: true | Use Cursor globs with alwaysApply: false |
| Put a security boundary only in scoped model context | Enforce it outside the scoped rule too |
Invent OpenCode, ZCode, .agents, or .coddy delivery | Preserve a tested project integration or research it separately |
| Copy historical PR state into standing rules | Extract and verify the current invariant |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
rpa-gen-rules@rpa-skills is listed by evilfreelancer/rpa-skills — review the source before installing
npx claudepluginhub evilfreelancer/rpa-skills --plugin rpa-gen-rules