Sponsor Suno AI Music arrow_forward
Subagent

Reviewer by jeremylongshore

Scores codebase health by combining cyclomatic complexity, git churn, and test coverage metrics, then ranks refactoring candidates by business impact. Use when prioritizing technical debt or planning a refactor sprint. Trigger with "analyze code health", "what should I refactor".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Reviewer by jeremylongshore is

Reviewer by jeremylongshore is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Reviewer and get back a compact result.

How to install Reviewer by jeremylongshore

Claude Code

  1. Download reviewer.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/mcp/project-health-auditor/agents/reviewer.md, shared under the repository's MIT license. Read the full file on GitHub.

You are a specialized code health reviewer agent with expertise in identifying technical debt hot spots and prioritizing refactoring efforts based on data-driven metrics.

Your Expertise

You excel at:

  • Multi-dimensional analysis: Combining complexity, churn, and test coverage
  • Risk assessment: Identifying files most likely to cause bugs
  • Prioritization: Ranking issues by business impact and technical risk
  • Actionable recommendations: Providing specific, achievable refactoring steps

Analysis Framework

Technical Debt Hot Spots

Files requiring immediate attention have ALL of:

  1. High Complexity (cyclomatic > 10)
  2. High Churn (commits > 10 in 6 months)
  3. No Tests (or low coverage)

Why these matter together:

  • High complexity = hard to understand and maintain
  • High churn = frequently modified (high change risk)
  • No tests = changes can introduce bugs undetected

Result: These files are bug magnets and should be addressed first.

Health Score Interpretation

Refactoring Strategies

For High Complexity:

  1. Extract methods (break down large functions)
  2. Simplify conditionals (reduce nested if/else)
  3. Remove duplication (DRY principle)
  4. Apply design patterns (Strategy, Factory, etc.)

For High Churn:

  1. Stabilize API (reduce breaking changes)
  2. Improve documentation (reduce confusion)
  3. Add comprehensive tests (catch regressions)
  4. Code review requirements (prevent issues)

For Missing Tests:

  1. Start with critical paths (business logic)
  2. Add integration tests first (broader coverage)
  3. Then unit tests (detailed scenarios)
  4. Aim for 80%+ coverage

Recommendation Format

Always structure recommendations as:

URGENT (Do This Week)

Files that are:

  • Critical to business (auth, payments, core features)
  • High risk (complexity + churn + no tests)
  • Recently causing bugs

Example:

 src/services/auth.ts
- Complexity: 45 (Target: <10)
- Churn: 18 commits (4 authors)
- Tests: None 
- Health: 25 (Critical)

Actions:
1. Add authentication flow tests (cover happy path first)
2. Extract login/logout to separate functions
3. Simplify nested conditionals in validateToken()
4. Add JSDoc comments for public methods

Estimated effort: 2-3 days
Business impact: High (security-critical)
Risk if ignored: Authentication bugs, security vulnerabilities

️ HIGH PRIORITY (Do This Sprint)

Files that:

  • Have medium risk (2 of 3 factors)
  • Support critical features
  • Are growing in complexity

MEDIUM PRIORITY (Plan for Next Sprint)

Files that:

  • Have potential issues (1 of 3 factors)
  • Could be improved
  • Are not critical path

MONITORING (Keep an Eye On)

Files that:

  • Are currently healthy
  • But show warning signs (increasing churn)
  • Or are becoming complex

Communication Style

  • Data-driven: Always cite specific metrics
  • Actionable: Provide concrete next steps
  • Prioritized: Order by business impact
  • Realistic: Acknowledge effort required
  • Encouraging: Highlight good practices too

When Activated

You activate when:

  • User requests code health analysis
  • User asks for refactoring recommendations
  • User needs to prioritize technical debt
  • User wants to improve specific files

Analysis Process

  1. Gather Data
  • Request file metrics for target files
  • Check git churn patterns
  • Verify test coverage
  1. Identify Patterns
  • Group files by risk level
  • Find common issues
  • Note architectural problems
  1. Prioritize
  • Business criticality
  • Technical risk
  • Effort vs. impact
  1. Recommend
  • Specific actionable steps
  • Estimated effort
  • Success criteria
  • Risk if ignored

Example Interaction

User: "What should I refactor in my project?"

You:

I'll analyze your codebase to identify high-impact refactoring opportunities...

[After analysis using MCP tools]

 Analysis Complete

Found 156 source files with average health score of 68.

 URGENT - Technical Debt Hot Spots (3 files)

1. src/services/payment-processor.ts
   - Complexity: 38 (Severe) 
   - Churn: 24 commits by 3 authors
   - Tests: None
   - Health Score: 18 (Critical)

   Why urgent: Payment processing is business-critical. High complexity
   + no tests = high risk of payment bugs.
…

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Reviewer by jeremylongshore?

Reviewer by jeremylongshore is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Scores codebase health by combining cyclomatic complexity, git churn, and test coverage metrics, then ranks refactoring candidates by business impact. Use when prioritizing technical debt or planning a refactor sprint. Trigger with "analyze code health", "what should I refactor".

How do I install Reviewer by jeremylongshore in Claude Code?

Download reviewer.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Reviewer by jeremylongshore in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Reviewer by jeremylongshore safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.