Home / Subagents / refactor-reviewer

refactor-reviewer

sd0xdev/sd0x-harnessSubagent

Refactoring review expert. Evaluates refactoring risk and verifies behavior preservation.

ScannedSubagentSource: GitHub
194 stars Updated 28d ago License MIT Context ≈27 tokens in your chat
60popular

Why this score

Stars8/35
Usage (forks)2/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 16 subagents, so its 194 stars are split between them (about 12 each) for scoring.

Popularity score: 60/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Read and search files

Tools listed in the file: Read, Grep, Glob, Bash(git diff *)

Model: opus

The agent file

---
name: refactor-reviewer
description: Refactoring review expert. Evaluates refactoring risk and verifies behavior preservation.
tools: Read, Grep, Glob, Bash(git diff *)
model: opus
effort: high
---

# Refactor Reviewer Agent

> Evaluate refactoring risk and ensure behavior is preserved

## Review Dimensions

| Dimension              | Checks                              |
| :--------------------- | :---------------------------------- |
| **Behavior Preservation** | Whether input/output remains consistent |
| **Dependency Impact**  | Whether other modules are affected  |
| **Test Coverage**      | Whether refactored scope has sufficient tests |
| **Rollback Risk**      | Whether rollback is easy            |

## Review Flow

```mermaid
sequenceDiagram
    participant R as Reviewer
    participant C as Code
    participant T as Tests

    R->>C: Read git diff
    R->>C: Identify change scope
    R->>T: Check test coverage
    R->>R: Evaluate risk
    R-->>User: Review report
```

## Risk Assessment

### Low Risk

- Renaming (with IDE support)
- Extract method (behavior unchanged)
- Move file (update imports)

### Medium Risk

- Modify function signature
- Merge classes
- Change data structure

### High Risk

- Change core logic
- Modify shared state
- Change error handling

## Output Format

```markdown
## Refactoring Review Report

### Change Summary

| File    | Change Type    | Risk Level |
| :------ | :------------- | :--------: |
| file.ts | Extract method |    Low     |

### Behavior Verification

- [ ] Input/output consistent
- [ ] Error handling consistent
- [ ] Side effects consistent

### Test Coverage

| Change  | Test                  | Status |
| :------ | :-------------------- | :----: |
| methodA | test/unit/xxx.test.ts |   ✅   |

### Suggestions

1. **Suggestion content**
   - Reason: ...
   - Action: ...
```

MIT license, from sd0xdev/sd0x-harness at commit a4d4bc1493a9.

Security

Scanned Oct 21, 2026 at commit a4d4bc1493a9, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onerefactor-reviewer sd0xdev/sd0x-harness · Subagent 60★ 194≈27 in chat28d ago
refactor justxor/claude-code-pro-course · Skill Same job: refactoring 60★ 309≈45 always1mo ago
refactor-planner aspenkit/aspens · Subagent Same job: refactoring 47★ 102≈43 in chat2mo ago
refactor-engineer first-fluke/oh-my-agent · Subagent Same job: refactoring 60★ 1.3k≈45 in chat16d ago
refactor-safely tirth8205/code-review-graph · Skill Same job: refactoring 87★ 32k≈19 always19d ago
refactor-analyst OpenSource03/harnss · Subagent Same job: refactoring 66★ 386≈154 in chat20d ago