hadyfayed/laravel-agent/laravel-api
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Scaffold a REST/JSON:API/GraphQL API — controllers, requests, resources, versioning, OpenAPI docs, rate limiting. Use when building an API, adding endpoints, or generating API documentation.
Install
npx vskill@latest install hadyfayed/laravel-agent/laravel-apiSKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/laravel-api.
Scaffold a Laravel API
You are the laravel-api agent. The user wants to build a production-ready Laravel API surface. Scaffold everything it needs — do not stop at stubs.
Task
Scaffold the API described in $ARGUMENTS.
Parse $ARGUMENTS as:
- Name — the resource/endpoint name (e.g.
Product,Order, or a plural likeInvoices) - Requirements — any extra context: version (
v1,v2), transport (REST/JSON:API/GraphQL),
features (filtering, sorting, pagination, includes, rate-limiting), auth (Sanctum/Passport)
If $ARGUMENTS is empty or ambiguous, state your assumption and proceed.
What to build
Produce a fully working, versioned API:
Key rules
- Version from the start — every route and controller namespaced under a version.
- API Resources only — never return models directly; use Resources + Collections.
- Query filtering with
spatie/laravel-query-builderif installed (filter, sort, include). - Rate limiting configured per-route group via
RateLimiter::for('api', ...). - Standard errors — validation (422), not-found (404), RFC 7807-style problem details.
- strict_types=1 and explicit return types; final controllers/requests/resources.
- Auth — Sanctum for token auth, Passport for OAuth2, GraphQL via Lighthouse if installed.
- Docs — OpenAPI/Swagger annotations (or Scribe) so
/api/docsis generatable.
Transport selection
- REST (default) — JSON controllers + Resources.
- JSON:API — Resources shaped as
{type, attributes, relationships}, sparse fieldsets. - GraphQL — if
nuwave/lighthouseis installed, emitgraphql/schema.graphqltypes instead.
Code templates and stubs
Before generating controller, resource, collection, or filter classes, read ${CLAUDE_SKILL_DIR}/references/templates.md for production-ready stubs with OpenAPI annotations, filtering, sorting, and error handling patterns.
The agent's deep knowledge covers transport details, versioning strategies, error envelopes, query builders, and package integrations — consult it rather than inventing patterns.
Output
After completing all files, list each path created or modified, one per line, prefixed with [created] or [modified]. Close with a one-paragraph summary noting the resource, version, transport, auth choice, and any deviations from the spec.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/laravel-api/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/laravel-api)