Rule Cascade
Reference

AI coding agents

rcas agent install teaches an AI coding agent how this project handles business rules, and rcas mcp install gives it the tools to do it.

rcas agent install teaches an AI coding agent how this project handles business rules, and rcas mcp install gives it the tools to do it. This page is the reference: what is written for which tool, how the choice is made, and how a team adapts it. The tutorial is AI coding tools.

What gets written

Every install writes the portable part, which most tools read as it is:

FileWhat
AGENTS.mdA managed block (between rcas:begin and rcas:end): where rules live, how to work (propose, never edit), the engineering rules for rulesets, the commands, and the list of skills. The rest of the file is yours
.agents/skills/<skill>/SKILL.mdThe skills, in the open Agent Skills format

and, for each chosen tool, what that tool needs on top:

Each tool gets four things on top, each in the format that tool documents: instructions scoped to the rulesets, instructions scoped to the application code of the project's languages (use the rulesets instead of writing a check again), the commands /rcas-capture (find the rules in a path, a module or a feature and propose rulesets) and /rcas-review, and the four sub-agents limited to the tools their role needs. Where a tool has no such format, it is left out: the portable skills (rules-cascade-capture is the capture command as a skill) and AGENTS.md cover it.

Tool--forScoped instructionsCommandsSub-agents, and their toolsReads of the portable part
Claude Codeclaude.claude/rules/rules-cascade.md, rules-cascade-code.md (paths:); CLAUDE.md imports @AGENTS.md.claude/commands/rcas-*.md ($ARGUMENTS); .claude/skills/.claude/agents/rcas-*.md, tools: naming the rules-cascade MCP tools (mcp__rules-cascade__analyze ...)AGENTS.md only when no CLAUDE.md exists; skills only from .claude/skills
OpenAI Codex (CLI, IDE, app)codexnone (directory AGENTS.md only)the skills (custom prompts are deprecated).codex/agents/rcas-*.tomlAGENTS.md, .agents/skills
GitHub Copilot (VS Code, cloud agent, CLI)copilot.github/instructions/rules-cascade.instructions.md, rules-cascade-code.instructions.md (applyTo:).github/prompts/rcas-*.prompt.md (${input:...}, agent mode).github/agents/rcas-*.agent.md, tools: with rules-cascade/*, unless claude is chosen tooAGENTS.md, .agents/skills, .claude/agents
Cursorcursor.cursor/rules/rules-cascade.mdc, rules-cascade-code.mdc (globs:)the skills (commands are moving to skills).cursor/agents/rcas-*.md, readonly:, unless claude is chosen tooAGENTS.md, .agents/skills, .claude/agents
Gemini CLIgemininone (directory GEMINI.md only); GEMINI.md gets the instructions.gemini/commands/rcas-*.toml ({{args}}).gemini/agents/rcas-*.md, tools: with mcp_rules-cascade_*.agents/skills; AGENTS.md only when configured
Kiro (IDE and CLI)kiro.kiro/steering/rules-cascade.md, rules-cascade-code.md (inclusion: fileMatch).kiro/skills/.kiro/agents/rcas-*.md, tools: with @rules-cascadeAGENTS.md; skills only from .kiro/skills
Devin Desktop and Devin CLI (formerly Windsurf)devin (alias windsurf).devin/rules/rules-cascade.md, rules-cascade-code.md (trigger: glob).devin/workflows/rcas-*.mdnone (the tool names of its agents are not documented)AGENTS.md, .agents/skills
JetBrains Juniejunienone.junie/commands/rcas-*.md ($prompt).junie/agents/rcas-*.md, tools: groups and mcpServers: ["rules-cascade"]AGENTS.md, .agents/skills
Clinecline.clinerules/rules-cascade.md, rules-cascade-code.md (paths:).cline/skills/ (skills are its slash commands) unless claude is chosen toononeAGENTS.md; skills from .cline/skills or .claude/skills
OpenCodeopencodenone.opencode/commands/rcas-*.md ($ARGUMENTS).opencode/agents/rcas-*.md, permission: (edit and bash denied where a role changes nothing)AGENTS.md, .agents/skills
Factory Droidfactorynone.factory/commands/rcas-*.md ($ARGUMENTS).factory/droids/rcas-*.md, tools: read-only and mcpServers for the roles that change nothingAGENTS.md, .agents/skills
Amazon Q Developeramazonq.amazonq/rules/rules-cascade.md (always applies)none (saved prompts are per user)noneits own rules folder (Kiro supersedes it)
Tabninetabnine.tabnine/guidelines/rules-cascade.md.tabnine/agent/commands/rcas-*.toml ({{args}})none.agents/skills (CLI)
Kilo Codekilonone.kilo/commands/rcas-*.mdnoneAGENTS.md, .agents/skills
Augment Code (Auggie)augmentnone.augment/commands/rcas-*.md, unless claude is chosen (it reads .claude/commands).augment/agents/rcas-*.mdAGENTS.md, .agents/skills
Meta Muse Code, Amp, Goose, Warp, Zedmuse, amp, goose, warp, zednonethe skillsnoneAGENTS.md, .agents/skills

Zed reads only the first instructions file it finds at the root, in this order: .rules, .cursorrules, .windsurfrules, .clinerules, .github/copilot-instructions.md, AGENT.md, AGENTS.md. When one of the earlier files exists, add a line to it that points to AGENTS.md. Aider reads no instructions file by itself: run aider --read AGENTS.md, or add read: AGENTS.md to .aider.conf.yml.

The sub-agents

Four roles, written for the tools that support sub-agents or custom agents. Each tool's file limits the role to the tools it needs, in that tool's terms: the analyst and the reviewer read and call the rules-cascade MCP server; the author also runs commands but proposes rulesets instead of editing them; the tester may also edit tests.

RoleDoesChanges files
rcas-analystInventories the business rules hidden in the code, with file:line evidenceno
rcas-authorWrites or changes rulesets with golden tests, submits them as proposalsproposals only
rcas-reviewerReviews a change or a proposal against the authoring guideno
rcas-testerWrites golden tests and parity tests between a rule and the code it replacesproposals, and tests when asked

The skills

SkillWritten forUse it to
rules-cascadeevery projectFind decisions in code, write rulesets with golden tests, check, propose
rules-cascade-reviewevery projectReview a ruleset change or a proposal
rules-cascade-migrateevery projectMove checks out of the code step by step, with parity tests
rules-cascade-architectureevery projectExplain how Rule Cascade is designed (pipeline, bundles, engine forms, trust, inheritance, the design decisions) and how a project sets it up
rules-cascade-captureevery projectThe /rcas-capture command as a skill: find the rules in a path, module or feature and propose rulesets
rules-cascade-typescripttsEnforce rules in Node.js (Express, Fastify, NestJS, Next.js) and in browsers or React
rules-cascade-pythonpythonEnforce rules in FastAPI, Django, Flask, Celery and batch jobs
rules-cascade-javajavaEnforce rules on the JVM: Spring Boot, Quarkus, Micronaut, Kotlin, Scala
rules-cascade-gogoEnforce rules in Go services: net/http, chi, gin, echo, gRPC
rules-cascade-engineotherEnforce rules from any other language with rcas engine or rcas.wasm

How the tools and languages are chosen

First match wins
Tools--for claude,kiro (or all); agents.tools in rcas.yaml; the tools the project already shows signs of (CLAUDE.md or .claude/, .cursor/, .kiro/, .github/copilot-instructions.md, .devin/ or .windsurf/, GEMINI.md, .junie/ ...); none, which writes the portable part only
Languages--stack ts,java; languages in rcas.yaml; the languages found in the project directory and the directories directly below it (package.json, pyproject.toml, pom.xml, build.gradle, go.mod, *.csproj, Cargo.toml ...); none, which writes every language skill

rcas agent list shows every tool, whether the project uses it, and what an install would write. rcas doctor warns when a tool the project uses is missing its files.

To fix the choice for everyone who clones the project, commit it:

# rcas.yaml
languages: [ts, java]
agents:
  tools: [claude, copilot, kiro]

Adapting it to a team

You want toDo this
Add your own guidance for every toolWrite it in AGENTS.md outside the rcas:begin / rcas:end block
Change a skill or a sub-agent for this projectEdit the file and delete its rcas-managed line. rcas agent install then keeps your version, and only --force replaces it
Add a team skill (your domain, your framework)A new folder beside the others, .agents/skills/acme-payments/SKILL.md, with name: acme-payments and a description that says when to use it. rcas never touches folders it did not write
Get the newest instructions after upgrading rcasRun rcas agent install again: managed blocks and files that still carry rcas-managed are refreshed, everything else is left alone
Use another rules folderrules.dir and output.dir in rcas.yaml; the instructions name your paths
Keep agents from writing at allmcp.readOnly: true in rcas.yaml (or start the server with rcas mcp --read-only): it has no propose_ruleset tool

A skill is plain Markdown: anyone can read what the agent is told. Keep a team skill short, specific (the folders, the commands, the conventions of this code base), and test it by asking the agent to do the task.

Without rcas: the skills from rulescascade.com

After each release the skills, the sub-agents and the commands are also published at https://rulescascade.com/skills.git, so a tool can fetch them without rcas. They are what rcas agent install --for claude --stack all writes for the default layout (rules in rules/, bundles in build/rules/).

Your toolGet the skills
Claude Code/plugin marketplace add https://rulescascade.com/skills.git, then /plugin install rules-cascade@rules-cascade: the skills, the four sub-agents, /rules-cascade:rcas-capture and /rules-cascade:rcas-review, and the local MCP server
GitHub Copilot CLIcopilot plugin marketplace add https://rulescascade.com/skills.git, then copilot plugin install rules-cascade@rules-cascade
Codex, Cursor, Gemini CLI, Copilot in VS Code, OpenCode, Amp, Goose, and any tool that reads Agent Skillsnpx skills add https://rulescascade.com/skills.git
Any of the tools above, in that tool's own format (Kiro, Junie, Devin, Cline, Augment ...)npx -y @rules-cascade/cli agent install --for <tool>

Inside a project, rcas agent install is the better choice: it follows rcas.yaml (your rules folder, your languages) and also writes each tool's scoped instructions.

MCP servers

rcas mcp install <tool> registers the rules-cascade MCP server in each tool's own configuration, in the shape that tool expects; other servers and settings in the file are kept. By default the tool starts the server on your machine (npx -y @rules-cascade/cli mcp), where it sees the project and can propose rulesets. --url https://mcp.rulescascade.com/mcp registers the hosted server instead: it needs no installation and knows the specification, but it sees only the files the agent sends it and cannot propose. See the CLI reference for the files. Goose (goose configure) and the GitHub Copilot cloud agent (repository settings, Copilot, MCP servers) are configured by hand: --print shows the entry.

Sources

The conventions were checked against each tool's documentation in October 2026: Claude Code, Codex, GitHub Copilot (prompt files, custom agents), Cursor, Gemini CLI, Kiro, Devin, Junie, Cline, OpenCode, Factory, Amazon Q, Tabnine, Muse Code, Amp, Goose, Warp, Zed, Kilo Code, Augment, Agent Skills. Commands, scoped rules and sub-agents: Claude Code commands, sub-agents, Gemini CLI commands, subagents, Kiro agents, Devin workflows, Junie commands, subagents, OpenCode commands, agents, Factory commands, droids, Tabnine commands, Kilo commands, Augment commands, subagents.

On this page