darknecrocities/skillbuilder/backend
Claude Code and agent skill by darknecrocities/skillbuilder
- community
Checking that the SKILL.md file is still in the repository.
Architect, implement, and maintain resilient backend services, clean architecture, REST/gRPC API contracts, strict schema validation, authentication, rate-limiting, and error handling.
Install
npx vskill@latest install darknecrocities/skillbuilder/backendSKILL.md
The same SKILL.md was published earlier as darknecrocities/skillbuilder/backend.
Backend Systems Engineering (/backend)
Role: Principal Backend & Distributed Systems ArchitectPhilosophy: Domain logic in the core. Validate at the boundaries. Enforce idempotency. Never make unbounded calls. Drain connections gracefully.
This skill establishes backend engineering discipline across microservices, REST APIs, GraphQL, and gRPC systems. It enforces clean architecture separation, strict runtime schema validation (Zod, Pydantic v2), defense-in-depth authentication, and structured RFC 7807 error handling.
1. Quick Navigation & Progressive Disclosure
| Resource Type | Document | Description | |
|---|---|---|---|
| Reference | references/api-design-and-contracts.md | RESTful conventions, route verbs, cursor pagination, OpenAPI 3.1. | |
| Reference | references/validation-and-type-safety.md | Zod / Pydantic v2 boundary validation, custom coercions, fail-fast rules. | |
| Reference | references/auth-and-access-control.md | JWT rotation, secure cookies, refresh tokens, RBAC, OAuth2/OIDC. | |
| Reference | references/resilience-and-middleware.md | Idempotency keys, rate limiters, timeout deadlines, circuit breakers. | |
| Reference | references/backend-error-catalog.md | Backend error catalog: unhandled rejections, race conditions, timeouts. | |
| Template | templates/api_route_template.ts | Production TypeScript API route with Zod validation and error boundary. | |
| Template | templates/domain_service_template.py | Clean architecture Python service layer with domain exceptions. | |
| Utility | scripts/verify_api_contracts.py | CLI auditor verifying validation schemas and status code compliance. |
2. Clean Architecture Layer Hierarchy
Layer Rules:
- Core Domain: Contains zero framework dependencies (no Express, Fastify, Next.js, or SQLAlchemy imports). Pure typed classes and pure business logic.
- Service Layer: Manages unit of work, database transactions, idempotency checks, and domain events.
- Transport Layer: Parses requests, validates inputs via schemas (fail-fast), and maps domain results or domain exceptions to HTTP status codes.
3. RFC 7807 Problem Details Standard
All error responses across all backend services must strictly adhere to RFC 7807 JSON:
Standard Status Code Mapping:
200 OK: Successful read or in-place update.201 Created: Resource successfully created (must returnLocationheader or resource ID).204 No Content: Successful deletion or action with no return body.400 Bad Request: Schema validation failure (malformed payload).401 Unauthorized: Missing or expired authentication token.403 Forbidden: Authenticated user lacks permission (RBAC).404 Not Found: Target entity does not exist.409 Conflict: Unique constraint violation or state conflict.422 Unprocessable Entity: Semantic business rule violation.429 Too Many Requests: Rate limit exceeded (must includeRetry-After).500 Internal Server Error: Unhandled crash (never leak stack trace to client).
4. Idempotency & Concurrency Control
4.1 Idempotency Key Middleware
Critical mutations (POST /payments, POST /orders) must accept an Idempotency-Key header:
- Check Redis for key
idemp:<key>. - If state is
PENDING, return409 Conflict(request already processing). - If state is
COMPLETED, return the cached response payload immediately. - If missing, acquire lock with 60s TTL, process transaction, save result with 24h TTL.
4.2 Optimistic Concurrency Control
Protect concurrent updates against lost updates using version numbers:
If rows affected == 0, throw ConcurrencyConflictException and prompt retry.
5. Graceful Process Shutdown
Every backend server process must catch termination signals (SIGTERM, SIGINT), stop accepting new traffic, drain pending connections within a timeout, and close database pools:
6. Automation Tool: API Contract Verifier
Audit backend route files for validation schemas and status code compliance:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/backend/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/darknecrocities/skillbuilder/backend)