/sc-extras:sc-review-and-refactorfrom sc-extras
Routes review and refactoring work to a named technique: safe refactoring, characterization tests, test quality, deep review passes, verification, root-cause analysis, dead code, duplication, and PR description checks.
Ships in sc-extras. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill picks one technique for a review or refactoring task and sends you to its reference file.
A general bug review of a diff goes to the built-in /code-review. This skill covers the work that
/code-review does not: safe refactoring, test quality, focused passes, verification, and root causes.
Skill directory: ${CLAUDE_SKILL_DIR}. Paths below are relative to it.
| Situation | Route |
|---|---|
| General review of a diff, PR, or branch | Built-in /code-review. Pass the level first, then the target: /code-review high <branch> |
| Clean up code just changed | Built-in /simplify |
| Security review of the branch | Built-in /security-review |
| Refactor without changing behavior | references/refactor-safely.md |
| Refactor code that has no tests | references/characterization-tests.md |
| Review test quality, especially tests an agent wrote | references/mutation-test-review.md |
| Deep review, one concern per pass | references/focused-passes.md |
| Check whether a finding, a review, or a "done" claim is real | references/refute-findings.md |
| Change over ~300 lines or ~10 files | references/chunk-large-changes.md |
| Did the change do everything the task asked | references/requirements-trace.md |
| Duplicated code, or "does this bug exist elsewhere" | references/divergent-clones.md |
| What can be deleted | references/dead-code.md |
| Review names | references/naming-review.md |
| Why does this fail | references/hypothesis-rca.md |
| Check that a PR body, README, or doc is true | references/verify-claims.md |
| Fetch and resolve human PR review threads | references/pr-review-threads.md |
Combinations that come up often:
refute-findings.md before you act on them.get-pr-comments.sh prints a PR's reviews, comments, and review threads as JSON. It needs gh and jq.
format-pr-tree.rb reads that JSON on stdin and prints it as a text tree.
[PR] is empty (the current branch's PR), a number, a PR URL, or owner/repo 123.
--all must come first; it adds resolved threads.
Show the threads as a tree:
"${CLAUDE_SKILL_DIR}/scripts/get-pr-comments.sh" [--all] [PR] | ruby "${CLAUDE_SKILL_DIR}/scripts/format-pr-tree.rb"
Get the threads as JSON:
"${CLAUDE_SKILL_DIR}/scripts/get-pr-comments.sh" [--all] [PR]
references/pr-review-threads.md describes how to use both commands.
references/characterization-tests.md (opens in a new tab)references/chunk-large-changes.md (opens in a new tab)references/dead-code.md (opens in a new tab)references/divergent-clones.md (opens in a new tab)references/focused-passes.md (opens in a new tab)references/hypothesis-rca.md (opens in a new tab)references/mutation-test-review.md (opens in a new tab)references/naming-review.md (opens in a new tab)references/pr-review-threads.md (opens in a new tab)references/refactor-safely.md (opens in a new tab)references/refute-findings.md (opens in a new tab)references/requirements-trace.md (opens in a new tab)references/verify-claims.md (opens in a new tab)scripts/format-pr-tree.rb (opens in a new tab)scripts/get-pr-comments.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kylesnowschwartz/simpleclaude --plugin sc-extras3 skills in this plugin
/sc-clean-roomClean-room reimplementation of a repository, library, API, protocol, or other software artifact. This skill SHOULD be used when the user wants to create a functionally equivalent implementation of an existing artifact without copying its internal design or expression. NOT for refactoring existing code.
/sc-dirty-roomLift-and-shift port of a repository, library, API, protocol, or other software artifact to a different language, runtime, or platform, with the original source available as a reference. This skill SHOULD be used when the user says "port from X to Y", "lift and shift", "rewrite in Go", "rewrite in Rust", "translate this codebase", "convert to TypeScript", "language migration", "rewrite in another language", "carry over the algorithms", "borrow techniques from", "dirty room", "dirty-room design", "sc-dirty-room", or wants to reimplement an existing artifact while studying its internals to preserve algorithms, data structures, or idioms worth keeping. NOT for legally-constrained reimplementation — use /sc-clean-room when copyright isolation matters.
Other plugins' skills for the same job