@tanstack/intent is a CLI for shipping and consuming Agent Skills as package artifacts.
Skills are markdown documents that teach AI coding agents how to use your library correctly. Intent versions them with your releases, ships them inside npm packages, discovers them from your project and workspace by default, and helps agents load them automatically when working on matching tasks.
Intent provides tooling for two workflows:
For consumers:
For maintainers (library teams):
npx @tanstack/intent@latest listnpx @tanstack/intent@latest listScans the current project's node_modules and workspace dependencies for intent-enabled packages. Global package scanning is explicit; pass --global to include global packages or --global-only to ignore local packages. When both local and global packages are scanned, local packages take precedence.
npx @tanstack/intent@latest installnpx @tanstack/intent@latest installCreates or updates lightweight intent-skills guidance in your config files (AGENTS.md, CLAUDE.md, .cursorrules, etc.). Existing guidance is updated in place; otherwise AGENTS.md is the default target. Pass --map to opt in to explicit task-to-skill mappings.
npx @tanstack/intent@latest load @tanstack/query#fetchingnpx @tanstack/intent@latest load @tanstack/query#fetchingLoads the matching SKILL.md content for the installed package version. Pass --path when you need the resolved skill file path for debugging.
npx @tanstack/intent@latest scaffoldnpx @tanstack/intent@latest scaffoldGuides your agent through domain discovery, tree generation, and skill authoring with interactive maintainer interviews.
npx @tanstack/intent@latest validatenpx @tanstack/intent@latest validateEnforces SKILL.md format rules and packaging requirements before publish.
npx @tanstack/intent@latest stalenpx @tanstack/intent@latest staleDetects when skills reference outdated source documentation or library versions.