lindoelio/spec-driven-steroids/code-review-hardening
Claude Code and agent skill by lindoelio/spec-driven-steroids
- community
Checking that the SKILL.md file is still in the repository.
Use this skill for rigorous, structured code review with a self-repair loop. Applies change-type-aware strategies (feat, fix, hotfix, refactor, migrate, docs). Findings are severity-classified, then auto-fixed where possible. Triggers on PR reviews, code review requests, or when reviewing any change set.
Install
npx vskill@latest install lindoelio/spec-driven-steroids/code-review-hardeningSKILL.md
Code Review Hardening
Strengthen code against defects through systematic, type-aware review. Every reviewed line is understood or explicitly scoped-out. Findings are classified by severity and fixability. The agent applies direct fixes autonomously and re-reviews before producing a final report.
Gotchas
Passive review is incomplete: A static report is a human review. For an autonomous agent, after classifying findings the skill must enter the self-repair loop — apply fixes, re-review, iterate.
Wrong strategy for the type: A hotfix and a new feature require opposite postures. Applying a full-scope feat review to a hotfix causes unnecessary delay. Always determine the change type first.
Blocking on style preference: Only block on style if the project's style guide explicitly requires it. Personal style preferences are Nit: — never gates.
Skipping lines: Every human-written line must be understood or explicitly scoped-out with a note.
Mentoring vs. blocking: Label every educational comment Mentoring: so the author knows it is not a gate.
Over-engineering: Block implementations that solve future problems the author doesn't know they'll face. Solve today's problem well.
Quick Start
Activation
Load this skill when:
- User asks for a code review of any kind
- User mentions PR review, pull request review, code review, change
review, or review this
- User asks to review specific files, a branch, or a diff
- User wants feedback on a CL (changelist)
Do NOT load this skill for:
- Simple one-liner fixes the user already validated
- Questions about code that don't involve reviewing a change
- Formatting-only tasks (convert JSON to YAML, etc.)
Determine Change Type
Detect the change type in priority order:
- Explicit tag: User provides a type tag (
feat,fix,
hotfix, refactor, migrate, docs). Use directly.
- Branch name scan: Check the branch name for conventional-commit
prefixes:
feat/→featfix/→fixhotfix/→hotfixrefactor/→refactorchore/→migratedocs/→docs
- Commit message scan: Examine the last 5 commit messages for
conventional-commit prefixes (feat:, fix:, hotfix:, refactor:, chore:, docs:). Use the most frequent prefix.
- Heuristic guess: If no prefix found, infer from prompt language:
"bug fix" / "fix this" → fix; "hot patch" / "production issue" → hotfix; "restructure" / "clean up" → refactor; "migrate" / "upgrade" → migrate; "update docs" / "add readme" → docs; otherwise → general-purpose review.
- Fallback: If no signal and no confident guess, apply a balanced
general-purpose review across all types.
Pre-flight
Before reviewing, gather project context:
- Check for a project style guide (search for
STYLEGUIDE.md,
.styleguide, style-guide.md, or inline style references).
- Check for existing review conventions or patterns (search for
REVIEW_GUIDELINES.md, CONTRIBUTING.md, or established comment styles).
- Check for relevant subsystem documentation related to the changed
files.
- Load
references/change-type-strategies.mdto get the review
strategy for the detected type.
If no project conventions are found, proceed with general standards.
Review Workflow
Phase 1: Determine Type
Run the type detection chain above.
Phase 2: Load Type Strategy
Read references/change-type-strategies.md for the detected type.
Phase 3: Pre-flight
Gather project context: style guide, conventions, relevant docs.
Phase 4: Review per Type
Apply the focused checklist from references/review-checklist.md, adjusting depth per type. For every file: read every line, understand it or note why it was scoped out.
Phase 5: Classify Findings
Read references/finding-severity.md to classify each finding:
Step A — Severity:
- Blocking — must fix before approval
- Nit — optional polish, not a gate
- Mentoring — educational, not a gate
Step B — Fixability (new):
direct-fix— fix is unambiguous, agent applies it nowauthor-required— fix requires author judgment or is ambiguousinformational— mentoring or good-notice finding
Phase 6: Self-Repair Loop
Apply direct fixes autonomously. Max 3 passes.
Each pass:
- For every
direct-fixblocking finding: apply the fix. - Re-read modified files to verify fix didn't break anything.
- Re-review modified files and their immediate callers for new
blocking findings.
- If new blocking findings appear: rollback the fix, mark original
finding as author-required.
- If no new blocking findings: mark original finding as
fixed. - Collect remaining unfixed
direct-fixitems.
After 3 passes, any remaining direct-fix items are marked author-required and escalated via references/escalation.md.
Phase 7: Author Review
Remaining author-required findings are output in the final report with clear Decision Needed descriptions. The agent does not guess.
Phase 8: Final Verdict + Escalation
- If no blocking findings remain: Approve
- If
author-requiredblocking findings remain: Request Changes - If your scoped review is complete but other areas need other
reviewers: Approval with Notes
Any unresolved author-required finding that blocks approval is escalated via references/escalation.md.
Type-Selected Priorities
| Type | Urgency | Risk | Primary Focus | Secondary | Threshold | |
|---|---|---|---|---|---|---|
feat | Medium | Medium | Design, scalability | Tests, edge cases | Full | |
fix | High | Medium | Bug repro, fix verification | Test case | Full | |
hotfix | Critical | High | Scope min., correctness | Rollback | Minimal | |
refactor | Low | Med-High | Behavioral parity, DRY | Readability | Full | |
migrate | Med-High | High | Compat, schema | Migration tests | Full | |
docs | Low | Low | Grammar, correctness, code | — | Minimal only | |
| General | Medium | Medium | All dimensions equally | — | Full |
For detailed per-type goals, posture, and block-vs-nit guidance, read references/change-type-strategies.md.
Severity Taxonomy
| Level | Label | Prefix | Blocks Approval? | |
|---|---|---|---|---|
| Blocking | Must Fix | (no prefix) | Yes | |
| Nit | Polish | Nit: | No | |
| Mentoring | Educational | Mentoring: | No | |
| Approval with Notes | Scoped sign-off | LGTM [with notes]: | No |
Blocking criteria (read references/finding-severity.md for the full decision tree):
- Code health degrades — overall maintainability, readability, or
testability worsens
- Safety violation — security vulnerability, memory leak, unhandled
error
- Style guide violation — required style point not followed
- Correctness bug — logic error, off-by-one, wrong assumption, missing
edge case
- Missing or broken tests — test doesn't cover the scenario it claims
Nit criteria:
- Style preference not in the style guide
- Minor readability improvement
- Over-engineering suggestions for future needs
- Naming that is "good enough" but could be more descriptive
Mentoring criteria:
- Teaches a language feature, framework pattern, or design principle
- Shares knowledge that improves code health over time
Output Format
Produce this structured markdown report:
Fix Status values:
fixed— auto-fixed by the agent in the self-repair looppending— awaiting author decisionescalated— passed to escalation path after max iterations
Verdict definitions:
- Approve — All blocking findings resolved. CL improves code
health and is merge-ready.
- Request Changes —
author-requiredblocking findings present.
Author must address before approval.
- Approval with Notes — Your scoped review is complete. Other
reviewers should address remaining findings. Nits left open by author preference are noted.
Reference Loading
Load reference files on demand, not upfront:
| File | When to Load | |
|---|---|---|
references/change-type-strategies.md | Phase 2 of review workflow | |
references/review-checklist.md | Phase 4 of review workflow | |
references/finding-severity.md | Phase 5 of review workflow | |
references/escalation.md | Phase 8 — only when escalation is needed |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/cli/templates/universal/skills/code-review-hardening/SKILL.md
Popularity
- Repository stars
- 51
- Repository forks
- 3
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lindoelio/spec-driven-steroids/code-review-hardening)