intent install creates or updates an intent-skills guidance block in a project guidance file.
npx @tanstack/intent@latest install [--map] [--dry-run] [--print-prompt] [--global] [--global-only] [--no-notices]npx @tanstack/intent@latest install [--map] [--dry-run] [--print-prompt] [--global] [--global-only] [--no-notices]Supported config files: AGENTS.md, CLAUDE.md, .cursorrules, .github/copilot-instructions.md.
The default block tells agents to discover skills and load matching guidance on demand:
<!-- intent-skills:start -->
## Skill Loading
Before editing files for a substantial task:
- Run `npx @tanstack/intent@latest list` from the workspace root to see available local skills.
- If a listed skill matches the task, run `npx @tanstack/intent@latest load <package>#<skill>` before changing files.
- Use the loaded `SKILL.md` guidance while making the change.
- 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 editing files for a substantial task:
- Run `npx @tanstack/intent@latest list` from the workspace root to see available local skills.
- If a listed skill matches the task, run `npx @tanstack/intent@latest load <package>#<skill>` before changing files.
- Use the loaded `SKILL.md` guidance while making the change.
- 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 -->--map writes compact skill identities and commands:
<!-- intent-skills:start -->
# TanStack Intent - before editing files, run the matching guidance command.
tanstackIntent:
- id: "@tanstack/query#fetching"
run: "npx @tanstack/intent@latest load @tanstack/query#fetching"
for: "Query data fetching patterns"
<!-- intent-skills:end --><!-- intent-skills:start -->
# TanStack Intent - before editing files, run the matching guidance command.
tanstackIntent:
- id: "@tanstack/query#fetching"
run: "npx @tanstack/intent@latest load @tanstack/query#fetching"
for: "Query data fetching patterns"
<!-- intent-skills:end -->To suppress trust and migration notices in automation, pass --no-notices.