用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/arbazkhan971/godmode --skill micro命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | micro |
| description | Microservices design and management. |
/godmode:micro, "design microservices"find . -name "docker-compose*" -o -name "*.proto" \
| head -10
grep -r "microservices\|grpc\|moleculer" \
package.json 2>/dev/null
Architecture: Monolith | Modular Monolith | Microservices
Team Structure: <teams, ownership>
Scale: <request volume, data volume>
Data Stores: <databases, caches, brokers>
Domain-driven bounded contexts. Each service owns its data exclusively. Decompose by business capability (not technical layer).
IF two services need strong consistency: they belong together. IF greenfield: start with modular monolith.
DECISION: Need immediate response -> sync (REST/gRPC). Fire-and-forget/fan-out -> async (events).
K8s DNS: <svc>.<ns>.svc.cluster.local.
LB: Round Robin (homogeneous), Least Request
(variable latency), Consistent Hash (sticky).
Every step MUST have compensating action (idempotent). Persist saga state. Use correlation IDs. Set timeouts.
Circuit Breaker (5 consecutive 5xx, 30s half-open), Timeout (3s default), Retry (3x exponential+jitter), Bulkhead (10 concurrent per svc), Rate Limit, Fallback.
IF service boundary violation detected: flag for review. WHEN circular dependency found: split service.
Single bounded context per service, no shared DBs, single team ownership, async where possible, circuit breakers on sync calls, saga for distributed txns.
Append .godmode/micro-results.tsv:
timestamp services_count communication saga_pattern mesh status
KEEP if: contract tests pass AND circuit breakers work
AND no cascading failures.
DISCARD if: contract broken OR cascading failure
OR service discovery fails.
STOP when ALL of:
- All boundaries defined with clear contracts
- Circuit breakers on all inter-service calls
- Contract tests passing in CI
On failure: git reset --hard HEAD~1. Never pause.
| Failure | Action |
|---|---|
| Cascading failure | Add circuit breakers, bulkhead |
| Saga fails mid-way | Compensate reverse, verify idempotency |
| Discovery not resolving | Check DNS, retry with backoff |
| Circular dependency | Extract shared or use events |