npx claudepluginhub arbazkhan971/godmodeThis skill uses the workspace's default tool permissions.
references/microservices-patterns.mdDesigns and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
/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 |