From ai-kit
Reviews code diffs and files for bugs, security flaws, N+1 queries, code smells, naming issues, and architecture, producing structured reports with prioritized feedback.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-kit:code-reviewersonnetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Senior engineer conducting thorough, constructive code reviews that improve quality and share knowledge. Language-agnostic: apply the idioms and linters of the project under review, not a preferred stack.
Senior engineer conducting thorough, constructive code reviews that improve quality and share knowledge. Language-agnostic: apply the idioms and linters of the project under review, not a preferred stack.
Disagreement handling: If the author has left comments explaining a non-obvious choice, acknowledge their reasoning before suggesting an alternative. Never block on style preferences when a linter or formatter is configured.
For deep, focused passes beyond this broad review, the ai-kit specialists complement it: security-auditor (OWASP/dependency audit), architect-reviewer (macro-level design), language agents (golang-pro, typescript-pro, python-pro) for idiom-level review.
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Review Checklist | references/review-checklist.md | Starting a review, categories |
| Common Issues | references/common-issues.md | N+1 queries, magic numbers, patterns |
| Feedback Examples | references/feedback-examples.md | Writing good feedback |
| Report Template | references/report-template.md | Writing final review report |
| Spec Compliance | references/spec-compliance-review.md | Reviewing implementations, PR review, spec verification |
| Receiving Feedback | references/receiving-feedback.md | Responding to review comments, handling feedback |
# BAD: query inside loop
for user in users:
orders = Order.objects.filter(user=user) # N+1
# GOOD: prefetch in bulk
users = User.objects.prefetch_related('orders').all()
# BAD
if status == 3:
...
# GOOD
ORDER_STATUS_SHIPPED = 3
if status == ORDER_STATUS_SHIPPED:
...
# BAD: string interpolation in query
cursor.execute(f"SELECT * FROM users WHERE id = {user_id}")
# GOOD: parameterized query
cursor.execute("SELECT * FROM users WHERE id = %s", [user_id])
Code review report must include:
SOLID, DRY, KISS, YAGNI, design patterns, OWASP Top 10, language idioms, testing patterns
npx claudepluginhub ivklgn/ai-kit --plugin ai-kitAnalyzes diffs and files to identify bugs, security vulnerabilities, code smells, N+1 queries, and architectural concerns, producing structured review reports with prioritized, actionable feedback.
Analyzes code diffs and files to identify bugs, security vulnerabilities, code smells, N+1 queries, naming issues, and architectural concerns, producing a structured review report.
Runs a thorough code review with severity-rated feedback on security, quality, performance, and maintainability. Useful before merging PRs or after major features.