skills/code-review/SKILL.md
Use when performing a technical pre-commit code review on recently changed files for bugs, security issues, and standards compliance
npx skillsauth add giladresisi/ai-dev-env code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Perform technical code review on recently changed files.
Review Philosophy:
Start by gathering codebase context to understand the codebase standards and patterns.
Start by examining:
.claude/CLAUDE.md) and ~/.claude/CLAUDE.md (global user standards)/docs, /core, or any dedicated standards directories — not all projects use this convention; the primary source is always CLAUDE.mdAfter you have a good understanding
Run these commands:
git status
git diff HEAD
git diff --stat HEAD
Then check the list of new files:
git ls-files --others --exclude-standard
Read each new file in its entirety. Read each changed file in its entirety (not just the diff) to understand full context.
For each changed file or new file, analyze for:
Logic Errors
Security Issues
http://localhost:… or http://<host>:… literal is a mandatory spot-check: verify the path matches the server's registered routes (check main.py mount/router registrations). Incorrect URLs cause silent tool-call failures; flag as high severity if unverified.Performance Problems
Code Quality
Adherence to Codebase Standards and Existing Patterns
Before reporting test failures as issues: Determine whether the failure is pre-existing (existed before this changeset) by:
.agents/execution-reports/ — it will note pre-existing failures if the executor ran a baseline testgit stash && <test command> && git stash pop if no execution report existsDo not report pre-existing test failures as issues introduced by the current changeset. Mark them separately as "Pre-existing Failures" with a brief root cause note.
Save a new file to .agents/code-reviews/[appropriate-name].md
Stats:
For each issue found:
severity: critical|high|medium|low
file: path/to/file.py
line: 42
issue: [one-line description]
detail: [explanation of why this is a problem]
suggestion: [how to fix it]
If no issues found: "Code review passed. No technical issues detected."
testing
Creates a new git worktree in the auto-co-trader project for any purpose — optimization, regression, backtesting, brainstorming, etc. Use this skill when the user wants to CREATE or SET UP a new worktree — phrases like "prepare a new worktree", "set up a worktree", "create a new worktree for <purpose>", "prep a new worktree", "new worktree for autoresearch", "prepare optimization from [strategy]", or "create a worktree using [strategy]". Do NOT use this skill when the user is already in a worktree and wants to start/run/begin a task — that is handled by the relevant program file in the worktree session.
development
Use when running comprehensive project validation including tests, type checking, linting, API connectivity checks, and server startup verification
research
Use when performing a meta-level analysis of plan adherence after implementation to identify process improvements and suggest CLAUDE.md updates
documentation
Use when investigating a GitHub issue to identify root cause, assess impact, and create a fix strategy document