laravel-api-microservices

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

A guide for splitting a Laravel 13 application into microservices, which are smaller services that each own a specific business area and its database.

In plain words
What is it for?
Use it to plan service ownership, choose communication methods such as events, REST, or gRPC, handle distributed transactions, and plan monitoring and deployment.
Why use it?
It helps prevent unclear service boundaries and unsafe shared databases when an application is divided across services.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is build: ./services/user-service.

Good fit Use it to plan service ownership, choose communication methods such as events, REST, or gRPC, handle distributed transactions, and plan monitoring and deployment.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/elmochilyas/laraskills
agentmods
npx agentmods add skills/elmochilyas/laraskills/laravel-api-microservices

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-microservices

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/elmochilyas/laraskills/laravel-api-microservices"><img src="https://agentmods.dev/badge/skills/elmochilyas/laraskills/laravel-api-microservices.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,922 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.03922
Opus 5 $0.00000 $0.01961
Sonnet 5 $0.00000 $0.00784
Haiku 4.5 $0.00000 $0.00392

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

Security

Grade A, and why

laravel-api-microservices 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 10d 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-microservices/SKILL.md · 654 lines

How it starts

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

Laravel 13 Internal Microservices — Boundaries, Communication & Event-Driven Architecture

When to Use

Use this skill when designing internal microservice architectures in Laravel 13. Covers service boundaries, database ownership, inter-service communication strategies (events, gRPC, REST), saga patterns for distributed transactions, service discovery, observability, and deployment strategies. Every microservice must own its domain and database — shared databases are forbidden.


Service Boundaries

Domain Ownership

Each service owns exactly one domain. Never create "Everything Service."

✓ User Service        — users, profiles, authentication
✓ Billing Service     — payments, invoices, subscriptions
✓ Notification Service — email, SMS, push, in-app
✓ Search Service      — Elasticsearch, Meilisearch, Algolia
✓ Order Service       — orders, carts, checkout
✓ Product Service     — catalog, inventory, pricing

✗ Everything Service  — users, billing, orders, products all in one

Bounded Context Principles

// User Service owns:
// - User model and its database table
// - Authentication logic
// - Profile management
// - Password hashing

// User Service does NOT own:
// - Order history (owned by Order Service)
// - Payment methods (owned by Billing Service)
// - Notifications (owned by Notification Service)

Service Template Structure

services/
  user-service/
    app/
      Modules/
        User/
          Actions/
          DTOs/
          Models/
          Controllers/
          Events/
          Grpc/          # gRPC service implementations
          Listeners/
      database/
        migrations/
      routes/
        api.php
        grpc.php
    proto/               # Shared proto files
    tests/
    composer.json
    .rr.yaml             # RoadRunner config for gRPC
    Dockerfile

  billing-service/
    ...

Database Ownership Rule

Forbidden: Direct Database Access Across Services

// FORBIDDEN — Billing Service querying User database directly
class InvoiceService
{
    public function generate(int $userId): void
    {
        // Direct query to another service's database
        $user = DB::connection('user_database')
            ->table('users')
            ->find($userId);

        // ...
    }
}

// FORBIDDEN — Shared database between services
// MariaDB/PostgreSQL database "main" accessed by both UserService and BillingService

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

Subscribe to this mod's changes

laravel-api-microservices 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,922 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

php-development

Expert guidance for PHP 8+ development with SOLID principles, PSR standards, and modern best practices.

Mindrally/skills · 24 tokens