/major-ai-skills:github-packages-npmfrom major-ai-skills
Publish or consume scoped npm packages through GitHub Packages, configure registry authentication, and troubleshoot package access.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
GitHub Packages hosts npm packages under https://npm.pkg.github.com tied to a GitHub user or organization. Publish with publishConfig and a scoped name (@org/pkg); authenticate with GITHUB_TOKEN in Actions or a PAT with read:packages/write:packages locally. Agents configure .npmrc correctly, avoid leaking tokens, and align package permissions with repo visibility.
package.json (name @org/pkg)
-> npm publish
-> npm.pkg.github.com
Consumers -> .npmrc (@org:registry=...) + token
@org/* packages in apps and Actions@myorg/utils); set "registry": "https://npm.pkg.github.com" in publishConfig.NODE_AUTH_TOKEN / GITHUB_TOKEN env substitution in .npmrc.GITHUB_TOKEN write is limited to the current repo unless workflows are configured otherwise.{
"name": "@acme/sdk",
"version": "1.4.0",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
# project or user level - token via env
@acme:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
# GitHub Actions
- uses: actions/setup-node@v4
with:
registry-url: https://npm.pkg.github.com
scope: "@acme"
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
| Symptom | Likely cause | Fix |
|---|---|---|
| 401 on install | Missing/invalid token | PAT with read:packages or SSO authorize |
| 403 on publish | Token lacks write / wrong repo | write:packages + package repo permissions |
| Package not found | Wrong scope registry mapping | @org:registry=https://npm.pkg.github.com |
| Duplicate version | Republish same semver | Bump version; do not force overwrite |
v* tags; keep local publish rare.GITHUB_TOKEN publish permissions depend on Actions settings and org policy.@dependabot-config - update consumers of private packages carefully@gpg-signing - signed release tags before publish@github-actions - release workflow wiringWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing./add-your-own-human-voiceRevise AI-assisted writing to preserve the author's voice, concrete experience, and intended tone./adobe-after-effectsScaffold After Effects comps and expression rigs, queue Render Queue / AME jobs, and export Essential Graphics (.mogrt) with ExtendScript-safe patterns.