CtrlK
BlogDocsLog inGet started
Tessl Logo

backend-patterns

后端架构模式、API设计、数据库优化以及适用于Node.js、Express和Next.js API路由的服务器端最佳实践。

70

1.16x
Quality

57%

Does it follow best practices?

Impact

98%

1.16x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./docs/zh-CN/skills/backend-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

95%

22%

Book Catalog API

Repository & service layer patterns

Criteria
Without this skill
With this skill

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%

100%

21%

Content Management API — Security & Error Handling

Auth middleware, RBAC & error handling

Criteria
Without this skill
With this skill

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%

100%

Event Processing Service

Caching, rate limiting & background jobs

Criteria
Without this skill
With this skill

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%

Repository
xu-xiang/everything-claude-code-zh
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.