git-flow-release
Skill0 starsChanged 3 months agoMITView on GitHub
Prepare, finish, and publish a repository release that follows Git Flow, with or without an explicit SemVer version. Use when the user asks to create or finish a release branch, infer the next release version, merge a release into the production and development branches, create and push a release tag, or publish the completed Git Flow refs. Do not use for ordinary commits or pushes, pull requests, release-notes-only work, deployments without a Git release, history rewriting, or force-pushes.
In this repository7 other files it gives its agents.
- audit-product-experienceSkill
- commit-messageSkill
- git-deliver-workSkill
- management-talkSkill
- post-mortemSkill
- repo-next-taskSkill
- scrutinizeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 27 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈27
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 12
Read repository instructions and release documentation before deciding the workflow.
- Very specific: line 19
Stop and ask when production/development branches, tag format, release graph, or version sources remain materially ambiguous.
- Distinctive: line 25
Never silently change an explicitly supplied version.
- Distinctive: line 27
When no version is supplied:
- Distinctive: line 31
Prefer a documented unreleased version when the included work completes that release.
- Distinctive: line 32
Ask the user when multiple versions remain plausible or the breaking-change boundary is unclear.
- Distinctive: line 34
Verify that the resolved version is newer than the latest stable release and that its local tag, remote tag, local release branch, and …
- Distinctive: line 38
Treat repository-required release metadata as part of the release:
- Distinctive: line 43
After confirmation, update metadata on the release branch, format it, run its targeted checks, and commit it using repository conventions.
- Distinctive: line 44
Before tagging, verify that all authoritative version sources and release notes agree with the target version.
- Distinctive: line 46
When the repository requires no metadata change, state that explicitly in the confirmation plan.
- Distinctive: line 50
Always stop for explicit confirmation before switching or creating branches, committing release metadata, merging, tagging, pushing, or …
- Distinctive: line 61
If any version, content, ref, metadata, or deletion scope changes afterward, present the updated plan and confirm again.
- Distinctive: line 68
Check whether production and development branches are behind or diverged from their upstreams.
- Distinctive: line 71
Stop for conflicts, ambiguous ancestry, unexpected refs, protected-branch constraints that prevent the workflow, or an existing target tag.
- Distinctive: line 78
Run repository-required release checks and targeted checks for metadata and application changes not already verified.
- Distinctive: line 79
Run git diff --check for outgoing ranges.
- Distinctive: line 80
Use the repository's CI workflow as the authoritative full gate when documented.
- Distinctive: line 81
Do not repeat the complete local CI suite solely for ceremony unless the user requests it, CI is unavailable, or unverified high-risk …
- Distinctive: line 82
Stop before publishing when required checks fail unless the user explicitly accepts a repository-supported exception.
- Distinctive: line 86
Prefer the repository's documented release graph.
- Distinctive: line 94
Run non-interactive Git operations in this order:
- Distinctive: line 98
Create the annotated release tag on the production merge commit.
- Distinctive: line 101
Delete the local release branch only after both merges and the tag succeed and only when confirmed.
- Distinctive: line 109
Delete the remote release branch only when it existed before finishing, deletion was confirmed, and the release refs were pushed …
- Distinctive: line 111
Never force-push, rewrite history, move a tag, delete another branch, create a hosting-platform release, or start a deployment unless …
- Distinctive: line 112
Treat successful ref verification as completion.
- Distinctive: line 126
Never claim a deployment succeeded merely because release refs were pushed.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Flow Release
Prepare and publish one repository release while discovering branch names, version sources, metadata, checks, and remote conventions from the repository instead of assuming project-specific paths.
Discover repository conventions
- Read repository instructions and release documentation before deciding the workflow.
- Resolve the production and development branches in this order:
- Git Flow config such as
gitflow.branch.masterandgitflow.branch.develop; - explicit repository documentation;
- the remote default branch plus an existing development branch.
- Git Flow config such as
- Resolve the release branch prefix and tag prefix from Git Flow config, existing release branches, stable SemVer tags, and repository documentation. Default to
release/only when no conflicting convention exists. - Discover release metadata and verification requirements from repository instructions, CI workflows, release scripts, changelogs, manifests, version files, and roadmap or milestone documents.
- Stop and ask when production/development branches, tag format, release graph, or version sources remain materially ambiguous. Never impose
main,develop, avprefix, or a specific changelog layout without evidence.
Resolve the version
- Accept an explicit version or a release branch containing a stable three-part SemVer
X.Y.Z. - Preserve the repository's established tag prefix, such as
X.Y.ZorvX.Y.Z. - Never silently change an explicitly supplied version.
When no version is supplied:
- Fetch the remote and tags, then identify the highest stable SemVer tag under the repository's tag convention.
- Inspect changes since that tag and any planned version in manifests, milestones, changelogs, or release branches.
- Prefer a documented unreleased version when the included work completes that release. Otherwise apply SemVer from the actual change scope.
- Ask the user when multiple versions remain plausible or the breaking-change boundary is unclear.
Verify that the resolved version is newer than the latest stable release and that its local tag, remote tag, local release branch, and remote release branch do not conflict. Never move or replace a published tag; prepare a new patch or hotfix version instead.
Gate release metadata
Treat repository-required release metadata as part of the release:
- Identify every required changelog, manifest, version constant, lockfile, roadmap, generated file, or release-note artifact.
- Derive entries only from changes included since the latest production tag and follow the repository's rules for user-facing versus internal changes.
- Include exact proposed release-note text and metadata edits in the confirmation plan when wording requires user review.
- After confirmation, update metadata on the release branch, format it, run its targeted checks, and commit it using repository conventions.
- Before tagging, verify that all authoritative version sources and release notes agree with the target version.
When the repository requires no metadata change, state that explicitly in the confirmation plan. Do not invent changelog files or version sources.
Require confirmation
Always stop for explicit confirmation before switching or creating branches, committing release metadata, merging, tagging, pushing, or deleting a release branch. Fetching and read-only inspection are allowed before this gate. The initial request to “release” or “finish” is not confirmation.
Present one exact release plan containing:
- resolved version, release branch, tag, production branch, and development branch;
- evidence for the version and conventions;
- commits and working-tree changes included;
- release metadata and exact proposed notes, or the explicit no-metadata decision;
- checks already run, targeted checks still required, and the authoritative post-push CI gate;
- refs to push and local or remote release branches to delete.
If any version, content, ref, metadata, or deletion scope changes afterward, present the updated plan and confirm again.
Run preflight
- Fetch and prune the release remote, including tags.
- Inspect the current branch, upstreams, worktree, local refs, and remote refs.
- Continue with a clean worktree. Include clearly related dirty changes in the confirmation plan without staging them; stop for unrelated, overlapping, or ambiguous changes.
- Check whether production and development branches are behind or diverged from their upstreams. Do not update them before confirmation and never rewrite history.
- Confirm the target tag is absent locally and remotely.
- Locate the release branch locally and remotely without creating, switching, or updating it.
- Stop for conflicts, ambiguous ancestry, unexpected refs, protected-branch constraints that prevent the workflow, or an existing target tag.
After confirmation, fast-forward production and development branches only when safe. Track an existing remote release branch without discarding commits, or create a short-lived release branch from the up-to-date development branch when none exists. Commit only confirmed metadata or in-scope changes and require a clean worktree before finishing.
Verify proportionally
- Format every changed formatter-managed file before verification.
- Run repository-required release checks and targeted checks for metadata and application changes not already verified.
- Run
git diff --checkfor outgoing ranges. - Use the repository's CI workflow as the authoritative full gate when documented.
- Do not repeat the complete local CI suite solely for ceremony unless the user requests it, CI is unavailable, or unverified high-risk changes justify it.
- Stop before publishing when required checks fail unless the user explicitly accepts a repository-supported exception.
Finish the release
Prefer the repository's documented release graph. When none is documented, use this default:
release/X.Y.Z --merge --no-ff--> production --annotated tag--> TAG
\
merge TAG --no-ff--> developmentRun non-interactive Git operations in this order:
- Switch to the production branch.
- Merge the release branch with
--no-ffand a conventional merge message. - Create the annotated release tag on the production merge commit.
- Switch to the development branch.
- Merge the tag with
--no-ffso development contains the exact published release. - Delete the local release branch only after both merges and the tag succeed and only when confirmed.
- Inspect the graph, tag target, branch containment, outgoing ranges, and worktree cleanliness.
If the repository uses a different documented Git Flow graph, follow it and show that graph in the confirmation plan. A Git Flow CLI may be used only when its result matches the confirmed graph; prefer explicit Git commands when the CLI is unavailable or interactive.
Publish and verify refs
- Push the production branch, development branch, and release tag to the confirmed remote in one explicit command when supported.
- Delete the remote release branch only when it existed before finishing, deletion was confirmed, and the release refs were pushed successfully.
- Fetch or query remote refs and verify every published ref points to the expected commit.
- Never force-push, rewrite history, move a tag, delete another branch, create a hosting-platform release, or start a deployment unless explicitly requested or required by documented repository automation.
- Treat successful ref verification as completion. Do not poll CI or deployment by default unless the user asks.
Report the result
Report only verified outcomes:
- production merge commit and branch;
- annotated tag and target;
- development merge-back commit and branch;
- pushed refs and remote;
- release metadata version and notes status;
- local or remote release branch deletion;
- checks actually run and any asynchronous CI or deployment not monitored.
Never claim a deployment succeeded merely because release refs were pushed.
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
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.

