przeprogramowani/ai-native-infra/code-review
Claude Code and agent skill by przeprogramowani/ai-native-infra
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when the user asks to "review code", "check this PR", "review my changes", "code review", "check code quality", "review this diff", "give feedback on my code", or wants automated code review based on team engineering conventions.
Install
npx vskill@latest install przeprogramowani/ai-native-infra/code-reviewSKILL.md
Code Review
Automated code review based on team engineering conventions. Analyzes code changes and reports findings organized by severity.
Process
1. Identify Changes
Determine what to review:
- If a PR number or URL is provided: fetch the diff with
gh pr diff - If "my changes" or "staged": use
git diff --cached(orgit difffor unstaged) - If specific files are mentioned: review those files directly
2. Review Categories
Check each change against ALL of the following categories.
Naming
- Variables and functions use descriptive camelCase (no abbreviations except
url,id,api,config) - Booleans are prefixed with
is,has,should,can - Functions are verb-first (
getUserById, notuser) - Files match their primary export (
UserService.tsexportsUserService) - Constants use UPPER_SNAKE_CASE
Error Handling
- All async operations have try/catch or .catch()
- Error messages include: what operation failed + with what inputs
- No empty catch blocks — at minimum, log the error
- HTTP errors include status code and actionable message
- Cleanup happens in
finallyblocks (connections, locks, file handles)
TypeScript
- Zero
anywithout explicit justification comment interfacepreferred overtypefor object shapesunknownused for external data, narrowed with type guards- States modeled with discriminated unions, not optional fields
- Generic params have descriptive names (
TUser, notT)
Functions
- Single responsibility — if you need "and" to describe it, split it
- Max 3 parameters; options object beyond that
- Early returns over nested conditionals
- Query functions (
get*,find*,is*) are pure (no side effects)
Security
- No secrets in code — environment variables only
- User input validated at system boundaries
- SQL uses parameterized statements only
- API responses never leak stack traces or internal paths
Testing
- Test names describe behavior: "returns empty array when no results found"
- Each test has own setup and teardown, no interdependencies
- Specific assertions:
toEqual(expected)nottoBeTruthy() - Edge cases covered: empty, null, boundary values, error paths
3. Classify Findings
Assign severity to each finding:
- Critical: Security vulnerabilities, missing error handling on external calls, use of
anywithout justification, secrets in code, SQL injection risk - Warning: Naming convention violations, missing cleanup in
finally, impure query functions, more than 3 function parameters, empty catch blocks - Suggestion: Preference for
interfaceovertype, generic parameter naming, test name style, early return opportunities
Output Format
Present findings in this exact structure:
Decision Rules
- Any Critical finding → REQUEST CHANGES
- 3+ Warnings with no Critical → NEEDS DISCUSSION
- Only Suggestions (or minor warnings) → APPROVE
Empty Sections
Omit severity sections that have no findings. If everything passes:
Security
- Security scanPassed, 90 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/ai-toolkit/skills/code-review/SKILL.md
Popularity
- 7-day trend score
- 0
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/przeprogramowani/ai-native-infra/code-review)