/major-ai-skills:consulfrom major-ai-skills
Operate HashiCorp Consul service discovery, health checks, KV (non-secrets), ACLs, and Connect intentions; keep odd-sized Raft quorums and never store passwords in KV.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Consul provides service discovery, health checking, a hierarchical KV store, and optional Connect service mesh (mTLS + intentions). Servers form a Raft quorum; client agents on nodes register services and answer DNS (*.service.consul) / HTTP catalog queries. In any shared environment treat ACLs as mandatory—bootstrap once, store the management token offline, issue least-privilege tokens to agents and sidecars. Put secrets in @vault, not Consul KV.
┌─────────────────────────────────────────────────────────────┐
│ Consul control plane │
│ │
│ Servers (3 or 5) ──Raft──► leader + replicated state │
│ ▲ gossip (LAN) / RPC │
│ Client agents on nodes │
│ ├── service + check registration │
│ ├── DNS :8600 / HTTP API catalog │
│ └── Connect: Envoy sidecars + intentions │
│ │
│ Multi-DC: WAN federation (8300/8302) + ACL replication │
└─────────────────────────────────────────────────────────────┘
Use when
@nomad.Do not use when
@kubernetes.@vault (Consul KV is for config, not secret source of truth).interval/timeout; use deregister_critical_service_after for crash-loop cleanup.@vault for credentials and dynamic secrets.web → api (etc.).primary_datacenter, enable ACL token replication on secondaries; verify /v1/acl/replication.api.service.hcl (agent config snippet style / register JSON equivalent):
{
"service": {
"name": "api",
"id": "api-1",
"port": 8080,
"tags": ["prod", "v1"],
"meta": {
"version": "1.4.2"
},
"check": {
"id": "api-http",
"name": "HTTP API health",
"http": "http://127.0.0.1:8080/healthz",
"interval": "10s",
"timeout": "2s",
"deregister_critical_service_after": "30m",
"failures_before_critical": 3
}
}
}
# Registration & discovery
consul services register api.json
consul catalog services
consul health service api -passing
dig @127.0.0.1 -p 8600 api.service.consul
# KV (non-secret config)
consul kv put apps/api/log_level info
consul kv get apps/api/log_level
consul kv export apps/api/ > api-kv-backup.json
# Connect intention (mesh)
consul intention create -allow web api
consul intention list
# Operator health
consul members
consul operator raft list-peers
consul info
ACL bootstrap (run once; store offline—do not commit):
consul acl bootstrap
# Immediately create agent/service tokens with least privilege; revoke/replace if exposed
| Signature | Likely cause | Fix path |
|---|---|---|
| Empty DNS / no instances | Checks critical or not registered | consul health service NAME; fix check URL/port |
| Split views across clients | ACL denial or stale agent | Token policy; consul members; agent logs |
| Leader election churn | Network partition / disk IOPS | raft list-peers; stabilize disk & latency |
| KV / catalog denied | Missing ACL policy | Grant least-privilege service/key rules |
| Mesh connect timeout | Missing intention or sidecar token | intention list; ensure proxy has service token |
| Secondary DC auth fails | ACL replication broken | Check primary_datacenter, replication token, /v1/acl/replication |
| WAN join fails | 8300/8302 blocked | Open RPC/WAN gossip per federation model |
| Crash-loop still in DNS | No deregister-after | Set deregister_critical_service_after |
@nomad service blocks for registration from jobspecs; @traefik can use Consul catalog as a provider.@opentelemetry).@nomad — scheduler that registers services into Consul@vault — secrets companion (not Consul KV)@traefik — edge proxy with Consul provider@terraform — provision Consul server/client fleet@docker — local Consul agent/dev containers for labs onlyMANDATORY: Use 3/5 server voters in prod; enable ACLs and least-privilege tokens. Keep passwords out of KV (
@vault). Make health checks reflect real readiness; set deregister-after for critical churn. Never invent or commit bootstrap/gossip/ACL secrets.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job