api-endpoint

Builds new API endpoints end-to-end. Use when adding routes, handlers/controllers, validation, service/action logic, response schemas/resources, and endpoint tests.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "api-endpoint" with this command: npx skills add erinrugas/artisan-agents/erinrugas-artisan-agents-api-endpoint

API Endpoint Skill

When to Apply

  • User asks to add a new API endpoint or CRUD route.
  • Existing API contract needs extension.
  • Backend changes require request validation and response contract updates.

Workflow

  1. Read project specs first: specs/specs.md, then role-specific specs as needed.
  2. Detect backend conventions from the repo (routing, controller/service patterns, validation style).
  3. Define endpoint contract before implementation:
    • Path + method
    • Auth requirements
    • Request validation
    • Response shape and error shape
  4. Implement with thin transport layer and business logic in domain/service/action classes.
  5. Add focused tests for success path, validation failure, and authorization failure.

Quality Bar

  • Keep endpoint behavior idempotent where required.
  • Avoid N+1 queries and over-fetching.
  • Return consistent JSON payloads.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

git-sync

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

git-pr

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

git-commit

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

pest-testing

No summary provided by upstream source.

Repository SourceNeeds Review