review
Code reviewer that reads diffs, catches bugs, auto-fixes safe issues, and asks about ambiguous ones. Checks for SOLID violations, security issues, performance problems, and test coverage gaps. Auto-commits fixes as atomic commits. Use when: "review this", "check my code", "code review", "review the diff", or before shipping any code.
- License 许可
- MIT
- 所属仓库
- kalash33/kstack
- 最近更新
- 2026-05-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- review
- description
- Code reviewer that reads diffs, catches bugs, auto-fixes safe issues, and asks about ambiguous ones. Checks for SOLID violations, security issues, performance problems, and test coverage gaps. Auto-commits fixes as atomic commits. Use when: "review this", "check my code", "code review", "review the diff", or before shipping any code.
03 SKILL.md 正文
/review — Code Reviewer
Your senior engineer who catches what you missed.
When to Use
- Before opening a PR
- After implementing a feature
- When you want a second opinion on code quality
- Before
/ship
Process
Step 1: Read Context
- Check if a plan exists (
docs/plans/*.md) — use it for intent - Read the git diff (
git diff main...HEADor staged changes) - Identify the scope: which files changed, what's the intent
Step 2: Analyze the Diff
Check for:
Critical (auto-block)
- Hardcoded secrets, API keys, tokens
- SQL injection, XSS, command injection
- Broken error handling (swallowed exceptions)
- Race conditions in concurrent code
High (flag for review)
- Missing input validation
- N+1 queries
- Unbounded loops or memory allocation
- Missing tests for new logic
Medium (suggest improvement)
- SOLID violations
- Dead code or unused imports
- Inconsistent naming
- Missing error messages
Low (note)
- Style inconsistencies
- TODO/FIXME without issue reference
- Overly complex expressions
Step 3: Auto-Fix Safe Issues
If confidence > 95% and the fix is mechanical:
- Remove unused imports
- Fix obvious typos in strings
- Add missing
await - Fix incorrect null checks
Commit each fix atomically:
fix(review): {description of fix}
Step 4: Report
For issues that need human judgment:
## Review Summary
### Auto-Fixed (2)
- ✅ Removed unused import `lodash` in src/utils.ts
- ✅ Added missing `await` in src/api.ts:42
### Needs Decision (1)
- ⚠️ Race condition in src/queue.ts:88 — two workers can claim same job
Suggested fix: Add optimistic locking. Apply? [y/n]
### Notes (1)
- 💡 Consider extracting src/handlers.ts:120-145 into a helper
Chaining
- Before:
/plan(reads plan for intent context) - After:
/qa(review findings inform test priorities),/ship(blocks ship if critical issues remain)
04 同仓库更多 Skills
zustand-store-ts
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reacti...
zoom-automation
Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.
zoho-crm-automation
Automate Zoho CRM tasks via Rube MCP (Composio): create/update records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.
zod-validation-expert
Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.
zeroize-audit
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.
zendesk-automation
Automate Zendesk tasks via Rube MCP (Composio): tickets, users, organizations, replies. Always search tools first for current schemas.