| title | intent resolve |
|---|---|
| id | intent-resolve |
intent resolve resolves a compact skill identity to the skill file path reported by the current install.
npx @tanstack/intent@latest resolve <package>#<skill> [--json] [--global] [--global-only]--json: print structured JSON instead of only the path--global: resolve from project packages first, then global packages--global-only: resolve from global packages only
- Validates
<package>#<skill>before scanning - Scans project-local packages by default
- Includes global packages only when
--globalor--global-onlyis passed - Prefers local packages when
--globalis used and the same package exists locally and globally - Prints the resolved skill path by default
- Returns scanner-reported paths, including package-manager-internal paths for transitive installs
The package can be scoped or unscoped. The skill can include slash-separated sub-skill names.
Examples:
npx @tanstack/intent@latest resolve @tanstack/query#fetching
npx @tanstack/intent@latest resolve @tanstack/query#core/fetching
npx @tanstack/intent@latest resolve some-lib#core--json prints:
{
"package": "@tanstack/query",
"skill": "fetching",
"path": "node_modules/@tanstack/query/skills/fetching/SKILL.md",
"source": "local",
"version": "5.0.0",
"warnings": []
}- Missing separator:
Invalid skill use "@tanstack/query": expected <package>#<skill>. - Empty package:
Invalid skill use "#core": package is required. - Empty skill:
Invalid skill use "@tanstack/query#": skill is required. - Missing package:
Cannot resolve skill use "...": package "..." was not found. - Missing skill:
Cannot resolve skill use "...": skill "..." was not found in package "...".