Summary
Update the code-reviewer agent to enforce the function decomposition patterns and thresholds defined in issue #560.
Related Issues
Changes Required
Add the following to .claude/agents/code-reviewer.md:
1. Function Length Rules
- 50-line threshold: Functions exceeding 50 lines should be flagged for decomposition
- 100-line critical threshold: Functions over 100 lines are HIGH PRIORITY and must be refactored
- 70-99 lines: Medium priority - should be decomposed when touched
2. Decomposition Patterns to Enforce
- Extract Helper Functions - Break validation, processing, formatting, response into separate functions
- Extract Strategy Classes - For functions with many conditionals
- Extract Data Builders - For MCP tool definitions (consider YAML/JSON externalization)
3. Code Review Checks
When reviewing code, the agent should:
Acceptance Criteria
🤖 Generated with Claude Code
Summary
Update the code-reviewer agent to enforce the function decomposition patterns and thresholds defined in issue #560.
Related Issues
Changes Required
Add the following to
.claude/agents/code-reviewer.md:1. Function Length Rules
2. Decomposition Patterns to Enforce
3. Code Review Checks
When reviewing code, the agent should:
Acceptance Criteria
🤖 Generated with Claude Code