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
- Claude Code
- Codex
- ★ 48k on GitHub
- Updated 2026-11-18
- Apache-2.0
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.mdCodex
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.mdStart a new Claude Code & Codex session afterwards so it picks up the change.
Similar slash commands
Add Language Rulesaffaan-mWorkflow command scaffold for add-language-rules in ECC.Agent Sortaffaan-mLegacy slash-entry shim for the agent-sort skill. Prefer the skill directly.Asideaffaan-mAnswer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering.Auto Updateaffaan-mPull the latest ECC repo changes and reinstall the current managed targets.Build Fixaffaan-mDetect the project build system and incrementally fix build/type errors with minimal safe changes.Checkpointaffaan-mCreate, verify, or list workflow checkpoints after running verification checks.
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.