Claude-skill-registry Laravel API

REST and JSON API standards for modern Laravel backends.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/api-hoangnguyen0403-agent-skills-standar" ~/.claude/skills/majiayu000-claude-skill-registry-laravel-api && rm -rf "$T"
manifest: skills/data/api-hoangnguyen0403-agent-skills-standar/SKILL.md
source content

Laravel API

Priority: P1 (HIGH)

Structure

app/
└── Http/
    ├── Resources/      # Data transformation
    └── Controllers/
        └── Api/        # API specific logic

Implementation Guidelines

  • API Resources: Always use Resources/Collections for JSON formatting.
  • RESTful Actions: Follow standard naming (
    index
    ,
    store
    ,
    update
    ).
  • Auth: Use Sanctum for SPAs/Mobile or Passport for OAuth2.
  • Status Codes: Return appropriate HTTP codes (201 Created, 422 Unprocessable).
  • Versioning: Prefix routes with version tags (e.g.,
    api/v1/...
    ).
  • Rate Limiting: Configure
    RateLimiter
    to protect public endpoints.

Anti-Patterns

  • Raw Models: No raw model returns: Information leakage risk.
  • Manual JSON: No response()->create(): Use API Resources.
  • Session Auth: No sessions for APIs: Use Tokens (Sanctum).
  • Hardcoded URLs: No static links in JSON: Use HATEOAS or route names.

References