Skip to content
mcp/skillhub

Agent Skill

Add Harness Package skill

add-harness-packagevercel/aiskills/add-harness-package/SKILL.md

Guide for adding new AI SDK harness packages. Use when creating a new @ai-sdk/harness-<name> package that adapts a coding-agent runtime to HarnessV1.

27k

always on

41 tokname + description

once used

2,881 tokSKILL.md body

bundled files

14 KB

repo stars

27kGitHub

Install the Add Harness Package skill

Skills CLI (Claude Code, Codex, Cursor and others)

npx skills add https://github.com/vercel/ai --skill add-harness-package

Claude Code, by hand (all projects)

git clone --depth 1 https://github.com/vercel/ai.git /tmp/ai
mkdir -p ~/.claude/skills
cp -R /tmp/ai/skills/add-harness-package ~/.claude/skills/add-harness-package

For one project only, copy the folder into .claude/skills/ in that project instead. The agent picks it up when a task matches its description.

What it costs your context

Agent Skills load in three steps. Tokens counted with the o200k tokenizer; your model's count will differ a little.

WhenWhat loadsCost
Every sessionName and description41 tok
When the agent uses itThe SKILL.md instructions2,881 tok
Only if opened1 bundled files (4 KB)varies

Until it is used, add-harness-package costs about 33× less than the median MCP server we measured (1,362 tokens on every turn). Installing all 14 skills from vercel/ai would load 683 tokens of descriptions. Skills vs MCP study

Checks

Our checks found nothing to flag: it follows the Agent Skills specification's naming and size guidelines and doesn't pipe downloads into a shell.

Checked 2026-10-22 · method

What's inside

The headings of its SKILL.md. Read the full file on GitHub.

  • Adding a New Harness Package
  • First-Party vs Third-Party Harnesses
  • Reference Example
  • Harness Architecture
  • Step-by-Step Guide
  • 1. Create Package Structure
  • 2. Configure package.json
  • 3. Create TypeScript, Build, and Test Configs
  • 4. Implement the Harness Adapter
  • 5. Implement Runtime-Specific Concerns
  • 6. Write Tests
  • 7. Add README
  • 8. Add Examples
  • 9. Add Documentation
  • 10. Update References and Validate
  • Checklist
  • Related Documentation

More skills from vercel/ai

All skills in this repo
  1. ai-sdkvercel/ai

    Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

    65k155 tok idle · 1,188 in use
  2. Guide for adding new AI function examples, for testing specific features against the actual provider APIs.

    27k23 tok idle · 152 in use
  3. Guide for adding first-party AI provider packages to the AI SDK. Use when creating a provider package under packages/ to integrate an external AI service.

    27k33 tok idle · 2,502 in use
  4. adr-skillvercel/ai

    Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept/reject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.

    27k389 tok idle · 3,701 in use
  5. Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples/ai-functions/src to validate provider support, demonstrate features, or create test fixtures.

    27k40 tok idle · 1,662 in use
  6. List the contents of an npm package tarball before publishing. Use when the user wants to see what files are included in an npm bundle, verify package contents, or debug npm publish issues.

    27k144 tok idle · 195 in use
  7. Context for working on the next AI SDK major release. Only use when explicitly invoked by the user (e.g. via '/major-version-mode'). Do NOT trigger autonomously based on task content.

    27k43 tok idle · 582 in use
  8. Migrate applications from AI SDK 6.x to AI SDK 7.0. Use when upgrading Vercel AI SDK packages, fixing v7 migration errors, or when the user mentions AI SDK v6, v7, upgrade, migration, breaking changes, system to instructions, fullStream, telemetry, tool context, or finalStep.

    27k79 tok idle · 1,904 in use