Download

slash command · Developer tools

Modernize Extract Rules

by anthropics ✓ verified publisher

Mine the business rules out of the code into testable Given/When/Then rule cards with file:line citations

Calyban is a free desktop app. It checks Modernize Extract Rules for red flags before installing, lets you choose the agent and folder, and undoes it in one click.

Install Modernize Extract Rules manually

Prefer the terminal? This does the same thing as Calyban's install.

Claude Code

mkdir -p ~/.claude/commands
curl -fsSL https://raw.githubusercontent.com/anthropics/claude-plugins-official/e6143c9807a001832badb63e89d58ffe25d542ec/plugins/code-modernization/commands/modernize-extract-rules.md -o ~/.claude/commands/modernize-extract-rules.md

Codex

mkdir -p ~/.codex/prompts
curl -fsSL https://raw.githubusercontent.com/anthropics/claude-plugins-official/e6143c9807a001832badb63e89d58ffe25d542ec/plugins/code-modernization/commands/modernize-extract-rules.md -o ~/.codex/prompts/modernize-extract-rules.md

Start a new Claude Code & Codex session afterwards so it picks up the change.

Similar slash commands

All slash commands →

Guides

Listed in the public Calyban catalog. Modernize Extract Rules is made by anthropics, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.