Implements dynamic service registry, health check monitoring, and client-side load balancing for cloud-native microservices. Replaces hardcoded URLs with a living topology.
Ships in all-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.
None: SKILL.md is the whole skill.
Part of Agent Skills™ by googleadsagent.ai™
Service Discovery implements dynamic service registry, health check monitoring, and intelligent load balancing patterns inspired by Nacos for cloud-native applications. Services register themselves on startup, announce their capabilities and health status, and are discovered by consumers without hardcoded addresses. The registry becomes the single source of truth for the service topology.
In microservice and edge-distributed architectures, services are ephemeral. Instances scale up and down, deploy across regions, and fail independently. Hardcoded service URLs create brittle coupling that breaks under any topology change. Service discovery replaces static configuration with a living registry that reflects the actual state of the system at any moment.
This skill covers three complementary patterns: self-registration (services announce themselves), health checking (the registry verifies liveness), and client-side discovery (consumers query the registry and select instances). Together, these patterns enable zero-downtime deployments, automatic failover, and region-aware routing without manual configuration changes.
sequenceDiagram
participant S as Service Instance
participant R as Service Registry
participant C as Consumer
participant H as Health Checker
S->>R: Register(name, address, metadata)
R->>R: Store in registry
loop Every 10s
H->>S: Health check (HTTP/TCP)
S->>H: 200 OK / Healthy
H->>R: Update health status
end
C->>R: Discover("payment-service")
R->>C: [instance-1:8080, instance-2:8080]
C->>C: Select instance (round-robin/weighted)
C->>S: Send request to selected instance
Services register on startup and deregister on shutdown. The health checker continuously verifies liveness. Consumers query the registry and apply a load-balancing strategy to select an instance.
interface ServiceInstance {
id: string;
name: string;
address: string;
port: number;
metadata: Record<string, string>;
health: "healthy" | "degraded" | "unhealthy";
lastHeartbeat: number;
}
class ServiceRegistry {
private instances = new Map<string, ServiceInstance[]>();
register(instance: ServiceInstance): void {
const existing = this.instances.get(instance.name) ?? [];
existing.push({ ...instance, lastHeartbeat: Date.now() });
this.instances.set(instance.name, existing);
}
deregister(serviceName: string, instanceId: string): void {
const existing = this.instances.get(serviceName) ?? [];
this.instances.set(
serviceName,
existing.filter(i => i.id !== instanceId)
);
}
discover(serviceName: string): ServiceInstance[] {
const instances = this.instances.get(serviceName) ?? [];
return instances.filter(i => i.health === "healthy");
}
heartbeat(serviceName: string, instanceId: string): void {
const instances = this.instances.get(serviceName) ?? [];
const instance = instances.find(i => i.id === instanceId);
if (instance) instance.lastHeartbeat = Date.now();
}
pruneStale(maxAgeMs: number = 30_000): void {
const cutoff = Date.now() - maxAgeMs;
for (const [name, instances] of this.instances) {
this.instances.set(
name,
instances.filter(i => i.lastHeartbeat > cutoff)
);
}
}
}
function loadBalance(instances: ServiceInstance[]): ServiceInstance {
const weights = instances.map(i =>
i.health === "healthy" ? 100 : i.health === "degraded" ? 25 : 0
);
const totalWeight = weights.reduce((sum, w) => sum + w, 0);
let random = Math.random() * totalWeight;
for (let i = 0; i < instances.length; i++) {
random -= weights[i];
if (random <= 0) return instances[i];
}
return instances[0];
}
| Platform | Support | Notes |
|---|---|---|
| Cursor | Full | Config + code generation |
| VS Code | Full | Microservice tooling |
| Windsurf | Full | Cloud-native support |
| Claude Code | Full | Architecture guidance |
| Cline | Full | Service scaffolding |
| aider | Partial | Code-level support only |
service-discovery nacos health-check load-balancing microservices registry cloud-native dynamic-routing
© 2026 googleadsagent.ai™ | Agent Skills™ | MIT License
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
service-registry, health-checks, load-balancing, microservices, nacos
/all-skills:service-discoveryfrom all-skills
npx claudepluginhub itallstartedwithaidea/agent-skills --plugin all-skills73 skills in this plugin
/ad-copy-generationThe Ad Copy Generation skill produces high-performance responsive search ad (RSA) copy using AI-driven generation pipelines calibrated against millions of ad performance data points./adversarial-resilienceAdversarial Resilience is the practice of hardening AI agents against deliberate attacks — prompt injection, data exfiltration, sandbox escape, and unauthorized capability escalation./agent-instinct-systemThe Agent Instinct System implements pre-cognitive reflexes — automatic safety checks and validations that fire before every code change, tool call, or output generation.Other plugins' skills for the same job
2 plugins ship this exact skill · first indexed Jul 18, 2026