ai-infrastructure-hugg…
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming,…
Specification frameworks for features that call a model — approach tier, model pinning, output contracts, budgets, failure modes and eval design. Load when a spec touches model calls, prompts, retrieval, tool calling, agent loops or evals.
Claude Code
$ npx -y skills add agents-inc/skills --skill meta-planning-ai-planning --agent claude-code
Codex
$ npx skills add agents-inc/skills --skill meta-planning-ai-planning -a codex -y
Cursor
$ npx skills add agents-inc/skills --skill meta-planning-ai-planning -a cursor -y
Gemini CLI
$ npx skills add agents-inc/skills --skill meta-planning-ai-planning -a gemini-cli -y
GitHub Copilot
$ npx skills add agents-inc/skills --skill meta-planning-ai-planning -a github-copilot -y
OpenCode
$ npx skills add agents-inc/skills --skill meta-planning-ai-planning -a opencode -y
Windsurf
$ npx skills add agents-inc/skills --skill meta-planning-ai-planning -a windsurf -y
name: meta-planning-ai-planning description: Specification frameworks for features that call a model — approach tier, model pinning, output contracts, budgets, failure modes and eval design. Load when a spec touches model calls, prompts, retrieval, tool calling, agent loops or evals.
> **Quick Guide:** Default to the lowest tier that meets the requirement — most features are one well-built call — and name the requirement behind every tier above it. Pin the model id, give every output a contract the code checks on receipt, state budgets in tokens and money, give each failure the feature can hit a row, and fix eval thresholds before the first run. Two provider facts shape the answers: a schema-constrained output mode guarantees shape only for a response that completed and was not refused, so the contract's remaining work is truncation, refusals and values; and reasoning tokens bill as output and count against the output ceiling, so a ceiling sized for the visible answer can run out before one appears.
**Detailed Resources:**
---
A section belongs in the spec only when the feature has its artifact; one filled in for completeness reads to the implementer as something to build.
---
<critical_requirements>
**Name the requirement that rules out the simpler tier before specifying a chain, retrieval or a loop.** Each tier up adds cost, latency and failure rows, and a known step sequence run as a loop buys non-determinism and no capability.
**Pin the model id in configuration, name its fallback, and list what forces a re-eval.** A floating alias changes quality with no deploy, and a fallback nobody named becomes an unhandled exception on the first 5xx.
**Give every model output a contract — mechanism, schema, the validation that runs on receipt, and a repair-or-reject rule.** Provider-side enforcement covers shape for a completed, unrefused response and nothing more, so truncation, refusals and wrong values reach the consumer unless the spec stops them.
**State budgets as numbers, counting reasoning tokens as output and cached input at its cached rate.** An adjective cannot be implemented or reviewed, and a cost line that leaves out either is wrong — low without the reasoning, high without the cache.
**Mark every untrusted input and bound what it can reach.** Delimiting lowers the odds that an injected instruction is followed without preventing it, so the prompt gets adversarial eval cases and its tools get only the access the task needs.
</critical_requirements>
---
**Auto-detection:** AI feature spec, LLM feature spec, model selection, pinned model id, model fallback, prompt version, system prompt, untrusted input, prompt injection, structured output contract, repair or reject, refusal handling, token budget, reasoning tokens, prompt caching, retrieval design, chunk size, re-ranking, tool contract, agent loop, step budget, eval plan, eval threshold, LLM-as-judge
**Applies to:**
**Handled elsewhere:**
---
<philosophy>
**Non-determinism is the material; contracts are what make it buildable.** A model's output cannot be trusted by construction, so every boundary — schema, budget, failure behaviour, eval threshold — is decided in the spec, or production decides it implicitly.
</philosophy>
---
<decision_framework>
Two independent qu
The official skills marketplace for Agents Inc. 230+ 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?
Hugging Face Inference SDK patterns for TypeScript/Node.js — InferenceClient setup, chat completion, text generation, streaming,…
LiteLLM proxy server setup, TypeScript client patterns via OpenAI SDK, model routing, fallbacks, load balancing, spend tracking,…
Serverless GPU compute platform for AI model deployment — web endpoints, GPU functions, model serving, and TypeScript client…
Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output,…
Replicate SDK patterns for TypeScript/Node.js -- client setup, predictions, streaming, webhooks, file handling, model versioning,…
Together AI SDK patterns for TypeScript — client setup, chat completions, streaming, structured output, function calling,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.