ai-infrastructure-hugg…
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming, embeddings, image generation,…
Backend specification planning frameworks. Use when a spec touches API endpoints, database schema, middleware, or auth. Covers endpoint contracts with request/response shapes, error catalogs, auth per endpoint, schema design with constraints and indexes, migration strategy, and
$ npx -y skills add agents-inc/skills --skill meta-planning-api-planning --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/meta-planning-api-planningContext preview
The summary Claude sees to decide when to auto-load this skill.
Backend specification planning frameworks. Use when a spec touches API endpoints, database schema, middleware, or auth. Covers endpoint contracts with request/response shapes, error catalogs, auth per endpoint, schema design with constraints and indexes, migration strategy, and
name: meta-planning-api-planning description: Backend specification planning frameworks. Use when a spec touches API endpoints, database schema, middleware, or auth. Covers endpoint contracts with request/response shapes, error catalogs, auth per endpoint, schema design with constraints and indexes, migration strategy, and middleware pipeline ordering.
> **Quick Guide:** Specify every endpoint as a complete contract — method, path, auth requirement, request shape, success response, and an error catalog with a status per condition. Specify schema as exact columns with constraints, relationships, indexes, and a migration strategy. Order the middleware pipeline explicitly. Apply a framework only when the spec touches its artifact class — an endpoint-only change needs no schema section.
---
<critical_requirements>
> **All specifications must be grounded in the codebase's real routes, schemas, and middleware** — reference specific files with line numbers
**(You MUST give every endpoint a complete contract: method, path, auth requirement, request shape, success response shape, and an error catalog)**
**(You MUST state the auth requirement per endpoint — which middleware, which permission — never "endpoints should be protected")**
**(You MUST specify schema as exact columns with types, constraints, relationships, indexes, and a migration strategy)**
**(You MUST catalog error responses per endpoint — a status code per condition with its response body shape)**
**(You MUST apply each framework only when the spec touches its artifact class — an unused section is omitted, never filled)**
</critical_requirements>
---
**Auto-detection:** API spec, endpoint design, REST contract, request response shape, database schema spec, migration plan, middleware ordering, auth requirements, error catalog
**When to use:**
**When NOT to use:**
**Key patterns covered:**
**Detailed Resources:**
---
<philosophy>
**An API contract is a promise to consumers you cannot see.** Frontends, other services, and external clients all code against the shapes and status codes the spec defines. An ambiguous contract does not stay ambiguous — it gets resolved differently by the implementer and each consumer.
**When specifying backend work:**
**When NOT to specify:**
**Core principles:**
</philosophy>
---
<patterns>
Every endpoint the spec introduces or changes carries all six parts.
## Endpoint Contract For EACH endpoint: - [ ] Method and exact path, with path parameters named (`GET /api/v1/users/:userId`) - [ ] Auth requirement: middleware name + permission/role, or explicitly public - [ ] Rate limit, or explicitly none - [ ] Request shape: every parameter with location (path/query/body), type, required flag, constraints - [ ] Success response: status code and exact body shape with field types - [ ] Error catalog: a row per condition (see Pattern 3)
BAD: "Create an endpoint for user management"
GOOD: "GET /api/v1/users — paginated list with cursor-based pagination following
routes/jobs.ts:45-67. Response shape matches JobListResponse."**Why this matters:** each missing part becomes an invention. An invented pagination style or response envelope diverges from the codebase's own, and consumers inherit the inconsistency permanently.
---
State the requirement per endpoint, naming real middleware.
BAD: "Endpoints should be protected"
GOOD: "GET /api/v1/users requires authMiddleware. DELETE /api/v1/users/:id requires
authMiddleware + adminGuard.The official skills marketplace for Agents Inc. 150+ skills covering everything from React and Prisma to Redis, ElevenLabs, and infrastructure tooling. Pick the skills that match your stack and install them via Claude Code. Need more control?
Repo: agents-inc/skills
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming, embeddings, image generation,…
LiteLLM proxy server setup, TypeScript client patterns via OpenAI SDK, model routing, fallbacks, load balancing, spend tracking, virtual keys, and production…
Serverless GPU compute platform for AI model deployment — web endpoints, GPU functions, model serving, and TypeScript client patterns
Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output, model management, and…
Replicate SDK patterns for TypeScript/Node.js -- client setup, predictions, streaming, webhooks, file handling, model versioning, deployments, and training
Together AI SDK patterns for TypeScript — client setup, chat completions, streaming, structured output, function calling, embeddings, image generation,…