跳到正文
cccskills
免费在 GitHub 公开

release-this

Orchestrates the full powerball-harness plugin release with build, validation, version bump, CHANGELOG, tag, and GitHub Release. Use when releasing this plugin.

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(9)

  • SKILL.md6.9 KB
  • references/versioning-rules.md2.5 KB
  • references/writing-changelog.md2.9 KB
  • scripts/bench-residue.sh1.2 KB
  • scripts/check-consistency.sh19.7 KB
  • scripts/check-residue.py16.2 KB
  • scripts/release-preflight.sh12.2 KB
  • scripts/sync-version.sh6.6 KB
  • scripts/validate-release-notes.sh2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Release This Plugin

Project-specific release orchestrator for the claude-code-harness plugin. Runs all plugin-specific checks (build, consistency, validation, Codex templates, version sync), then handles the full release: version bump, CHANGELOG update, commit/tag/push, and GitHub Release creation.

Quick Reference

ArgumentBehavior
patchPatch version bump (bug fixes, x.y.Z+1)
minorMinor version bump (new features, x.Y+1.0)
majorMajor version bump (breaking changes, X+1.0.0)
--dry-runRun steps 1–5 only; print what would happen; skip publishing
--completeMark release complete only (step 7 — empty commit + push)

Execution Flow

Step 1: Cross-platform binary build if there are changes in go/ since the last release

Run make build-all to compile darwin-arm64, darwin-amd64, and linux-amd64 binaries unless there are no changes in go/ source files since the last release. This ensures that any build issues are caught before proceeding with release validation or publishing steps.

make build-all

Fail immediately if make build-all exits non-zero. Do not proceed to step 2.

Step 2: Plugin consistency checks

Run the 13 plugin-specific consistency checks. These verify symlink integrity, template consistency, version alignment, and structural invariants.

bash "${CLAUDE_SKILL_DIR}/scripts/check-consistency.sh"

Step 3: Full plugin validation

bash ./tests/validate-plugin.sh

This runs all CI-gated checks: marketplace.json structure, skill frontmatter, hook schemas, section 9 migration residue scan, and section 10 skill-description audit.

Step 4: Codex template verification

Verify that the Codex CLI configuration templates and the Codex-specific skill bodies are present and readable. Missing files would ship a broken Codex experience to users.

4a. Codex CLI config templates (harness/templates/codex/):

ls -la harness/templates/codex/

Confirm AGENTS.md, README.md, config.toml, .codexignore, and rules/ are all present.

4b. Codex skill bodies (harness/templates/codex-skills/):

ls -la harness/templates/codex-skills/
ls harness/templates/codex-skills/*/SKILL.md

Confirm each subdirectory (breezing, harness-schedule-run, harness-work) contains a SKILL.md. A missing SKILL.md means that Codex-variant skill is broken.

Step 5: Version sync check

Verify that harness/VERSION and harness/harness.toml agree before proceeding.

HARNESS_RELEASE_EXTRA_VERSION_FILES="harness/harness.toml" bash "${CLAUDE_SKILL_DIR}/scripts/sync-version.sh" check

If there is a mismatch, stop and ask the user to run:

HARNESS_RELEASE_EXTRA_VERSION_FILES="harness/harness.toml" bash "${CLAUDE_SKILL_DIR}/scripts/sync-version.sh" sync

or manually reconcile the files before proceeding.


Dry-run stops here. In --dry-run mode, steps 1–5 run normally but no release is published, no files are written, and no git commits or tags are created. Report what the release would contain and what the new version would be, then exit.


Step 6: Release phases (preflight → CHANGELOG → commit/tag/push → GitHub Release)

Create the wrapper lock:

mkdir -p .claude/state && touch .claude/state/harness-release-wrapper.lock

Phase 0–2 (preflight + version bump): Delegate to releaser agent via setup invocation:

Agent(
  subagent_type: "releaser",
  description: "run preflight and bump version",
  prompt: "{\"schema_version\":\"releaser-request.v1\",\"invocation\":\"setup\",\"bump_type\":\"<patch|minor|major>\"}"
)

Parse new_version from the releaser-response.v1 response. If status is "error", surface the error field and abort.

Phase 3 (CHANGELOG): Move [Unreleased] content into ## [X.Y.Z] - YYYY-MM-DD. Keep empty ## [Unreleased] above it. Format rules: references/writing-changelog.md.

Phase 3.5 (Validate release notes): Validate CHANGELOG and release notes:

bash "${CLAUDE_SKILL_DIR}/scripts/validate-release-notes.sh"

Phase 4–5 (commit/tag/push): Delegate to releaser agent via finalize invocation:

Agent(
  subagent_type: "releaser",
  description: "commit, tag, push release v<new_version>",
  prompt: "{\"schema_version\":\"releaser-request.v1\",\"invocation\":\"finalize\",\"version\":\"<new_version>\"}"
)

Parse git_hash from the response. If status is "error", surface the error and changes fields.

Phase 6 (GitHub Release): Create the GitHub Release:

gh release create "v${NEW_VERSION}" \
  --title "v${NEW_VERSION} - <one-line summary>" \
  --notes "$(cat <<'EOF'
## What's Changed
...
EOF
)"

Wait for GitHub Release creation to succeed before proceeding to step 7.

Step 7: Completion marking commit

After step 6 finishes, create an empty commit to mark the release as fully complete, then push it. Remove the wrapper lock when done.

NEW_VERSION=$(cat harness/VERSION)
git commit --allow-empty -m "chore: mark v${NEW_VERSION} release complete"
git push origin "$(git rev-parse --abbrev-ref HEAD)"
rm -f .claude/state/harness-release-wrapper.lock

This empty commit is the explicit record that "all release work is done." It is separate from the chore: release vX.Y.Z commit created by the releaser agent.


--complete Mode

When called with --complete, execute only step 7 (the completion marking commit). Use this if step 6 already finished but the completion commit was not created.

NEW_VERSION=$(cat harness/VERSION)
# Verify a GitHub Release exists for this version before marking complete
gh release view "v${NEW_VERSION}" || { echo "ERROR: GitHub Release v${NEW_VERSION} not found. Create it first."; exit 1; }
git commit --allow-empty -m "chore: mark v${NEW_VERSION} release complete"
git push origin "$(git rev-parse --abbrev-ref HEAD)"

Related Skills

  • harness-review — Run before release to catch issues early
  • harness-plan — Plan the next release tasks
  • harness-work — Work on tasks

Related Rules and References

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

allow1

免费

Use when generating, vectorizing, or converting images to SVG — logos, icons, illustrations, or 'allow1'/'quiver' references.

中文简介正在准备中。当前显示原文说明。

tim-hub/powerball-harness352026年8月5日 更新

breezing

免费

Use when running the full team/breezing flow end-to-end — all tasks with parallel workers. Do NOT load for: single-task implementation, planning, review, release, or setup.

中文简介正在准备中。当前显示原文说明。

tim-hub/powerball-harness352026年8月5日 更新

Reviews PRs that modify the Feature Table in CLAUDE.md. Use when a PR adds CC version rows or modifies docs/CLAUDE-feature-table.md.

中文简介正在准备中。当前显示原文说明。

tim-hub/powerball-harness352026年8月5日 更新

Use when researching Claude Code or Codex upstream releases, selecting adaptations, or preparing Harness upgrades. Local-only; not for distribution.

中文简介正在准备中。当前显示原文说明。

tim-hub/powerball-harness352026年8月5日 更新

Creates a single project slide or one-page visual summary for a repo. Use when generating a project intro image or promotional slide.

中文简介正在准备中。当前显示原文说明。

tim-hub/powerball-harness352026年8月5日 更新

Generates product demo videos and release walkthroughs via Remotion. Use when creating video documentation or animated demos.

中文简介正在准备中。当前显示原文说明。

tim-hub/powerball-harness352026年8月5日 更新

查看 tim-hub 的全部技能

报告此技能的问题