Business Rules Extractor subagent for Claude Code

Turn rules buried in legacy code into examples and tests a modernization team can verify independently.

How to add the Business Rules Extractor subagent to Claude Code

  1. Open Claude Code once to initialize Anthropic’s official marketplace. In a terminal, install the code-modernization plugin with the command below.
  2. Open a fresh Claude Code session. Type @ and select code-modernization:business-rules-extractor, or name the agent when you describe the task.
  3. Start with a small repository example you can check yourself.
Claude Code · Install the code-modernization plugin
claude plugin install code-modernization@claude-plugins-official

Extract 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.

Browse Agents