backend-code-review
БесплатноБез исполняемых скриптовНе проверенConducts comprehensive backend code reviews including API design (REST/GraphQL/gRPC), database patterns, authentication/authorization, caching strategies…
Об этом скилле
Backend Code Review
Conduct systematic backend code reviews to identify security vulnerabilities, performance bottlenecks, code quality issues, and architectural concerns. Produces actionable reports with specific locations and fix recommendations.
Review Process
Follow this structured approach for comprehensive backend code analysis:
1. Assess Technology Stack and Scope
Identify technologies and critical areas before starting:
Technology Inventory:
Backend Language: Node.js/Python/Java/Go/C#
Framework: Express/FastAPI/Spring Boot/Gin/ASP.NET
Database: PostgreSQL/MySQL/MongoDB/Redis
Architecture: Monolith/Microservices/Serverless
Deployment: AWS/GCP/Azure/Docker/Kubernetes
Critical Review Areas (prioritize these):
- Authentication and authorization logic
- Payment processing and financial transactions
- Data access layers (ORM queries, raw SQL)
- External API integrations and webhooks
- Background jobs and async processing
- File upload and download handlers
Example Scope Definition:
Review: User authentication service
Files: src/auth/*.ts (15 files, ~2000 lines)
Priority: High (handles user credentials and sessions)
Focus: Security vulnerabilities, JWT implementation, session management
2. Review Code Quality and Structure
Evaluate code organization, design patterns, and maintainability:
Code Organization Checklist:
☐ Proper layering (controllers → services → repositories → database)
☐ Consistent file and folder naming (kebab-case, camelCase, etc.)
☐ One class/function per file (or logically grouped)
☐ No circular dependencies between modules
☐ Clear separation of business logic and infrastructure code
SOLID Principles Validation:
Single Responsibility: Each class/module has one reason to change
// ❌ Bad: UserService does too much
class UserService {
createUser() { }
sendEmail() { } // Should be EmailService
processPayment() { } // Should be PaymentService
}
// ✅ Good: Separated responsibilities
class UserService {
createUser() { }
}
class EmailService {
sendEmail() { }
}
class PaymentService {
processPayment() { }
}
Dependency Injection: Dependencies injected, not hardcoded
# ❌ Bad: Hardcoded dependency
class UserService:
def __init__(self):
self.db = PostgresDB() # Hardcoded, hard to test
# ✅ Good: Dependency injection
class UserService:
def __init__(self, db: Database):
self.db = db # Injected, easy to mock
Error Handling Pattern:
// ❌ Bad: Silent failures
async function getUser(id: string) {
try {
return await db.users.findOne(id);
} catch (err) {
return null; // Swallows error
}
}
// ✅ Good: Proper error handling
async function getUser(id: string): Promise<User> {
try {
const user = await db.users.findOne(id);
if (!user) {
throw new NotFoundError(`User ${id} not found`);
}
return user;
} catch (err) {
logger.error('Failed to fetch user', { id, error: err });
throw new DatabaseError('User fetch failed', { cause: err });
}
}
Code Quality Issues to Flag:
- Functions > 50 lines (should be split)
- Classes > 300 lines (too many responsibilities)
- Cyclomatic complexity > 10 (simplify logic)
- Code duplication > 5 lines (extract to function)
- Missing type definitions (TypeScript, type hints)
- Magic numbers (use named constants)
Load detailed checklist: code-quality-checklist.md
3. Validate API Design
Review API endpoints for REST, GraphQL, or gRPC implementations:
REST API Review:
Endpoint Structure:
✅ Good REST Design:
GET /api/v1/users - List users (paginated)
GET /api/v1/users/:id - Get single user
POST /api/v1/users - Create user
PUT /api/v1/users/:id - Replace user
PATCH /api/v1/users/:id - Update user
DELETE /api/v1/users/:id - Delete user
❌ Poor REST Design:
GET /api/v1/getAllUsers - Use plural nouns, not verbs
POST /api/v1/user/create - POST implies creation
GET /api/v1/user/get/123 - Use path params, not verbs
HTTP Status Codes:
✅ Correct Usage:
200 OK - Successful GET, PUT, PATCH
201 Created - Successful POST (with Location header)
204 No Content - Successful DELETE
400 Bad Request - Invalid input
401 Unauthorized - Missing/invalid authentication
403 Forbidden - Authenticated but not authorized
404 Not Found - Resource doesn't exist
409 Conflict - Duplicate resource
422 Unprocessable Entity - Validation failed
500 Internal Server Error - Server error
❌ Common Mistakes:
200 for errors - Should use 4xx or 5xx
500 for validation errors - Should use 400 or 422
404 for unauthorized - Should use 403
Pagination Implementation:
// ✅ Good: Cursor-based pagination for large datasets
GET /api/v1/orders?cursor=eyJpZCI6MTIzfQ&limit=20
Response: {
data: [...],
pagination: {
nextCurso
Установить backend-code-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл backend-code-review?
Conducts comprehensive backend code reviews including API design (REST/GraphQL/gRPC), database patterns, authentication/authorization, caching strategies, message queues, microservices architecture, security vulnerabilities, and performance optimization for Node.js, Python, Java, Go, and C#. Produces detailed review reports with specific issues, severity ratings, and actionable recommendations. Use when reviewing server-side code, analyzing API implementations, checking database queries, validating authentication flows, assessing microservices architecture, or when users mention "review backend code", "check API design", "analyze server code", "validate database patterns", "security audit", "performance review", or "backend code quality".
Как установить скилл backend-code-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл backend-code-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic