backend-developer
36
总安装量
36
周安装量
#5674
全站排名
安装命令
npx skills add https://github.com/404kidwiz/claude-supercode-skills --skill backend-developer
Agent 安装分布
claude-code
26
opencode
26
gemini-cli
23
cursor
20
windsurf
18
Skill 文档
Backend Developer Skill
Purpose
Provides comprehensive expertise in server-side application development across multiple frameworks, languages, and deployment strategies. Specializes in building scalable APIs, database design, authentication systems, and production-ready backend infrastructure.
When to Use
- Building REST or GraphQL APIs
- Designing database schemas and models
- Implementing authentication and authorization
- Setting up server infrastructure
- Creating microservices or monolithic backends
- Optimizing backend performance
- Deploying server applications to production
- Need multi-framework backend guidance (Express, FastAPI, Django, Spring)
Quick Start
Invoke this skill when:
- Building server-side APIs (REST, GraphQL) in Node.js, Python, Java, or Go
- Implementing authentication/authorization (JWT, OAuth2, session-based)
- Designing database schemas and ORM integration
- Setting up backend testing (unit, integration, E2E)
- Implementing middleware (logging, validation, error handling)
- Deploying backend services to Kubernetes, AWS, GCP, or Azure
- Optimizing backend performance (caching, query optimization, rate limiting)
Do NOT invoke when:
- Only frontend development needed â Use frontend-developer or nextjs-developer
- Database-specific optimization required â Use database-optimizer or postgres-pro
- API design without implementation â Use api-designer
- GraphQL-specific architecture â Use graphql-architect
- DevOps/infrastructure only â Use devops-engineer or cloud-architect
Framework Support
Node.js/TypeScript
- Express.js, NestJS, Koa.js, Fastify
Python
- FastAPI, Django, Flask, Tornado
Java
- Spring Boot, Quarkus, Micronaut
Go
- Gin, Echo, Fiber
Decision Framework
Backend Framework Selection
Backend Framework Selection
ââ JavaScript/TypeScript
â ââ Need rapid development + type safety â NestJS
â ââ Need lightweight/fast performance â Fastify
â ââ Need simplicity + ecosystem â Express.js
â
ââ Python
â ââ Need async + high performance â FastAPI
â ââ Need batteries-included â Django (+ DRF)
â
ââ Java
â ââ Enterprise-ready â Spring Boot
â
ââ Go
ââ High-performance services â Gin or Fiber
Authentication Strategy Matrix
| Scenario | Strategy | Complexity | Security |
|---|---|---|---|
| Stateless API (mobile, SPA) | JWT | Low | Medium |
| Third-party login | OAuth 2.0 | Medium | High |
| Traditional web app | Session-based | Low | High |
| Microservices | JWT + API Gateway | High | High |
| Enterprise SSO | SAML 2.0 | High | Very High |
Database & ORM Selection
Database & ORM Decision
ââ Relational (SQL)
â ââ Node.js/TypeScript
â â ââ Need type safety + migrations â Prisma
â â ââ Need flexibility â TypeORM or Sequelize
â ââ Python
â â ââ Async required â Tortoise ORM or SQLModel
â â ââ Sync / Django â Django ORM or SQLAlchemy
â ââ Java
â ââ JPA (Hibernate) or jOOQ
â
ââ NoSQL
ââ Document store â MongoDB (Mongoose for Node.js)
ââ Key-value â Redis (caching, sessions)
Best Practices
- Always validate input – Use provided validation middleware
- Handle errors gracefully – Use generated error handlers
- Write tests – Use test templates for consistency
- Use environment variables – Never hardcode secrets
- Implement logging – Use provided logging configuration
- Monitor performance – Set up metrics and alerts
- Security first – Use provided authentication setup
- Version your API – Follow versioning patterns
- Document your code – Generate API docs automatically
- Deploy safely – Use provided deployment scripts
Common Patterns
Repository Pattern
- Separation of concerns
- Easy testing
- Swappable implementations
Service Layer
- Centralized business rules
- Transaction management
- Error handling
Middleware Stack
- Authentication
- Authorization
- Validation
- Logging
- Error handling
Troubleshooting
Common Issues
Database connection errors
- Check connection string
- Verify database is running
- Check network connectivity
- Review connection pool settings
Authentication failures
- Verify JWT secret
- Check token expiration
- Validate token format
- Review middleware order
Build failures
- Check TypeScript configuration
- Verify dependencies are installed
- Review error messages
- Check for syntax errors
Deployment issues
- Verify Docker image builds
- Check Kubernetes pods
- Review logs
- Verify environment variables
Quality Checklist
Security
- Input validation on all endpoints (Zod/Joi)
- Password hashing (bcrypt cost 10+ or Argon2)
- SQL injection prevention (parameterized queries)
- Rate limiting on auth endpoints
- Security headers (Helmet.js)
- Environment variables for secrets
Authentication & Authorization
- Strong JWT secret (256-bit)
- Short-lived access tokens (15min)
- Refresh token rotation
- Authorization checks on protected routes
Error Handling
- Global error handler
- Async error handling (express-async-errors)
- Clear validation error messages
- 404 handling for unknown endpoints
Performance
- Database connection pooling
- Query optimization (no N+1)
- Caching (Redis for sessions, rate limiting)
- Response compression (gzip/brotli)
Testing
- Unit tests for services/repositories
- Integration tests for API endpoints
- >80% coverage for critical paths
- Separate test database
Additional Resources
- Detailed Technical Reference: See REFERENCE.md
- Code Examples & Patterns: See EXAMPLES.md