ai-core/structured-outputs
85 / 100 · Low risk
Fine to try.
Type-safe JSON schema responses from LLMs using outputSchema on chat() and useChat(). Supports Zod, ArkType, and Valibot schemas. The adapter handles provider-specific strategies transparently — never configure structured output at the provider level. Pass stream:true alongside outputSchema for incremental JSON deltas + a completed typed object via the `structured-output.complete` event. Each successfully completed structured-output run adds a typed `StructuredOutputPart` to message history. pa…
What this skill can do
Downloads and installs other software
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'ai-core-structured-outputs' ] || [ -L ~/.agents/skills/'ai-core-structured-outputs' ]; then echo 'A skill folder named ai-core-structured-outputs already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/TanStack/ai' "$d" && git -C "$d" checkout --quiet '975ec3ef1e3c24ba8ef2e6421278a6ac5fd55492' -- 'packages/ai/skills/ai-core/structured-outputs' && mkdir -p ~/.agents/skills && cp -R "$d"/'packages/ai/skills/ai-core/structured-outputs' ~/.agents/skills/'ai-core-structured-outputs' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'ai-core-structured-outputs' ~/.claude/skills/'ai-core-structured-outputs' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/TanStack/ai/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-11 | 975ec3e | 85 |
| 2026-11-08 | c32f641 | 85 |
| 2026-11-07 | c32f641 | 60 |