Skip to content

chore(infra): integrate skills-package-manager via prepare script#7565

Open
SoonIter wants to merge 10 commits into
mainfrom
wip/trapped-yttrium-6d38
Open

chore(infra): integrate skills-package-manager via prepare script#7565
SoonIter wants to merge 10 commits into
mainfrom
wip/trapped-yttrium-6d38

Conversation

@SoonIter
Copy link
Copy Markdown
Member

@SoonIter SoonIter commented Apr 28, 2026

Summary

prepare now generates .agents/skills/** on every install

This PR integrates skills-package-manager into the monorepo using the prepare lifecycle script, so that agent skills are automatically synchronized on every pnpm install.

  • Add skills-package-manager as a dev dependency.
  • Update the prepare script to run skills-package-manager install before existing setup steps.
  • Add skills.json and skills-lock.yaml for skill manifest and lockfile management.
  • Ignore the generated .agents/skills/ directory in .gitignore.

https://skills-package-manager.site/getting-started.html?page=2

Benefits

Avoid committing generated .agents/skills files for every skill update. skills-package-manager keeps skills managed by skills.json and skills-lock.yaml, so updates are quieter and reproducible.

  • Run npx skills-package-manager update to upgrade skills in one command.
  • Keep PRs focused on manifest and lockfile changes.
  • Support git, npm, local link:, and archive-based skill sources.

Copilot AI review requested due to automatic review settings April 28, 2026 11:08
@SoonIter SoonIter marked this pull request as draft April 28, 2026 11:09
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request integrates skills-package-manager into the project by adding it as a development dependency, initializing its configuration and lock files, and updating the .gitignore to exclude the skills installation directory. The prepare script in package.json was also updated to automatically run the skills installation. Feedback was provided regarding the potential for the prepare script to fail in production or restricted environments where dev dependencies are missing or the registry is unreachable, suggesting a more resilient implementation for the installation step.

Comment thread package.json
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Integrates skills-package-manager into the repo so agent skills are installed/synced automatically via the root prepare script during pnpm install.

Changes:

  • Add skills-package-manager@0.9.0 and run skills-package-manager install in prepare.
  • Introduce skills.json and skills-lock.yaml to define and lock skill sources.
  • Ignore generated .agents/skills/ output in .gitignore.

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 2 comments.

File Description
skills.json Adds the skills manifest (schema, install directory, and linked skills).
skills-lock.yaml Adds a lockfile capturing resolved skill sources (link resolutions).
package.json Installs skills during prepare and adds the tool as a dev dependency.
.gitignore Prevents generated .agents/skills/ content from being committed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skills-lock.yaml
Comment thread skills.json
@SoonIter SoonIter changed the title chore: integrate skills-package-manager via prepare script chore(infra): integrate skills-package-manager via prepare script May 7, 2026
@SoonIter SoonIter force-pushed the wip/trapped-yttrium-6d38 branch from 3a10697 to e819c1e Compare May 7, 2026 08:09
@SoonIter SoonIter marked this pull request as ready for review May 7, 2026 08:45
Copilot AI review requested due to automatic review settings May 7, 2026 08:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 14 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment thread skills-lock.yaml Outdated
Comment thread .prettierignore
Comment thread package.json
Copilot AI review requested due to automatic review settings May 8, 2026 10:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we lease these skills in the .agent/skills folder?

SoonIter added a commit to SoonIter/skills-package-manager that referenced this pull request May 15, 2026
## Summary

- Add `local:` skill specifiers for existing user-owned skill
directories.
- Install `local:` skills in place without copying, replacing, patching,
or pruning their source directories.
- Link agent targets directly to the local source directory and maintain
`.gitignore` unignore rules for repo-local skills.
- Update tests, docs, and the bundled `skills-package-manager-cli`
guidance.

## Related Links

web-infra-dev/rsbuild#7565
<!-- Provide links to related issues, discussions, or design notes -->

## Checklist

<!-- Check and mark with an "x" -->

- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).

Testing:

- `pnpm build`
- `pnpm test`
- `pnpm build:website`
- `pnpm check` (passes with existing warnings)
@SoonIter SoonIter force-pushed the wip/trapped-yttrium-6d38 branch from 5bc0a08 to 91628ea Compare May 15, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants