consul

consul is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 37 tokens per session (1,152 once invoked), scanned A, original, MIT.

A service from HashiCorp that helps applications find one another across servers and cloud environments. It also provides secure service-to-service networking and distributed key-value configuration storage.

In plain words
What is it for?
Use it for service discovery, health checks, encrypted connections between services, traffic routing, and shared configuration across data centers.
Why use it?
It avoids hard-coding changing network addresses and helps control communication between services in a microservice system.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for service discovery, health checks, encrypted connections between services, traffic routing, and shared configuration across data centers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/g1joshi/agent-skills/consul
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add G1Joshi/Agent-Skills --skill consul
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for consul

README.md
[![agentmods](https://agentmods.dev/badge/skills/g1joshi/agent-skills/consul/github.svg)](https://agentmods.dev/skills/g1joshi/agent-skills/consul)
Your own site
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/consul"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/consul/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for consul

Your own site · 80×15
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/consul"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/consul.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,152 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01152
Opus 5.5 $0.00015 $0.00461
Sonnet 5.5 $0.00007 $0.00230
Haiku 4.5 $0.00004 $0.00115

Measured 2mo ago against content hash d62329228d66, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

consul scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://127.0.0.1:8500/v1/health/service/payment-api?passing=true | jq .
skills/devops/consul/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Consul

HashiCorp Consul is a service networking solution providing service discovery, secure service mesh with mutual TLS, dynamic traffic routing, and distributed key-value storage.

When to Use

  • Service Discovery & Health Checking: Dynamic registration and lookup of microservices across hybrid cloud networks.
  • Service Mesh & Mutual TLS (mTLS): Enforcing zero-trust encryption and authorization between microservices via Envoy sidecars.
  • Distributed Key-Value Store: Centralized runtime configuration and dynamic feature flags.
  • Multi-Datacenter Federation: Connecting and discovering services seamlessly across multiple cloud providers and regions.

Quick Start

# Service registration definition: /etc/consul.d/web.hcl
service {
  name = "web-api"
  port = 8080
  tags = ["v1", "production"]

  check {
    id       = "api-health"
    name     = "HTTP Health Check"
    http     = "http://localhost:8080/health"
    interval = "10s"
    timeout  = "2s"
  }
}

Reload Consul agent:

consul reload

Core Concepts

Declarative Service Registration with Health Checks

Registering a service with Consul agent:

# /etc/consul.d/web-service.hcl
service {
  name = "payment-api"
  id   = "payment-api-01"
  port = 8080
  tags = ["v2", "production", "traefik.enable=true"]

  meta = {
    version = "2.1.0"
    owner   = "fintech-team"
  }

  check {
    id       = "payment-api-health"
    name     = "HTTP Health Check on Port 8080"
    http     = "http://127.0.0.1:8080/healthz"
    method   = "GET"
    interval = "10s"
    timeout  = "2s"

    # Automatically deregister dead instances after 5 minutes
    deregister_critical_service_after = "5m"
  }

  connect {
    sidecar_service {}
  }
}

Service Discovery via DNS & HTTP API

Querying healthy service instances dynamically:

# Query healthy nodes via Consul DNS interface (port 8600)
dig @127.0.0.1 -p 8600 payment-api.service.consul SRV

# Query healthy instances via HTTP REST API
curl -s http://127.0.0.1:8500/v1/health/service/payment-api?passing=true | jq .

Read the full file on GitHub · 157 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +5 lines d62329228d66
  2. 2mo ago Changed · +106 lines · +19 tokens per session f74cdd072380
  3. 3mo ago First seen · 46 lines · 18 tokens per session scan A b038b8d38072

Subscribe to this mod's changes

consul is a skill published in the GitHub repository G1Joshi/Agent-Skills (16 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 1,152 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

consul compared with skills from other repositories

consul next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
consulG1Joshi/Agent-SkillsSkill162mo agoMITA37Claude Code, Codex
api-and-interface-designaddyosmani/agent-skillsSkill122k9d agoMITA49Claude Code
api-designDevelopersGlobal/ai-agent-skillsSkill2218d agoMITA34Claude Code, Codex
awesome-performance-auditkhasky/awesome-agent-skillsSkill465d agoMITA52Claude Code
awesome-error-standardskhasky/awesome-agent-skillsSkill465d agoMITA46Claude Code
awesome-api-designkhasky/awesome-agent-skillsSkill465d agoMITA40Claude Code
api-and-interface-designvinvcn/addyosmani-agent-skills-zhSkill601mo agoMITA51Claude Code