Repository navigation
Description
Provide a general summary of the feature here
Ship the React Aria agent skill inside the react-aria-components npm package, under skills/react-aria/SKILL.md, so that package managers with agent-skill support can link it straight from node_modules.
🤔 Expected Behavior?
After installing react-aria-components, the skill is available in node_modules/react-aria-components/skills/react-aria/.
pnpm 12.11+ has built-in support for agent skills: on pnpm install it links the skills a direct dependency ships under skills/<name>/SKILL.md into the project's agent directories (.claude/skills, …), once the user has approved the package with pnpm approve. With the skill in the tarball, a pnpm user approves it once and from then on always has the skill that matches the installed version of the library.
😯 Current Behavior
The skill is only distributed through the docs site (npx skills add https://react-aria.adobe.com). The published react-aria-components@1.22.1 tarball contains no skills/ folder.
That means a separate install step, a separate update step, a vendored copy of the skill in every consuming repo, and nothing tying the skill's content to the version of react-aria-components actually installed.
💁 Possible Solution
Copy the generated skill into the package at publish time and make sure skills/ is included in the published files. The same could apply to the S2 skill and @react-spectrum/s2.
The existing npx skills add flow would keep working as is — this is an additional distribution channel, not a replacement.
🔦 Context
Consumers currently have to keep the skill in step with the library by hand: refresh it too early and it documents APIs the installed version doesn't have yet, forget to refresh it and it goes stale. A skill shipped with the package removes that problem entirely, since the two can't drift apart.
Supply-chain mitigation: a skill is a set of instructions an agent acts on, so a tampered skill is as dangerous as tampered code. npx skills add fetches whatever is currently published at the source, outside the package manager's controls. Shipped in the npm package, a skill update goes through the same gates as any other dependency update — the lockfile, and pnpm's minimumReleaseAge, which holds back versions published less than a configured delay ago. Skill updates then get the same quarantine window as code updates, coordinated by one setting.
This is pnpm-specific today, but the layout is just a skills/ folder in the tarball, so it costs nothing for users of other package managers.
💻 Examples
- pnpm docs: https://pnpm.io/agent-skills
- Packages already shipping skills this way include
agent-browseranddotenv.
Activity