Skip to content

feat: ship as npm package via @netresearch/agent-skill-coordinator#19

Merged
CybotTM merged 2 commits intomainfrom
feat/npm-install
May 2, 2026
Merged

feat: ship as npm package via @netresearch/agent-skill-coordinator#19
CybotTM merged 2 commits intomainfrom
feat/npm-install

Conversation

@CybotTM
Copy link
Copy Markdown
Member

@CybotTM CybotTM commented May 2, 2026

Summary

  • Adds 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 section.

How discovery works (consumer side)

npm install --save-dev \
  @netresearch/agent-skill-coordinator \
  github:netresearch/github-release-skill

After install, the coordinator's postinstall walks node_modules, finds this package via aiAgentSkill: skills/github-release/SKILL.md, validates the frontmatter, and writes a <skills_system> block into the project's AGENTS.md. Same shape as the Composer plugin's output.

files allowlist

hooks/ is included so Claude Code marketplace consumers still get the guard hooks. There's no top-level scripts/ directory in this repo — the skill's scripts live inside skills/github-release/scripts/ and are automatically shipped via skills/github-release/.

Why version stays at 0.0.0-source

Versioning 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-source is 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)

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>
Copilot AI review requested due to automatic review settings May 2, 2026 09:30
Copy link
Copy Markdown

@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 introduces npm installation support for the GitHub release skill by adding a package.json file and updating the README.md with installation instructions for Node.js projects. A review comment correctly identified that the files allowlist in package.json is missing critical directories, such as .claude-plugin/ and commands/, which are necessary for the skill to function properly when installed via npm.

Comment thread package.json
Copy link
Copy Markdown

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

Adds npm install support for this skill repo so Node projects can consume it via @netresearch/agent-skill-coordinator, alongside the existing Composer-based installation approach.

Changes:

  • Added a root package.json to make the skill installable via npm directly from the GitHub repo.
  • Documented npm-based installation (including pnpm postinstall allowlisting guidance) in the README.

Reviewed changes

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

File Description
package.json Introduces npm package metadata, skill discovery pointer (aiAgentSkill), and an npm packing allowlist (files).
README.md Adds an npm installation section describing coordinator-based discovery and pnpm configuration.

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

Comment thread package.json
Comment thread README.md
When the skill is installed via npm, only SKILL.md content is
registered (via the coordinator's AGENTS.md mechanism). Slash
commands and .claude-plugin hooks aren't picked up — those
require Claude Code's plugin mechanism. Documenting that so
consumers don't expect parity.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@CybotTM CybotTM merged commit 5377f32 into main May 2, 2026
6 checks passed
@CybotTM CybotTM deleted the feat/npm-install branch May 2, 2026 10:30
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.

2 participants