feat: ship as npm package via @netresearch/agent-skill-coordinator#46
feat: ship as npm package via @netresearch/agent-skill-coordinator#46
Conversation
Adds a package.json so the skill is npm-installable straight from this GitHub repo (no npm-registry publication required to start). README gains a parallel 'npm (Node Projects)' section under Installation, mirroring the existing 'Composer (PHP Projects)' section. Same pattern applied across the Netresearch skill collection in 2026-05. Coordinator: https://github.com/netresearch/node-agent-skill-coordinator Sibling PRs already merged on git-workflow-skill, github-project-skill, security-audit-skill. Version stays at 0.0.0-source until npm publication is decided separately. Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
There was a problem hiding this comment.
Code Review
This pull request introduces npm support for the agent rules skill by adding a package.json file and updating the README.md with installation and configuration instructions for Node.js projects. Feedback was provided regarding the files array in package.json, noting that several entries for scripts and license files appear to be redundant or point to incorrect paths, which could cause warnings during package installation.
There was a problem hiding this comment.
Pull request overview
This PR makes the skill consumable as a GitHub-installed npm package (discovered via @netresearch/agent-skill-coordinator) and documents the Node installation flow alongside the existing Composer flow.
Changes:
- Add a root
package.jsonthat exposes the skill viaaiAgentSkilland limits packed contents viafiles. - Extend
README.mdinstallation instructions with an npm section (including a pnpm postinstall allowlist note).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Defines the npm package metadata and exposes the skill entrypoint for coordinator discovery. |
| README.md | Documents npm-based installation/discovery flow for Node projects. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
package.jsonso the skill is npm-installable straight from this GitHub repo (no npm-registry publication required to start).How discovery works (consumer side)
After install, the coordinator's
postinstallwalksnode_modules, finds this package viaaiAgentSkill: skills/agent-rules/SKILL.md, validates the frontmatter, and writes a<skills_system>block into the project'sAGENTS.md. Same shape as the Composer plugin's output.Why version stays at
0.0.0-sourceVersioning still lives in git tags and the existing Composer release workflow. A real npm version would be set at publish time; until then,
0.0.0-sourceis the standard "this manifest exists for tooling, not as a release marker" placeholder.Sibling PRs (merged)
Coordinator: https://github.com/netresearch/node-agent-skill-coordinator (
@netresearch/agent-skill-coordinator@0.1.2)