Skip to content
PluginStats

@tanstack/ai-skills weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

Portable Agent Skills (SKILL.md) as a first-class chat() middleware for TanStack AI.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-skills has 171,323 recorded weekly downloads on npm, a decrease of 11.3% over the past 30 days, ranking #549 of 3,247 tracked listings.

Weekly downloads
171,323
Official API · Dec 5, 2026
7-day growth
+1.5%
+2.5K weekly downloads
30-day growth
-11.3%
-21.9K weekly downloads
90-day growth
+9718%
+169.6K weekly downloads
Rank
#549
▼ 8 in 7 days

About @tanstack/ai-skills

<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/ai.png?theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/api/readme/ai.png" /> <img src="https://tanstack.com/api/readme/ai.png" alt="TanStack AI" width="900" /> </picture> </div> <br />

@tanstack/ai-skills

Portable Agent Skills (SKILL.md) as a first-class chat() middleware for TanStack AI

withSkills renders a short catalog of the skills you offer into the system prompt and gives the model a load_skill tool. The model reads the catalog, picks a skill, and pulls the full instructions only when it needs them — so a large skill library does not tax every request. This is the portable path: it runs on any tool-calling model, with no provider sandbox. For skills that run in a provider's own sandbox, see Provider Skills; the two do not mix in one call.

Installation

npm install @tanstack/ai-skills
# or
pnpm add @tanstack/ai-skills
# or
yarn add @tanstack/ai-skills

Usage

Define a skill and pass it to withSkills in the middleware array. The middleware handles the catalog and the load_skill tool for you.

import { chat, toServerSentEventsResponse } from '@tanstack/ai'
import { anthropicText } from '@tanstack/ai-anthropic'
import { inlineSkill, withSkills } from '@tanstack/ai-skills'

const pptx = inlineSkill({
  name: 'pptx-builder',
  description: 'Build and edit PowerPoint decks with python-pptx.',
  instructions: '# Building a deck\nUse python-pptx. Edit slides, then save.',
})

export async function POST(request: Request) {
  const { messages, threadId } = await request.json()

  const stream = chat({
    adapter: anthropicText('claude-sonnet-4-5'),
    messages,
    threadId,
    middleware: [withSkills(pptx)],
  })

  return toServerSentEventsResponse(stream)
}

Pass an array to offer several; they are sorted by name and deduped. Loading the same skill twice in one conversation returns a short "already loaded" marker instead of repeating the body.

Tuning the catalog
import { withSkills } from '@tanstack/ai-skills'
import type { SkillSource } from '@tanstack/ai-skills'

declare const sources: Array<SkillSource>

withSkills(sources, {
  // Cap the catalog so a big library doesn't tax every request.
  // Default 4000 tokens; throws if exceeded unless you supply a reducer.
  maxCatalogTokens: 4000,
  // Require a human approval before load_skill runs. Default false.
  requireApproval: true,
})

The catalog is rendered per model family — Anthropic models get the <available_skills> XML they are tuned for, everything else a plain markdown list — and you can override that with renderCatalog or an instructionTemplate.

Where skills come from

Inline skills are the quickest start, but skills usually live somewhere else. Each source is on its own entry point:

SourceImportUse when
inlineSkill(...)@tanstack/ai-skillsDefining a skill in code
skillDirectory(...)@tanstack/ai-skills/nodeWalking a folder of SKILL.md files — reads the filesystem, so server only
staticSkills(catalog)@tanstack/ai-skills/staticA build-time bundle, no filesystem at runtime (edge-safe). Pair with skillsCatalogPlugin from /node in your Vite config
Your own SkillSource—Skills in S3, a database, a registry

aggregate, dedupe, filter, cache, and combineSources compose these.

Writing your own source

Implement the SkillSource contract, then prove it with the conformance suite the package ships:

import { runSkillSourceConformance } from '@tanstack/ai-skills/testing'
import { s3Skills } from './s3-skills'
import { makeTestBucket } from './test-helpers'

runSkillSourceConformance(() => s3Skills(makeTestBucket()), 's3')

It checks the things that break in production: a missing skill throws rather than returning empty, resources load while a path like ../../etc/passwd is rejected, revision() is stable across identical content, and concurrent list() calls stay consistent. The optional parts of the contract are only checked when you implement them — the resource cases need both listResources and readResource, and the revision case needs revision — so a source that cannot represent them is skipped rather than failed. vitest is an optional peer dependency for this entry point.

Documentation

License

MIT

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • tanstack-intent
  • skills
  • agent-skills
  • skill-md
  • tool-calling
  • llm

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@tanstack/ai-skills weekly downloads on npm, last 90 days: 171,323 weekly downloads as of Dec 5, 2026, +9718% over 90 days.@tanstack/ai-skillsWeekly downloads on npm · Last 90 days171,323downloads / week+9718% over 90 days050K100K150K200K250KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@tanstack/ai-skills weekly downloads on npm, last 90 days: 171,323 weekly downloads as of Dec 5, 2026, +9718% over 90 days.

7/30/90-day growth

@tanstack/ai-skills weekly downloads growth on npm: +1.5% over 7 days, -11.3% over 30 days, +9718% over 90 days.@tanstack/ai-skillsWeekly downloads growth on npm171,323downloads / week now7-day growth+2,468 weekly downloads+1.5%30-day growth-21,864 weekly downloads-11.3%90-day growth+169,578 weekly downloads+9718%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-skills weekly downloads growth on npm: +1.5% over 7 days, -11.3% over 30 days, +9718% over 90 days.

Ranking history

@tanstack/ai-skills npm ranking history: currently #549 (by weekly downloads).@tanstack/ai-skillsnpm ranking · by weekly downloads · Last 90 days#549current rank#500#510#520#530#540#550#560#570#580Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-skills npm ranking history: currently #549 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 28, #9 (overall #549)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 2, #11 (overall #31)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for @tanstack/ai-skills
Date (UTC)Weekly downloadsChange vs. previous
171,323-11.2K
182,569-101
182,670-358
183,028+8.9K
174,160+7.1K
167,105-5.3K
172,383+3.5K
168,855+4.4K
164,450-8.9K
173,322-449
173,771-9.1K
182,894+7.9K
175,007-8.6K
183,639—

Similar npm AI SDKs plugins

All 20 @tanstack/ai-skills alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@tanstack/ai-skills. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.