Token导航 LogoToken导航TokenDH.com
运维和基础设施只读github未标认证来源可访问clear审计通过

npm-publishernpm 发布者

Agent Skill

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

总安装

449

周安装

18

GitHub Stars

176

下载量

145
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/klaudworks/universal-skills --skill npm-publisher

简介

npm-publisher 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 建议结合来源仓库和原始 README 核验具体用法。

SKILL.md

NPM Publisher

Overview

This skill provides a complete workflow for publishing npm packages with automated CI/CD. It handles version bumping, git tagging, and triggering automated npm publishing through GitHub Actions.

Release Workflow

Follow this workflow when releasing a new version with unstaged changes:

Step 1: Stage All Changes

Stage all pending changes:

git add .

Step 2: Commit the Changes

Commit with a meaningful message describing what changed:

git commit -m "$(cat <<'EOF'
<Description of changes>

<Optional: more details>
EOF
)"

Important: Never add attributions to a coding agent in commit messages.

Step 3: Determine Version Type

Ask the user which type of version bump is appropriate, or infer from the changes:

  • patch - Bug fixes (3.0.2 → 3.0.3)
  • minor - New features (3.0.3 → 3.1.0)
  • major - Breaking changes (3.1.0 → 4.0.0)

If unclear, analyze the git diff to determine the appropriate version type based on:

  • Bug fixes only → patch
  • New features without breaking changes → minor
  • Breaking changes or major refactors → major

Step 4: Bump Version

Bump the version using npm:

npm version <patch|minor|major>

This command will:

  • Increment the version in package.json
  • Create a git commit with the version bump
  • Create a git tag (e.g., v3.0.3)

Step 5: Push Commits and Tags

Push both commits and tags to the remote repository:

git push && git push --tags

Step 6: Verify Publishing

After pushing, publishing happens automatically through CI/CD:

  1. GitHub Actions automatically publishes to npm when a new tag is pushed
  2. Wait approximately 30 seconds for CI to complete
  3. Verify the release succeeded:
gh run list --limit 1

Step 7: Test the New Version

After CI completes successfully, verify the published version:

# Clear npx cache if needed
npx clear-npx-cache

# Test the new version (replace 'universal-skills' with the actual package name)
npx <package-name> --version

Error Handling

Common Issues

Uncommitted changes error:

  • Ensure all changes are committed before running npm version
  • Use git status to check for uncommitted changes

Push rejected:

  • Pull latest changes with git pull --rebase
  • Resolve any conflicts
  • Retry the push

CI/CD failure:

  • Check GitHub Actions logs: gh run view --log
  • Common causes: failing tests, missing credentials, npm registry issues
  • Fix the issue and create a new patch release if needed

Version already exists:

  • Check if the version was already published: npm view <package-name> versions
  • Bump to the next version if needed

Best Practices

  1. Always review changes before publishing with git status and git diff
  2. Run tests before publishing to catch issues early
  3. Write meaningful commit messages that explain the "why" not just the "what"
  4. Use semantic versioning consistently to manage user expectations
  5. Verify the release by testing the published package

Pre-Release Checklist

Before starting the release workflow, ensure:

  • All tests pass
  • Build succeeds without errors
  • Breaking changes are documented
  • Dependencies are up to date
  • No sensitive information in commits

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

27.79%
按下载量换算40

windsurf

23.16%
按下载量换算34

trae

17.61%
按下载量换算26

OpenCode

11.64%
按下载量换算17

Codex

8.26%
按下载量换算12

Antigravity

3.08%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills