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

skill-publish技能发布

Agent Skill

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

总安装

894

周安装

38

GitHub Stars

11

下载量

313
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/b-open-io/prompts --skill skill-publish

简介

Skill Publish 提供 Claude Code 插件与独立 Agent Skill 的发布流程,含版本管理与变更日志。

  • 适用于希望将自定义技能推送到公共市场或内部共享的团队,支持 Git 工作流集成。
  • 自动识别项目类型(插件或独立技能),处理 manifest、依赖与发布元数据。
  • 发布方式为推送至 GitHub,无需额外注册或 OTP,但需确保代码符合 agentskills.io 规范。
  • 建议在 CI 中运行 lint 与测试后再提交,避免因格式错误导致发布失败。

SKILL.md

Skill Publish

Publish Claude Code plugins and standalone Agent Skills with proper versioning, changelog management, and git workflow.

Determine Publish Type

Before starting, identify the publish type based on project structure:

IndicatorType
.claude-plugin/plugin.json existsClaude Code Plugin
Standalone SKILL.md with no plugin manifestStandalone Agent Skill

Claude Code plugins publish by pushing to GitHub — the marketplace picks up the latest commit on the default branch automatically. No registry upload or OTP is needed.

Standalone Agent Skills follow the agentskills.io specification and distribute as directories containing SKILL.md.

Claude Code Plugin Workflow

1. Check Current State

# Read current version from manifest
cat .claude-plugin/plugin.json | grep '"version"'

# Check git is clean and up to date
git fetch origin && git status

# Review commits since last version bump
git log --oneline $(git describe --tags --abbrev=0 2>/dev/null || echo HEAD~10)..HEAD

2. Bump Version in plugin.json

Edit .claude-plugin/plugin.json to increment the version field. For early-stage plugins (0.x.x or 1.0.x), bump the patch version unless the user requests otherwise:

0.1.6 → 0.1.7
1.0.23 → 1.0.24

3. Update CHANGELOG.md

If a changelog exists, add an entry following the existing format:

## [X.X.X] - YYYY-MM-DD

### Added
- New features

### Changed
- Changes to existing functionality

### Fixed
- Bug fixes

Summarize commits since the last release into appropriate categories.

4. Validate Plugin Structure

Before publishing, verify the plugin is well-formed:

  • .claude-plugin/plugin.json has required name field
  • Component directories (commands/, agents/, skills/, hooks/) contain valid files
  • Skills have SKILL.md with valid YAML frontmatter (name + description)
  • Agents and commands have .md files with YAML frontmatter
  • Referenced files and scripts exist

5. Commit and Push

Critical: Pushing to the default branch IS publishing. The Claude Code plugin marketplace automatically picks up the latest commit.

git add .claude-plugin/plugin.json CHANGELOG.md
# Also stage any changed skill/agent/command files
git add -A
git commit -m "Release vX.X.X"
git push origin <default-branch>

6. Verify Publication

After pushing, verify the plugin update is available:

CLAUDECODE= claude plugin update <plugin-name>@<publisher>

The CLAUDECODE= prefix is required to avoid nested session errors when running from within Claude Code.

Note: The marketplace may take a few minutes to reflect the new version.

7. Update Downstream References

If the plugin version is tracked elsewhere (e.g., a marketplace page, documentation, or lib/plugins.ts), update those references to match the new version.

Standalone Agent Skill Workflow

For skills not bundled in a Claude Code plugin, follow the agentskills.io specification.

1. Validate SKILL.md

Verify frontmatter meets the spec. For details, consult references/agentskills-spec.md.

Required fields:

  • name: 1-64 chars, lowercase alphanumeric + hyphens, must match directory name
  • description: 1-1024 chars, describes what and when

Optional fields:

  • license, compatibility, metadata, allowed-tools

2. Validate Structure

skill-name/
├── SKILL.md          # Required
├── scripts/          # Optional executables
├── references/       # Optional docs loaded on demand
└── assets/           # Optional static resources

3. Version via Metadata

Track version in the frontmatter metadata field:

metadata:
  author: org-name
  version: "1.1.0"

4. Distribute

Standalone skills distribute as directories. Common methods:

  • Git repository (push to GitHub)
  • Archive (zip the skill directory)
  • Package registry (if applicable)

Common Issues

Plugin Not Updating

If claude plugin update does not pick up changes:

  • Verify the push landed on the default branch (usually main or master)
  • Check that .claude-plugin/plugin.json is valid JSON
  • Wait a few minutes for marketplace propagation

Version Already Exists

If the version string was already used in a previous commit, bump again to the next patch before pushing.

Nested Session Error

Always prefix CLI commands with CLAUDECODE= when running from within an active Claude Code session to avoid the "nested session" error.

Additional Resources

Reference Files

  • references/agentskills-spec.md — Complete agentskills.io specification summary for standalone skills

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.12%
按下载量换算107

Claude

30.66%
按下载量换算96

Cursor

18.84%
按下载量换算59

Gemini CLI

9.65%
按下载量换算30

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills