agentleFS
jonathascostajonathascosta/claude-code-workflow/.claude/skills/release/SKILL.md

release

Skill2 starsChanged 13 days agoMITView on GitHub

Take an approved pull request to production and close the work - check nothing blocks the merge, merge after the user's ok, delete the branch, update the board, confirm the deploy started, ask for each environment's approval, follow the deploy, test in each environment, promote, and close the task and the story. Use when a pull request is approved, when the user says it can be merged or asks to follow a deploy, or when the user reports an approval, a merge or a finished deploy.

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-agent-adapter, changelog-style and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    create-agent-adapter

    Technical guide for creating a new Paperclip agent adapter. Use when building a new adapter package, adding support for a new AI coding tool (e.g. a new CLI agent, API-based agent, or custom process), or when modifying the adapter system. Covers the required interfaces, module structure, registration points, and conventions derived from the existing claude-local and codex-local adapters.

    Also in 6 projects that use this

  • GrinvSkill

    changelog-style

    Turn a commit range into CHANGELOG.md entries following common-changelog style. Use when finishing a PR (adding to the [Unreleased] section) or cutting a release (moving [Unreleased] under a new version heading).

    Also in 4 projects that use this

  • GrinvSkill

    docs-consistency-check

    Check README/manifest.json/server.json/CHANGELOG.md/AGENTS.md and docs/*.md for drift against the actual registered tools and source. Use after adding, renaming, or removing a tool, or as part of a live-audit pass.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    component-release

    Prepares and validates GPT-RAG MCP component releases. Use for versions, dependency locks, changelog entries, release branches, tags, GitHub Releases, and platform pin coordination.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    documentation-consistency

    Keeps AI Landing Zone contributor, user, and operator documentation aligned with shipped Bicep behavior. Use for parameters, defaults, outputs, topology, deployment flow, operations, or releases.

    Also in 8 projects that use this

  • m13vSkill

    test-release

    Use when the user says "test the release", "smoke test", "verify the build works", "test staging", "test the new version", or after promoting a release to staging/beta/stable. Smoke-tests the shipped Fazm production app via Sparkle auto-update on local + MacStadium, sends test queries via distributed notifications, checks logs. Does NOT build anything.

    Also in 3 projects that use this

  • +3 more from Grinv

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 9 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never cancel a run without asking: Look at its stages and approvals first: a run that someone already approved is expensive to replace.

    line 16
  2. Distinctive:

    A cause is a hypothesis until shown: When a deploy fails or is slow, read the failing stage's log before naming a cause.

    line 19
  3. Distinctive:

    Every required approval is present, on the current head.

    line 25
  4. Distinctive:

    No unresolved review thread, if the project blocks on them.

    line 26
  5. Distinctive:

    No conflict with the base branch.

    line 28
  6. Very specific:

    If other releases are queued, the merge order in project.md is respected.

    line 30
  7. Very specific:

    Use the project's method and commit format from project.md (for a squash on GitHub: the pull request title plus its number as the subject, …

    line 36
  8. Distinctive:

    Run the project's steps for "After a merge".

    line 43
  9. Very specific:

    Wait the time project.md gives (five minutes unless it says otherwise) before concluding anything: automatic runs take a few minutes to …

    line 51
  10. Very specific:

    c. Test: When the stage succeeds, test in that environment with smoke-test, as project.md describes.

    line 65
  11. Distinctive:

    Run the project's steps for "Before each promotion" before asking for the next approval.

    line 69
  12. Distinctive:

    After the tests in the last environment pass:

    line 73
  13. Distinctive:

    Run the project's steps for "When closing a task or a story".

    line 77

“Common” is measured: kept by at least 6 in 10 of the 179 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Merge and release

From an approved pull request to a closed task. Everything specific comes from .claude/project.md: the merge method and commit format, the merge order when several releases are queued, the board names for each moment, the environments deployed after a merge and their pipelines, how long to wait for an automatic deploy and how to start one by hand, who approves each gate and how they are asked, how to test in each environment, and the project's own steps after a merge, before a promotion and at closing. The commands for pipelines come from the pipeline recipes file project.md points to (reference/pipeline-operations.md lists what such a file provides).

This skill is long-running and is entered at any step: the user often reports an event in a few words ("approved", "it finished in preprod", "it went to prod"). Find the step that event belongs to, confirm it from the pull request or the pipeline, and continue from there. A reported event is not a yes to an action. "Approved" can mean the pull request was approved by a reviewer, a gate was approved, or the user approves something that was waiting; when more than one fits, ask.

Rules

  • The golden rule holds. In this skill, each of these needs its own explicit yes, every time: the merge (the question names the deletion of the feature branch that follows, so one yes covers both), starting any pipeline or job by hand, a test that writes to or costs money in production, and anything posted on the pull request.
  • Never cancel a run without asking. Look at its stages and approvals first: a run that someone already approved is expensive to replace.
  • The assistant never approves a gate. It drafts the request; a person approves.
  • Look before starting anything. List the runs that already exist for the release before deciding one is missing; a duplicate run wastes an approval.
  • A cause is a hypothesis until shown. When a deploy fails or is slow, read the failing stage's log before naming a cause.
  • Record each change of stage in the worklog, with the event's own time from the pull request or the pipeline (--at).
  • While something is waiting for the user or for an approver, end every message by saying what, and since when.

1. Check that it can merge

  • Every required approval is present, on the current head.
  • No unresolved review thread, if the project blocks on them.
  • The required checks pass. For a failing check, say whether project.md lists it as known not to block.
  • No conflict with the base branch.
  • The labels or settings the deploy depends on are still there.
  • If other releases are queued, the merge order in project.md is respected.

Report the result. If everything is clear, ask one question: may the pull request be merged and its feature branch deleted afterwards, or will the user merge it themselves? The user often merges themselves.

2. Merge, after the yes

Use the project's method and commit format from project.md (for a squash on GitHub: the pull request title plus its number as the subject, an empty body, and --match-head-commit <sha> so nothing merges that was not reviewed). Confirm it merged, and note the merged head.

Then:

  1. Refresh the base branch without touching the branch in hand: git fetch origin <base>, and also git fetch origin <base>:<base> when the base branch is not the one checked out (it only fast-forwards the local base, and refuses otherwise). Never pull into the current branch: another task may be checked out, possibly with uncommitted work, and a pull would create a merge commit nobody approved. New branches start from origin/<base>.
  2. Delete the feature branch, remote and local, only if it is safe: the remote branch and the local branch must both point at the head that was merged. If either has a commit beyond it, do not delete: show the extra commits and ask. Never delete a release branch or a shared integration branch. Git refuses to delete the branch that is checked out: if it is, and the deletion goes ahead, move off it first, with a clean working tree, by git switch --detach origin/<base> (or git switch <base> after the fetch above); with uncommitted work, stop and ask.
  3. Mark the task as "pull request merged" on the board, with the exact name from project.md, and read it back.
  4. Run the project's steps for "After a merge".

If the pull request was already merged by the user in the browser or by someone else (the watcher reported it, or the user says so), there was no yes for this step. Do item 1, then say what follows and ask once: deleting the branch (if it is safe, as in item 2), moving the task on the board, and the project's steps after a merge. If it was closed without merging, stop: tell the user and ask what they want to do, without proposing to delete the branch or move the task.

Worklog: mark <task id> merged --at <merge time>; the stage becomes the first environment's approval_<env> once its run reaches the gate.

3. Confirm the deploy started

Wait the time project.md gives (five minutes unless it says otherwise) before concluding anything: automatic runs take a few minutes to appear. Then list the runs for this release, with the pipeline recipes.

  • A run exists: note its link and go on.
  • More than one exists: do not cancel any; tell the user.
  • None after the wait: propose starting it by hand, exactly as project.md describes (the right pipeline, the exact ref), and wait for the yes.

4. For each environment deployed after the merge, in order

The environments table in project.md says which environments are deployed after a merge and in what order. An environment used only before the pull request (a development environment) is not part of this step.

a. Ask for the approval. As soon as the run reaches the gate, draft the request (message) for the approver that project.md names for this component and environment, in the form it asks for (channel, tone, what to include; always the run link). Give it in a code fence; the user sends it. Do this at the same moment the gate appears, not after the deploy is noticed to be stuck.

b. Follow the run. Check in the background at a sensible interval for the stage's usual duration; do not poll every few seconds, and do not sleep in the foreground. A gate waiting for its approver, and a deploy whose usual duration is over the long-wait threshold in project.md, are long waits: say how long this one is likely to take, and propose the next piece of work at once by running story-start as far as its plan (unless the limit of tasks in flight is reached). The background check keeps running meanwhile; when it reports, come back to this release first. Report when the gate is approved, when the stage starts and when it ends. If it runs well past its usual duration, look at the stage's log before saying why.

c. Test. When the stage succeeds, test in that environment with smoke-test, as project.md describes. In production, ask before any test that writes data or costs money, saying what it will do. Report the results as a table.

d. Decide. If the tests pass, say so and move to the next environment's gate (step a). If they fail, stop and do not promote: show the evidence, say whether the cause is the change, the data or the platform as far as it is shown, and propose what to do. A fix is new work under the same task: a new branch from origin/<base> after a fetch (if another task is checked out, park it first as pr-answer describes), then the normal loop (self-review, pr-open, review, this skill again); say whether the failed release should be left where it is or rolled back, and let the user decide. Do not promote a release that a later release will replace within the day without asking.

Run the project's steps for "Before each promotion" before asking for the next approval.

5. Close

After the tests in the last environment pass:

  1. Mark the task as "verified in production" on the board, and read it back.
  2. Look at the story: list every task under it, anyone's. If all are closed and no further work is foreseen for it (check the acceptance criteria against what was delivered; a part with no task yet is still work), propose closing the story and close it on the user's yes. If a teammate's task is still open, leave the story open and say why.
  3. Run the project's steps for "When closing a task or a story".
  4. Worklog: close <task id>.

Report: what was released and where, the test results per environment, the board changes, and the task's timing report from the worklog.

Then the cycle starts again: run story-start now, without being asked, for the story's next task or the next story. It stops at its plan.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.