add-service-client

Automate gRPC client implementation for Go microservices with Kratos and Wire.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/vesviet/microservices-agent-skills --skill add-service-client
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-service-client
Source: https://github.com/vesviet/microservices-agent-skills/tree/main/skills/add-service-client
Command: npx skills add https://github.com/vesviet/microservices-agent-skills --skill add-service-client

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables seamless and robust communication between different microservices within the platform, ensuring efficient data exchange and business logic execution.

Core Features & Use Cases

  • gRPC Client Implementation: Generates the necessary Go code to establish gRPC connections.
  • Service Discovery Integration: Leverages Kubernetes DNS for locating target services.
  • Resilience Patterns: Incorporates circuit breakers, keepalives, and compression for reliable communication.
  • Use Case: When your order-service needs to fetch product details from the catalog-service, this skill will add the required gRPC client to order-service.

Quick Start

Add a gRPC client to the 'order' service to communicate with the 'catalog' service.

Frequently Asked Questions about add-service-client

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a gRPC client for inter-service communication in Go microservices?

Adding a gRPC client for inter-service communication involves defining client interfaces, implementing gRPC logic, and configuring dependency injection via Wire. This automates service-to-service calls within your Go microservices architecture.

What is the best way to connect microservices using the Kratos framework?

The best way to connect microservices using the Kratos framework is by generating gRPC client implementations. This method integrates service discovery via Kubernetes DNS and adds resilience mechanisms like circuit breakers for reliable calls.

Does gRPC client implementation in Kratos include service discovery and circuit breakers?

Yes, gRPC client implementation in Kratos includes service discovery and circuit breakers. It leverages Kubernetes DNS for locating target services and incorporates keepalives and compression for robust communication.

How do I configure dependency injection with Wire for a new gRPC client?

To configure dependency injection with Wire for a new gRPC client, you define the necessary client interfaces and implement the gRPC logic. The Skill automates this setup to facilitate seamless service-to-service calls.

Can I use Kubernetes DNS for service discovery when adding a gRPC client in Go?

Yes, you can use Kubernetes DNS for service discovery when adding a gRPC client in Go. The generated client implementation leverages Kubernetes DNS specifically for locating target services within your microservices environment.

What resilience patterns are applied when establishing gRPC connections in Go microservices?

Resilience patterns applied when establishing gRPC connections include circuit breakers, keepalives, and compression. These mechanisms ensure reliable data exchange and robust business logic execution between services.