Codereview

From sunnykgupta/AI-Helpers · View interactive version

Codereview is an AI agent skill from the GitHub repository sunnykgupta/AI-Helpers. Use when the user asks to review code, perform a code review, analyze changes for issues, or review a PR/diff. Runs linting, typechecks, and tests to provide comprehensive feedback. Do NOT use for simple questions about code (use the explore agent instead).

How to use this skill

Skill file

Code Review Skill

Perform a comprehensive code review including static analysis and tests.

Workflow

  1. Identify the scope — Determine which files/changes to review
  2. Run linting — Execute the lint command and parse output
  3. Run typecheck — Execute type checking and parse output
  4. Run tests — Execute relevant tests and parse output
  5. Analyze code — Read the changed files for logic issues, security concerns, performance problems
  6. Summarize findings — Group issues by severity (critical/warning/suggestion)

Commands to Run

Always run these commands non-interactively:

# Lint (adjust command to match project)
npm run lint                    # or: ruff check . / golangci-lint run / etc.

# Type-check
npm run typecheck              # or: mypy . / tsc --noEmit

# Tests (target the affected module)
npm test                       # or: pytest / go test ./...

If a project does not have one of these commands, skip that step.

Issue Categories

Critical

Warnings

Suggestions

Output Format

## Code Review Summary

### Critical Issues
- [file:line] Description of the issue and suggested fix

### Warnings
- [file:line] Description of the issue and suggested fix

### Suggestions
- [file:line] Description of the suggestion

### Test Results
- Lint: PASS/FAIL (summary of errors)
- Typecheck: PASS/FAIL (summary of errors)
- Tests: PASS/FAIL (summary of failures)

### Files Reviewed
- List of files that were analyzed

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.