CtrlK
BlogDocsLog inGet started
Tessl Logo

backend-patterns

Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.

57

Quality

48%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./docs/zh-TW/skills/backend-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

96%

18%

Order Management Backend Module

Repository pattern and Service layer

Criteria
Without context
With context

Repository interface

0%

60%

Repository implementation

37%

100%

Service layer class

100%

100%

Constructor injection

100%

100%

No loop queries (N+1)

100%

100%

Batch fetch with Map

100%

100%

Specific field selection

100%

100%

RESTful URL structure

100%

100%

Query param filtering

100%

100%

Structured error response

42%

100%

Centralized error handler

57%

100%

92%

36%

Document Management API — Access Control and Abuse Prevention

Auth middleware, RBAC, and rate limiting

Criteria
Without context
With context

HOF auth wrapper

100%

100%

Bearer token extraction

0%

100%

jsonwebtoken package

100%

100%

JWT_SECRET env var

100%

100%

ApiError class

0%

100%

ApiError for 401/403

0%

100%

Centralized error handler

28%

100%

success:false error shape

0%

100%

3-role permission map

37%

0%

requirePermission HOF

37%

100%

hasPermission function

100%

100%

Map-based RateLimiter

71%

100%

Sliding window filter

100%

100%

x-forwarded-for header

100%

100%

429 rate limit response

100%

100%

92%

18%

Analytics Reporting API with Async Processing

Caching, background jobs, and structured logging

Criteria
Without context
With context

CachedRepository wrapper

30%

30%

Cache-aside read pattern

100%

100%

setex with 300s TTL

100%

100%

Cache key format

100%

100%

Cache invalidation

100%

100%

JobQueue class

40%

100%

Non-blocking job add

100%

100%

Job queued response

16%

83%

Structured JSON logging

100%

100%

crypto.randomUUID requestId

100%

100%

Error log includes stack

0%

100%

Logger class with levels

100%

100%

Repository
haniakrim21/everything-claude-code
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.