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
npx -y skills add gsario/gsario-market --skill releaseNotesAssembled 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.
jqonPATH. 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.jsonin the target repo. Without it, areas and migration directories are auto-detected, and the[platform]and[commands]sections reportunconfiguredbecause there is no way to infer which dependency pins or which CLI file matter to a given project. Seereference/config.mdfor 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, getmain^..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 intoother. An app hidden insideotherreads as "miscellaneous" in the finished notes. The fix is an explicitareaslist, 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.jsonthat nothing reads, almost always a typo (aeras,migration). The affected setting silently reverts to auto-detection whilesourcestill names the config file, so surface this verbatim rather than proceeding.WARN<tab>incomplete-config-entry<tab>detail— amigrationsentry with no.dir, or aplatformentry missing.file/.jq. The entry is dropped rather than used, because the absent field arrives as the literal stringnulland 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 plusother.otheris 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 inreference/output-format.md.[types],[scopes]—name<tab>count, count-descending. The breaking-change!marker is stripped before counting, sorefactor(x)!:counts underrefactor, not a separaterefactor!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>subjectfor commits matching notype(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>slugfor migration files added in the range (not modified — an edited migration is not a new one), one block per migration directory. Foralembicstyle theidis the filename-derived revision, not the one parsed out of the file'srevision:assignment — the two are usually identical, but when they're not,revision-mismatchfires and the in-file value is the authoritative Alembic one, not this column. Forsqlstyle theidis 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), andWARN<tab>unparseable-revision<tab>file(therevision: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 withtotal_on_head<tab>dir<tab>N. If no migration directory exists at all, the section is a singlenone<tab>-row.[breaking]— three kinds of candidate, not a verdict:bang<tab>sha<tab>subject(subject matchestype(scope)!:; the type is unconstrained, e.g.refactor!, not justfeat!),trailer<tab>sha<tab>subject(aBREAKING CHANGE:footer in the commit body — anchored to line start, so it won't false-positive on a commit merely discussing breaking changes), andrename<tab>old<tab>new(path renames viagit 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_valuefor each configured probe, plusapp_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 singleunconfigured<tab>-<tab>-row when the repo declares no probes and no rootpackage.jsonversion can be found.[commands]—sha<tab>subject<tab>pathfor 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. Emitsunconfigured<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-mergeswith 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.jsonwithout 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
--configin an unfamiliar repo. The areas drive the header. Discovering after writing that everything landed inothermeans redoing the analysis, not just the formatting. - Assuming
main..HEADis non-empty. Right after a merge, the current branch is fully contained inmain— that's exactly whenprev-main(main^..main) is the useful candidate, notmain. - Using
main^2instead ofmain^. Whenmain's history is merge commits,main^(first parent) is the previous release tip andmain^2is the branch that got merged in. Swapping them inverts the range. - Grepping for the version instead of addressing it by
jqpath. 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
HEADinstead 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, plusdocsandother, 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:pathin an inline command. In zsh, unquoted$REV:pathtriggers a history-modifier expansion (:aetc.) that silently mangles the path instead of erroring. Always quote it:git show "${REV}:path".