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:
| File | What |
|---|---|
AGENTS.md | A 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.md | The 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 | --for | Scoped instructions | Commands | Sub-agents, and their tools | Reads of the portable part |
|---|---|---|---|---|---|
| Claude Code | claude | .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) | codex | none (directory AGENTS.md only) | the skills (custom prompts are deprecated) | .codex/agents/rcas-*.toml | AGENTS.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 too | AGENTS.md, .agents/skills, .claude/agents |
| Cursor | cursor | .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 too | AGENTS.md, .agents/skills, .claude/agents |
| Gemini CLI | gemini | none (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-cascade | AGENTS.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-*.md | none (the tool names of its agents are not documented) | AGENTS.md, .agents/skills |
| JetBrains Junie | junie | none | .junie/commands/rcas-*.md ($prompt) | .junie/agents/rcas-*.md, tools: groups and mcpServers: ["rules-cascade"] | AGENTS.md, .agents/skills |
| Cline | cline | .clinerules/rules-cascade.md, rules-cascade-code.md (paths:) | .cline/skills/ (skills are its slash commands) unless claude is chosen too | none | AGENTS.md; skills from .cline/skills or .claude/skills |
| OpenCode | opencode | none | .opencode/commands/rcas-*.md ($ARGUMENTS) | .opencode/agents/rcas-*.md, permission: (edit and bash denied where a role changes nothing) | AGENTS.md, .agents/skills |
| Factory Droid | factory | none | .factory/commands/rcas-*.md ($ARGUMENTS) | .factory/droids/rcas-*.md, tools: read-only and mcpServers for the roles that change nothing | AGENTS.md, .agents/skills |
| Amazon Q Developer | amazonq | .amazonq/rules/rules-cascade.md (always applies) | none (saved prompts are per user) | none | its own rules folder (Kiro supersedes it) |
| Tabnine | tabnine | .tabnine/guidelines/rules-cascade.md | .tabnine/agent/commands/rcas-*.toml ({{args}}) | none | .agents/skills (CLI) |
| Kilo Code | kilo | none | .kilo/commands/rcas-*.md | none | AGENTS.md, .agents/skills |
| Augment Code (Auggie) | augment | none | .augment/commands/rcas-*.md, unless claude is chosen (it reads .claude/commands) | .augment/agents/rcas-*.md | AGENTS.md, .agents/skills |
| Meta Muse Code, Amp, Goose, Warp, Zed | muse, amp, goose, warp, zed | none | the skills | none | AGENTS.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.
| Role | Does | Changes files |
|---|---|---|
rcas-analyst | Inventories the business rules hidden in the code, with file:line evidence | no |
rcas-author | Writes or changes rulesets with golden tests, submits them as proposals | proposals only |
rcas-reviewer | Reviews a change or a proposal against the authoring guide | no |
rcas-tester | Writes golden tests and parity tests between a rule and the code it replaces | proposals, and tests when asked |
The skills
| Skill | Written for | Use it to |
|---|---|---|
rules-cascade | every project | Find decisions in code, write rulesets with golden tests, check, propose |
rules-cascade-review | every project | Review a ruleset change or a proposal |
rules-cascade-migrate | every project | Move checks out of the code step by step, with parity tests |
rules-cascade-architecture | every project | Explain how Rule Cascade is designed (pipeline, bundles, engine forms, trust, inheritance, the design decisions) and how a project sets it up |
rules-cascade-capture | every project | The /rcas-capture command as a skill: find the rules in a path, module or feature and propose rulesets |
rules-cascade-typescript | ts | Enforce rules in Node.js (Express, Fastify, NestJS, Next.js) and in browsers or React |
rules-cascade-python | python | Enforce rules in FastAPI, Django, Flask, Celery and batch jobs |
rules-cascade-java | java | Enforce rules on the JVM: Spring Boot, Quarkus, Micronaut, Kotlin, Scala |
rules-cascade-go | go | Enforce rules in Go services: net/http, chi, gin, echo, gRPC |
rules-cascade-engine | other | Enforce 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 to | Do this |
|---|---|
| Add your own guidance for every tool | Write it in AGENTS.md outside the rcas:begin / rcas:end block |
| Change a skill or a sub-agent for this project | Edit 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 rcas | Run rcas agent install again: managed blocks and files that still carry rcas-managed are refreshed, everything else is left alone |
| Use another rules folder | rules.dir and output.dir in rcas.yaml; the instructions name your paths |
| Keep agents from writing at all | mcp.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 tool | Get 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 CLI | copilot 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 Skills | npx 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.