backend-skill
Design and implement backend functionality including route generation, request/response handling, and database connectivity.
Best use case
backend-skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Design and implement backend functionality including route generation, request/response handling, and database connectivity.
Teams using backend-skill should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/backend-skill/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How backend-skill Compares
| Feature / Agent | backend-skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Design and implement backend functionality including route generation, request/response handling, and database connectivity.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Backend Skill – API & Database Development ## Instructions 1. **Project setup** - Initialize backend project (Node.js / Express / Fastify / Django / Flask) - Configure environment variables - Follow clean folder structure (routes, controllers, services, models) 2. **Route generation** - Define RESTful routes (GET, POST, PUT, DELETE) - Use proper URL naming conventions - Apply versioning (e.g. `/api/v1/`) - Separate routes by resource 3. **Request & response handling** - Validate incoming requests - Handle query params, route params, and body data - Return consistent JSON responses - Use proper HTTP status codes - Implement centralized error handling 4. **Database connection** - Connect to database (MongoDB / PostgreSQL / MySQL) - Define schemas or models - Perform CRUD operations - Handle connection errors gracefully - Use migrations or schema versioning 5. **Security & middleware** - Use authentication middleware (JWT / sessions) - Protect routes with authorization - Sanitize inputs to prevent injection attacks - Enable CORS and rate limiting 6. **Testing & debugging** - Test endpoints using Postman or automated tests - Log requests and errors - Handle edge cases and failures ## Best Practices - Keep routes thin, move logic to services - Use async/await with proper error handling - Return meaningful error messages - Follow REST standards - Write reusable and modular code - Never expose secrets in code ## Example Structure ```txt src/ ├─ routes/ │ └─ user.routes.js ├─ controllers/ │ └─ user.controller.js ├─ services/ │ └─ user.service.js ├─ models/ │ └─ user.model.js ├─ middleware/ │ └─ auth.middleware.js └─ app.js
Related Skills
backendless-automation
Automate Backendless tasks via Rube MCP (Composio). Always search tools first for current schemas.
backend-ultimate
Ultimate 25+ years expert-level backend skill covering FastAPI, Express, Node.js, Next.js with TypeScript. Includes ALL databases (PostgreSQL, MongoDB, Redis, Elasticsearch), ALL features (REST, GraphQL, WebSockets, gRPC, Message Queues), comprehensive security hardening (XSS, CSRF, SQL injection, authentication, authorization, rate limiting), complete performance optimization (caching, database tuning, load balancing), ALL deployment strategies (Docker, Kubernetes, CI/CD), advanced patterns (microservices, event-driven, saga, CQRS), ALL use cases (e-commerce, SaaS, real-time, high-traffic), complete testing (unit, integration, E2E, load, security). Route protection, middleware, authentication implementation in PERFECTION. Use for ANY backend system requiring enterprise-grade security, performance, scalability, and architectural excellence.
backend-testing
Write comprehensive backend tests including unit tests, integration tests, and API tests. Use when testing REST APIs, database operations, authentication flows, or business logic. Handles Jest, Pytest, Mocha, testing strategies, mocking, and test coverage.
backend-skills
Master Node.js, Express, PHP, Laravel, Java, Spring Boot, API design, and database integration. Build scalable APIs and server applications.
backend-service-patterns
Architect scalable backend services using layered architecture, dependency injection, middleware patterns, service classes, and separation of concerns. Use when building API services, implementing business logic layers, creating service classes, setting up middleware chains, implementing dependency injection, designing controller-service-repository patterns, handling cross-cutting concerns, creating domain models, implementing CQRS patterns, or establishing backend architecture standards.
backend-scaffold
Generate production-ready backend code with routes, data models, service layers, and validation. Use when scaffolding backend from specs.
Backend Queries
Write secure, performant, and optimized database queries using parameterized queries, eager loading, proper indexing, and transaction management. Use this skill when writing database queries in controllers, repositories, services, or model methods, when using query builders or ORM methods, when implementing filtering/sorting/pagination logic, when optimizing N+1 query problems with eager loading, when working with joins and complex queries, when implementing query caching, or when wrapping related operations in database transactions.
Backend Python Expert
专注于 Python 后端开发,涵盖 FastAPI、异步编程和性能优化。
backend-python-developer
Use this agent when you need expert backend development work with Python, including API design, database integration, authentication, testing, or any Python backend-focused development tasks.
backend-patterns
Backend patterns for ORPC routers, Drizzle schemas, and server-side code. Use when creating API endpoints, database tables, or services.
backend-passport-js
Authentication middleware for Express.js and Node.js applications. Use when building Express APIs that need JWT authentication, OAuth, or custom auth strategies. Provides 500+ authentication strategies. Choose Passport.js over Auth.js for Express backends, pure API servers, or when you need maximum control over auth flow.
backend-nodejs
Node.js/TypeScript backend expert. Handles Express/Fastify API routes, TypeScript strict mode, Prisma ORM, Zod validation, error handling, configuration management. Use when project is Node.js backend (package.json + TypeScript server).