@tanstack/react-router: authored agent skills are never published β package.json#files excludes skills/ #8738
Which project does this relate to?#
Router
Describe the bug#
packages/react-router/skills/ is authored and actively maintained on main (skills react-router, compositions, lifecycle β last touched 2026-10-06 in df8bbf2, "docs: use queryClient.query() in guides and agent skills"), but the published npm package never contains it: packages/react-router/package.json#files is ["dist", "src"], so skills/ is excluded from every release.
Agent tooling that discovers skills from installed packages (e.g. @tanstack/intent) therefore can never see react-router's skills, at any version. The sibling package @tanstack/router-core ships its skills/ directory correctly (11 entries in 1.171.38), so the react-router omission looks unintentional rather than a deliberate split.
Complete minimal reproducer#
https://github.com/MAST1999/tanstack-router-skills-repro
Steps to Reproduce the Bug#
npm install @tanstack/react-router(any recent version; reproduced on1.170.45, the currentlatest)ls node_modules/@tanstack/react-router/skillsβ the directory does not existcurl -sL https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.170.45.tgz | tar tzf - | grep -c 'skills/'β0- Contrast:
ls node_modules/@tanstack/router-core/skillsβ 10+SKILL.mdfiles present
Expected behavior#
skills/ is included in the published @tanstack/react-router tarball, matching @tanstack/router-core β i.e. add "skills" to files:
"files": [
"dist",
- "src"
+ "src",
+ "skills"
],
(The repro repo's mock-pack/ proves this with npm pack on a stub carrying the exact files field: 0 skills/ entries before, 3 after.)
Screenshots or Videos#
No response
Platform#
Packaging β not runtime. Reproduced with @tanstack/react-router@1.170.45 (npm latest as of 2026-10-17).
Additional context#
- Discovered while wiring
@tanstack/intentin a downstream repo:@tanstack/react-routeris declared in itsintent.skillsallowlist but never discovers, because the skills never reachnode_modules. @tanstack/router-coredemonstrates the intended shipping behavior.- Happy to open the one-line PR (with a changeset) if maintainers agree this is unintended.
Sheraff(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
https://github.com/TanStack/router/pull/8671