Get started using Intent to set up skill-to-task mappings for your agent.
The install command guides your agent through the setup process:
npx @tanstack/intent@latest installnpx @tanstack/intent@latest installThis prints a skill that instructs your AI agent to:
If an intent-skills block already exists, the agent updates that file in place. If no block exists, AGENTS.md is the default target.
Your agent will create mappings like:
<!-- intent-skills:start -->
# Skill mappings — when working in these areas, load the linked skill file into context.
skills:
- task: "implementing data fetching with TanStack Query"
load: "node_modules/@tanstack/react-query/skills/core/SKILL.md"
- task: "setting up routing with TanStack Router"
load: "node_modules/@tanstack/react-router/skills/core/SKILL.md"
<!-- intent-skills:end --><!-- intent-skills:start -->
# Skill mappings — when working in these areas, load the linked skill file into context.
skills:
- task: "implementing data fetching with TanStack Query"
load: "node_modules/@tanstack/react-query/skills/core/SKILL.md"
- task: "setting up routing with TanStack Router"
load: "node_modules/@tanstack/react-router/skills/core/SKILL.md"
<!-- intent-skills:end -->When your agent works on a task that matches a mapping, it automatically loads the corresponding SKILL.md into context to guide implementation.
Skills version with library releases. When you update a library:
npm update @tanstack/react-querynpm update @tanstack/react-queryThe new version brings updated skills automatically — you don't need to do anything. The skills are shipped with the library, so you always get the version that matches your installed code. If a package is installed both locally and globally, Intent prefers the local version.
If you need to see what skills have changed, run:
npx @tanstack/intent@latest listnpx @tanstack/intent@latest listOr use --json for machine-readable output:
npx @tanstack/intent@latest list --jsonnpx @tanstack/intent@latest list --jsonYou can also check if any skills reference outdated source documentation:
npx @tanstack/intent@latest stalenpx @tanstack/intent@latest staleAfter using a skill, you can submit feedback to help maintainers improve it:
npx @tanstack/intent@latest meta feedback-collectionnpx @tanstack/intent@latest meta feedback-collectionThis prints a skill that guides your agent to collect structured feedback about gaps, errors, and improvements.