agentsclimarketplace

ReleaseNotes

Skill gsario/gsario-market/skills/releaseNotes

Use when the user types /releaseNotes or asks to generate release notes for a commit range. Presents baseline candidates (pre-merge branch preview, post-merge main range, since-last-release), gathers verifiable facts with a read-only script, and writes <notes_dir>/RELEASE-NOTES-<version>.md plus a tester-facing .txt. REQUIRES the repo to be a git worktree with `jq` installed and Conventional Commit subjects to be useful. Repo-specific facts (diffstat areas, version file, platform dependency probes, migration directories, one-time-command paths, output directory) come from an optional `.claude/releaseNotes.json` in the target repo and are auto-detected when it is absent — see `reference/config.md`. Explicit invocation only — never auto-trigger from "what shipped?" or a merge/deploy conversation.From its SKILL.md

Install
npx -y skills add gsario/gsario-market --skill releaseNotes

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

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 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.

SKILL.md

19.2 KB, as published. Nobody here has run it

releaseNotes — generate release notes for a commit range

Pick a commit range, gather verifiable facts about it with the read-only gather.sh, spend judgement on top of those facts, and write two files into the notes directory (docs/releases unless configured): engineer-facing full notes and a tester-facing plain-text file. The mechanical parts (diffstat, commit histogram, migration ids, breaking-change candidates) are never re-derived by hand; the judgement parts (what's a Highlight, what's worth a rollout warning) are never invented.

Requirements

This skill is repo-agnostic in its procedure and repo-specific in its facts. It runs anywhere, but how much it can tell you depends on what the repo declares.

Hard requirements — the script exits 2 without these:

  • Run from inside a git work tree.
  • jq on PATH. JSON is addressed by path, never by pattern match.

Soft requirements — missing these degrades output, it does not fail:

  • Conventional Commit subjects (type(scope): subject). Without them [types] and [scopes] come back empty and every commit lands in [nonconventional]. The notes are still writable, just with no histogram to lean on.
  • A declared config at .claude/releaseNotes.json in the target repo. Without it, areas and migration directories are auto-detected, and the [platform] and [commands] sections report unconfigured because there is no way to infer which dependency pins or which CLI file matter to a given project. See reference/config.md for the schema and a worked example.

Run gather.sh --config first in an unfamiliar repo — it prints exactly what was resolved and from where, before any range is chosen.

When to run

Explicit invocation only (/releaseNotes or a direct request to generate release notes for a range). Never infer this from "what shipped?", "summarise the branch", or a merge/deploy conversation — this skill writes files and, on large ranges, spawns subagents, and neither should happen as a side effect of a question.

This skill is deliberately independent of /mergeDevMain and is useful on either side of it:

  • Before merging — pick the mainline candidate, get main..HEAD: a preview of what the current branch is about to ship.
  • After merging — pick prev-main, get main^..main: the actual release.

Neither skill invokes the other.

Procedure

1. Pre-flight

Confirm git rev-parse --is-inside-work-tree; stop if not. If git status --porcelain is non-empty, warn but continue — uncommitted work isn't in any commit range, so the notes simply won't describe it. This is deliberately looser than mergeDevMain, where a dirty tree produces a wrong result and must block; here it just produces an incomplete one, and the user has already been told.

Resolve the script once. CLAUDE_PLUGIN_ROOT is set for hooks but not for skill shells, so a glob fallback into the plugin cache is required:

GATHER="${CLAUDE_PLUGIN_ROOT:-}/skills/releaseNotes/gather.sh"
[ -f "$GATHER" ] || GATHER=$(ls -1 ~/.claude/plugins/cache/*/orca/*/skills/releaseNotes/gather.sh 2>/dev/null | sort -V | tail -1)

2. Show the resolved configuration

bash "$GATHER" --config

[config] reports source (the config file, or auto-detected), ref (the revision the areas and migration directories were derived from — the range head during a gather, HEAD for a bare --config), the notes_dir, the version_file (or (unconfigured)), one area row per diffstat bucket, and one migrations row per detected directory with its style (alembic or sql).

Two WARN rows can appear here, and both matter more than they look:

  • WARN<tab>areas-truncated<tab>N<tab>names… — auto-detected areas are capped at 12 for readability and everything past the cap folds into other. An app hidden inside other reads as "miscellaneous" in the finished notes. The fix is an explicit areas list, which is honoured in full — the cap never applies to a list the repo declares.
  • WARN<tab>unknown-config-key<tab>key — a key in .claude/releaseNotes.json that nothing reads, almost always a typo (aeras, migration). The affected setting silently reverts to auto-detection while source still names the config file, so surface this verbatim rather than proceeding.
  • WARN<tab>incomplete-config-entry<tab>detail — a migrations entry with no .dir, or a platform entry missing .file/.jq. The entry is dropped rather than used, because the absent field arrives as the literal string null and would otherwise be treated as a real path.

Read it before going further. If the areas look wrong for the repo (one undifferentiated bucket where the user expects per-app rows), or a migration directory is missing, say so now and offer to write a .claude/releaseNotes.json — ask before creating it; it's a file in the user's repo, not scratch state. Do not silently proceed with areas you can see are wrong; the diffstat is what the header is built from.

3. Baseline menu

bash "$GATHER" --baselines

Output is [baselines] followed by one TSV row per resolvable candidate:

KEY<tab>BASE_SHA<tab>HEAD_REF<tab>HEAD_SHA<tab>COMMIT_COUNT<tab>DATE_SPAN<tab>SUBJECT

Rows the script may emit: the mainline name (main..HEAD), prev-<mainline> (main^..main, first parent), origin-<mainline> (shown only when it differs from the local branch), last-notes (since the SHA recorded in the newest RELEASE-NOTES-*.md in the notes directory), and tag (most recent tag by creation date, shown even when it's not useful). The mainline name is discovered, not assumed: origin/HEAD first (the remote's own statement of its default branch), then local main, then master. Every row is derived from that name, so on a repo whose trunk is develop or trunk a wrong guess produces an empty menu rather than a wrong row.

Present every row with its count and date span, then add one more option yourself: custom — a SHA the user pastes. custom is not something gather.sh --baselines emits (it carries no count or date span until the user supplies the ref), so it is a menu option you add in conversation, not a row to look for in the script's output.

Never auto-select. A row with COMMIT_COUNT of 0 is still shown, marked (0 commits) — that's "already merged," information, not a missing option. If the user picks a 0-commit row, confirm once ("that range is empty, the notes would have no content — pick another baseline?") and proceed only if they insist, writing header-only files rather than inventing content. An unresolvable candidate (no origin/main, no tags) is simply absent from the list; that's not an error.

4. Version

Establish the root once and reuse it — reading a bare relative path breaks exactly like the pathspecs in gather.sh did when run from a subdirectory:

R=$(git rev-parse --show-toplevel)

If [config] reported a version_file, read the working-tree value at that path and jq expression — not HEAD:

jq -r '<configured jq path>' "$R/<configured version file>"

This is deliberately different from [platform] in step 6, which compares committed base vs. head trees. A version bump is routinely still uncommitted at the moment release notes are written — it's a build-time edit, not a code change — so reading HEAD would report the previous release's number. Do not "fix" this by unifying the two reads; they must disagree when the bump is uncommitted, and that's correct.

Offer the working-tree value and its increment: add one to the final numeric component, preserving zero-padded width, carrying on overflow — 0.024 → 0.025, 0.099 → 0.100. If the value doesn't parse as dot-separated numerics, or no version_file is configured, skip the suggestion and just ask; the user's answer is authoritative either way. Never edit the version file — bumping it stays a manual step.

The chosen version fixes both output filenames: <notes_dir>/RELEASE-NOTES-<v>.md and <notes_dir>/RELEASE-NOTES-<v>-testers.txt.

5. Gather

bash "$GATHER" <BASE> <HEAD>

Prints sectioned, tab-separated plain text — nothing is inferred, everything comes from git or the working tree. Sections, in emission order:

  • [config] — as in step 2, repeated so the fact bundle is self-describing when read later.
  • [range] — key/value rows: base_sha, base_subject, head_ref, head_sha, head_subject, date_first, date_last, commits_total, commits_nonmerge. Dates are author dates.
  • [diffstat] — label<tab>files<tab>insertions<tab>deletions, one row per configured/detected area plus other. other is not a rounding bucket — it's everything outside the named areas (root *.md, manifests, lockfiles, patches/, any new top-level directory), and it can carry real content worth reading. All areas are gathered; the header prints only the significant ones — see the header rule in reference/output-format.md.
  • [types], [scopes] — name<tab>count, count-descending. The breaking-change ! marker is stripped before counting, so refactor(x)!: counts under refactor, not a separate refactor! row. Both are empty in a repo that doesn't use Conventional Commits; that's a soft requirement not being met, not a bug.
  • [nonconventional] — sha<tab>subject for commits matching no type(scope): prefix, listed in full (not counted) — the most likely place for an unlabelled behavior change to hide.
  • [migrations] — mig<tab>dir<tab>id<tab>slug for migration files added in the range (not modified — an edited migration is not a new one), one block per migration directory. For alembic style the id is the filename-derived revision, not the one parsed out of the file's revision: assignment — the two are usually identical, but when they're not, revision-mismatch fires and the in-file value is the authoritative Alembic one, not this column. For sql style the id is the leading numeric prefix. Plus, when applicable: WARN<tab>revision-mismatch<tab>file<tab>filename_id<tab>infile_id, WARN<tab>duplicate-revision<tab>dir<tab>id (two added files in the same directory share a revision id — a real bug, not a formatting quirk; scoped per directory so independent chains that coincidentally reuse an id are not falsely flagged), and WARN<tab>unparseable-revision<tab>file (the revision: line couldn't be parsed — reported loudly rather than silently falling back to the filename id, which would make duplicate detection impossible on that file). Each directory ends with total_on_head<tab>dir<tab>N. If no migration directory exists at all, the section is a single none<tab>- row.
  • [breaking] — three kinds of candidate, not a verdict: bang<tab>sha<tab>subject (subject matches type(scope)!:; the type is unconstrained, e.g. refactor!, not just feat!), trailer<tab>sha<tab>subject (a BREAKING CHANGE: footer in the commit body — anchored to line start, so it won't false-positive on a commit merely discussing breaking changes), and rename<tab>old<tab>new (path renames via git diff --diff-filter=R -M). Treat every line here as something to read the diff of before deciding it belongs in Rollout requirements.
  • [platform] — key<tab>base_value<tab>head_value for each configured probe, plus app_version, all read from committed trees at base and head. This is the counterpart to step 4's working-tree read, not a duplicate of it. Emits a single unconfigured<tab>-<tab>- row when the repo declares no probes and no root package.json version can be found.
  • [commands] — sha<tab>subject<tab>path for every commit touching a configured command path (touched, not added — a one-time backfill command usually lands as new lines inside an existing file). Surfaces candidates for a "run this backfill" rollout step; deciding which ones actually are one-time steps is your job, not the script's. Emits unconfigured<tab>- when no command paths are declared.

The ? sentinel — treat it as "unknown," never print it. gather.sh's internal json_at helper returns the single character ? whenever a JSON file is missing at that revision, the key is absent, or the value is JSON null — it does not distinguish those three cases. In practice this shows up in [platform], e.g. runtime ? 57.0.2 if the manifest didn't exist at base. Never copy a bare ? into either output file. When a [platform] value is ?, omit that row's comparison from the header (say nothing, rather than printing a confusing lone punctuation mark to a reader) instead of rendering it as "unchanged" or inventing a real-looking value. This is a named rule, not a formatting nicety — a ? in a shipped release-notes file reads as a typo or a broken template, and either erodes trust in the rest of the document. A row that is ? on both sides is suppressed by the script itself and never reaches you.

6. Analysis

Threshold: 40 non-merge commits (from [range] commits_nonmerge) — a heuristic for "does this still fit one careful reading pass." Round up to the fan-out when the range is near the line and touches several areas.

  • At or below 40: read git log --no-merges with full commit bodies, plus the diffs of everything named in [breaking], and write the notes directly.

  • Above 40: dispatch read-only subagents concurrently — one per area carrying meaningful change in [diffstat] (cap at ~4; fold the small ones together rather than spawning an agent for a 3-file area), plus one for [breaking] + [migrations] + [commands] with authority to read the relevant diffs.

    Each returns grouped findings — a theme, a one-paragraph description, and the backing SHAs — never prose sections to paste verbatim. Subagents never write files and never author the release-notes sections directly; you synthesize their findings into one narrative yourself. A file assembled from separately-authored halves reads like several documents stapled together, which is the exact failure synthesis exists to prevent. Model choice per dispatch is your call, matched to slice complexity.

7. Sourcing rule

Every Highlight subsection and every Notable-fix / tester bullet must trace to at least one commit SHA in the gathered range. This is the single most important rule in this skill: a plausible-sounding feature nobody actually shipped is worse than an omission, because testers will go hunt for it. Anything you can't point at a commit is left out, not softened into vaguer prose.

8. Ask the non-derivable questions

Before writing, ask a short batch — none of this is in git:

  • The currently-deployed staging SHA, if a drift warning should appear.
  • Anything to flag that the diff can't show on its own.
  • Anything to suppress.

A skipped question means that section is omitted, never invented — don't guess at a staging SHA or manufacture a flag because the question went unanswered.

9. Write

mkdir -p "$R/<notes_dir>", then write both files ("$R/<notes_dir>/RELEASE-NOTES-<v>.md" and "$R/<notes_dir>/RELEASE-NOTES-<v>-testers.txt") per reference/output-format.md. If either target path already exists, show what's there and ask before overwriting — never overwrite silently. Using a bare relative path here has the same failure mode as the relative version-file read in step 4: from any subdirectory it creates the files in the wrong place instead of at the worktree root.

Before writing, surface every WARN row from [migrations] verbatim to the user — unparseable-revision, revision-mismatch, duplicate-revision are each a real problem, not formatting noise, and none of them reaches the user anywhere else in this procedure. A duplicate-revision WARN in particular is a real bug (Alembic will not apply both migrations correctly); never write the notes past an un-acknowledged duplicate-revision WARN — stop and ask first.

Report back: the range used, the chosen version, both file paths, the commit and migration counts, any [migrations] WARNs surfaced, and anything the user was asked about but skipped.

What this skill does NOT do

  • No git mutation. No stage, commit, push, tag, branch, or checkout.
  • No version-file edit. Reading the version is not permission to bump it.
  • No deploy, no migration execution, no distribution upload.
  • No writing .claude/releaseNotes.json without asking. Offering to create it is right; creating it silently is not.
  • No invented content. Unsourced claims are omitted; skipped questions omit their section rather than getting filled in with a guess.

Common mistakes

  • Skipping --config in an unfamiliar repo. The areas drive the header. Discovering after writing that everything landed in other means redoing the analysis, not just the formatting.
  • Assuming main..HEAD is non-empty. Right after a merge, the current branch is fully contained in main — that's exactly when prev-main (main^..main) is the useful candidate, not main.
  • Using main^2 instead of main^. When main's history is merge commits, main^ (first parent) is the previous release tip and main^2 is the branch that got merged in. Swapping them inverts the range.
  • Grepping for the version instead of addressing it by jq path. A manifest may hold several build profiles; only the configured path is the one that matters. A pattern match that happens to return one line is luck, not correctness.
  • Reading the version from HEAD instead of the working tree. Reports last release's number, since the bump is usually still uncommitted.
  • Letting a subagent write the release-notes file. Subagents return findings; only you write the two files, so the result reads as one voice.
  • Printing every [diffstat] area in the header. Areas with no meaningful change, plus docs and other, are gathered for analysis, not for the header — listing them by size next to the real ones misrepresents what the release is about.
  • Copying a bare ? from [platform] into the written files. It means "unknown," not a value — omit the comparison instead.
  • Unquoted git show $REV:path in an inline command. In zsh, unquoted $REV:path triggers a history-modifier expansion (:a etc.) that silently mangles the path instead of erroring. Always quote it: git show "${REV}:path".

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.