Skip to content
Back to skills

References

ASecurity

API Reference for uploadSkill.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentsapidocumentation

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add joeblackwaslike/agent-skills --skill references --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of References?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for References
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joeblackwaslike-references-758ab4fd/badge)](https://www.skillsdirectory.com/skills/joeblackwaslike-references-758ab4fd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
title: uploadSkill
description: API Reference for uploadSkill.
url: "https://ai-sdk.dev/docs/reference/ai-sdk-core/upload-skill"
docs_index: /llms.txt
source: "https://ai-sdk.dev/docs/reference/ai-sdk-core/upload-skill.md"
fetched_at: "2026-10-26T09:52:56.075Z"
sha256: "c7cd73714304a3bab01d548c8dddb42b1ce6c56dbd5dfef072063bed3a9e2210"
---

> For an index of all documentation, see [/llms.txt](/llms.txt).

Uploads a skill (a bundle of files) to a provider and returns a result whose `providerReference` (a `ProviderReference`) can be used in subsequent inference calls.

```ts
import { uploadSkill } from 'ai';
import { anthropic } from '@ai-sdk/anthropic';
import { readFileSync } from 'fs';

const { providerReference } = await uploadSkill({
  api: anthropic.skills(),
  files: [
    {
      path: 'my-skill/SKILL.md',
      data: readFileSync('./SKILL.md'),
    },
  ],
  displayTitle: 'My Skill',
});
```

## Import

```
import { uploadSkill } from "ai"
```

## API Signature

### Parameters

- `api` (`SkillsV4 | ProviderV4`): The skills API interface to use for uploading. Can be a \`SkillsV4\` instance (e.g. \`anthropic.skills()\`) or a provider instance directly (e.g. \`anthropic\`), in which case \`.skills()\` is called automatically.
- `files` (`UploadSkillFile[]`): The files that make up the skill. Each file must have a relative \`path\` and \`data\`. The \`data\` can be a string, a \`Uint8Array\`, or an object with \`type: 'text'\` and a string \`text\` value, or \`type: 'data'\` and a string \`data\` value.
- `displayTitle?` (`string`): Human-readable title for the skill.
- `providerOptions?` (`ProviderOptions`): Additional provider-specific options.

### Returns

- `providerReference` (`ProviderReference`): A \`Record\<string, string>\` mapping provider names to provider-specific skill identifiers. Pass this when referencing the skill in inference calls.
- `displayTitle?` (`string`): Human-readable title returned by the provider (if supported).
- `name?` (`string`): Skill name inferred by the provider from the uploaded files.
- `description?` (`string`): Skill description inferred by the provider from the uploaded files.
- `latestVersion?` (`string`): Latest version identifier assigned by the provider.
- `providerMetadata?` (`ProviderMetadata`): Additional provider-specific metadata returned from the upload.
- `warnings` (`Warning[]`): Warnings from the provider (e.g. unsupported settings).

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)

Files in this skill

  • cookbook__api-servers.md6.2 KB
  • cookbook__api-servers__express.md3.7 KB
  • cookbook__api-servers__fastify.md3.8 KB
  • cookbook__api-servers__hono.md3.9 KB
  • cookbook__api-servers__nest.md3.9 KB
  • cookbook__api-servers__node-http-server.md3.9 KB
  • cookbook__guides.md2.9 KB
  • cookbook__guides__agent-context-compaction.md5.7 KB
  • cookbook__guides__agent-skills.md10.3 KB
  • cookbook__guides__claude-4.md10.7 KB
  • cookbook__guides__computer-use.md10.6 KB
  • cookbook__guides__custom-memory-tool.md20.8 KB
  • cookbook__guides__deepseek-v3-2.md9.3 KB
  • cookbook__guides__gemini.md9.1 KB
  • cookbook__guides__google-gemini-image-generation.md4 KB
  • cookbook__guides__gpt-5.md11.9 KB
  • cookbook__guides__llama-3_1.md19 KB
  • cookbook__guides__multi-modal-chatbot.md13.8 KB
  • cookbook__guides__natural-language-postgres.md27.7 KB
  • cookbook__guides__o1.md11.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.