Get started using Intent to help your agent discover and load package skills.
The install command guides your agent through the setup process:
npx @tanstack/intent@latest installnpx @tanstack/intent@latest installThis creates or updates an intent-skills guidance block. It:
If an intent-skills block already exists, Intent updates that file in place. If no block exists, AGENTS.md is the default target.
Intent creates guidance like:
<!-- intent-skills:start -->
## Skill Loading
Before substantial work:
- Skill check: run `npx @tanstack/intent@latest list`, or use skills already listed in context.
- Skill guidance: if one local skill clearly matches the task, run `npx @tanstack/intent@latest load <package>#<skill>` and follow the returned `SKILL.md`.
- Monorepos: when working across packages, run the skill check from the workspace root and prefer the local skill for the package being changed.
- Multiple matches: prefer the most specific local skill for the package or concern you are changing; load additional skills only when the task spans multiple packages or concerns.
<!-- intent-skills:end --><!-- intent-skills:start -->
## Skill Loading
Before substantial work:
- Skill check: run `npx @tanstack/intent@latest list`, or use skills already listed in context.
- Skill guidance: if one local skill clearly matches the task, run `npx @tanstack/intent@latest load <package>#<skill>` and follow the returned `SKILL.md`.
- Monorepos: when working across packages, run the skill check from the workspace root and prefer the local skill for the package being changed.
- Multiple matches: prefer the most specific local skill for the package or concern you are changing; load additional skills only when the task spans multiple packages or concerns.
<!-- intent-skills:end -->When your agent works on a task that matches an available skill, it loads the matching SKILL.md into context.
Load a skill manually:
npx @tanstack/intent@latest load @tanstack/react-query#corenpx @tanstack/intent@latest load @tanstack/react-query#coreThis prints the skill content for the installed package version.
If you want explicit task-to-skill mappings in your agent config, opt in:
npx @tanstack/intent@latest install --mapnpx @tanstack/intent@latest install --mapSkills version with library releases. When you update a library:
npm update @tanstack/react-querynpm update @tanstack/react-queryThe new version brings updated skills automatically. The skills are shipped with the library, so you get the version that matches your installed code. If a package is installed both locally and globally and global scanning is enabled, Intent prefers the local version.
If you need to see what skills have changed, run:
npx @tanstack/intent@latest listnpx @tanstack/intent@latest listUse --json for machine-readable output:
npx @tanstack/intent@latest list --jsonnpx @tanstack/intent@latest list --jsonGlobal package scanning is opt-in:
npx @tanstack/intent@latest list --globalnpx @tanstack/intent@latest list --globalYou 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.