This is Steve's opinionated take on building Laravel REST APIs with strict architectural boundaries. Everything is stateless, explicitly typed, and organized by resource. You get invokable controllers, form request DTOs with payload methods, single-purpose Action classes, and ULID-based models. Routes are versioned with HTTP Sunset headers baked in. The code quality section is aggressive about PSR-12, no nested ternaries, and preserving exact behavior during refactors. If you want a prescriptive pattern that eliminates decision fatigue on API structure, this locks you into a defensible convention. Good for teams that need consistency or solo devs tired of reinventing routing organization.

skills.sh installs
292
GitHub stars
31
last updated
Aug 21, 2026

Install

$ npx -y skills add juststeveking/laravel-api-skill --skill laravel-api --agent claude-code

Installs into .claude/skills of the current project.

Files

Laravel API - Steve's Architecture

Build Laravel REST APIs with clean, stateless, resource-scoped architecture.

Quick Start

When user requests a Laravel API, follow this workflow:

  1. Understand requirements - What resources? What operations? Authentication needed?
  2. Initialize project structure - Set up routing, remove frontend bloat
  3. Build first resource - Complete CRUD to establish pattern
  4. Add authentication - JWT via PHP Open Source Saver
  5. Iterate on remaining resources - Follow established pattern

Core Architecture Principles

Read references/architecture.md for comprehensive details. Key principles:

  1. Stateless by design - No hidden dependencies, explicit data flow
  2. Boundary-first - Clear separation of HTTP, business logic, data layers
  3. Resource-scoped - Routes, controllers organized by resource
  4. Version discipline - Namespace-based versioning, HTTP Sunset headers

Code Quality Standards

All code must follow Laravel best practices and PSR-12 standards:

Sponsors

Details

Repository
github.com/juststeveking/laravel-api-skill
Categories
Backend & APIs, Security, DevOps & CI/CD, Git & Pull Requests, Code Review & Quality, Design & UI/UX, PHP & Laravel
First seen
Jun 3, 2026
1patricio0312rev avatarapi-contract-normalizerpatricio0312rev/skillsGenerates CRUD REST API endpoints with request validation, TypeScript types, consistent response formats, error handling, and documentation. Includes route hand289skills.sh installs
2davila7 avatarpubchem-databasedavila7/claude-code-templatesQuery PubChem via PUG-REST API/PubChemPy (110M+ compounds). Search by name/CID/SMILES, retrieve properties, similarity/substructure searches, bioactivity, for c288skills.sh installs
3secondsky avatardatabase-shardingsecondsky/claude-skillsDatabase sharding for PostgreSQL/MySQL with hash/range/directory strategies. Use for horizontal scaling, multi-tenant isolation, billions of records, or encount277skills.sh installs
4patricio0312rev avatarbackend-latency-profiler-helperpatricio0312rev/skillsIdentifies API latency hotspots and bottlenecks with profiling tools, slow endpoint detection, suspected causes, and fix roadmap. Use for "latency profiling", "272skills.sh installs
5rmyndharis avatarbackend-architectrmyndharis/antigravity-skillsExpert backend architect specializing in scalable API design, microservices architecture, and distributed systems. Masters REST/GraphQL/gRPC APIs, event-driven 270skills.sh installs
6davila7 avataruniprot-databasedavila7/claude-code-templatesDirect REST API access to UniProt. Protein searches, FASTA retrieval, ID mapping, Swiss-Prot/TrEMBL. For Python workflows with multiple databases, prefer bioser269skills.sh installs