Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计提醒

cli-forge-publishCLI forge publish 命令行

Agent Skill

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

总安装

784

周安装

33

GitHub Stars

公开资料未说明

下载量

275
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/bytelandtechnology/cli-forge --skill cli-forge-publish

简介

cli-forge-publish 管理合规 CLI 技能的发布流水线,包括本地预发布与 GitHub Release + npm 发布。

  • 适合执行版本化发布流程,生成 git tag 与平台分包 npm 发布。
  • 需运行本地 prepublish 步骤并处理多包发布逻辑,依赖语义化 release 事件。
  • 安装前应确认 CI/CD 环境配置正确,避免发布中断或权限错误。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

cli-forge Publish

Use this stage when a compliant generated CLI skill needs to adopt standard release automation, prepare a new version, or execute the paired GitHub Release + multi-package npm publication flow.

Purpose

Manage the release pipeline for a generated cli-forge skill.

This stage owns the bootstrap + production publication flow:

  • a required local prepublish step for the main package plus all platform packages
  • the paired repo-native GitHub Release plus platform-split npm publication from the later semantic-release event

One production release produces:

  • git tag v<version> + GitHub Release (archive + sha256 per target)
  • 6 per-platform npm packages (<pkg>-darwin-arm64 / -darwin-x64 / -linux-arm64 / -linux-x64 / -win32-arm64 / -win32-x64) carrying the native binaries
  • 1 main npm package (JS shim, optionalDependencies pinned to the same version)
  • CHANGELOG.md entry + chore(release): <version> [skip ci] commit

All npm packages publish in one semantic-release run and share the version with the git tag + GitHub Release. The total count is 1 + config.targets.length (default: 7).

Canonical References

Entry Gate

#CheckSource
1validation-report.yml exists, is fresh, and result == compliant or warningValidate
2Target repository path is explicitly knownRouter / User
3Requested publish mode is explicitRouter / User
4npm package naming contract, CLI name, and scope decisions are explicitUser

Scope decisions are required inputs at this stage. Collect the main package name plus the scope policy for both the main package and the platform packages. The main package and platform packages may use different scopes, but platform names must still derive from the main package body plus -<target-suffix>.

Required Inputs

  • Validation outcome plus provenance snapshot (refusal to publish if non_compliant, stale, or provenance-mismatched)
  • Publish mode: report_only, dry_run, prepublish, or live_release
  • Source project path
  • cliName — the CLI binary name
  • mainPackageName — the main npm package name (with scope prefix if scoped)
  • mainNpmScopenull for unscoped, or the scope string for the main package
  • platformNpmScopenull for unscoped platform packages, or a separate scope string
  • sourceRepositoryowner/repo on GitHub

Workflow

  1. Read ./planning-brief.md for publish-specific planning constraints.
  2. Accept the inbound validation-report.yml. Refuse to proceed if validation failed; do not re-run validation here.
  3. Verify validation freshness before any publish-mode action:

- compare the current .cli-forge/design-contract.yml, .cli-forge/cli-plan.yml, baseline receipt (scaffold-receipt.yml or takeover-receipt.yml), and optional extend-receipt.yml against the provenance snapshot recorded in validation-report.yml - for takeover-adopted baselines, require the report provenance to match the current adopted contract + receipt set exactly; do not rely only on the aggregate validation result - if any required baseline artifact is missing, has a different receipt, or takeover recorded contract/baseline rewrites after validation, stop and route back to Validate

  1. Ask the user for the inputs listed above if not already collected. If the mode is report_only, skip to step 7.
  2. If the skill project lacks the release automation assets, adopt them by copying the contents of ./templates/ to the project root while restoring the install-safe dot-* resource aliases to their real dot-prefixed target paths (dot-releaserc.json ->.releaserc.json, dot-github/ ->.github/, npm/platforms/dot-gitkeep ->.gitkeep). The adopted asset pack does NOT contain Scaffold-stage source templates (*.tpl).
  3. Fill release/config.json and npm/main/package.json with the collected inputs. release/config.json must explicitly record mainPackageName, mainNpmScope, and platformNpmScope.
  4. Verify the target repository has:

- GitHub Actions enabled on a GitHub-hosted runner with id-token: write - npm trusted publishing configured on npmjs.com for the main package and for each of the 6 platform packages, every entry pointing at release.yml

  1. Follow the mode path defined in ./instructions/release/skill-release-runbook.md:

- report_only: audit readiness only. Read config and repository state, report blockers and next actions. Do NOT copy files, fill placeholders, or alter the repository in any way. - dry_run: run npm run release:rehearse locally. This builds every target, syncs platform packages, and runs npm publish --dry-run for each. No tag, no GitHub Release, no real npm publication. - prepublish: run npm run release:prepublish locally. This performs a real public npm bootstrap publish for every platform package and the main package using a dedicated bootstrap prerelease version. If local auth is missing, pause for interactive npm login, surface the verification URL, and continue only after the user completes browser verification. - live_release: push to main (or workflow_dispatch) so the target repository's .github/workflows/release.yml, restored from the installer-safe asset-pack resource dot-github/workflows/release.yml, drives the end-to-end run. Do not proceed to live_release until prepublish bootstrap has completed for the configured package set.

  1. Generate .cli-forge/release-receipt.yml from the template at ./contracts/release-receipt.yml.tpl.

Outputs

  • A verified prepublish bootstrap for 1 main + N platform npm packages (if prepublish)
  • A verified GitHub Release with archives + checksums (if live_release)
  • 1 main + N platform npm packages published at the same production version (if live_release)
  • Updated CHANGELOG.md and release commit on main
  • .cli-forge/release-receipt.yml

Exit Gate

#Check
1The requested mode was executed
2For report_only: no files were written to the target repository
3For dry_run / prepublish / live_release: asset pack adopted and filled
4For prepublish: the bootstrap npm prerelease completed without creating a tag or GitHub Release
5For live_release: version, tag, main package, platform packages agree
6release-receipt.yml generated

Guardrails

  • All npm packages (main + platforms) MUST share the version chosen by semantic-release. The two release scripts enforce this by consuming ${nextRelease.version} from semantic-release hooks.
  • The bootstrap prepublish step MUST use a dedicated prerelease version such as 0.0.0-prepublish.N. It is not a production release.
  • Main and platform packages may differ only by scope. Do not introduce arbitrary per-platform package base names.
  • Do not bypass stale validation. If the codebase changed since the last validation report, route back to Validate.
  • For takeover-adopted repositories, freshness checks MUST verify provenance against the current contract + receipt set, not just validation-report.yml aggregate status or timestamp.
  • Do not hand-bump npm/main/package.json#version, hand-edit CHANGELOG.md release entries, or create tags outside semantic-release.
  • Interactive npm login guidance belongs only to local prepublish. Production CI publication must continue to rely on trusted publishing.
  • Do not leave dot-* alias names in the target repository. Those names exist only inside this skill package so .agents installers preserve the assets.
  • The asset pack's npm/platforms/ directory is generated at release time. Do not check generated platform package directories into source control beyond the .gitkeep placeholder.

Next Step

This is a terminal stage.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.08%
按下载量换算105

Claude

27.48%
按下载量换算76

Cursor

17.79%
按下载量换算49

Gemini CLI

8.92%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills