From backend-dev
Design REST or GraphQL API endpoints with request/response schemas, validation, auth, and error handling
npx claudepluginhub silviaare95/xari-plugins --plugin backend-devThis skill uses the workspace's default tool permissions.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Designs scalable batch/streaming data pipelines, warehouses, lakehouses using Spark, dbt, Airflow, Kafka/Flink, and cloud platforms like Snowflake, BigQuery, Databricks.
Builds production Apache Airflow DAGs using best practices for operators, sensors, testing, and deployment. For data pipelines, workflow orchestration, and batch jobs.
Design the API for: $0
Style: $1 (default: REST)
Identify resources — What entities does this API manage? Map out the nouns.
Define endpoints — For each resource:
Validation rules — Define Zod schemas for request validation:
Error responses — Define the error contract:
Write implementation skeleton — Produce the actual route handler code with:
For each endpoint, produce:
## <METHOD> <path>
**Auth**: <public | authenticated | admin>
**Description**: <what it does>
### Request
| Field | Type | Required | Validation |
|-------|------|----------|------------|
| ... | ... | ... | ... |
### Response (200)
```json
{ "shape": "example" }
| Status | Code | When |
|---|---|---|
| 400 | VALIDATION_ERROR | Invalid input |
| 401 | UNAUTHORIZED | Missing/invalid token |
| 404 | NOT_FOUND | Resource doesn't exist |
Then produce the implementation code (TypeScript, Next.js App Router by default).
## Constraints
- Use Zod for all request validation
- Always return proper HTTP status codes
- Never expose internal error details to clients
- Use consistent error response shape across all endpoints
- Prefer pagination for list endpoints (cursor-based over offset)