Skip to content
Development
Agent

refactor-reviewer

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

From plugin
sd0x-dev-flow
19516 skills16 agents5 hooks

Claude Code

> /plugin marketplace add sd0xdev/sd0x-harness
> /plugin install sd0x-dev-flow@sd0xdev-marketplace

Agent definition

refactor-reviewer.md
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

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

## 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: ...
Read more
@sd0xdev
Ships withsd0x-dev-flow

Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Claude has discretion inside a closed, test-pinned anchor set.

195102 skills16 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
195
Star history of sd0xdev/sd0x-dev-flow on GitHub, a chart by star-history.com

Other agents on sd0x-dev-flow.

architecture-designer

architecture-designer

Agent

Architecture design expert. Synthesizes code analysis, tech-spec context, and architecture advice into structured architecture…

brief-writer

brief-writer

Agent

PM/CTO executive summary expert. Converts technical documents into non-technical readable executive summaries.

codex-architect

codex-architect

Agent

Codex architecture consulting expert (third brain). Uses Codex CLI to obtain architecture advice and integrates dual perspectives.

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react5d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex5d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman6d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about refactor-reviewer.

Which coding agents can use refactor-reviewer?
refactor-reviewer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.