code-reviewer
Skill1 starsChanged 9 months agoApache-2.0View on GitHub
Code review workflow for local changes and remote PRs. Reviews focus on correctness, maintainability, security, and test coverage with concrete examples and inline comments.
- Deletes or force-pushes
129 other projects use a version of this.
Adopted by
Most recently taken up by
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- jakubsuplicki/codumenttheir own version, first seen Oct 4, 2026
- rumotion/ai-agent-project-templatetheir own version, first seen Oct 3, 2026
- toilanguyen2910/claude-code-starter-packtheir own version, first seen Oct 3, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- mountainowl/bubotheir own version, first seen Oct 1, 2026
Used with
Projects with it also use sql-query-expert, git-doc-updater and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Marine-softdrink524Skillsql-query-expert
Write optimized SQL queries with joins, CTEs, window functions, and performance tuning. Based on Anthropic's Claude Cookbooks.
Also in 3 projects that use this
u9401066Skillgit-doc-updater
Auto-check and update key documentation before Git commits to keep docs in sync with code. Triggers: docs, 文檔, 更新文檔, sync docs, release, 發布.
Also in 3 projects that use this
u9401066Skillgit-precommit
Orchestrate pre-commit workflow including Memory Bank sync, README/CHANGELOG/ROADMAP updates. Triggers: GIT, gc, push, commit, 提交, 準備 commit, 要提交了, git commit, pre-commit, 推送.
Also in 3 projects that use this
JeffallanSkillsecure-code-guardian
Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities — including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.
Also in 4 projects that use this
alirezarezvaniSkillreadme-updater
Keep README files current with project changes. Use when project structure changes, features added, or setup instructions modified. Suggests README updates based on code changes. Triggers on significant project changes, new features, dependency changes.
Also in 4 projects that use this
JohnJBorenSkilltest-engineer
Testing strategy, test patterns, and coverage optimization for unit, integration, and E2E tests
Also in 9 projects that use this
- +3 more from u9401066
Other versions129 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 129
- google-gemini/gemini-cli★ 107ksame name
- NVIDIA/SkillSpector★ 19ksame name
- Jeffallan/claude-skills★ 12ksame name
- zhnnky329/MathModeling-skills★ 1.1ksame name
- MageByte-Zero/spec-superflow★ 838same name
- alirezarezvani/claude-code-tresor★ 777same name
- waybarrios/opencode-power-pack★ 531same name
- linxuan-sys/opencode-skills-chinese★ 196same name
- nagisanzenin/production-grade★ 181same name
- claude-world/director-mode-lite★ 80same name
119 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository73 other files it gives its agents.
- accessibility-wcagSkill
- api-designSkill
- api-testingSkill
- asset-optimizationSkill
- audio-systemsSkill
- aws-essentialsSkill
- ci-cd-pipelinesSkill
- codebase-analysisSkill
- container-securitySkill
- cost-optimizationSkill
- database-designSkill
- data-visualizationSkill
- doc-generationSkill
- docker-kubernetesSkill
- docxSkill
- email-notificationsSkill
- env-configSkill
- flutter-mobileSkill
- framer-motionSkill
- frontend-code-reviewSkill
- frontend-designSkill
- fullstack-developerSkill
- game-enginesSkill
- gameplay-designSkill
- game-programming-languagesSkill
- game-serversSkill
- git-workflowSkill
- godot-4Skill
- golang-proSkill
- go-linter-configurationSkill
- graphics-renderingSkill
- i18n-localizationSkill
- incident-responseSkill
- level-designSkill
- llm-integrationSkill
- local-securitySkill
- memory-managementSkill
- monetization-systemsSkill
- monitoring-observabilitySkill
- multiplayer-netcodeSkill
- nextjs-16Skill
- notebooklm-researchSkill
- npm-packageSkill
- oauth-authSkill
- particle-systemsSkill
- performance-optimizationSkill
- playwright-testingSkill
- postgres-advancedSkill
- programming-architectureSkill
- project-migrationSkill
- publishing-platformsSkill
- python-best-practicesSkill
- react-nativeSkill
- redis-patternsSkill
- refactoring-patternsSkill
- remotion-best-practicesSkill
- rust-best-practicesSkill
- scraping-automationSkill
- security-reviewSkill
- seo-metaSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 111 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Run preflight checks to catch automated failures early.
- Distinctive: line 28
Read PR description and existing comments to understand context.
- Distinctive: line 36
Check git status and read diffs.
- Very specific: line 248
Flag: No tests found in src/payments/refund.test.ts.
- Distinctive: line 304
Acknowledge strengths: Call out well-written code, good test coverage, or thoughtful design.
- Distinctive: line 310
After completing the review, ask if the user wants to switch back to the default branch.
“Common” is measured: kept by at least 6 in 10 of the 111 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Determine Review Target
Remote PR: User provides a PR number or URL (e.g., "Review PR #123").
Local changes: User asks to "review my changes" or no PR is specified.
Review Workflow
For Remote PRs
- Checkout the PR branch.
gh pr checkout 123- Run preflight checks to catch automated failures early.
npm run preflight- Read PR description and existing comments to understand context.
gh pr view 123For Local Changes
- Check git status and read diffs.
git status
git diff # Working tree changes
git diff --staged # Staged changes- Optionally run preflight if changes are substantial.
npm run preflightReview Pillars
Correctness
What to flag: Logic errors, incorrect assumptions, missing edge case handling.
Example review comment:
// File: src/orders/calculateTotal.ts:15
function calculateTotal(items: Item[]): number {
return items.reduce((sum, item) => sum + item.price, 0);
}Flag: This does not account for quantity. If an item has quantity: 3, it should multiply price * quantity.
Suggested fix:
function calculateTotal(items: Item[]): number {
return items.reduce((sum, item) => sum + item.price * item.quantity, 0);
}Maintainability
What to flag: Complex functions, unclear naming, duplicate logic, missing abstractions.
BAD:
// File: src/users/api.ts:42
async function handle(req: Request, res: Response) {
const u = await db.query('SELECT * FROM users WHERE id = ?', [req.params.id]);
if (!u) return res.status(404).send('Not found');
if (req.user.id !== u.id && req.user.role !== 'admin') {
return res.status(403).send('Forbidden');
}
res.json(u);
}Flag: Function name handle is vague. Variable u is unclear. Authorization logic is inline and will be duplicated across routes.
GOOD:
async function getUserById(req: Request, res: Response) {
const user = await findUserById(req.params.id);
if (!user) return res.status(404).send('User not found');
if (!canAccessUser(req.user, user)) {
return res.status(403).send('Access denied');
}
res.json(user);
}
function canAccessUser(requester: User, target: User): boolean {
return requester.id === target.id || requester.role === 'admin';
}Security
What to flag: SQL injection, XSS, hardcoded secrets, missing authentication, unsafe deserialization.
BAD:
// File: src/search/api.ts:28
app.get('/search', (req, res) => {
const results = db.query(`SELECT * FROM products WHERE name LIKE '%${req.query.q}%'`);
res.json(results);
});Flag: SQL injection vulnerability. User input is directly interpolated into the query. An attacker can inject '; DROP TABLE products; --.
GOOD:
app.get('/search', (req, res) => {
const results = db.query('SELECT * FROM products WHERE name LIKE ?', [`%${req.query.q}%`]);
res.json(results);
});Readability
What to flag: Inconsistent formatting, missing comments for complex logic, misleading names.
BAD:
// File: src/analytics/metrics.ts:55
function calc(d: any) {
const x = d.reduce((a, b) => a + b.v, 0);
return x / d.length;
}Flag: Cryptic naming. calc does not describe what it calculates. d, a, b, v, x are meaningless. Parameter type is any.
GOOD:
function calculateAverageValue(dataPoints: DataPoint[]): number {
const sum = dataPoints.reduce((total, point) => total + point.value, 0);
return sum / dataPoints.length;
}Efficiency
What to flag: N+1 queries, unnecessary loops, unbounded data loading, missing indexes.
BAD:
// File: src/orders/report.ts:18
async function getOrdersWithUsers(orderIds: string[]) {
const orders = await db.orders.findMany({ where: { id: { in: orderIds } } });
for (const order of orders) {
order.user = await db.users.findUnique({ where: { id: order.userId } });
}
return orders;
}Flag: N+1 query problem. For 100 orders, this executes 101 queries (1 for orders, 100 for users).
GOOD:
async function getOrdersWithUsers(orderIds: string[]) {
const orders = await db.orders.findMany({
where: { id: { in: orderIds } },
include: { user: true },
});
return orders;
}Edge Cases and Error Handling
What to flag: Missing null checks, unhandled promise rejections, no fallback for empty arrays.
BAD:
// File: src/cart/total.ts:10
function getFirstItemPrice(cart: Cart): number {
return cart.items[0].price;
}Flag: Crashes if cart.items is empty. No validation that items exist.
GOOD:
function getFirstItemPrice(cart: Cart): number {
if (cart.items.length === 0) {
throw new Error('Cannot get price from empty cart');
}
return cart.items[0].price;
}Test Coverage
What to flag: Missing tests for new logic, incomplete edge case coverage, no integration tests for API changes.
Example review comment:
// File: src/payments/refund.ts:25
export async function processRefund(orderId: string, amount: number) {
const order = await db.orders.findUnique({ where: { id: orderId } });
if (!order) throw new Error('Order not found');
if (amount > order.total) {
throw new Error('Refund amount exceeds order total');
}
await paymentGateway.refund(order.paymentId, amount);
await db.orders.update({
where: { id: orderId },
data: { refundedAmount: order.refundedAmount + amount },
});
}Flag: No tests found in src/payments/refund.test.ts. Suggested tests:
- Refund succeeds for valid amount
- Throws error when order not found
- Throws error when refund exceeds order total
- Updates
refundedAmountcorrectly - Handles payment gateway failure gracefully
Provide Feedback
Structure
Summary: High-level overview of the changes and overall assessment.
Findings:
- Critical: Bugs, security vulnerabilities, breaking changes. Must fix before merge.
- Improvements: Code quality, performance, or design suggestions. Recommended but not blocking.
- Nitpicks: Formatting, minor naming issues. Optional.
Conclusion: Clear recommendation (Approve / Request Changes).
Example Review
Summary:
This PR adds a refund processing feature for orders. The core logic is sound, but there are a few critical issues around input validation and error handling that need addressing before merge.
Findings:
Critical:
src/payments/refund.ts:30- Missing validation for negative refund amounts. Addif (amount <= 0) throw new Error('Refund amount must be positive').src/payments/refund.ts:35- Payment gateway errors are not caught. Wrap in try/catch and handle failure cases (e.g., log error, notify admin).
Improvements:
src/payments/refund.ts:25- Consider extracting validation logic into a separatevalidateRefundRequest()function for reusability.src/payments/refund.test.ts- Missing tests for edge cases (see Test Coverage section above).
Nitpicks:
src/payments/refund.ts:15- Variableordercould be namedexistingOrderfor clarity.
Conclusion: Request Changes. Please address the critical issues and add the suggested tests. Happy to approve once those are resolved.
Tone
Direct and constructive. Explain why a change is needed, not just what to change.
BAD: "This is wrong."
GOOD: "This does not handle the case where items is empty, which will cause a runtime error. Add a length check before accessing items[0]."
Acknowledge strengths. Call out well-written code, good test coverage, or thoughtful design.
Example: "Nice work on the error handling in processPayment(). The fallback logic for gateway timeouts is solid."
Cleanup (Remote PRs Only)
After completing the review, ask if the user wants to switch back to the default branch.
gh pr checkout --detach
git checkout mainDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

