microservices-architecture — скилл для Claude Code: что делает
Помогает проектировать микросервисную архитектуру, определять границы контекстов и настраивать взаимодействие сервисов. Пригодится при распиле монолита и создании распределённых систем.
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a claude-codeЧто делает microservices-architecture
Скилл содержит правила для декомпозиции монолитных решений на изолированные сервисы. Внутри собраны указания по выделению ограниченных контекстов (Bounded Contexts), настройке шлюзов API Gateway, обнаружению сервисов и внедрению Service Mesh на базе Istio.
Архитектурный гайд ориентирует агента на асинхронный обмен событиями, применение circuit breaker, распределённую трассировку и сквозные идентификаторы запросов (correlation IDs). При проектировании хранилищ скилл требует изолировать базу данных под каждый сервис.
Связывать сервисы через общую базу данных запрещено: скилл отвергает такие схемы и блокирует распределённые транзакции вроде two-phase commit. Агенту предписано закладывать идемпотентные операции и проектировать систему с расчётом на сетевые сбои.
Какие задачи решает
- разделить монолитное приложение на независимые сервисы
- настроить обмен сообщениями и распределённую трассировку
- спроектировать API-шлюз и сервисную сетку на Istio
- организовать согласованность данных без распределённых транзакций
Примеры запросов агенту
- Помоги распилить монолит интернет-магазина на независимые сервисы с отдельными базами данных.
- Спроектируй схему взаимодействия сервисов через асинхронные события и API-шлюз.
- Предложи паттерны обеспечения согласованности данных для сервисов заказов и платежей.
Как установить microservices-architecture
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a claude-code2Вручную: положить файлы
~/.claude/skills/microservices-architecture/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/microservices-architecture/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a codex2Вручную: положить файлы
.agents/skills/microservices-architecture/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a cursor2Вручную: положить файлы
.cursor/skills/microservices-architecture/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts microservices-architecture2Вручную: положить файлы
.github/skills/microservices-architecture/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/microservices-architectureВручную: положить файлы
.devin/skills/microservices-architecture/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о microservices-architecture
Как установить microservices-architecture в Claude Code?
Запустите команду npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a claude-code в терминале проекта.
Что делает скилл microservices-architecture?
Скилл снабжает ИИ-агента правилами проектирования распределённых систем, от изоляции контекстов до настройки маршрутизации через Istio.
Каких архитектурных решений требует избегать этот скилл?
Скилл запрещает использовать общие базы данных для разных сервисов, создавать наносервисы и внедрять транзакции формата two-phase commit.
Исходный текст
SKILL.md · MIT
--- name: microservices-architecture description: > Design and implement microservices architecture including service boundaries, communication patterns, API gateways, service mesh, service discovery, and distributed system patterns. Use when building microservices, distributed systems, or service-oriented architectures. --- # Microservices Architecture ## Table of Contents - [Overview](#overview) - [When to Use](#when-to-use) - [Quick Start](#quick-start) - [Reference Guides](#reference-guides) - [Best Practices](#best-practices) ## Overview Comprehensive guide to designing, implementing, and maintaining microservices architectures. Covers service decomposition, communication patterns, data management, deployment strategies, and observability for distributed systems. ## When to Use - Designing new microservices architectures - Decomposing monolithic applications - Implementing service-to-service communication - Setting up API gateways and service mesh - Implementing service discovery - Managing distributed transactions - Designing inter-service data consistency - Scaling independent services ## Quick Start Minimal working example: ``` Bounded Contexts: ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │ Order Service │ │ User Service │ │ Payment Service │ │ │ │ │ │ │ │ - Create Order │ │ - User Profile │ │ - Process Pay │ │ - Order Status │ │ - Auth │ │ - Refund │ │ - Order History │ │ - Preferences │ │ - Transactions │ └─────────────────┘ └─────────────────┘ └─────────────────┘ ``` ## Reference Guides Detailed implementations in the `references/` directory: | Guide | Contents | |---|---| | [Service Boundary Design](references/service-boundary-design.md) | Service Boundary Design | | [Communication Patterns](references/communication-patterns.md) | Communication Patterns | | [API Gateway Pattern](references/api-gateway-pattern.md) | API Gateway Pattern | | [Service Discovery](references/service-discovery.md) | Service Discovery | | [Data Consistency Patterns](references/data-consistency-patterns.md) | Data Consistency Patterns | | [Service Mesh (Istio)](references/service-mesh-istio.md) | Service Mesh (Istio) | ## Best Practices ### ✅ DO - Design services around business capabilities - Use asynchronous communication where possible - Implement circuit breakers for resilience - Use API gateway for cross-cutting concerns - Implement distributed tracing - Use service mesh for service-to-service communication - Design for failure (chaos engineering) - Implement health checks for all services - Use correlation IDs for request tracking - Version your APIs - Implement proper monitoring and alerting - Use event-driven architecture for loose coupling - Implement idempotent operations - Use database per service pattern ### ❌ DON'T - Share databases between services - Create overly granular services (nanoservices) - Use distributed transactions (two-phase commit) - Ignore network latency and failures - Share domain models between services - Deploy all services as one unit - Hardcode service URLs - Forget to implement authentication/authorization - Use synchronous calls for long-running operations - Ignore backward compatibility - Skip monitoring and logging - Create circular dependencies between services
© aj-geddes · MIT · aj-geddes/useful-ai-prompts