git-release

Prepares an approved user-run handoff script for one annotated Git tag and GitHub release.

Updated Aug 5, 2026
Ready to run
npx skills add https://github.com/ahsanghalib/ai-workflow --skill git-release-ahsanghalib
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: git-release
Source: https://github.com/ahsanghalib/ai-workflow/tree/main/skills/git-release
Command: npx skills add https://github.com/ahsanghalib/ai-workflow --skill git-release-ahsanghalib

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Creating a Git tag and GitHub release by hand is error-prone: wrong versions, dirty worktrees, duplicate tags, and accidental pushes can corrupt release history. This Skill performs a strict read-only preflight, drafts verified release notes, and hands the user a validated script so the actual tag and release happen only after explicit approval. ## Core Features & Use Cases - Read-only preflight validation: Verifies branch, origin URLs, GitHub CLI authentication, clean worktree, upstream sync, and tag/release absence before anything is created. - SemVer version selection: Derives the next patch, minor, or major version from the highest reachable stable tag, or validates an explicit version like v1.2.0. - Approval-gated handoff: Generates a Bash script and notes file inside Git metadata that re-check every condition before the user runs them to create the annotated tag and GitHub release. - Use Case: After merging features into main, ask the agent to prepare a minor release; it inspects the repo, drafts notes from the last tag, shows a full preview, and produces a script you run yourself to publish the release. ## Quick Start Ask the agent to prepare a patch release for this repository and show the full preview before creating anything.

Frequently Asked Questions about git-release

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a GitHub release with an annotated Git tag safely?▼

Use this Skill to run a read-only preflight, draft verified release notes, and approve a full preview. It then generates a user-run Bash script that re-checks branch, SHA, tags, and release state before creating the annotated tag and GitHub release.

How does the skill choose the next release version?▼

For patch, minor, or major arguments, it derives the next stable version from the highest reachable tag matching exactly vMAJOR.MINOR.PATCH using SemVer precedence. If no stable tag exists, it recommends v1.0.0 and requires it in the preview.

Does the agent create the tag or push anything itself?▼

No. The agent only inspects, validates, and generates a handoff script stored in Git metadata. The user must explicitly approve the preview and run the script, which performs the tag creation, push, and GitHub release.

What happens if the working tree is dirty or the branch is behind origin?▼

Preparation stops immediately. The Skill requires a clean worktree, a regular checkout, an origin upstream, and HEAD exactly equal to the refreshed upstream tip, and it reports the blocking evidence and next user action.

Can I create a prerelease or draft GitHub release?▼

Yes, but only when explicitly requested. A prerelease suffix in the supplied version triggers the --prerelease flag, and --draft is passed only when the user supplies it; neither is ever inferred.

What tools are required to use this release workflow?▼

It requires Git, the GitHub CLI (gh) with successful authentication for the target host, and a shell capable of running the generated Bash handoff script, which uses Bash 4 features such as arrays and mapfile.