microservices — скилл для Claude Code: что делает и как установить
Набор правил для проектирования микросервисов на Go и FastAPI. Помогает настроить чистую архитектуру, асинхронные очереди и сквозную трассировку.
npx skills add Mindrally/skills --skill microservices -a claude-codeЧто делает microservices
Скилл задаёт стандарты микросервисов для Go и FastAPI на Python. Для Python-сервисов фокус сделан на фоновой обработке через Celery или RQ. Мониторинг строится через OpenTelemetry, Prometheus и ELK Stack. Идентификаторы корреляции пробрасываются через границы сервисов для сквозного отслеживания запросов.
В Go-проектах агент соблюдает принципы Clean Architecture. Бизнес-логика остаётся строго в доменном слое. Обработчики остаются тонкими. Для структуры репозитория скилл задаёт каталоги cmd/, internal/, pkg/, api/, configs/ и test/.
В правилах зафиксированы повторные запросы с экспоненциальной задержкой и circuit breaker. Ошибки в Go никогда не игнорируются молча, а оборачиваются контекстом. Без передачи context.Context через цепочку вызовов graceful shutdown просто не сработает.
Какие задачи решает
- Разделить слои Go-сервиса по правилам Clean Architecture
- Настроить фоновые очереди задач в FastAPI через Celery или RQ
- Внедрить распределённую трассировку с помощью OpenTelemetry
- Реализовать circuit breaker и повторные запросы с экспоненциальной задержкой
Примеры запросов агенту
- Разверни структуру каталогов для нового сервиса на Go с учётом
internal/иpkg/ - Добавь в сервис на FastAPI сквозную трассировку с OpenTelemetry и проброс correlation ID
- Напиши табличные тесты с моками для слоя репозитория в Go
Как установить microservices
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -a claude-code2Вручную: положить файлы
~/.claude/skills/microservices/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/microservices/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -a codex2Вручную: положить файлы
.agents/skills/microservices/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -a cursor2Вручную: положить файлы
.cursor/skills/microservices/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills microservices2Вручную: положить файлы
.github/skills/microservices/SKILL.md1Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -a gemini-cli2Командой платформы
gemini skills install https://github.com/Mindrally/skills --path microservicesВручную: положить файлы
.devin/skills/microservices/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add Mindrally/skills --skill microservices -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о microservices
Как установить microservices в Claude Code?
Выполните команду npx skills add Mindrally/skills --skill microservices -a claude-code. Конфигурация запишется в ~/.claude/skills/microservices/SKILL.md.
Что делает скилл microservices?
Он передаёт ИИ-ассистенту инженерные правила для микросервисов на Go и FastAPI. В них входят шаблоны Clean Architecture, наблюдаемость через Prometheus и OpenTelemetry, а также обработка сбоев.
Какую структуру проекта задаёт скилл для Go?
Скилл распределяет код по директориям cmd/ для точек входа, internal/ для приватного кода, pkg/ для библиотек, а также api/, configs/ и test/.
Исходный текст
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