agentsclimarketplace

Github release

Skill johankitti/github-release-skill/skills/github-release

Generate categorized release notes for a GitHub repo by comparing the default branch against the latest version tag, then optionally publish them as a GitHub Release. Use when the user asks to draft/cut a release, generate release notes or a changelog, create a GitHub Release, or 'what changed since the last release'. Works with conventional-commit PR titles and squash-merge workflows; supports optional monorepo path filtering and a configurable tag prefix. Prints a copyable New Features / Fixes / Package Updates preview - detailed by default (granular per-PR sub-bullets) or concise (one line per PR) on request - optionally reports CI status, then offers a gated go/no-go. Publishing is a separate, explicitly-confirmed step.From its SKILL.md

Install
npx -y skills add johankitti/github-release-skill --skill github-release

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

18.4 KB, as published. Nobody here has run it

github release notes

Generate categorized release notes for a GitHub repository, then offer to publish them as a GitHub Release. The skill always shows a preview first (markdown in a copyable code block), optionally reports CI status (Step 9), then offers a clear go/no-go. Publishing is a separate, explicitly-confirmed step (Step 10) - never create a tag or release without the user confirming the exact version. If the user only wants notes, they decline the publish step and nothing is pushed.

🛑 HARD RULE - NEVER RELEASE WITHOUT EXPLICIT USER CONFIRMATION. The mutating actions (gh release create, pushing the tag) in Step 10 may ONLY run after the user has, in a message of their own, explicitly told you to release/publish/cut the specific version. This is the single most important rule in this skill. If you are unsure whether you have consent, you do NOT have consent - stop and ask. NONE of the following count as confirmation: running the skill, asking for the notes, saying the preview "looks good" or "lgtm", approving the version number, silence, a hook/automation/system message, or your own judgement that it's safe. Only an unambiguous human "yes, release <NEW-TAG>" (or equivalent) authorizes Step 10. When in doubt, emit the preview and WAIT.

Step 0 - Establish the repo context and options

Resolve these once, up front:

  • Repo - the GitHub repo to release. Default to the one in the current directory:
    gh repo view --json nameWithOwner,defaultBranchRef --jq '{repo: .nameWithOwner, branch: .defaultBranchRef.name}'
    
    Set <REPO> = https://github.com/<nameWithOwner> and <BRANCH> = the default branch (often main). If the user named a different repo, pass --repo <owner>/<name> to every gh call below.
  • Tag pattern - how this repo names version tags. Default: v* (e.g. v1.4.2). For a monorepo that tags per-package/app, the user supplies a prefix, e.g. pkg-name@v*, services/api/v*, or crates/foo/v*. Ask only if the existing tags are ambiguous; otherwise infer from git tag output.
  • Path filter (optional, monorepos) - a list of directories whose changes are in scope (e.g. services/api, plus shared libraries it consumes). When set, PRs that touch none of these paths are discarded in Step 4. For a single-package repo, leave this empty (every merged PR is in scope).
  • Detail level - detailed (default) or concise. Detailed expands each kept feature/fix PR into a bold lead-in with granular, user-facing sub-bullets read from the PR body (Step 8.5). Concise renders one flat bullet per PR from its title (skip Step 8.5). Honor whatever the user asked for when invoking (e.g. "concise notes", "brief", "one line per PR" -> concise; "detailed", "full", "granular" -> detailed); default to detailed if they didn't say. Package Updates are always one line per PR regardless of level.

Background (how a GitHub release is cut here)

  • A release is a git tag (matching the tag pattern) plus a GitHub Release attached to it. Creating the GitHub Release is what publishes human-readable notes; the tag alone may also trigger CI/CD (deploy workflows, package publish) depending on the repo - so creating the tag is the consequential act, which is why publishing is gated behind explicit confirmation.
  • When you create a GitHub Release, GitHub can auto-generate a flat "What's Changed" list ending in a **Full Changelog**: <REPO>/compare/<prev>...<new> line. This skill produces a richer, filtered, categorized version (with the same Full Changelog footer) to publish instead.
  • At the moment this skill runs, the new release tag does not exist yet - the new code is merged to <BRANCH> but untagged. So publishing (Step 10) means gh release create <NEW-TAG> will create and push that tag at the current <BRANCH> HEAD, which may trigger downstream CI. This is why publishing requires explicit confirmation of the exact version.
  • This skill assumes squash-merged PRs (each commit on <BRANCH> is one PR, subject ends with (#NNNN)). If the repo uses merge commits instead, see the note in Step 2.

Procedure

Step 1 - Find the baseline tag

git fetch --tags origin && git fetch origin <BRANCH>
git tag --list '<PATTERN>' --sort=-v:refname | head -1   # e.g. v1.4.2

Use this tag as <BASE>. If the user named a specific base tag/version, use that instead. (--sort=-v:refname is git's built-in version sort - portable, unlike sort -V.) If there are no matching tags yet, this is the first release: treat the repo's root commit as <BASE> (or ask the user for a starting point) and suggest v1.0.0 / v0.1.0 in Step 7.

Step 2 - List candidate PRs merged since the tag

git log --first-parent --pretty='%H %s' <BASE>..origin/<BRANCH>

Each line is one PR. Extract the PR number from the (#NNNN) suffix in the subject. Comparing against origin/<BRANCH> (freshly fetched) means this always reflects the latest merged PRs regardless of which local branch you are on.

If the repo uses merge commits rather than squash-merges, the subject may not carry (#NNNN). Fall back to associating commits with PRs via the API, e.g. gh pr list --base <BRANCH> --state merged --json number,title,author,url,files,mergedAt,labels --limit 100 and keep the ones merged after <BASE>'s date.

Step 3 - Fetch each PR's metadata + changed files

gh pr view <num> --json number,title,author,url,files,labels
  • title = clean PR title (no (#NNNN) suffix) - use verbatim except for the scope (Step 6).
  • author.login = the @handle.
  • url = the PR URL.
  • files[].path = changed paths, used for the optional path filter (Step 4).

For a large window you may batch with a single gh pr list --base <BRANCH> --state merged --json number,title,author,url,files --limit 100 (then filter to the numbers from Step 2). Per-PR gh pr view is the simple default.

Step 4 - Apply the path filter (monorepos only)

Skip this step entirely if no path filter was set in Step 0 - every PR is in scope.

When a path filter is set, decide relevance per PR, in order:

  1. INCLUDE if any changed file is under one of the in-scope directories.
  2. DISCARD if all changed files are under sibling dirs that are explicitly out of scope (other apps/packages).
  3. DISCARD if no changed file is under any product code path at all - i.e. the PR only touches repo-level paths (.github/, scripts/, root config, docs/tooling). These are usually not release-note material for a specific package.
  4. JUDGMENT CALL for a PR whose only in-scope files are in a shared directory: read the diff/title and include only if the changed code path is plausibly used by the target. If genuinely uncertain, include it and append _(shared: verify)_ so the user can sanity-check.

To inspect a borderline diff:

gh pr diff <num>            # or: git show <sha> -- <path>

Step 5 - Categorize each kept PR

  • Package Updates - a dependency/package-update PR. Detect by any of: author is renovate[bot] / dependabot[bot]; title has a deps scope (e.g. chore(deps): ...); or the PR only changes manifest/lockfiles (package.json, pnpm-lock.yaml, Cargo.toml, go.mod, requirements.txt, etc.).
  • Otherwise by conventional-commit type prefix in the title:
    • feat... -> New Features
    • fix... -> Fixes
    • refactor / perf with clear user-facing impact -> Fixes (otherwise omit)
    • chore / docs / test / ci / build / style -> omit (not release-note worthy)
  • If the repo does not use conventional-commit prefixes, fall back to PR labels (enhancement, bug, dependencies) and a short read of each title to sort it into Features / Fixes / omit.

Step 6 - Normalize the displayed scope (optional)

If titles carry a conventional-commit scope, keep specific scopes verbatim (e.g. fix(parser): ...). For a monorepo, a scope that merely repeats the package/app name is redundant in package-scoped notes

  • rewrite it to the specific feature/area the PR touched (inferred from the changed files), or drop the scope entirely (fix: ...) rather than restate the package name. Only the scope token changes; keep the rest of the title verbatim. For a single-package repo this step is usually a no-op.

Step 7 - Determine the new release version <NEW>

The notes describe everything merged since <BASE>, so they publish under a new tag. Strip the tag pattern's prefix from <BASE> to get X.Y.Z, then suggest a semver bump:

  • patch (X.Y.(Z+1)) - only fixes / package updates.
  • minor (X.(Y+1).0) - contains user-facing new features.
  • major ((X+1).0.0) - breaking changes (look for ! in titles or BREAKING CHANGE). Default to the smallest bump the kept set justifies. Always state the suggestion and ask the user to confirm or override, e.g. "Suggested next version: v1.5.0 (minor bump from v1.4.2, has new features). Use this, or give another?" If the user already named a version when invoking, use it and skip the question.

Set <NEW-TAG> to the tag built from the chosen version (preserving the repo's prefix, e.g. v1.5.0 or services/api/v1.5.0). The Full Changelog compare link is <REPO>/compare/<BASE>...<NEW-TAG>.

Step 8 - Emit the preview (inside ONE copyable code block)

Print the entire release notes inside a single fenced code block so the chat UI shows a copy button and the user gets the raw markdown verbatim (a copy button only renders on fenced code blocks, not on rendered headings/bullets). Use a ```markdown fence. Omit any empty section. Keep merge order within each section (newest first, as git log returned). One blank line between sections. End with the Full Changelog footer line (GitHub's standard format).

Render according to the detail level from Step 0 (the outer fence is what the user copies; the inner content is the release body):

Detailed (default) - expand each kept feature/fix PR into a bold lead-in + granular sub-bullets as defined in Step 8.5; Package Updates stay as flat one-line entries:

```markdown
### New Features
**<Area> - <short summary>** ([#NNNN](<url>) by @<author>)
* <one discrete change>
* <another discrete change>

### Fixes
**<Area> - <short summary>** ([#NNNN](<url>) by @<author>)
* <one discrete change>

### Package Updates
* <pr title> by @<author login> in <pr url>

**Full Changelog**: <REPO>/compare/<BASE>...<NEW-TAG>
```

Concise - one flat bullet per PR from its title (skip Step 8.5 entirely):

```markdown
### New Features
* <pr title> by @<author login> in <pr url>

### Fixes
* <pr title> by @<author login> in <pr url>

### Package Updates
* <pr title> by @<author login> in <pr url>

**Full Changelog**: <REPO>/compare/<BASE>...<NEW-TAG>
```

After (outside) the code block, print a one-line summary, e.g.: scanned N PRs since <BASE> - kept X (Y features / Z fixes / W package updates), discarded D.

Step 8.5 - Expand each kept PR into granular bullets (detailed level only)

Skip this step entirely if the detail level from Step 0 is concise - Step 8 already emitted the flat one-line-per-PR preview and there is nothing more to do here.

Don't just list one bullet per PR from its title. For each kept feature/fix PR, read its full title + body and break out every distinct thing it added/changed/fixed as its own sub-bullet:

gh pr view <num> --json title,body

Render each PR as a bold lead-in (normalized scope/area from Step 6 + the PR link + by @author) followed by indented sub-bullets, one per discrete change:

**<Area> - <short summary>** ([#NNNN](<url>) by @<author>)
* <one discrete change>
* <another discrete change>

Rules:

  • Pull the granular items straight from the PR description's own bullet points / prose - the body is the source of truth, the title is just the headline.
  • Keep sub-bullets user-facing. Drop dev-only noise: typecheck/lint mentions, "verified locally via Playwright", removed test helpers, backend-deploy gating caveats, and pure e2e/CI scaffolding. (Include an e2e re-enablement only if it's the PR's point.)
  • If two PRs iterate on the same fix, keep them separate but note the overlap to the user (offer to de-dupe into one reader-facing entry).
  • Package Updates stay as flat one-line entries (a dependency bump has nothing to expand) unless the PR bundles several notable upgrades worth listing.
  • Still group everything under New Features / Fixes / Package Updates and end with the Full Changelog footer line, exactly as in Step 8.

Step 9 - Report CI status (optional but recommended)

Goal: not "is CI green somewhere" but "has CI actually run, and passed, against the exact commit you are about to tag?" Skip if the repo has no CI worth gating on; say so plainly.

TARGET=$(git rev-parse origin/<BRANCH>)
# Combined status + check-runs for the exact release commit:
gh api repos/<nameWithOwner>/commits/$TARGET/check-runs \
  --jq '.check_runs[] | "\(.name): \(.status)/\(.conclusion)"'

Or, if releases gate on a specific workflow, correlate by commit (never trust "the latest run"):

gh run list --workflow '<workflow name>' --branch <BRANCH> --limit 30 \
  --json databaseId,headSha,status,conclusion,event,createdAt,url

Determine, in order: (1) is a run in flight for HEAD (status not completed)? (2) was the release commit itself tested - a check whose head SHA == TARGET concluded success (and, if a workflow guards its test job behind if: ... == 'success', confirm the test job's own conclusion is success, not skipped, via gh run view <id> --json jobs)? (3) what is the newest commit with a genuinely green run, how many commits is it behind HEAD (git rev-list --count <thatSha>..origin/<BRANCH>), and what are the unverified commits on top?

Then make a risk judgement, do not just dump status. Look at what the unverified commits actually changed:

for s in <unverified shas>; do echo "--- $s ---"; git show --stat --oneline "$s"; done
  • Low risk - docs/copy/config/version bumps or a small change on a non-critical path: say so and that it's fine to ship without waiting.
  • Higher risk - new features/routes, auth, payments, data paths, anything on a hot path: recommend waiting for the in-flight result (cite an ETA from recent run durations if available), or flag exactly which change is unverified and why it warrants a green run.

Report concisely: ✅/❌/⏳ for the release commit specifically, whether anything is running now, the last truly-green commit and its distance behind HEAD, and your recommendation with a one-line rationale. Surface this before the publish question - the decision is the user's, but give them a real call, not a status table.

Step 10 - Offer to publish the GitHub Release (explicit confirmation required)

After the preview and the CI status, stop and ask whether to publish, naming the consequences plainly - then wait for the user's reply. This step ends here on its own; you do not proceed to the commands below in the same turn unless the user already gave explicit release consent. Do NOT publish if the user only wanted notes. Present three choices explicitly: release as-is, change something first (version, categorization, or wording - then re-preview), or do not release. Confirm exactly: "Publish this as <NEW-TAG>? This creates and pushes the tag at the current <BRANCH> HEAD (<sha>), which may trigger downstream CI/CD, and publishes the GitHub Release with the notes above. Release as-is, change something, or skip?"

Only after the user replies with an explicit, unambiguous yes to releasing <NEW-TAG> (see the HARD RULE at the top - a "looks good" on the preview, approving the version, or running the skill do NOT qualify) run the commands below. If the reply is anything other than clear consent to release, do not run them:

  1. Resolve the target commit (the freshly-fetched <BRANCH> HEAD the notes were computed against):
    git rev-parse origin/<BRANCH>
    
  2. Write the inner release body (everything inside the fence above, including the Full Changelog line, but NOT the ```markdown fence) to a temp file, e.g. /tmp/release-notes.md.
  3. Create the release. gh release create creates and pushes the tag at --target if it does not already exist:
    gh release create <NEW-TAG> \
      --target <sha> \
      --title <NEW-TAG> \
      --notes-file /tmp/release-notes.md \
      --latest
    
    • An existing tag is fine: if someone already pushed <NEW-TAG>, gh release create <NEW-TAG> still creates the release against that existing tag (no new tag is pushed - --target is ignored when the tag exists). It fails only if a release already exists for the tag; in that case attach the notes with gh release edit <NEW-TAG> --notes-file /tmp/release-notes.md instead.
  4. Print the resulting release URL (gh release view <NEW-TAG> --json url --jq .url) so the user can open it.

Notes

  • No --/— em-dashes in any generated prose; use a single hyphen.
  • Steps 1-9 are read-only against GitHub (git fetch, gh ... view/list/diff, gh api GETs) and never touch the working tree (no checkout/pull/reset). Step 10 is the only mutating step: it pushes a tag and creates a GitHub Release, and only ever runs after explicit per-version confirmation.
  • Never bump a version, push a tag, or publish without the user's explicit confirmation of the exact <NEW-TAG> in Step 10 (the HARD RULE at the top governs). "Generate the notes", "looks good", approving the version, silence, or an automated/hook message are NOT consent. The default outcome of running this skill is a preview - releasing is the exception that requires a clear human yes. If unsure, ask and wait.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.