Comprehensive suite of tools for maintaining high code quality through automated reviews, testing, and best practice enforcement. Essential for teams focused on code excellence.
Features
- Automated code review and suggestions
- Test generation and coverage analysis
- Code refactoring assistance
- Best practice enforcement
Use Cases
- Performing comprehensive code reviews
- Improving test coverage across projects
- Refactoring legacy code safely
- Enforcing team coding standards
TL;DR
This collection bundles three Claude Code resources for a code review workflow: the code-reviewer-agent sub-agent and the generate-tests and explain slash commands.
code-reviewer-agent reviews code and flags issues
generate-tests creates tests for your code
explain walks through how existing code works
Install the items in the recommended order to review code, add test coverage, and understand unfamiliar code from inside Claude Code.
Collection Overview
Collection Type: Code Quality & Review
Focus Area: Code review, test generation, and code explanation
Skill Level: Intermediate
What's Included
Collection Contents
The three resources bundled in this collection:
- code-reviewer-agent (Agent): a Claude Code sub-agent that reviews code and surfaces bugs, risks, and best-practice issues.
- generate-tests (Command): a slash command that generates tests for selected code.
- explain (Command): a slash command that explains how existing code works.
Quick Start
Install code-reviewer-agent first, then generate-tests, then explain. Each item is independently useful but they work well together for a review-and-test workflow.
Prerequisites
- Existing codebase to review
- Understanding of testing frameworks
- Git repository setup
Recommended Order
code-reviewer-agent
generate-tests
explain
Troubleshooting
Code reviewer agent rejects tests generated by generate-tests
Install code-reviewer-agent first to establish quality standards. Then install generate-tests to create tests matching those standards. Configure test generation to follow reviewer's style guide.
Generate-tests command missing required testing framework
Install testing framework before collection: npm install -D jest @types/jest or npm install -D vitest. Verify test runner in package.json scripts. Reinstall generate-tests after framework setup.
Explain command output conflicts with reviewer agent's suggestions
Use explain command for understanding existing code, code-reviewer-agent for improvement suggestions. Install both per installationOrder. They serve complementary purposes, not conflicting ones.
Collection items cannot find codebase root directory
Ensure Git repository initialized in project root: git init. All collection items detect project root via .git directory. Open Claude Code in repository root, not subdirectory.
Test generation fails due to TypeScript configuration issues
Verify tsconfig.json includes test files in compilation. Add test directory to include array. Install @types packages for testing framework. Restart Claude Code after TypeScript config changes.