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]npx @tanstack/intent@latest install [--map] [--dry-run] [--print-prompt] [--global] [--global-only]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 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 -->--map writes compact skill identities:
<!-- intent-skills:start -->
# Skill mappings - load `use` with `npx @tanstack/intent@latest load <use>`.
skills:
- when: "Query data fetching patterns"
use: "@tanstack/query#fetching"
<!-- intent-skills:end --><!-- intent-skills:start -->
# Skill mappings - load `use` with `npx @tanstack/intent@latest load <use>`.
skills:
- when: "Query data fetching patterns"
use: "@tanstack/query#fetching"
<!-- intent-skills:end -->