-
Notifications
You must be signed in to change notification settings - Fork 1.4k
chore: add Agent Skills #9515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add Agent Skills #9515
Conversation
|
do we need to commit these or can we deploy them as part of the docs build? |
|
@devongovett I think the other options are:
I guess the |
|
Discussed with the team, and it seems like we're leaning towards this solution:
|
|
Just noticed that so we might be able to just deploy these to the CDN and have them be installed that way. |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
| "build:s2-docs": "yarn workspace @react-spectrum/s2-docs build", | ||
| "check:s2-docs-build": "node packages/dev/s2-docs/scripts/validateS2DocsBuild.mjs", | ||
| "build:mcp": "yarn workspace @react-spectrum/mcp build && yarn workspace @react-aria/mcp build", | ||
| "generate:skills": "node packages/dev/s2-docs/scripts/generateAgentSkills.mjs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make a script target in s2
| "generate:skills": "node packages/dev/s2-docs/scripts/generateAgentSkills.mjs", | |
| "generate:skills": "yarn workspace @react-spectrum/s2 generate:skills", |
| "start:s2": "DOCS_ENV=dev LIBRARY=s2 parcel 'pages/s2/**/*.mdx' -p 4321 --config .parcelrc-s2-docs --dist-dir dist/s2 --cache-dir ../../../.parcel-cache/s2", | ||
| "start:react-aria": "DOCS_ENV=dev LIBRARY=react-aria parcel 'pages/react-aria/**/*.mdx' -p 1234 --config .parcelrc-s2-docs --dist-dir dist/react-aria --cache-dir ../../../.parcel-cache/react-aria", | ||
| "build": "yarn build:s2 --public-url $PUBLIC_URL && yarn build:react-aria --public-url $PUBLIC_URL", | ||
| "build": "yarn build:s2 --public-url $PUBLIC_URL && yarn build:react-aria --public-url $PUBLIC_URL && node scripts/generateAgentSkills.mjs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you make a target this can change to
| "build": "yarn build:s2 --public-url $PUBLIC_URL && yarn build:react-aria --public-url $PUBLIC_URL && node scripts/generateAgentSkills.mjs", | |
| "build": "yarn build:s2 --public-url $PUBLIC_URL && yarn build:react-aria --public-url $PUBLIC_URL && yarn generate:skills", |
| mkdir -p dist/s2-docs/react-aria/$(PUBLIC_URL) | ||
| mkdir -p dist/s2-docs/s2/$(PUBLIC_URL) | ||
| mv packages/dev/s2-docs/dist/react-aria/* dist/s2-docs/react-aria/$(PUBLIC_URL) | ||
| if [ -d packages/dev/s2-docs/dist/react-aria/.well-known ]; then mv packages/dev/s2-docs/dist/react-aria/.well-known dist/s2-docs/react-aria/$(PUBLIC_URL); fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the if check?
Related to #9508.
Adds a script to generate Agent Skills based on our documentation.
This
yarn generate:skillsscript uses our existing markdown docs build output, and copies/formats them to match the Agent Skills spec. The script outputs these into our docs build in the.well-known/directory.Users will be able to install them by via npx skills:
More resources:
✅ Pull Request Checklist:
📝 Test Instructions:
React Spectrum (S2):
React Aria:
The skills should get placed in the current project.
and verify the old mcp pages aren't visible in search or in the sidebar.
🧢 Your Project: