后端架构模式、API设计、数据库优化以及适用于Node.js、Express和Next.js API路由的服务器端最佳实践。
70
57%
Does it follow best practices?
Impact
98%
1.16xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./docs/zh-CN/skills/backend-patterns/SKILL.mdRepository & service layer patterns
Repository interface
100%
100%
Concrete repository class
100%
100%
Service layer class
100%
100%
Constructor injection
100%
100%
Specific column selection
30%
50%
N+1 prevention
100%
100%
Query param filtering
100%
100%
Pagination params
100%
100%
Sort param
100%
100%
Success response envelope
0%
100%
Error response envelope
0%
100%
Auth middleware, RBAC & error handling
Custom error class
100%
100%
ApiError prototype fix
100%
100%
Centralized error handler
100%
100%
ZodError handling
100%
100%
Error response envelope
100%
100%
Bearer token extraction
100%
100%
rolePermissions record
100%
100%
requirePermission HOF
60%
100%
User passed to handler
50%
100%
Exponential backoff delays
0%
100%
Default maxRetries = 3
50%
100%
Middleware HOF composition
100%
100%
Forbidden response
100%
100%
Caching, rate limiting & background jobs
Cache check before DB
100%
100%
Cache TTL 300 seconds
100%
100%
Cache miss populates
100%
100%
Cache invalidation method
100%
100%
Rate limiter sliding window
100%
100%
Rate limiter returns boolean
100%
100%
Rate limit 429 response
100%
100%
Non-blocking job enqueue
100%
100%
Queue processes sequentially
100%
100%
Structured log format
100%
100%
Log includes timestamp
100%
100%
Log includes level
100%
100%
Log includes context
100%
100%
dfbf946
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.