CustomAgent.app
Skill
quality
✓ Verified
Free

Review and Refactor

Combined code review + refactoring pass — flag issues then propose concrete fixes you can apply.

4.7(73 reviews)
28,100 installs
by GitHub

About

Two-stage workflow: first review the target file/diff for issues (style, design, bugs, edge cases), then propose refactorings to address each finding. Stops between stages so you can approve before any change is applied.

Tags

reviewrefactorquality

Skill Instructions Preview

# Review and Refactor

Two-stage code improvement workflow.

## Stage 1: Review
1. Read the target code
2. Catalog issues by category:
   - Bugs
   - Edge cases
   - Design smells
   - Style inconsistencies
   - Missing tests
3. Present findings table with severity
4. **Stop and wait for approval**

## Stage 2: Refactor
1. For each approved finding, apply a minimal fix
2. Run tests after each change
3. Stop on first failure
4. Commit each fix separately

Related Skills

Skill
security
FREE

AI Security Code Reviewer

Trace data flows across files to find injection flaws, auth bugs, secrets, and crypto issues with severity ratings.

securityowaspvulnerabilities
G
GitHub
4.8(248)
98k
6.2k
Skill
development
FREE

Code Refactoring Assistant

Identify code smells and apply safe, mechanical refactorings preserving exact behavior.

refactorclean-codesmells
G
GitHub
4.7(134)
50k
2.7k
Skill
quality
FREE

Self-Review & Double Check

Re-read your last change with adversarial scrutiny — catch off-by-ones, missing edge cases, and silent failures.

reviewqualityself-review
G
GitHub
4.8(95)
33k
2.1k
Install
# Add as Claude Code slash command:
curl -fsSL "https://raw.githubusercontent.com/github/awesome-copilot/main/skills/review-and-refactor/SKILL.md" \
  -o ~/.claude/commands/review-and-refactor.md
View source on GitHub →

Compatible with

claude codecursor

Trigger phrase

/review-refactor
G

GitHub

@github

View on GitHub