一键导入
example-backend-patterns
TEMPLATE - Backend API development patterns. Copy and customize for your backend framework (Express, Django, Spring Boot, FastAPI, etc.)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
TEMPLATE - Backend API development patterns. Copy and customize for your backend framework (Express, Django, Spring Boot, FastAPI, etc.)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compressed-prose response style for the orchestrator (opt-in via behavior.caveman_mode). Drops articles, fillers, and transitional prose; preserves code, paths, JSON/TOML, and quoted text verbatim.
Maestro project patterns — Rust CLI with ratatui TUI, tokio async, Claude CLI process management, and stream-json parsing.
TEMPLATE - Frontend web development patterns. Copy and customize for your frontend framework (React, Vue, Angular, Svelte, etc.)
Defensive patterns for GitHub (gh) and Azure DevOps (az) CLI interactions — error handling, idempotency, rate limits, missing resources.
API contract validation patterns for ensuring client-side models match backend JSON responses. Prevents decoding failures from schema mismatches. Tech-stack agnostic.
TEMPLATE - Mobile development patterns. Copy and customize for your mobile framework (React Native, Flutter, Swift, Kotlin, etc.)
| name | example-backend-patterns |
| version | 1.0.0 |
| description | TEMPLATE - Backend API development patterns. Copy and customize for your backend framework (Express, Django, Spring Boot, FastAPI, etc.) |
| allowed-tools | Read, Grep, Glob, WebSearch |
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.
| 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 |
Replace this section with your framework-specific requirements:
// 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 })
}
})
# 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)
// 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);
}
}
# 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()
| 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] |
[Your framework's controller/route handler example]
[Your service layer pattern example]
[Your data access pattern example]
[Your validation pattern example]
[Your error handling pattern example]
When you need specific implementation details, read:
Add framework-specific anti-patterns here:
[Your architecture pattern]
Example:
Controller → Service → Repository → Database
↓ ↓ ↓
Routes Business Data Access
Logic
{
"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"
}
| 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 model alignment |
backend-express-patterns)drafts/skills/