Skip to content
Back to skills

Code Review 77

ASecurity

**MANDATORY**: Apply when reviewing code changes, PR diffs, or code-review requests. Enforces quality standards, warning seriousness, and meaningful comments.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
code-qualityrustgosqltestingcode-reviewapisecurityperformancedocumentation

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill code-review-77 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Review 77?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Review 77
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-code-review-77/badge)](https://www.skillsdirectory.com/skills/david-li0406-code-review-77)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-review
description: "**MANDATORY**: Apply when reviewing code changes, PR diffs, or code-review requests. Enforces quality standards, warning seriousness, and meaningful comments."
---

# Code Review Checklist

**MANDATORY**: Research best practices when reviewing non-trivial changes.

- If you are in the main conversation: use Claude Code’s built-in subagents (e.g. Explore) and/or online research as needed.
- If you are already running as a subagent: do local research with Read/Grep/Glob and cite sources; do not attempt further subagent delegation (subagents can’t spawn subagents).

## Architecture
- [ ] Design patterns appropriate for the problem
- [ ] Proper separation of concerns
- [ ] Component boundaries well-defined
- [ ] No tight coupling between modules
- [ ] Follows project architectural conventions
- [ ] **Research**: Validate patterns for this type of implementation (local + online as needed)

## Dead Code Detection
- [ ] No unused imports or dependencies
- [ ] No unreachable code paths
- [ ] No commented-out code (unless temporarily needed with explanation)
- [ ] All functions/methods are actually called
- [ ] No unused variables or parameters

## Comments & Documentation
- [ ] Comments reserved for complex/non-obvious logic
- [ ] **NEVER** comment code that merely duplicates what code literally does
  - ❌ BAD: `// Increment counter` above `counter++`
  - ✅ GOOD: `// Skip cached entries to force fresh data fetch` above complex logic
- [ ] Complex algorithms have explanatory comments about *why*, not *what*
- [ ] Public APIs have appropriate documentation
- [ ] Hard-to-follow code has helpful context

## Security
- [ ] Input validation on all user inputs
- [ ] No hardcoded secrets or API keys
- [ ] Proper authentication/authorization checks
- [ ] No SQL injection vulnerabilities
- [ ] No XSS vulnerabilities
- [ ] Sensitive data properly encrypted/hashed

## Performance
- [ ] No obvious N+1 queries
- [ ] No unnecessary loops or allocations
- [ ] Appropriate data structures used
- [ ] No blocking operations in hot paths
- [ ] Proper pagination for large datasets

## Maintainability
- [ ] Clear, descriptive naming
- [ ] Functions have single responsibility
- [ ] No unnecessary complexity
- [ ] No duplicated code
- [ ] Proper error messages
- [ ] Code is self-documenting

## Correctness
- [ ] Edge cases handled (null, empty, max values)
- [ ] Error conditions handled gracefully
- [ ] No obvious bugs or typos
- [ ] Logic matches requirements
- [ ] Boundary conditions correct

## Testing
- [ ] Tests cover happy path
- [ ] Tests cover edge cases
- [ ] Tests cover error conditions
- [ ] Tests are readable and maintainable
- [ ] No flaky tests

## Output format

If the invoking context (agent prompt / command / user) specifies an output format, follow that.

Otherwise, report issues by severity:
- 🔴 **Critical**: Must fix (bugs, security, data loss)
- 🟡 **Warning**: Should fix (bad patterns, maintainability). Treat these seriously; we aim to fix warnings by default.
- 🔵 **Suggestion**: Nice to have (style, minor improvements)

Include specific fix recommendations with code examples.

## Comment Tone

**Be direct and concise** - avoid over-explaining or corporate language:
- ❌ BAD: "Your PR description says X but the tests do Y. This means: 1) tests don't reproduce the bug 2) fix won't be validated 3) future regressions possible. Fix needed: update mocks to match..."
- ✅ GOOD: "The test mocks don't match the production data format you described. Add unit tests to validate the fix and prevent future regressions."

Trust the developer to understand implications - just point out the issue and suggest the fix.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…