microservices-architecture — Claude Code skill: what it does
Guides AI coding assistants through microservice design, service boundaries, and distributed messaging. Helps break apart monoliths into isolated services.
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a claude-codeWhat microservices-architecture does
This skill provides architecture instructions for breaking monolithic software into autonomous services. It walks the assistant through defining bounded contexts, setting up API gateways, handling service discovery, and configuring Istio service meshes.
The guidelines enforce asynchronous messaging, request tracing with correlation IDs, health checks, and circuit breakers. Each service must keep its own database. Sharing a single database across services is treated as an architectural violation.
Distributed transactions like two-phase commits are discouraged due to latency and failure risks. Instead, the rules instruct the assistant to design idempotent operations and plan for partial network failures from the start.
What it helps with
- split monolithic systems into decoupled domain services
- set up API gateways and Istio service mesh routing
- design asynchronous communication between distributed services
- maintain data consistency without two-phase commit transactions
Example prompts for the agent
- Split this monolith into bounded contexts with dedicated databases for each service.
- Design an asynchronous event flow between the order and payment services.
- Configure an API gateway with circuit breaker patterns for backend microservices.
How to install microservices-architecture
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a claude-code2Manually: put the files in place
~/.claude/skills/microservices-architecture/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/microservices-architecture/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a codex2Manually: put the files in place
.agents/skills/microservices-architecture/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a cursor2Manually: put the files in place
.cursor/skills/microservices-architecture/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts microservices-architecture2Manually: put the files in place
.github/skills/microservices-architecture/SKILL.md1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a gemini-cli2Platform CLI
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/microservices-architectureManually: put the files in place
.devin/skills/microservices-architecture/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about microservices-architecture
How to install microservices-architecture in Claude Code?
Run npx skills add aj-geddes/useful-ai-prompts --skill microservices-architecture -a claude-code in your project terminal.
What does the microservices-architecture skill do?
It provides architectural rules for structuring microservices, defining service boundaries, and implementing distributed system patterns.
Does this skill allow shared databases across services?
No. The rules enforce a database-per-service pattern and treat shared databases as an anti-pattern.
Source text
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