example-backend-patterns
TEMPLATE - Backend API development patterns. Copy and customize for your backend framework (Express, Django, Spring Boot, FastAPI, etc.)
от CarlosDanielDev★ 31 звезда на GitHub
Установить example-backend-patterns в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Backend API Patterns (TEMPLATE)
This is a TEMPLATE skill. Copy this directory and customize it for your backend framework.
Quick reference for backend development patterns. For detailed examples, see linked guides.
Skill Usage
| Aspect | Details |
|---|---|
| Consumer | subagent-backend-architect |
| Purpose | Code patterns and examples for backend implementation |
| Invocation | Subagents read this skill; NOT directly invocable by users |
| How to Customize | Replace examples below with your framework's patterns |
Step 1: Choose Your Framework
Replace this section with your framework-specific requirements:
Option A: Express.js (Node.js)
// Example: Express with TypeScript
import { Router, Request, Response } from 'express'
const router = Router()
router.get('/api/resource', async (req: Request, res: Response) => {
try {
const data = await service.getData()
res.json(data)
} catch (error) {
res.status(500).json({ error: error.message })
}
})
Option B: Django (Python)
# Example: Django REST Framework
from rest_framework import viewsets
from rest_framework.response import Response
class ResourceViewSet(viewsets.ViewSet):
def list(self, request):
data = service.get_data()
serializer = ResourceSerializer(data, many=True)
return Response(serializer.data)
Option C: Spring Boot (Java)
// Example: Spring Boot REST Controller
@RestController
@RequestMapping("/api/resource")
public class ResourceController {
@Autowired
private ResourceService service;
@GetMapping
public ResponseEntity<List<Resource>> getResources() {
List<Resource> resources = service.getAll();
return ResponseEntity.ok(resources);
}
}
Option D: FastAPI (Python)
# Example: FastAPI with Pydantic
from fastapi import APIRouter, Depends
from pydantic import BaseModel
router = APIRouter()
class Resource(BaseModel):
id: int
name: str
@router.get("/api/resource", response_model=List[Resource])
async def get_resources(service: ResourceService = Depends()):
return await service.get_all()
Critical Stack Requirements (CUSTOMIZE THIS)
| Feature | Your Pattern | Not Allowed |
|---|---|---|
| Framework | [Your backend framework] | [What to avoid] |
| Database | [Your database + ORM] | [What to avoid] |
| Validation | [Your validation library] | [What to avoid] |
| Auth | [Your auth approach] | [What to avoid] |
| Testing | [Your testing framework] | [What to avoid] |
Quick Patterns Reference (CUSTOMIZE THIS)
Controller Pattern
[Your framework's controller/route handler example]
Service Layer Pattern
[Your service layer pattern example]
Repository/Data Access Pattern
[Your data access pattern example]
Validation Pattern
[Your validation pattern example]
Error Handling Pattern
[Your error handling pattern example]
Detailed Guides
When you need specific implementation details, read:
- controller-patterns.md - API endpoint patterns
- service-patterns.md - Business logic layer
- repository-patterns.md - Data access layer
- validation-patterns.md - Input validation
- auth-patterns.md - Authentication/authorization
- optimization.md - Database and API optimization
Common Anti-Patterns to Avoid (CUSTOMIZE THIS)
Add framework-specific anti-patterns here:
- ❌ [Anti-pattern 1 for your framework]
- ❌ [Anti-pattern 2 for your framework]
- ❌ [Anti-pattern 3 for your framework]
- ❌ N+1 database queries
- ❌ Business logic in controllers
- ❌ Not validating input
- ❌ SQL injection vulnerabilities
Architecture Layers (CUSTOMIZE THIS)
[Your architecture pattern]
Example:
Controller → Service → Repository → Database
↓ ↓ ↓
Routes Business Data Access
Logic
Dependencies Reference (CUSTOMIZE THIS)
{
"your-framework": "Core framework",
"your-database-driver": "Database client",
"your-orm": "ORM/Query builder",
"your-validation-library": "Validation",
"your-auth-library": "Authentication",
"your-testing-framework": "Testing"
}
When to Consult This Skill
- Designing API endpoints
- Implementing business logic
- Optimizing database queries
- Adding validation
- Setting up authentication/authorization
- Implementing error handling
Related Skills
| Skill | When to Consult |
|---|---|
provider-resilience |
Any feature that creates GitHub/Azure DevOps resources (issues, PRs, milestones, labels) |
security-patterns |
Authentication, authorization, input validation |
api-contract-validation |
Client-server |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob - 04
WebSearch
FAQ
Что делает скилл example-backend-patterns?
TEMPLATE - Backend API development patterns. Copy and customize for your backend framework (Express, Django, Spring Boot, FastAPI, etc.)
Как установить скилл example-backend-patterns?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл example-backend-patterns запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…