microservices — Claude Code skill: what it does, how to install
Guidelines for microservices architecture with Go and FastAPI. It directs agents to apply Clean Architecture, serverless deployments, and distributed tracing.
npx skills add Mindrally/skills --skill microservices -a claude-codeWhat microservices does
The skill equips coding agents with engineering practices for Go backends and Python FastAPI services. When working with Python, it enforces asynchronous background tasks via Celery or RQ, edge input validation, and boundary-crossing correlation IDs. Distributed tracing relies on OpenTelemetry alongside Prometheus metrics.
For Go services, the instructions mandate Clean Architecture and domain-driven design. Business logic belongs exclusively in the domain layer. Handlers must stay thin. The repository layout follows a directory tree using cmd/, internal/, pkg/, api/, configs/, and test/.
Resilience rules mandate circuit breakers and exponential backoff retries. Goroutines require strict lifecycle controls, and failing to propagate context across call chains breaks graceful shutdowns.
What it helps with
- Structure Go services following Clean Architecture and domain layers
- Configure Celery or RQ workers for async processing in FastAPI
- Propagate correlation IDs and tracing with OpenTelemetry
- Implement circuit breaker patterns and exponential backoff
Example prompts for the agent
- Scaffold a Go service layout using the standard
internal/andpkg/directories - Set up OpenTelemetry tracing and structured logging for this FastAPI app
- Write table-driven unit tests with mocks for the Go domain repository
How to install microservices
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -a claude-code2Manually: put the files in place
~/.claude/skills/microservices/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/microservices/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -a codex2Manually: put the files in place
.agents/skills/microservices/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -a cursor2Manually: put the files in place
.cursor/skills/microservices/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills microservices2Manually: put the files in place
.github/skills/microservices/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path microservicesManually: put the files in place
.devin/skills/microservices/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -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
How to install microservices in Claude Code?
Run npx skills add Mindrally/skills --skill microservices -a claude-code. This command creates the skill file at ~/.claude/skills/microservices/SKILL.md.
What does the microservices skill do?
It provides architecture rules for developing services in Go and FastAPI. The instructions cover Clean Architecture separation, task queues, OpenTelemetry observability, and failure recovery.
Which project layout does this skill use for Go?
It requires an explicit directory tree dividing code into cmd/, internal/, pkg/, api/, configs/, and test/.
Source text
SKILL.md · Apache-2.0
--- name: microservices description: Guidelines for building production-grade microservices with FastAPI/Python and Go, covering serverless patterns, clean architecture, observability, and resilience. metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Microservices Development You are an expert in microservices architecture with FastAPI/Python and Go. ## Core Principles - Design stateless services with external storage and caches (Redis) - Implement API gateway patterns using NGINX, Traefik, or Kong - Use circuit breakers and retry patterns for resilience - Optimize for serverless deployment on AWS Lambda and Azure Functions ## FastAPI Python Microservices ### Asynchronous Processing - Handle asynchronous tasks with Celery or RQ - Implement proper task queuing and worker management - Design for eventual consistency in distributed systems ### Observability - Use OpenTelemetry for distributed tracing - Implement structured logging with ELK Stack integration - Set up Prometheus and Grafana for monitoring and alerting - Ensure correlation IDs propagate across service boundaries ### Security - Implement OAuth2 for authentication and authorization - Apply rate limiting and DDoS protection - Use Redis or Memcached for caching layers - Validate all inputs at service boundaries ## Go Backend Development for Microservices ### Architecture - Follow Clean Architecture pattern separating handlers, services, repositories, and domain models - Apply domain-driven design principles - Use interface-driven development with dependency injection - Keep business logic in the domain layer, not in handlers ### Project Structure ``` project/ cmd/ # Application entry points internal/ # Private application code pkg/ # Public libraries api/ # API definitions (OpenAPI, protobuf) configs/ # Configuration files test/ # Additional test utilities ``` ### Error Handling - Use explicit error handling with context wrapping - Return errors with sufficient context for debugging - Implement custom error types for domain-specific failures - Never ignore errors silently ### Concurrency - Manage goroutines safely with proper lifecycle management - Propagate context through all function calls - Use channels appropriately for communication - Implement graceful shutdown patterns ### Testing - Write comprehensive unit tests with table-driven patterns - Use mocks for external dependencies - Separate fast unit tests from integration tests - Implement end-to-end tests for critical paths ### Resilience - Implement retries with exponential backoff - Use circuit breakers to prevent cascade failures - Design for graceful degradation - Handle partial failures appropriately
© Mindrally · Apache-2.0 · Mindrally/skills