Skip to content

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

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

feat: ship as npm package via @netresearch/agent-skill-coordinator#24
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 (PHP Projects) section.

How discovery works (consumer side)

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

After install, the coordinator's postinstall walks node_modules, finds this package via aiAgentSkill: skills/context7/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.

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>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

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 support for the context7-skill by adding a package.json file and updating the README.md with Node.js installation instructions. Feedback was provided to refine the files array in package.json by removing the top-level scripts/ directory, which contains maintenance scripts not required for the skill's functionality in consumer projects.

Comment thread package.json Outdated
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 packaging support so this skill can be installed directly from the GitHub repo and discovered/registered by @netresearch/agent-skill-coordinator, mirroring the existing Composer-based workflow.

Changes:

  • Add a root package.json defining the skill as an npm-installable package and pointing discovery to skills/context7/SKILL.md.
  • Extend README Installation instructions with an npm-based setup section (including pnpm allowlist guidance).

Reviewed changes

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

File Description
package.json Introduces npm package manifest and coordinator peer dependency for skill discovery.
README.md Documents npm installation flow alongside existing Composer instructions.

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

Comment thread package.json
The skill's runtime script lives at skills/context7/scripts/context7.sh
(already covered by 'skills/context7/'). The top-level scripts/ only
holds verify-harness.sh, a repo-maintenance helper not needed by npm
consumers. Caught by reviewer.

Signed-off-by: Sebastian Mendel <sebastian.mendel@netresearch.de>
@CybotTM CybotTM merged commit 071b736 into main May 2, 2026
11 checks passed
@CybotTM CybotTM deleted the feat/npm-install branch May 2, 2026 17:19
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