Skip to content

chore(skills): add /cut-release skill - #594

Merged
ritzorama merged 1 commit into
masterfrom
chore/cut-release-skill
Jul 23, 2026
Merged

ritzorama merged 1 commit into
masterfrom
chore/cut-release-skill

Conversation

@ritzorama

@ritzorama ritzorama commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

What

Adds a /cut-release skill at .claude/skills/cut-release/SKILL.md so cutting
a release of this repo is consistent, documented, and delegatable.

Why

Releasing here is a single action: publish the current Release Drafter draft.
Release Drafter owns the tag and the notes (the patch version auto-increments), and
the released event drives the repo's downstream automation. This skill captures that
flow - wait for the drafter run to fold in the just-merged PR, confirm the draft, then
flip it to published - so anyone (human or agent) can run it the same way. Rolled out
from the canonical template in layer5io/meshery-cloud.

Scope

Documentation/tooling only - a single new skill file. No code or workflow changes.

Summary by CodeRabbit

  • Documentation
    • Added guidance for publishing releases through the repository’s automated release process.
    • Documented steps for verifying draft creation, confirming release notes, publishing the release, and checking its status.
    • Added safeguards to help prevent premature publishing, duplicate drafts, or manually created release metadata.

Document how to cut a release of this repo by publishing the current
Release Drafter draft. Rolled out from the meshery-cloud canonical template.

Signed-off-by: Rian the rizzler <182301570+ritzorama@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 23, 2026 20:17
@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Adds a cut-release skill guide that explains how to wait for Release Drafter, inspect and publish the existing draft, and verify the resulting release.

Changes

Release skill documentation

Layer / File(s) Summary
Release flow and publishing procedure
.claude/skills/cut-release/SKILL.md
Defines the Release Drafter workflow, documents CLI-based draft inspection and publication, adds validation checks, and lists release failure modes to avoid.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: adding the new /cut-release skill.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/cut-release-skill

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Claude skill (cut-release) documenting the repo’s release process so publishing the current Release Drafter draft is consistent and repeatable.

Changes:

  • Introduces .claude/skills/cut-release/SKILL.md with a step-by-step procedure for publishing the Release Drafter draft via gh.
  • Documents verification steps to ensure the Release Drafter run has completed and the draft notes include the latest merged PR before publishing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +23 to +26
- `.github/workflows/release-drafter.yml` runs on **every push to `master`**. As PRs
merge, it maintains a single **draft** GitHub Release whose tag auto-increments (the
patch version bumps after each publish). There is always exactly one draft waiting to
be published.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.claude/skills/cut-release/SKILL.md:
- Around line 23-26: Update the release-drafter description in the cut-release
skill to say it normally maintains one draft rather than asserting that exactly
one draft always exists. Preserve the later explicit draft-count check and its
documented zero-draft behavior.
- Around line 27-29: Update the release workflow documentation in SKILL.md to
capitalize “GitHub” correctly wherever the platform name appears, including the
“GitHub Actions” reference, without changing the surrounding release behavior
description.
- Around line 51-56: Update the release workflow instructions around the current
origin/master SHA to handle an absent workflow run before invoking gh run watch:
instruct the user to rerun or poll gh run list until the run appears, then pass
its database ID to gh run watch; retain the existing wait behavior for runs
already in_progress.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: dc5687cc-2c27-4fd1-a244-cd3201b79250

📥 Commits

Reviewing files that changed from the base of the PR and between 310ccd8 and 77cba74.

📒 Files selected for processing (1)
  • .claude/skills/cut-release/SKILL.md

Comment on lines +23 to +26
- `.github/workflows/release-drafter.yml` runs on **every push to `master`**. As PRs
merge, it maintains a single **draft** GitHub Release whose tag auto-increments (the
patch version bumps after each publish). There is always exactly one draft waiting to
be published.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Avoid asserting that a draft always exists.

This conflicts with the later documented zero-draft case at Lines 106-107 and can make users assume a release is available when none exists. Use “normally maintains one draft” and retain the explicit count check before publishing.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/cut-release/SKILL.md around lines 23 - 26, Update the
release-drafter description in the cut-release skill to say it normally
maintains one draft rather than asserting that exactly one draft always exists.
Preserve the later explicit draft-count check and its documented zero-draft
behavior.

Comment on lines +27 to +29
- Publishing that draft (the release `published` event) triggers
`.github/workflows/multi-platform.yml`, which builds the multi-architecture meshsync
container images and pushes them to the registry, tagged with the released version.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Capitalize “GitHub.”

Change “GitHub Actions” to use the platform’s official capitalization.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~27-~27: The official name of this software platform is spelled with a capital “H”.
Context: ...the release published event) triggers .github/workflows/multi-platform.yml, which bu...

(GITHUB)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/cut-release/SKILL.md around lines 27 - 29, Update the release
workflow documentation in SKILL.md to capitalize “GitHub” correctly wherever the
platform name appears, including the “GitHub Actions” reference, without
changing the surrounding release behavior description.

Source: Linters/SAST tools

Comment on lines +51 to +56
If the run for the current `origin/master` SHA is still `in_progress` (or absent because the
push just landed), wait for it before publishing:

```bash
gh run watch <databaseId> --exit-status
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Handle an absent workflow run before calling gh run watch.

When the run is absent, there is no <databaseId> to pass to gh run watch. Explicitly instruct the user to rerun or poll gh run list until the run appears, then watch that run.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.claude/skills/cut-release/SKILL.md around lines 51 - 56, Update the release
workflow instructions around the current origin/master SHA to handle an absent
workflow run before invoking gh run watch: instruct the user to rerun or poll gh
run list until the run appears, then pass its database ID to gh run watch;
retain the existing wait behavior for runs already in_progress.

@ritzorama
ritzorama merged commit 91420b0 into master Jul 23, 2026
7 checks passed
@ritzorama
ritzorama deleted the chore/cut-release-skill branch July 23, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants