Token导航 LogoToken导航

Agent Skill · 待分类

npm-git-install(npm git 安装)

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

npm-git-install 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在待分类类的 11,209 个 Skill 里排第 2,082。

总安装 1,903周安装 77GitHub Stars 11下载 598核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

该技能用于规范化 Git 基础的 Node.js 包安装流程,识别可信交付路径与执行方式。适用于需要判断依赖包来源、选择合适安装模式并明确后续升级路径的场景。核心能力包括区分临时桥接与永久依赖、管理认证与构建影响,适配不同包管理器。安装前应评估是否会引入外部代码执行、修改本地文件系统或触发网络请求。

npm-git-install 属于待分类类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/npm-git-install

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/oh-my-skills --skill npm-git-install;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

npm-git-install 怎么安装?

在终端执行 npx skills add https://github.com/akillness/oh-my-skills --skill npm-git-install。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

npm-git-install 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

npm-git-install 需要什么权限?

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

npm-git-install 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

npm-git-install 用的人多吗?

公开数据是累计安装 1,903 次,近一周安装 77 次,下载 598 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

npm-git-install 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
infsh-cli

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
npm-git-install

npm git 安装 · 本页

1,90311需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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

平台分布

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