backend-design — скилл для Claude Code: что делает и как установить
Скилл backend-design выстраивает пошаговое проектирование бэкенда: от спецификаций API и схемы БД до модели авторизации и кэширования. Пригодится при старте нового сервиса или рефакторинге архитектуры.
MIT 130 установок ★ 18 обновлён 2026-01-23
npx skills add DauQuangThanh/hanoi-rainbow --skill backend-design -a claude-codeЧто делает backend-design
Скилл ведёт проектирование по семи шагам. Сначала агент разбирает требования и выбирает архитектурный паттерн — монолит, микросервисы или serverless. Затем формирует контракты API в OpenAPI, проектирует сущности БД с индексами и нормализацией, настраивает аутентификацию по OAuth 2.0 или JWT и прорабатывает очереди сообщений.
Результат выдаётся в виде структурированного документа из восьми разделов с диаграммами Mermaid, планом масштабирования и дорожной картой внедрения. Внутри скилла предусмотрены справочники по REST, GraphQL, gRPC и типовым паттернам вроде Repository.
Без описания бизнес-требований и стека скилл выдаст обобщённую архитектуру.
Какие задачи решает
- спроектировать контракты API в формате OpenAPI
- составить схему базы данных с индексами и связями
- описать модель безопасности на базе OAuth 2.0 или JWT
- подготовить архитектурную схему сервиса на Mermaid
Примеры запросов агенту
- Спроектируй бэкенд для сервиса бронирования отелей на микросервисах
- Составь схему базы данных PostgreSQL и спецификацию REST API для интернет-магазина
- Опиши стратегию кэширования в Redis и схему авторизации через JWT для мобильного API
Как установить backend-design
1Через Skills CLI (Vercel)
npx skills add DauQuangThanh/hanoi-rainbow --skill backend-design -a claude-code2Вручную: положить файлы
~/.claude/skills/backend-design/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/backend-design/
1Через Skills CLI (Vercel)
npx skills add DauQuangThanh/hanoi-rainbow --skill backend-design -a codex2Вручную: положить файлы
.agents/skills/backend-design/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add DauQuangThanh/hanoi-rainbow --skill backend-design -a cursor2Вручную: положить файлы
.cursor/skills/backend-design/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install DauQuangThanh/hanoi-rainbow skills/backend-design2Вручную: положить файлы
.github/skills/backend-design/SKILL.md1Через Skills CLI (Vercel)
npx skills add DauQuangThanh/hanoi-rainbow --skill backend-design -a gemini-cli2Командой платформы
gemini skills install https://github.com/DauQuangThanh/hanoi-rainbow --path skills/backend-designВручную: положить файлы
.devin/skills/backend-design/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add DauQuangThanh/hanoi-rainbow --skill backend-design -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о backend-design
Как установить backend-design в Claude Code?
Выполните команду npx skills add DauQuangThanh/hanoi-rainbow --skill backend-design -a claude-code. Навык также можно настроить через файл ~/.claude/skills/backend-design/SKILL.md.
Что делает backend-design?
Скилл направляет ИИ-ассистента на пошаговое проектирование серверной части приложения. Он генерирует спецификации API, схемы баз данных, диаграммы связей и план масштабирования.
Какие форматы API поддерживает скилл?
Скилл содержит справочники по проектированию REST, GraphQL и gRPC. В результат входят спецификации в формате OpenAPI или схемы контрактов.
Исходный текст
SKILL.md · MIT
--- name: backend-design description: Designs comprehensive backend systems including RESTful APIs, microservices, database architecture, authentication/authorization, caching strategies, message queues, and scalability patterns. Produces API specifications, database schemas, architecture diagrams, and implementation guides. Use when designing backend services, APIs, data models, distributed systems, authentication flows, or when users mention backend architecture, API design, database design, microservices, or server-side development. --- # Backend Design ## Workflow Follow this systematic design process: 1. **Requirements Analysis** - Gather functional requirements (features, operations) - Define non-functional requirements (performance, scalability, availability) - Identify constraints (budget, timeline, technology, compliance) 2. **Architecture Selection** - Choose architecture pattern (monolith, microservices, serverless) - Select technology stack based on requirements - Define service boundaries and responsibilities 3. **API Design** - Design RESTful endpoints with proper resource modeling - Define request/response schemas and contracts - Plan versioning strategy and documentation - See [api-design-guide.md](references/api-design-guide.md) for REST/GraphQL/gRPC patterns 4. **Database Design** - Model entities and relationships - Design schema with normalization - Plan indexing and partitioning strategies - See [database-design.md](references/database-design.md) for relational and NoSQL patterns 5. **Security Design** - Design authentication flow (OAuth 2.0, JWT) - Plan authorization model (RBAC, ABAC) - Define data encryption and protection strategy 6. **Scalability & Performance** - Design caching strategy (Redis, CDN) - Plan load balancing and auto-scaling - Define asynchronous processing with message queues 7. **Documentation** - Create API specifications (OpenAPI/Swagger) - Document architecture decisions with Mermaid diagrams - Provide implementation guidelines and roadmap ## Output Structure Present your backend design with these sections: 1. **System Overview** - High-level architecture, components, technology stack 2. **API Specification** - Endpoints, schemas, authentication, OpenAPI docs 3. **Database Design** - ERD, schema, indexes, migration plan 4. **Architecture Decisions** - Service decomposition, communication patterns, consistency model 5. **Security Implementation** - Authentication/authorization flows, encryption 6. **Scalability Plan** - Load balancing, caching, database scaling, auto-scaling 7. **Deployment Architecture** - Containers, infrastructure, CI/CD, monitoring 8. **Implementation Roadmap** - Phases, milestones, dependencies, risks ## Core Principles - **API-first approach** - Design and document APIs before implementation - **Security by design** - Build authentication, authorization, and encryption from the start - **Design for scalability** - Plan for growth with caching, load balancing, and horizontal scaling - **Plan for failure** - Include error handling, retries, circuit breakers, and graceful degradation - **Document thoroughly** - Create clear API specs, Mermaid architecture diagrams, and implementation guides ## Reference Files Load additional resources based on specific needs: - **Detailed Design Process**: See [backend-design-process.md](references/backend-design-process.md) for comprehensive step-by-step workflow with examples for API design, database modeling, authentication flows, and microservices patterns - **API Design Guide**: See [api-design-guide.md](references/api-design-guide.md) when designing RESTful APIs, GraphQL schemas, or gRPC services - includes resource modeling, status codes, versioning strategies, and documentation - **Database Design**: See [database-design.md](references/database-design.md) for detailed guidance on relational and NoSQL database design, normalization, indexing, partitioning, and replication strategies - **Best Practices**: See [best-practices.md](references/best-practices.md) for API design, database optimization, security hardening, performance tuning, and reliability patterns - **Common Patterns**: See [common-patterns.md](references/common-patterns.md) for code examples of repository pattern, service layer, dependency injection, and other architectural patterns - **Example Projects**: See [examples.md](references/examples.md) for complete architecture examples including e-commerce systems, real-time chat applications, and microservices implementations
© DauQuangThanh · MIT · DauQuangThanh/hanoi-rainbow