Skip to content
PluginStats

@tanstack/ai-code-mode-skills weekly downloads statistics

By tanstack (53 listings) · npm · AI SDKs

Persistent runtime skill library for TanStack AI Code Mode agents and sandboxed tool orchestration.

View on npm Fresh · Dec 6, 2026

@tanstack/ai-code-mode-skills has 1,457 recorded weekly downloads on npm, a decrease of 74.4% over the past 30 days, ranking #1973 of 3,247 tracked listings.

Weekly downloads
1,457
Official API · Dec 5, 2026
7-day growth
+45.4%
+455 weekly downloads
30-day growth
-74.4%
-4.2K weekly downloads
90-day growth
-61.3%
-2.3K weekly downloads
Rank
#1973
▲ 21 in 7 days

About @tanstack/ai-code-mode-skills

@tanstack/ai-code-mode-skills

Persistent skill library for TanStack AI Code Mode - LLM-created reusable code snippets.

Overview

The Skills System extends Code Mode with persistent, LLM-creatable reusable code snippets. Skills are TypeScript functions that the LLM can create, catalog, and invoke across sessions—enabling compounding capability over time.

Installation

pnpm add @tanstack/ai-code-mode-skills

Usage

import {
  codeModeWithSkills,
  createAlwaysTrustedStrategy,
} from '@tanstack/ai-code-mode-skills'
// Node-only file storage lives behind the `/storage` subpath so the root
// export stays safe for Worker/browser bundlers.
import { createFileSkillStorage } from '@tanstack/ai-code-mode-skills/storage'
import { createNodeIsolateDriver } from '@tanstack/ai-isolate-node'

// Create skill storage
const skillStorage = createFileSkillStorage({
  directory: './.skills',
  trustStrategy: createAlwaysTrustedStrategy(),
})

// Create code mode config
const codeModeConfig = {
  driver: createNodeIsolateDriver(),
  tools: allTools, // Your external tools
  timeout: 60000,
  memoryLimit: 128,
}

// Build a dynamic registry and system prompt with skills
const { toolsRegistry, systemPrompt, selectedSkills } =
  await codeModeWithSkills({
    config: codeModeConfig,
    adapter: anthropic('claude-3-haiku'), // Cheap model for skill selection
    skills: {
      storage: skillStorage,
      maxSkillsInContext: 5,
    },
    messages,
  })

// Use in chat
const stream = chat({
  adapter: anthropic('claude-sonnet-4-20250514'), // Main model
  toolRegistry: toolsRegistry,
  messages,
  systemPrompts: [basePrompt, systemPrompt],
})

Testing

This package includes a CLI for testing the skills system. The tests verify the complete skills lifecycle:

  1. First run (Skill Creation): LLM uses execute_typescript to solve a problem and registers a reusable skill
  2. Second run (Skill Reuse): LLM calls the saved skill directly without needing execute_typescript
Running the Simulated Test

The simulated test uses a mock adapter with predetermined responses for fully deterministic testing. No API key required.

# From the package directory
cd packages/ai-code-mode-skills

# Run the simulated test
pnpm test:cli:simulated
Running the Live Test

The live test uses a real LLM (OpenAI or Anthropic) to verify the skills flow with actual LLM responses.

Setup
  1. Copy the environment example file:

    cp test-cli/env.example test-cli/.env.local
    
  2. Edit test-cli/.env.local and add your API key:

    OPENAI_API_KEY=sk-...
    # or
    ANTHROPIC_API_KEY=sk-ant-...
    
Run the test
# Run with OpenAI (default)
pnpm test:cli:live

# Run with Anthropic
pnpm test:cli:live --provider anthropic

# Run with a specific model
pnpm test:cli:live --model gpt-4o-mini

# Run with verbose output
pnpm test:cli:live -v
CLI Commands
# Show help
pnpm test:cli --help

# Run simulated test (deterministic, no API key)
pnpm test:cli simulated

# Run live test (requires API key)
pnpm test:cli live [options]

Options:
  --provider <provider>  LLM provider: openai or anthropic (default: openai)
  --model <model>        Model to use (default depends on provider)
  -v, --verbose          Enable verbose output

API Reference

codeModeWithSkills(options)

Creates Code Mode tools and system prompt with skills integration.

Options:

  • config - Code Mode tool configuration (driver, tools, timeout, memoryLimit)
  • adapter - Text adapter for skill selection (should be a cheap/fast model)
  • skills.storage - Skill storage implementation
  • skills.maxSkillsInContext - Maximum skills to load into context (default: 5)
  • messages - Current conversation messages
  • skillsAsTools - Whether to include skills as direct tools (default: true)

Returns:

  • registry - Mutable ToolRegistry containing execute_typescript, skill management tools, and selected skill tools
  • systemPrompt - System prompt documenting available skills and external functions
  • selectedSkills - Skills that were selected for this request
Storage

The worker/browser-safe in-memory storage (createMemorySkillStorage) is re-exported from the root entry. The Node-only file storage (createFileSkillStorage) imports node:fs / node:path, so it is only available from the /storage subpath — keeping the root export safe to import from Cloudflare Workers and browser bundlers:

// Worker/browser-safe — root export
import { createMemorySkillStorage } from '@tanstack/ai-code-mode-skills'

// Node-only — `/storage` subpath
import { createFileSkillStorage } from '@tanstack/ai-code-mode-skills/storage'
createFileSkillStorage(options)

Git-friendly file-based storage:

.skills/
├── compare_react_state_libraries/
│   ├── meta.json      # Metadata, schemas, stats
│   └── code.ts        # TypeScript implementation
└── fetch_github_stats/
    ├── meta.json
    └── code.ts
createMemorySkillStorage(options)

In-memory storage for testing.

Trust Strategies

Skills track execution success and promote trust levels over time:

Trust LevelDescription
untrustedNewly created, not yet proven
provisional10+ executions with ≥90% success
trusted100+ executions with ≥95% success

Available strategies:

  • createDefaultTrustStrategy() - Earn trust through successful executions
  • createAlwaysTrustedStrategy() - Trust immediately (dev/testing)
  • createRelaxedTrustStrategy() - Faster promotion
  • createCustomTrustStrategy(options) - Custom thresholds

License

MIT

Description from the npm listing.

  • ai
  • ai-sdk
  • typescript
  • tanstack
  • code-mode
  • skills
  • agents
  • llm
  • sandbox
  • tool-calling
  • tanstack-intent

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-code-mode-skills weekly downloads on npm, last 90 days: 1,457 weekly downloads as of Dec 5, 2026, -61.3% over 90 days.@tanstack/ai-code-mode-skillsWeekly downloads on npm · Last 90 days1,457downloads / week-61.3% over 90 days01K2K3K4K5K6K7KSep 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-code-mode-skills weekly downloads on npm, last 90 days: 1,457 weekly downloads as of Dec 5, 2026, -61.3% over 90 days.

7/30/90-day growth

@tanstack/ai-code-mode-skills weekly downloads growth on npm: +45.4% over 7 days, -74.4% over 30 days, -61.3% over 90 days.@tanstack/ai-code-mode-skillsWeekly downloads growth on npm1,457downloads / week now7-day growth+455 weekly downloads+45.4%30-day growth-4,226 weekly downloads-74.4%90-day growth-2,303 weekly downloads-61.3%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-code-mode-skills weekly downloads growth on npm: +45.4% over 7 days, -74.4% over 30 days, -61.3% over 90 days.

Ranking history

@tanstack/ai-code-mode-skills npm ranking history: currently #1973 (by weekly downloads).@tanstack/ai-code-mode-skillsnpm ranking · by weekly downloads · Last 90 days#1973current rank#1200#1300#1400#1500#1600#1700#1800#1900#2000#2100Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
@tanstack/ai-code-mode-skills npm ranking history: currently #1973 (by weekly downloads).

Listing placement

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

Listing placement

AI SDKs378 listings · 19 pages · page 10, #19 (overall #199)
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-code-mode-skills
Date (UTC)Weekly downloadsChange vs. previous
1,457-73
1,530+173
1,357+175
1,182+88
1,094+123
9710
971-31
1,002+181
821-56
877-251
1,128-525
1,653+7
1,646+1
1,645—

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-code-mode-skills. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.