/flagrare:release-checkfrom Flagrare
Post-commit release gate that analyzes pending changes, computes semver bump, and generates value-focused CHANGELOG entries. Invoked after every commit or on demand.
Ships in Flagrare. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
No em-dashes. Nothing this skill writes may contain an em-dash; use a comma, colon, or parentheses instead. Enforced by a repo hook that flags em-dashes in generated
.md. See/flagrare:write-docs.
After every commit, immediately after /flagrare:staleness-audit. Cheap to run when there's nothing to do (early-exit ~1 second).
Also invoke on demand whenever the user asks "is a release due?", "let's ship this", "what would v0.2 look like?", or similar.
Before reading inputs, identify how this project tracks and ships releases:
| Signal | Mechanism |
|---|---|
.changeset/ directory present | Changesets (pnpm/npm/yarn changeset) |
changelog.d/ directory present | towncrier |
CHANGELOG.md with structured entries | Manual CHANGELOG |
| Conventional commits without a changelog file | Commit-driven: the git log is the changelog |
RELEASES.md or HISTORY.md | Manual release notes |
Note which mechanism applies, the rest of the procedure adapts accordingly.
package.json → version, private, nameCargo.toml → [package] versionpyproject.toml → [project] version or __version__ in __init__.py.changeset/*.md (excluding README.md and config.json)changelog.d/*.{bugfix,feature,breaking,...}CHANGELOG.md for an [Unreleased] sectiongit log <last-tag>..HEAD)CHANGELOG.md or git tag --sort=-version:refname for stylistic continuity.Aggregate pending changes by severity:
For Changesets, read the frontmatter level field:
---
"<package-name>": minor
---
Compute the proposed version by applying the bump. Semver pre-1.0 rule: in 0.x.y, breaking changes ride the x (minor) bump, they do not require a major bump.
| State | Decision |
|---|---|
| No pending changes | Not due: done, early exit |
Pending + pre-release / private + proposed version still in 0.0.x range | Not due yet: pre-feature; surface the proposal as a heads-up |
Pending + pre-release / private + proposed version is 0.1.0+ | Due if the headline feature is in: present the proposal, ask the user |
Pending + public package + any major | Due now |
Pending + public package + ≥ 1 minor or ≥ 3 patch | Due: propose to ship |
Pending + public package + < 3 patch only | Soft due: propose but flag it could wait |
These are heuristics. A single security-fix patch ships immediately; ten cosmetic patches probably batch.
This is the part that takes care. Tooling-generated output inherits the raw change-entry text directly, it is often terse and leans technical. Rewrite it before commit.
The model is Valve's Dota 2 patch notes as actually published. The reader is the consumer of the package, not its author. They want: "what can I do now that I couldn't before, and how does my code need to change?"
Section headers, Title Case. Examples from Valve: "General Mechanics", "Hero Adjustments", "Bug Fixes". Adapt to your package:
## General, top-level capabilities and breaking changes## Public API, new exports, signature changes, deprecations## Behaviour, things that work differently without an API change## Performance, measurable wins the user will notice## Bug Fixes, terminal section, purely factualSkip a section entirely if it has nothing in it.
Per-entry shape, bold anchor + colon + delta. Valve's canonical pattern:
- **Bloodstone**: spell lifesteal 30% → 20%.
- **Anti-Mage**: major rework, new innate applies movement-speed slow.
For a library, the anchor is the symbol the user calls:
- **`Session.run()`**: now returns a frozen `Transcript` instead of
a plain object. `turns` and `finalScene` are where they were.
- **`RangeError`**: carries `.attempted` and `.available` for typed
handling without parsing `.message`.
Use → for numerical or behavioural deltas. "Cooldown 7s → 18s", "Coverage threshold 80% → 75%".
Tense, declarative, present, sentence fragments. "Sessions now expose …" not "Added event emission …".
What goes in:
→## Bug Fixes section, factual)What stays out:
✅ Value-focused (what the user reads):
## 0.2.0: YYYY-MM-DD
One-line summary of what this release unlocks.
### Public API
- **`Client.query()`**: now accepts an optional `timeout` parameter;
defaults to 30s (was infinite). Pass `timeout: 0` to restore
previous behaviour.
- **`AuthError`**: carries `.statusCode` and `.retryAfter` for
typed handling without parsing `.message`.
### Bug Fixes
- Fixed a race condition in the connection pool that could cause
duplicate requests under high concurrency.
❌ Engineering changelog (what tooling generates verbatim, do NOT ship):
## 0.2.0
- Added timeout parameter to query method
- Refactored AuthError to carry statusCode field
- Fixed race condition (see PR #142)
- Bumped eslint peer range
- Migrated tests from mocha to vitest
A release bump touches more than the version manifest. Several files in a typical repo cite the current version, and they go stale the moment you tag the new one. Sweep for drift before presenting the proposal.
This is the load-bearing sub-check on multi-build-system projects, and the one that has historically caused the most painful silent failures. A "canonical manifest" mental model is wrong for any project where two build systems each read their own manifest. Each tool stamps the version from a different file into a different artifact, and the artifact whose filename gets uploaded to the registry is what determines whether the publish succeeds.
| Project shape | Files the publish tool reads the version from | Failure mode if they disagree |
|---|---|---|
| Rust crate + Python wheel via maturin / PyO3 | Cargo.toml (for cargo publish) and pyproject.toml [project] version (for the wheel filename, maturin uses this, NOT Cargo.toml) | wheel uploads as pkg-OLD-*.whl, PyPI returns 400 File-already-exists, workflow goes red, downstream pip install pkg==NEW returns "no matching distribution" |
| Rust crate + Python wheel via setuptools-rust | Cargo.toml, setup.cfg / setup.py version= | same shape, Python tooling reads its own file |
| Node package with native code (NAPI-RS, neon, node-gyp) | package.json version, native sub-crate Cargo.toml, sometimes binding.gyp | npm publish carries package.json version; native artifact name carries the sub-crate version; mismatch causes load-time failures, not registry rejection |
| Python package + C extension built with scikit-build-core | pyproject.toml [project] version, CMakeLists.txt project(... VERSION ...) | sdist contains conflicting metadata; wheel name vs __version__ divergence |
| Multi-module monorepo (Lerna, pnpm workspaces, Nx) | each module's package.json, plus the root lerna.json / pnpm-workspace.yaml if pinned | partial publish, some modules go out, others don't, dependency resolution breaks for consumers |
For each build system in the project, list every file it reads for the version, and verify they all carry the same value before tagging. The cost is a single grep:
NEW="0.7.2"
# Adjust to the project's actual manifest files.
grep -nE "^version\s*=" Cargo.toml pyproject.toml setup.cfg package.json 2>/dev/null
# Each line must show "$NEW", not the previous version.
If even one file lags, the bump is incomplete. Stop and fix before tagging, recovery from a half-bumped tag is force-pushing the tag, which is real history rewrite.
| File | What to update | Pattern |
|---|---|---|
CITATION.cff | version: field, optionally date-released: | Must match new package version exactly. GitHub's "Cite this repository" button reads this. |
SECURITY.md | Supported-versions table | Bump the supported row; remove rows now out of support. |
README.md | Any "Current version: vX.Y.Z" line; any status framing tied to the version (e.g. "vX.Y.Z is a research-grade preview") | Update version number; reconsider status framing if maturity actually shifted. |
CONTRIBUTING.md, guides, architecture docs | Any "v0.X onwards" or "as of v0.X" claim that's now older than current | Bump or convert to a historical reference. |
| Per-crate / per-module manifests not inheriting from workspace | version = field | Match. (Workspace-inheriting manifests with version.workspace = true need no edit.) |
docs/positioning/*.md, docs/research-log.md | Any "Status: vX" line | Bump if it's meant to track current. |
How to find drift mechanically:
# Replace OLD with the version the release is moving past.
OLD="0.7.0"
grep -rn "v${OLD}\|version.*${OLD}\|\"${OLD}\"" \
--include="*.md" --include="*.cff" --include="*.toml" \
--include="*.yml" --include="*.yaml" \
--exclude-dir=target --exclude-dir=node_modules --exclude-dir=.venv .
For each hit, judge:
version: "0.7.0" in CITATION.cff), update. These should track HEAD.Community Standards files deserve special attention since they're the project's public face beyond the README:
CITATION.cff, always bump.SECURITY.md, bump supported versions; if a previously-supported minor falls out of support, surface it in the CHANGELOG entry (consumers on the old minor need to know).CODE_OF_CONDUCT.md, usually no version coupling; verify the contact route is still valid.### Community Standards.Include the doc updates in the same release commit. A two-commit release ("bump version" + "update docs") splits the artifact across two SHAs and makes git blame on CITATION.cff lag the actual release date.
Skip this step only for trivial patch releases (e.g. a single typo fix) where the only version-coupled file is the manifest. Anything user-visible, and any release of meaningful scope, gets the full sweep.
Release check: DUE / NOT DUE / SOFT-DUE
Current version: x.y.z → Proposed: x.y.z
Pending changes (N):
- <entry> <level> <one-line summary>
Proposed CHANGELOG entry:
[draft here]
Documentation drift to fix in the same commit (from step 6):
- <file>:<line> <one-line description>
- …
Action plan:
1. Run the project's version-bump command:
Changesets: pnpm changeset version (or npx changeset version)
towncrier: towncrier build --version x.y.z
Manual: edit version manifest + CHANGELOG.md directly
2. Overwrite the generated CHANGELOG entry with the rewrite above.
3. Apply the documentation drift fixes from step 6 (CITATION.cff,
SECURITY.md supported-versions, README status line, etc.).
4. Run the project's verification gate (tests, lint, build).
5. Commit with message matching the project's convention (e.g. "🔖 release: vX.Y.Z").
6. Tag the release commit explicitly (NOT main), using an
**annotated** tag so `--follow-tags` will push it:
git tag -a vX.Y.Z -m "release vX.Y.Z" <release-commit-sha>
The tag MUST point at the commit that bumped the version manifest.
If you tag main and main has moved past the release commit, the
publish workflow will check out the wrong tree and build wheels
with the previous version, PyPI / crates.io will then reject
them as duplicates. (See the "GitHub Release vs tag commit"
section below for why this matters.)
Why annotated, not lightweight: `git push --follow-tags` only
pushes annotated tags (created with `-a` or `-s`). Lightweight
tags (`git tag vX.Y.Z <sha>` with no `-a`) are silently skipped
by `--follow-tags`, and you have to remember to push them
explicitly with `git push origin vX.Y.Z`. Annotated tags also
carry the tagger identity, date, and message, which is what
"this is a release" semantically means, and what `gh release`
and `git describe` expect.
7. Push: git push origin <main-branch> --follow-tags
Verify the tag actually landed on the remote, `--follow-tags`
is a silent no-op for lightweight tags, so don't assume:
git ls-remote --tags origin | grep vX.Y.Z
8. **Create a GitHub Release.** A tag without a release is invisible
to users who watch the repo's Releases page, and workflows
triggered by `on: release: [published]` won't fire.
gh release create vX.Y.Z --title "vX.Y.Z" --notes "<CHANGELOG entry for this version>"
Use the value-focused CHANGELOG entry as the release notes body.
If the project has release-note conventions (e.g. linking to a
full changelog diff), follow them.
9. If the project has a publish workflow (npm publish, cargo publish, PyPI, CI release action),
trigger it, or note that it runs automatically on tag push or
release publish.
10. **Verify the publish actually succeeded.** Tagging is not shipping.
For GitHub Actions release workflows:
gh run list --workflow=<publish-workflow>.yml --limit 1
If status is `failure` or `cancelled`, inspect with `gh run view
<id> --log-failed` and surface the root cause before declaring
the release done. Common failure: wheel filename version doesn't
match the tag (see "GitHub Release vs tag commit" below).
11. **Confirm the artifact actually landed in the index.** Tooling
can succeed-then-silently-skip. For PyPI:
curl -s https://pypi.org/pypi/<package>/json | jq -r .info.version
For crates.io:
cargo search <crate> --limit 1
For npm:
npm view <pkg> version
If the latest published version is still the previous one after
the workflow reports success, something between the workflow and
the registry broke, escalate, don't move on.
[Collect the decision via AskUserQuestion, see "Close with a tool" below. Do not type a prose question here.]
Close with a tool, not prose. Do NOT end the proposal with a prose "Approve to proceed?" and wait, a substantial proposal reads as "turn complete," and a trailing prose question frequently ends the turn with no answer captured (the same stall pattern documented in docs/research/2026-06-11-claude-code-goal-anti-stall.md). Issue an AskUserQuestion tool call with these options:
GitHub Actions workflows triggered by on: release: [published] check
out the release's target commit, not the git tag's commit.
These can diverge in three common ways:
vX.Y.Z, but the release's
"target" defaults to main, which may be ahead of (or behind) the
tagged commit. The workflow checks out main, not the tag.git tag vX.Y.Z
on a commit that doesn't bump the version manifest, then bumps it
in a follow-up commit. The tag is wrong; the workflow builds the
pre-bump tree.All three produce the same downstream failure: the wheel/crate/package filename carries the old version, the registry rejects it as a duplicate of the previously-shipped release, and the workflow status turns red. Recovery requires either re-tagging (if the registry hasn't seen any artifact yet) or bumping past the gap (if a partial upload landed first).
Prevention checklist before pushing the tag:
git show <tag>:<manifest> matches the expected new version.
Example: git show v0.7.2:Cargo.toml | grep '^version' returns
version = "0.7.2".gh release create vX.Y.Z, this is
automatic. If using the UI, the "Target" dropdown must be the
tagged commit, not main.- name: Verify wheel version matches tag
run: |
EXPECTED="${GITHUB_REF#refs/tags/v}"
for whl in dist/*.whl; do
VER=$(echo "$whl" | sed -E 's/.*-([0-9]+\.[0-9]+\.[0-9]+)-.*/\1/')
[ "$VER" = "$EXPECTED" ] || { echo "wheel $whl version $VER != tag $EXPECTED"; exit 1; }
done
This converts a silent PyPI 400 into a loud workflow failure at the
build stage, where the diagnostic message is actionable.If the project has had a publish failure of this shape before, surface it in the release proposal as a known-risk reminder: "v0.7.0 / v0.6.0 both failed PyPI publish due to GitHub-Release-vs-tag-commit drift; verifying tag commit matches release target before push."
If NOT DUE:
Release check: not due. <one-line reason>.
Pending: N change entries, would propose vX.Y.Z when ready.
Run the steps in order. After each, verify the previous step succeeded. If the version-bump command fails or produces unexpected output, stop and surface, do not silently push.
For the CHANGELOG rewrite specifically:
git tag -a vX.Y.Z -m "release vX.Y.Z" <release-sha>), not
whatever HEAD happens to be, see "GitHub Release vs tag commit"
in step 7. Use -a so --follow-tags will actually push it;
lightweight tags are silently skipped.--follow-tags, then verify the tag landed:
git ls-remote --tags origin | grep vX.Y.Z.gh release create vX.Y.Z --title "vX.Y.Z" --notes "<changelog entry>"). A pushed tag without a release is
invisible on the Releases page and won't trigger on: release
workflows.gh run list --workflow=<…> --limit 1) and that the artifact landed in the registry (PyPI /
crates.io / npm) before declaring done. A green tag-push is not a
green release.## Bug Fixes if there are no fixes.pip install <name> returns the version-before-last.on: release: [published] workflows. Always create it via gh release create.pyproject.toml's [project] version, NOT from Cargo.toml. If you bump only one of them, the artifact name and the tag will disagree, the registry will reject the upload, and the workflow will fail with a confusing "file already exists" error against the previous version's filename. See step 6a for the full list of manifest pairs by project shape, and grep for ^version\s*= across every manifest before tagging.git tag vX.Y.Z <sha> (no -a) creates a lightweight tag, just a ref, no tagger metadata, no message. git push --follow-tags deliberately skips these, so the tag won't reach the remote in your release push and you have to remember to push it explicitly with git push origin vX.Y.Z. Use git tag -a vX.Y.Z -m "release vX.Y.Z" <sha> instead, annotated tags carry tagger identity, date, and message (which is what "this is a release" semantically means), get pushed by --follow-tags, and are what gh release and git describe expect./flagrare:staleness-audit runs before the commit. This check runs after the commit lands, since release decisions depend on the version manifest + change-entry state post-commit.A project's CHANGELOG is the first thing a prospective user reads after the README. Release tooling makes it easy to generate one and easy to write a bad one, the default flow stitches together author-written summaries verbatim, which often read like a git log. Valve's Dota patch notes are the canonical example of how to write a changelog the audience actually wants: every line is a thing the player can observe, not a thing the engineers did. Same principle: the user wants to know what they can do now, what they need to update, and what bugs they no longer have. Nothing else.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub flagrare/agent-skills --plugin flagrare43 skills in this plugin
/atdd-planProduce an ATDD-first implementation plan in Claude Code's native plan mode, with named design patterns called out where they earn their keep. The skill enters plan mode automatically (via the EnterPlanMode tool), runs /flagrare:codebase-explore to ground the plan in the actual codebase, then produces a plan-mode plan that MUST include both: (1) 3-5 acceptance tests in plain English defining 'done' before any implementation, written behavior-first against the public API only; and (2) any non-trivial structural decisions named as design patterns with a one-line rationale. Plan mode's native approve/edit/reject button UI is the close, ExitPlanMode is how the skill ends. Use whenever the user wants to plan a feature, fix, or refactor, 'how should we implement X', 'plan this', 'let's design X', 'where do we start on Y'. Tests follow Kent Dodds Testing Trophy: behavior over implementation, integration-heavy, public-API-only, refactor-proof. The skill stops at the plan; it does not write implementation code./brag-docGenerate a comprehensive, impact-framed brag-doc entry for a chosen time window (day, week, biweek, month, or custom). Pulls authored PRs, reviews given, commits, deploys, and linked tickets across GitHub, local git, and configured MCPs, then synthesises a themed narrative, leading with outcomes, quantifying impact, owning the work in first-person past tense, separating IC contributions from amplification, and naming the judgment exercised. Output is designed to drop straight into a developer journal, a personal bragging sheet, or a performance-review packet. Accepts a mode argument, `/flagrare:brag-doc resumancer` renders the output as ready-to-paste Resumancer CLI commands (`resumancer impact "..." --branch ...`) instead of markdown. Use whenever the user says "brag doc", "brag sheet", "what did I do this week", "weekly recap", "monthly recap", "performance review prep", "what should I tell my manager", "summarise my impact", "career log entry", "give me my wins", "biweekly recap", or any variant about looking back over a longer window than a single day's standup. Also trigger near review season ("self-review", "perf packet", "evaluation prep"), and on phrases like "log my wins to resumancer" or "make resumancer entries for this week" (which should pass the `resumancer` mode). For windows longer than about a month, a tenure retrospective, a departure record, or "everything I did at this company", hand off to `/flagrare:impact-timeline` instead; this skill's window tops out at a month./bug-bashProgrammatic bug bashing, ingest a prescribed test plan (Notion, markdown, pasted spec), drive a real running system (browser via Chrome DevTools / Playwright MCP, backend via API tools when relevant), run every prescribed case with evidence, then do exploratory passes (viewports, edge inputs, multi-actor flows, codebase-driven concerns, additional context like meeting transcripts, emails and links checked in the real inbox with a control case, other languages, failures and races) without ever claiming a bug it didn't itself reproduce. Fills free-text fields with tagged, playful test data that also probes something (unicode, HTML, template syntax, length). Lands results in a local MD file by default, optionally writes back to the source (Notion bug DB, test case Eng QA columns, etc.) in the user's voice. Use whenever the user says 'bug bash', 'QA this feature', 'run the test cases', 'go through this test plan', 'verify these scenarios', 'do a bash on X', when they hand over a Notion test case page, or any time programmatic end-to-end verification of a feature against a checklist is needed. Also use it when a smoke test passed but the user wants more cases tested, or asks 'what else should we test' and then 'test it yourself'. Make sure to use this skill even when the user just says 'test this Notion page' or 'check these scenarios', anything that smells like running someone else's prescribed test plan against a live system./careerRun the career skills that are due, in one pass, and return one short combined digest plus an updated board. It reads timestamps and flags to decide: the promotion map's first run when there is none (after asking), a refresh of map sections that are older than 90 days or flagged by a scan, an opportunity scan when the last one is a month old, and an impact scan every time. The digest leads with the initiative the user owns and its next step, then up to 5 threads worth weighing in on, one line on the promotion map (open rubric rows, people who haven't seen the work, when to talk to the manager, the packet deadline), anything that needs the user, and an "all answering, nothing owned" warning when the user keeps replying but owns nothing. A scheduled run (from /loop or a schedule) never asks questions and never posts; it lists what needs the user as pending. Use when the user says "career", "career check", "career digest", "run my career skills", "what should I do for my promotion this week", "daily career scan", or sets up a recurring career run. Also trigger for a scheduled career run./codebase-exploreExplore the codebase to map conventions, reusable utilities, analogous features, and data flows relevant to a planned change. Returns raw findings (file paths, patterns, code snippets), does NOT produce a plan. Used by /flagrare:atdd-plan as its codebase understanding step./communication-setupSet up, change or remove how Claude talks to you: a custom output style with your reply rules, a reminder of those rules on every message, and a Stop hook that quietly nudges Claude when a reply runs a little long and blocks one that runs far past your limit. Use when the user says Claude's replies are too long, exhausting, hard to skim, full of process narration or caveats, 'you make me work for the information', 'talk to me shorter', 'communication setup', 'set up how you talk to me'; when the length check or reply-length hook blocked a reply it shouldn't have, or the user wants a different limit or style; or asks to remove or undo it ('remove communication setup', 'go back to normal replies').Other plugins' skills for the same job