skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
blockmatic/basilic-skills224 installs

ai-sdk-core-v7

Build backend AI with Vercel AI SDK v7 — generateText, streamText, ToolLoopAgent, tools. Use when implementing AI SDK v7 or troubleshooting AI errors. Never write AI SDK from memory.

How do I install this agent skill?

npx skills add https://github.com/blockmatic/basilic-skills --skill ai-sdk-core-v7
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides templates and guidelines for using the Vercel AI SDK v7. It includes security best practices for handling LLM system prompts and messages to prevent prompt injection and implements defensive tool patterns.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Skill: ai-sdk-core

Scope

  • Applies to: Backend AI with Vercel AI SDK v7 (ai package)
  • Does NOT cover: React chat UIs (see ai-sdk-ui)

Assumptions

Principles

  • generateText / streamText for request handlers and one-shot API routes; instructions for system-style prompt
  • Request-handler tool loops: stopWhen: isStepCount(n) on generateText / streamText — not maxSteps, not stepCountIs
  • ToolLoopAgent + generate() / stream() for durable agents — not hand-rolled loops, not new Agent()
  • UI streams: createUIMessageStreamResponse + toUIMessageStream({ stream: result.stream }) from 'ai'. Use these for new handlers and for dedicated stream/SDK updates
  • result.toUIMessageStreamResponse() still works in v7 (deprecated). Leave it only when the task is unrelated to streaming or the SDK
  • Tool results must be JSON-serializable (no Date)
  • System prompt lives in instructions. Client messages must not include { role: 'system' } unless the server fully trusts the payload

Constraints

MUST

  • Read bundled docs before writing calls
  • convertToModelMessages when the client sends UI messages
  • Reject untrusted { role: 'system' } in messages. Do not set allowSystemInMessages: true for client-supplied chat

AVOID

  • toDataStreamResponse / pipeDataStreamToResponse
  • stepCountIs / maxSteps / result.fullStream / top-level system: (use isStepCount, result.stream, instructions)
  • Guessing model IDs

Interactions

Templates

References

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/blockmatic/basilic-skills/ai-sdk-core-v7">View ai-sdk-core-v7 on skillZs</a>