github-packages-npm

github-packages-npm is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 26 tokens per session (847 once invoked), scanned A, original, MIT.

A guide for publishing and installing private npm packages through GitHub Packages, GitHub's package hosting service.

In plain words
What is it for?
Use it to configure scoped packages, publish libraries, install private dependencies, set up npm authentication, and troubleshoot 401 or 403 errors.
Why use it?
It helps avoid authentication and permission errors while keeping package tokens out of source code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 8 plugins shipped together

Good fit Use it to configure scoped packages, publish libraries, install private dependencies, set up npm authentication, and troubleshoot 401 or 403 errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/github-packages-npm
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alivirgo/Major-AI-Skills --skill github-packages-npm
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 8 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for github-packages-npm

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/github-packages-npm/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/github-packages-npm)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/github-packages-npm"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/github-packages-npm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for github-packages-npm

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/github-packages-npm"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/github-packages-npm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 847 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00847
Opus 5 $0.00013 $0.00424
Sonnet 5 $0.00005 $0.00169
Haiku 4.5 $0.00003 $0.00085

Measured yesterday against content hash 6a19168e982f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

github-packages-npm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/github-packages-npm/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Packages (npm) AI Skill Guide

Overview & Engine Architecture

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

When to use this skill

  • Publishing private or internal npm libraries to GitHub Packages
  • Consuming @org/* packages in apps and Actions
  • Migrating from npmjs private registries
  • Debugging 401/403 publish or install failures

Operational directives

  1. Scope packages to the org (@myorg/utils); set "registry": "https://npm.pkg.github.com" in publishConfig.
  2. Never commit tokens; use NODE_AUTH_TOKEN / GITHUB_TOKEN env substitution in .npmrc.
  3. Grant least package permissions; GITHUB_TOKEN write is limited to the current repo unless workflows are configured otherwise.
  4. Version with semver; prefer CI publish on tagged releases.
  5. Document install steps for external contributors who need PATs.

publishConfig sketch

{
  "name": "@acme/sdk",
  "version": "1.4.0",
  "publishConfig": {
    "registry": "https://npm.pkg.github.com"
  }
}

.npmrc sketches

# 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 }}

Common failures

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

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -10 tokens per session 6a19168e982f
  2. 7d ago First seen · 99 lines · 36 tokens per session scan A 54712fc46f6e

Subscribe to this mod's changes

github-packages-npm is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 847 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

ax-extract-workflow

Reconstruct workflow behind a past coding-agent artifact using local ax sessions/commits/skills/tool traces. Use when asked how X was built.

sickn33/agentic-awesome-skills · 35 tokens

agenttrace-session-audit

Audit local AI coding-agent sessions with agenttrace for cost, tool failures, latency, anomalies, health, diffs, and CI gates.

sickn33/agentic-awesome-skills · 34 tokens

antigravity-workflows-v2

Antigravity Workflows workflow skill. Use this skill when the user needs Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA and the operator should preserve the upstream workflow, copied support files, and provenance before merging…

diegosouzapw/awesome-omni-skills · 71 tokens

npm-docs

Use this skill whenever the user asks about npm, package management, publishing packages, semantic versioning, npm CLI commands, or Node.js dependencies. Covers npm 12.x including the registry, scopes, organizations, security (audit, provenance, 2FA), CI/CD integration, workspaces, scripts, .npmrc configuration, and…

pledgeandgrow/pledge-skills · 91 tokens

antigravity-workflows

Antigravity Workflows workflow skill. Use this skill when the user needs Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA and the operator should preserve the upstream workflow, copied support files, and provenance before merging…

diegosouzapw/awesome-omni-skills · 69 tokens

mysql-expert

Design, optimize, and maintain MySQL databases. Covers schema design, indexing strategies, query optimization, replication, and performance tuning.

AtulPurohit/Antigravity-Awesome-Skills · 30 tokens