publish-cli
БесплатноБез исполняемых скриптовНе проверенUse when preparing, tagging, and publishing an apps/cli npm release. Guides changelog drafting, apps/cli/package.json version bumps, cli-vX.Y.Z tags, local…
от cline★ 72 030 звёзд на GitHubОб этом скилле
CLI Release
Use this skill when the user asks to release the CLI, publish cline, bump the CLI version, draft release notes, create a cli-vX.Y.Z tag, or trigger the CLI publish workflow.
The CLI is npm-only. Do not add alternate distribution channels. Windows binaries are Authenticode-signed automatically by the publish workflow via Azure Trusted Signing (see the .github/actions/sign-windows-cli composite action and "Windows code signing" in apps/cli/DISTRIBUTION.md); if the signing secrets are not configured the workflow warns and publishes unsigned binaries. Local publishes (bun release cli) do not sign — prefer the GitHub Actions publish path for releases users run on Windows.
Working directory: run every command below from the repository root. Paths and scripts (e.g.
apps/cli/package.json,sdk/packages/,bun release cli,bun run version) are written relative to the repo root.
The skill should guide the user through one release preparation flow, then offer the publish path options. The two normal publish paths are GitHub Actions and local publishing from an authenticated machine.
Release contract
- SDK prerequisite: the CLI depends on the SDK via
workspace:*(@cline/core,@cline/shared, and friends). If the SDK changed since its last release, release the SDK first and wait for it to finish publishing before releasing the CLI. See "Step 0: Release the SDK first if it changed" below. - Version source:
apps/cli/package.json. - Main release tag:
cli-vX.Y.Z, whereX.Y.Zmatchesapps/cli/package.json. - Nightly release version:
X.Y.Z-nightly.TIMESTAMP. - Release prep includes approved release notes, a version bump, and an
apps/cli/CHANGELOG.mdupdate. - Publish paths:
- GitHub workflow:
.github/workflows/cli-publish.yml. - Local publish helper:
bun release cli.
- GitHub workflow:
- npm dist-tags and git tags are separate.
--tag latestand--tag nightlyare npm registry channels.cli-vX.Y.Zis a git tag for source history and GitHub releases. - The GitHub main release workflow runs from
main, requires an existingcli-vX.Y.Ztag, checks out that tag, and publishes from it. - The GitHub nightly workflow publishes to npm with the
nightlydist-tag and does not create a tag. It is manual dispatch only; there is no cron. - Every CI publish (CLI main and nightly, SDK) waits for a reviewer to approve the run in the
PublishNPMGitHub environment, and the npm trusted publishers require that environment. The run sits inwaitinguntil approved; that is not a hang. Hand the user the run URL so they can click "Review deployments"; never approve it via the API. - The local release helper requires a clean checkout and
cli-vX.Y.Zto point atHEADlocally and onoriginbefore publishing. - Local GitHub release creation requires
ghto be authenticated with release permissions for the repo. - Always ask before pushing commits or tags.
- Do not amend commits unless explicitly requested.
Step 0: Release the SDK first if it changed
Do this before anything else in the Workflow below.
The CLI builds and ships against the SDK source in the monorepo (workspace:* for @cline/core, @cline/shared, and the rest), so a CLI release always contains the latest SDK code whether or not the SDK was released. The build and tests use that source too, not anything from npm. Releasing the SDK alongside the CLI is still worth doing for two reasons:
- Hub freshness. The hub daemon lives in
@cline/coreand stamps abuildIdthat defaults to the@cline/corepackage version (resolveHubBuildIdinsdk/packages/core/src/hub/discovery/index.ts). A running hub is only retired and respawned when thatbuildIdchanges (isCompatibleHubRecord/retireIncompatibleHubinsdk/packages/core/src/hub/daemon/index.ts). So if the SDK code changed but the version did not, a user who upgrades the CLI keeps talking to their already-running hub, which is still executing the old SDK code. Bumping the SDK version makes the new CLI'sbuildIddiffer, so the stale hub is detected as incompatible and respawned with the fresh code. - Release hygiene. We want regular SDK releases; cutting one whenever we cut a CLI release keeps the published SDK in step with what the CLI ships.
So when the SDK has changed, release it first (which bumps the @cline/core version), then cut the CLI release on top of that bump. Leave the CLI's SDK dependency as workspace:* — the fix is to release the SDK, not to pin the CLI.
- Check for unreleased SDK changes.
git fetch origin --tags
git tag --list 'sdk/sdk/v*' 'sdk-v*' --sort=-v:refname | head -1
git log <last-sdk-tag>..origin/main --oneline --no-merges -- sdk/packages
sdk/<pkg>/v* tags are created by the sdk-publish.yml workflow; sdk-v* tags are created by the local bun release sdk helper. Use whichever is newest as the baseline.
If git log prints no commits, the SDK is already up to date. Skip the rest of Step 0 and continue with the W
Установить publish-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл publish-cli?
Use when preparing, tagging, and publishing an apps/cli npm release. Guides changelog drafting, apps/cli/package.json version bumps, cli-vX.Y.Z tags, local npm publishing, and the publish-cli GitHub workflow.
Как установить скилл publish-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл publish-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic