How to add the Business Rules Extractor subagent to Claude Code
- Open Claude Code once to initialize Anthropic’s official marketplace. In a terminal, install the code-modernization plugin with the command below.
- Open a fresh Claude Code session. Type @ and select code-modernization:business-rules-extractor, or name the agent when you describe the task.
- Start with a small repository example you can check yourself.
claude plugin install code-modernization@claude-plugins-officialExtract order discount rules from the legacy implementation
Provide the calculation entry point and three example orders. Ask for Given/When/Then descriptions that cover minimum thresholds, conflicting discounts, and rounding. Compare those with the old system’s output.
Check the output before using it
Record exceptions separately from default rules. Ask it to cite the branch that implements each rule so domain owners can confirm whether it remains intentional.