# Erinrugas Artisan Agents API Endpoint

> API Endpoint Skill

- Skill: `tomevault-io/erinrugas-artisan-agents-api-endpoint` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/erinrugas-artisan-agents-api-endpoint`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/erinrugas-artisan-agents-api-endpoint/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/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.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/erinrugas) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

