askill
code-review

code-reviewSafety 95Repository

Use when reviewing code changes before committing, after implementing features, or when asked to review. Triggers on staged changes, PR reviews, or explicit review requests.

397 stars
7.9k downloads
Updated 2/7/2026

Package Files

Loading files...
SKILL.md

Code Review

Rigorous code review focused on quality, maintainability, and architectural soundness.

When to Use

  • After implementing a feature or fix
  • Before committing changes
  • When explicitly asked to review code
  • Before creating a PR

Method

Start by inspecting the changes. Use the deterministic script to collect the review context:

scripts/collect_review_context.sh

If on the main branch, review the staged git diff. If on a different branch, review committed and uncommitted changes compared to main.

Dispatch two subagents to carefully review the code changes. Tell them they're competing with another agent - whoever finds more legitimate issues wins honour and glory. Make sure they examine both architecture AND implementation, and check every criterion below.

Review Criteria

1. Code Quality

CheckLook For
DRYDuplicated logic, copy-pasted code, repeated patterns that should be abstracted
Code BloatUnnecessary code, over-engineering, premature abstractions, dead code
BugsLogic errors, edge cases, off-by-one errors, null/undefined handling

2. Code Slop & Technical Debt

SymptomDescription
Magic valuesHardcoded strings/numbers without constants
Inconsistent namingMixed conventions, unclear names
Missing error handlingUnhandled exceptions, silent failures
TODO/FIXME commentsDeferred work that should be tracked
Commented-out codeDelete it or explain why it exists
Dependency bloatNew deps when stdlib/existing deps suffice

3. Architecture (in context of broader system)

PrincipleReview Questions
ModularityAre changes properly bounded? Do they respect module boundaries?
CohesionDoes each unit have a single, clear responsibility?
Separation of ConcernsIs business logic mixed with presentation/data access?
Information HidingAre implementation details properly encapsulated?
CouplingDoes this create tight coupling? Are dependencies appropriate?

4. Devil's Advocate

Challenge the implementation:

  • Is this the simplest solution? Could it be simpler?
  • What happens under load/scale?
  • What are the failure modes?
  • What assumptions might be wrong?
  • Is there a more fundamentally correct approach, even if harder?

5. Test Effectiveness

CheckCriteria
CoverageAre the important paths tested?
Meaningful assertionsDo tests verify behavior, not implementation?
Edge casesAre boundaries and error conditions tested?
ReadabilityCan you understand what's tested from test names?
FragilityWill tests break on valid refactors?

Output Format

Report findings organized by severity:

## Code Review Findings

### Critical (must fix)
- [Issue]: [Location] - [Why it matters]

### Important (should fix)
- [Issue]: [Location] - [Recommendation]

### Minor (consider fixing)
- [Issue]: [Location] - [Suggestion]

### Positive Observations
- [What was done well]

Common Mistakes

MistakeCorrection
Surface-level reviewDig into logic, trace data flow
Ignoring contextReview changes in relation to the system
Only finding negativesNote what's done well
Vague feedbackBe specific: file, line, concrete suggestion
BikesheddingFocus on impact, not style preferences

Red Flags - STOP and Investigate

  • New dependencies added without clear justification
  • Changes that bypass existing patterns without explanation
  • Test coverage decreased
  • Complex logic without tests
  • Security-sensitive code modified

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

78/100Analyzed 2/19/2026

Well-structured code review skill with comprehensive criteria covering code quality, technical debt, architecture, testing, and common pitfalls. Includes clear when-to-use guidance, structured methodology, and organized output format. Minor扣分 for internal-only path indicator (.opencode) and reliance on a repo-specific script. The competitive subagent framing is unusual but doesn't diminish practical value. Excellent reference-style content suitable for developers familiar with the tool ecosystem.

95
88
80
85
75

Metadata

Licenseunknown
Version-
Updated2/7/2026
Publisherkasperjunge

Tags

securitytesting