Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计通过

npm-git-installnpm git 安装

Agent Skill

npm-git-install 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,903

周安装

77

GitHub Stars

11

下载量

598
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:npm-git-install(npm git 安装)
来源仓库:https://github.com/akillness/oh-my-skills
仓库路径:skills/npm-git-install
安装命令:
npx skills add https://github.com/akillness/oh-my-skills --skill npm-git-install
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill npm-git-install

简介

该技能用于规范化 Git 基础的 Node.js 包安装流程,识别可信交付路径与执行方式。

  • 适用于需要判断依赖包来源、选择合适安装模式并明确后续升级路径的场景。
  • 核心能力包括区分临时桥接与永久依赖、管理认证与构建影响,适配不同包管理器。
  • 安装前应评估是否会引入外部代码执行、修改本地文件系统或触发网络请求。
  • npm-git-install 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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

  • The user wants to install a Node package from GitHub or another Git host
  • The package is unpublished, forked, branch-pinned, tag-pinned, commit-pinned, or private
  • The package lives in a monorepo and the user is unsure whether Git install, workspace linking, tarball, or publish-first is the honest answer
  • The user asks about git+ssh, git+https, github:owner/repo, tarball installs, npm pack, or file: / workspace links
  • A shared dependency is still being treated like a temporary Git shortcut and someone needs to decide whether that shortcut should continue

When not to use this skill

  • The main task is fixing local Git branch/history problems → use git-workflow
  • The main task is creating or operating GitHub repos, packages, or releases at the admin level → use github-repo-management
  • The main task is monorepo/task-runner automation rather than package-delivery choice → use workflow-automation
  • The main task is broader runtime, machine, container, or service setup → use system-environment-setup
  • The user already has a normal registry dependency and only needs an ordinary version bump

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:

  • temporary-bridge-packet — unpublished fix, fork, PR branch, or short-lived bridge to unblock work now
  • shared-bridge-packet — teammates or CI need the bridge too, so branch drift and lockfile stability matter
  • private-auth-packet — the install path is private and the real risk is credential parity across local and CI
  • artifact-fallback-packet — raw Git source installs are too brittle, but a full registry workflow is still too heavy
  • workspace-inner-loop-packet — both the app and package are being developed together locally or inside a monorepo
  • durable-distribution-packet — the dependency is no longer a one-off bridge and should probably stop behaving like one

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:

  • direct-git-bridge — local-only or clearly temporary bridge from Git
  • sha-pinned-shared-bridge — Git is still the bridge, but shared reproducibility matters
  • private-git-auth-path — the short-term answer is still private Git, and the key constraint is auth parity
  • tarball-or-pack-artifact — package the dependency without relying on raw Git source install behavior
  • workspace-or-file-link — keep co-development local or monorepo-scoped
  • publish-first-registry-path — move to a durable distribution channel

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:

  • Tier 0 — local-only
  • Tier 1 — team / CI bridge
  • Tier 2 — durable shared package
  • Tier 3 — production / release infrastructure

Capture only what changes the decision:

  • who consumes it
  • whether the ref is floating or fixed
  • whether raw source install behavior is acceptable
  • whether local and CI already share one auth story
  • what the exit path should be if the dependency stays around

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:

  • prefer SHA pins over floating branches for shared use
  • prefer artifact or publish-first when raw Git build/prepare behavior is the risk
  • prefer workspace / file when both sides move together locally
  • treat private auth as a constraint, not proof that Git is the right long-term channel

Step 5: Tailor commands to the manager in use

Give the narrowest correct syntax only.

Common patterns:

  • SHA-pinned bridge: npm install github:owner/repo#<commit> / pnpm add github:owner/repo#<commit> / yarn add owner/repo#<commit> / bun add github:owner/repo#<commit>
  • Git URL forms: git+https://github.com/owner/repo.git#<commit> or git+ssh://git@github.com/owner/repo.git#<commit>
  • Tarball: npm install https://.../package.tgz (or equivalent for pnpm / Yarn / Bun)
  • Local path: "dep": "file:../relative-path" or the normal workspace flow

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:

  • chosen ref / artifact / published version strategy
  • whether install pulls raw source + lifecycle/build behavior
  • local + CI auth story
  • deterministic install expectation (npm ci, frozen lockfile equivalents, pinned ref)
  • replacement path once the dependency stops being temporary

Defaults:

  • floating branches are convenience shortcuts, not shared infrastructure
  • private Git is only as good as the worst environment's auth setup
  • tarballs trade Git surprises for artifact ownership
  • publish-first is usually the honest answer once the package becomes routine shared infrastructure

Step 7: Route the next owner immediately

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

Typical route-outs:

  • git-workflow — fix or shape the underlying branch/history state
  • github-repo-management — operate repos, packages, releases, or package-host settings
  • workflow-automation — wire repeatable repo scripts or monorepo automation around the chosen package flow
  • system-environment-setup — handle machine/runtime/container/service setup once the dependency question is no longer the main blocker

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:

  • packet
  • primary mode
  • durability tier
  • 1-3 recommended steps
  • only the needed commands
  • auth / build / reproducibility notes
  • exit strategy
  • next owner if the work leaves this skill

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:

  • identify the packet already in hand
  • choose one primary delivery mode
  • classify durability explicitly
  • make auth/build/reproducibility consequences visible
  • tailor commands to the package manager actually in use
  • leave a clear exit strategy
  • route package hosting, repo admin, workflow glue, or environment setup to the right neighboring skill

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

  • shared-bridge-packet
  • sha-pinned-shared-bridge
  • rejects floating branch use for shared CI
  • gives one npm-specific command plus an exit path

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

  • private-auth-packet
  • chooses private-git-auth-path or publish-first-registry-path
  • clarifies CI credential parity and avoids committed secrets

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

  • workspace-inner-loop-packet or durable-distribution-packet
  • prefers workspace / file: for local co-development or publish-first for durable use
  • does not oversell raw Git install

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.14%
按下载量换算234

Claude

27.85%
按下载量换算167

Cursor

20.41%
按下载量换算122

Gemini CLI

9.88%
按下载量换算59

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills