laravel-api-grpc

laravel-api-grpc is a skill for Claude Code, Codex from elmochilyas/laraskills. It costs 0 tokens per session (3,961 once invoked), scanned A, original, MIT.

A guide for building gRPC communication between Laravel 13 services. gRPC is a way for software services to exchange structured data using Protocol Buffers and HTTP/2.

In plain words
What is it for?
Use it when connecting Laravel 13 microservices, defining service messages, or building internal APIs with streaming or multiple programming languages.
Why use it?
It helps teams choose and implement service-to-service communication when REST and JSON may not fit internal, high-throughput systems. It also clarifies when REST is a better choice, such as public browser-facing APIs.

Skill for Claude CodeCodex

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

Good fit Use it when connecting Laravel 13 microservices, defining service messages, or building internal APIs with streaming or multiple programming languages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/elmochilyas/laraskills/laravel-api-grpc
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 elmochilyas/laraskills --skill laravel-api-grpc
Clone the repo
git clone --depth 1 https://github.com/elmochilyas/laraskills

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 laravel-api-grpc

README.md
[![agentmods](https://agentmods.dev/badge/skills/elmochilyas/laraskills/laravel-api-grpc/github.svg)](https://agentmods.dev/skills/elmochilyas/laraskills/laravel-api-grpc)
Your own site
<a href="https://agentmods.dev/skills/elmochilyas/laraskills/laravel-api-grpc"><img src="https://agentmods.dev/badge/skills/elmochilyas/laraskills/laravel-api-grpc/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 laravel-api-grpc

Your own site · 80×15
<a href="https://agentmods.dev/skills/elmochilyas/laraskills/laravel-api-grpc"><img src="https://agentmods.dev/badge/skills/elmochilyas/laraskills/laravel-api-grpc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.03961
Opus 5 $0.00000 $0.01980
Sonnet 5 $0.00000 $0.00792
Haiku 4.5 $0.00000 $0.00396

Measured 12d ago against content hash a9b9eebeb1bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

laravel-api-grpc scanned grade A with 0 findings 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/laravel-api-grpc/SKILL.md · 631 lines

How it starts

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

Laravel 13 gRPC — Protocol Buffers & High-Performance Microservices

When to Use

Use this skill when implementing inter-service communication in Laravel 13 microservices architectures using gRPC. gRPC uses Protocol Buffers for binary serialization and HTTP/2 for transport, offering 5-10x better performance than REST/JSON for internal service communication. Best suited for microservices, internal APIs, high-throughput systems, and real-time systems. NOT for public browser APIs — REST remains simpler for external consumers.


gRPC vs REST Decision Matrix

┌─────────────────────────────┬────────┬────────┐
│ Criteria                    │  gRPC  │  REST  │
├─────────────────────────────┼────────┼────────┤
│ Payload size                │  Small │  Large │
│ Serialization speed         │  10x   │  1x    │
│ Schema enforcement          │  Strict│  Loose │
│ HTTP version                │  HTTP/2│  HTTP  │
│ Browser support             │  No*   │  Yes   │
│ Streaming                   │  Native│  SSE   │
│ Learning curve              │  Medium│  Low   │
│ Debugging                   │  Hard  │  Easy  │
│ Code generation             │  Auto  │  Manual│
│ Multi-language              │  Native│  Ad-hoc│
└─────────────────────────────┴────────┴────────┘
* Requires gRPC-Web or proxy (Envoy)

When to Use gRPC

✓ Internal microservice communication
✓ Real-time streaming (chat, events, logs)
✓ High-throughput systems
✓ Multi-language polyglot environments
✓ Systems requiring strong type safety
✓ Low-latency, high-performance paths

When to Avoid gRPC

✗ Public browser-facing APIs
✗ Simple CRUD applications
✗ Serverless functions (cold start overhead)
✗ When debugging transparency is critical

Protocol Buffers

Defining Proto Files

// proto/user.proto
syntax = "proto3";

package user.v1;

option php_namespace = "App\\Grpc\\User\\V1";
option php_metadata_namespace = "App\\Grpc\\User\\V1\\Metadata";

service UserService {
    rpc GetUser (GetUserRequest) returns (User);
    rpc ListUsers (ListUsersRequest) returns (ListUsersResponse);
    rpc CreateUser (CreateUserRequest) returns (User);
    rpc UpdateUser (UpdateUserRequest) returns (User);
    rpc DeleteUser (DeleteUserRequest) returns (google.protobuf.Empty);

    // Server streaming
    rpc StreamUsers (ListUsersRequest) returns (stream User);

    // Bidirectional streaming
    rpc Chat (stream ChatMessage) returns (stream ChatMessage);
}

message User {
    string id = 1;
    string name = 2;
    string email = 3;
    UserRole role = 4;
    google.protobuf.Timestamp created_at = 5;
}

enum UserRole {
    USER_ROLE_UNSPECIFIED = 0;
    USER_ROLE_ADMIN = 1;
    USER_ROLE_EDITOR = 2;
    USER_ROLE_VIEWER = 3;
}

message GetUserRequest {
    string id = 1;
}

message ListUsersRequest {
    int32 page_size = 1;
    string page_token = 2;
    string filter = 3;
}

message ListUsersResponse {
    repeated User users = 1;
    string next_page_token = 2;
    int32 total_size = 3;
}

message CreateUserRequest {
    string name = 1;
    string email = 2;
    UserRole role = 3;
}

message UpdateUserRequest {
    string id = 1;
    string name = 2;
    string email = 3;
    UserRole role = 4;
}

message DeleteUserRequest {
    string id = 1;
}

message ChatMessage {
    string user_id = 1;
    string content = 2;
    int64 timestamp = 3;
}

Read the full file on GitHub · 631 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. 12d ago First seen · 631 lines · 0 tokens per session scan A a9b9eebeb1bb

Subscribe to this mod's changes

laravel-api-grpc is a skill published in the GitHub repository elmochilyas/laraskills (8 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,961 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

create-powergrid-plugin

Create a complete PowerGrid plugin from scratch, including PHP class, Column macro, Blade view, Alpine.js component, and registration.

Power-Components/livewire-powergrid · 31 tokens

owl-admin-devtools-generator

A development guide for Owl Admin, a Laravel-based administration system, covering its code generator, API templates, relationships, and visual pages.

slowlyo/owl-admin · 82 tokens

llamaindex-development

Expert guidance for LlamaIndex development including RAG applications, vector stores, document processing, query engines, and building production AI applications.

Mindrally/skills · 32 tokens

craftcms

Craft CMS 5 plugin and module development — extending Craft with PHP. Covers elements, element queries, services, models, records, controllers, migrations, queue jobs, console commands, field types, native fields, events, behaviors, Twig extensions, widgets, filesystems, permissions, project config, GraphQL, testing…

michtio/craftcms-claude-skills · 327 tokens

laravel-expert

Laravel & PHP Development Instructions for GitHub Copilot.

GulajavaMinistudio/awesome-copilot-id · 15 tokens