dragonked2 / backend-dev
Comprehensive backend development methodology covering API design, authentication, database design, caching, testing, deployment, and monitoring. Full lifecycle from requirements through production.
0
SKILL.md3.7 KB
Backend Development Skill Suite
Overview
This skill provides a complete backend development methodology following the full lifecycle:
Requirements → Architecture → Implementation → Testing → Deployment → MonitoringWhen to Use
- Building RESTful or GraphQL APIs
- Designing microservices or monolithic backends
- Implementing authentication/authorization systems
- Database schema design and optimization
- Caching strategy implementation
- API security hardening
- Production deployment and monitoring
Lifecycle Phases
Phase 1: Requirements & Architecture
- Define API contract first — Write OpenAPI/Swagger spec before code
- Choose technology stack — Match to team expertise and project needs
- Design data model — ERD before implementation
- Plan authentication — JWT, OAuth2, sessions based on use case
- Identify integration points — Third-party APIs, message queues, caches
Phase 2: Implementation
- Project structure — Follow language-specific conventions
- Error handling — Structured errors from day one
- Validation — Input validation at API boundary
- Logging — Structured, correlation IDs, log levels
- Security — Auth middleware, rate limiting, CORS, input sanitization
Phase 3: Testing
- Unit tests — Business logic, utilities, helpers
- Integration tests — API endpoints, database operations
- Contract tests — API spec compliance
- Load tests — Performance baseline
- Security tests — OWASP Top 10 checklist
Phase 4: Deployment
- Docker — Multi-stage builds, minimal images
- CI/CD — Automated testing, linting, building
- Configuration — Environment variables, secrets management
- Health checks — Liveness and readiness probes
- Graceful shutdown — Handle SIGTERM, drain connections
Phase 5: Monitoring
- Metrics — Request rate, error rate, latency (RED method)
- Logging — Centralized, searchable, structured
- Tracing — Distributed tracing across services
- Alerting — On error spikes, latency degradation
- Dashboards — Operational visibility
Core Principles
- Defense in depth — Never trust a single layer
- Fail fast, fail safe — Validate early, handle errors gracefully
- Observability by default — Log, trace, and measure everything
- Stateless where possible — Horizontal scalability
- Security is not optional — Every endpoint must be secured
Technology Sub-Skills
Select the appropriate sub-skill based on your stack:
| Sub-Skill | When to Use |
|---|---|
nodejs | Node.js projects with Express, Fastify, or NestJS |
python | Python projects with FastAPI, Django, or Flask |
rust | Rust projects with Axum, Actix-web, or Rocket |
database | Database schema, queries, optimization (any stack) |
auth | Authentication and authorization (any stack) |
caching | Caching strategies (any stack) |
Checklist
- [ ] API contract defined (OpenAPI spec)
- [ ] Authentication strategy chosen and implemented
- [ ] Database schema designed and migrated
- [ ] Input validation on all endpoints
- [ ] Error handling with proper HTTP status codes
- [ ] Rate limiting implemented
- [ ] Structured logging with correlation IDs
- [ ] Health check endpoint
- [ ] Graceful shutdown handling
- [ ] Unit and integration tests written
- [ ] Docker build working
- [ ] CI/CD pipeline configured
- [ ] Monitoring and alerting in place