create-grpc-contract

Creates a gRPC code-first contract, server implementation, and client registration. Use when adding service-to-service synchronous communication.

ldumit/fokus2 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: create-grpc-contract
description: Creates a gRPC code-first contract, server implementation, and client registration. Use when adding service-to-service synchronous communication.
license: MIT
---

# Create gRPC Contract

Creates a complete gRPC code-first contract with server and client. No .proto files — pure C# with `protobuf-net.Grpc`.

## Steps

1. **Create the contract** — follow `workflows/Contract.md`
2. **Create the server implementation** — follow `workflows/Server.md`
3. **Register the client** in consuming services — follow `workflows/Client.md`
4. **Verify the build:** `dotnet build`

## Arguments

Pass the service contract name: `/create-grpc-contract OrderQueryService`

## Existing Contracts

| Contract | Service | Port | Location |
|----------|---------|------|----------|
| (check `src/BuildingBlocks/{ProjectName}.Grpc.Contracts/`) | | | |

## Port Conventions

Check the root CLAUDE.md Port Convention section for assigned service indices and derived ports.

More API Design skills

← All API Design skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY