Skip to content
Source
Sign inSign up
TanStack/router

@tanstack/react-router: authored agent skills are never published β€” package.json#files excludes skills/ #8738

ClosedMAST1999(GitHub profile, opens in a new tab) opened this issue 1 comment

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

  1. npm install @tanstack/react-router (any recent version; reproduced on 1.170.45, the current latest)
  2. ls node_modules/@tanstack/react-router/skills β†’ the directory does not exist
  3. curl -sL https://registry.npmjs.org/@tanstack/react-router/-/react-router-1.170.45.tgz | tar tzf - | grep -c 'skills/' β†’ 0
  4. Contrast: ls node_modules/@tanstack/router-core/skills β†’ 10+ SKILL.md files 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/intent in a downstream repo: @tanstack/react-router is declared in its intent.skills allowlist but never discovers, because the skills never reach node_modules.
  • @tanstack/router-core demonstrates the intended shipping behavior.
  • Happy to open the one-line PR (with a changeset) if maintainers agree this is unintended.

Sign in to join this conversation.