Npm git install

From akillness/jeo-skills · View interactive version

Npm git install is an AI agent skill from the GitHub repository akillness/jeo-skills. Route Node package-delivery ambiguity into one install packet: temporary Git bridge, SHA-pinned shared bridge, private-auth Git path, tarball / `npm pack` artifact, workspace / `file:` inner-loop, or publish-first registry handoff. Use when the user wants to install an npm / pnpm / Yarn / Bun packag

How to use this skill

Skill file

Git-Based Node Package Install

Use this skill when the main question is "what install packet should we trust, what delivery path fits this dependency, and what should we do next?"

The job is not to dump every syntax variant or treat raw Git installs as normal infrastructure.

The job is to:

  1. normalize the package-delivery packet already in hand,
  2. choose one primary delivery mode,
  3. make durability, auth, and build consequences explicit,
  4. tailor commands to the package manager actually in use,
  5. leave a clear exit path when a temporary Git bridge is starting to become permanent.

Read references/intake-packets-and-route-outs.md before handling an unfamiliar delivery packet.

Read references/delivery-decision-matrix.md when deciding between Git, tarball, workspace, or publish-first.

Read references/package-manager-behavior.md for manager-specific caveats.

Read references/private-auth-and-ci.md when CI or private auth is already part of the packet.

When to use this skill

When not to use this skill

Instructions

Step 1: Start from the delivery packet already in hand

Use references/intake-packets-and-route-outs.md.

Normalize the request into one of these packet shapes:

Capture the minimum useful frame:

Packet: shared-bridge-packet
Package manager: pnpm
Package state: unpublished fork fix
Audience: CI + teammates
Current ref: feature branch
Main risk: branch drift and auth parity

Rule: start from the packet the user already has. Do not force them through a perfect release-management template before answering.

Step 2: Choose one primary delivery mode

Pick exactly one primary mode:

Optional: mention one fallback mode, but do not flatten every request into a six-option menu.

Step 3: Classify durability

Use a small durability model:

Capture only what changes the decision:

If the packet spans multiple tiers, plan for the highest one.

Step 4: Pick the safest mode from the ladder

Use references/delivery-decision-matrix.md.

Default order:

  1. publish-first-registry-path
  2. workspace-or-file-link
  3. sha-pinned-shared-bridge
  4. tarball-or-pack-artifact
  5. direct-git-bridge

Rules:

Step 5: Tailor commands to the manager in use

Give the narrowest correct syntax only.

Common patterns:

If publish-first is the right answer, give the handoff plan before dumping temporary Git syntax.

Step 6: Make auth, build, and reproducibility visible

Every answer must cover:

Defaults:

Step 7: Route the next owner immediately

This skill owns package-delivery choice, not every downstream task.

Typical route-outs:

If the user asks “how should we consume this package?” stay here.

If they ask “how do we administer hosting or fix auth at the platform level?” route out.

Step 8: Produce one concise install brief

Return a short operator-style brief with:

If the honest answer is “publish this or package it properly,” say that directly.

Output format

Always return a Git package install brief, artifact recommendation brief, or publish-first handoff brief.

Required qualities:

Examples

Example 1: unpublished fix shared in CI

Input

We need an unpublished fix from a GitHub repo for our npm app. Should we install from the branch or do something safer for CI?

Good output direction

Example 2: private package auth trouble

Input

Our package is in a private GitHub repo and pnpm install keeps failing in CI. What path should we take?

Good output direction

Example 3: monorepo or durable shared package

Input

The package lives in a monorepo. I use Yarn locally but the rest of the team just needs the package in normal projects. Should we install straight from GitHub?

Good output direction

Best practices

  1. Start from the delivery packet already in hand, not from a favorite syntax form.
  2. Treat Git refs as a bridge, not a default release channel.
  3. Prefer SHA pins over floating branches whenever a Git dependency will be shared.
  4. Surface lifecycle/build behavior early; raw Git installs can behave like source packaging, not registry downloads.
  5. Keep local, team/CI, and durable shared usage clearly separated.
  6. Treat private-auth pain as a signal to re-evaluate the delivery path, not just patch credentials forever.
  7. Recommend a durable exit path once the dependency stops being temporary.
  8. Update compact and discovery surfaces when the front-door wording changes materially.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.