agentleFS
kenryu42kenryu42/cc-safety-net/.claude/skills/release-notes/SKILL.md

release-notes

Skill1.6k starsChanged 2 months agoMITView on GitHub

Generate and publish concise, evidence-based notes in the body of the latest existing GitHub Release. Use only when the user explicitly invokes `$release-notes` or explicitly asks to update the latest existing GitHub Release body. Do not invoke for general release planning, changelog, tag, or version tasks.

68 other projects use a version of this.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 8 mentionsSep 2026: 5 mentionsOct 2026: 5 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the kenryu42/cc-safety-net repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about kenryu42/cc-safety-net

The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 18

Talked about on GitHub (18 times).

On GitHub · 18

13 more on GitHub

Used with

Projects with it also use brainstorm-experiments-existing, brainstorm-experiments-new and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • skytiger6724Skill

    brainstorm-experiments-existing

    Design experiments to test assumptions for an existing product — prototypes, A/B tests, spikes, and other low-effort validation methods. Use when validating assumptions, testing feature ideas cheaply, or planning product experiments.

    Also in 4 projects that use this

  • skytiger6724Skill

    brainstorm-experiments-new

    Design lean startup experiments (pretotypes) for a new product. Creates XYZ hypotheses and suggests low-effort validation methods like landing pages, explainer videos, and pre-orders. Use when validating a new product idea, creating pretotypes, or testing market demand.

    Also in 4 projects that use this

  • AnthropicSkill

    sql-queries

    Write correct, performant SQL across all major data warehouse dialects (Snowflake, BigQuery, Databricks, PostgreSQL, etc.). Use when writing queries, optimizing slow SQL, translating between dialects, or building complex analytical queries with CTEs, window functions, or aggregations.

    Also in 5 projects that use this

  • 45ckSkill

    pestle-analysis

    Also in 4 projects that use this

  • nandanosqlSkill

    swot-analysis

    Conduct a structured SWOT analysis — Strengths, Weaknesses, Opportunities, Threats — that connects internal capabilities to external forces for strategic decision-making.

    Also in 5 projects that use this

  • +7 more from skytiger6724

The file

Show its rules and text

We split this skill into the rules it gives an agent

43 rules. 0 are common, 31 are distinctive, and 12 are very specific to this project.

  • 0

    Common

    Most of the 63 edited versions we read keep these.

  • 31

    Distinctive

    This author's own choices. Worth a look.

  • 12

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Update only the body of the latest existing GitHub Release.

    line 9
  2. Very specific:

    Use gh for all GitHub Release, pull request, issue, and API operations.

    line 13
  3. Distinctive:

    Do not create or delete a release.

    line 14
  4. Distinctive:

    Do not change a tag, title, target, draft state, prerelease state, latest-release state, or other release metadata.

    line 15
  5. Distinctive:

    Do not publish a draft.

    line 16
  6. Distinctive:

    Do not use a new release as a fallback when no release exists.

    line 17
  7. Distinctive:

    Do not infer release order from version text, semantic versions, or Git tag order.

    line 18
  8. Distinctive:

    Stop when required evidence is unavailable.

    line 19
  9. Distinctive:

    Treat the notes file as a full replacement for the current release body, not as text to append.

    line 20
  10. Distinctive:

    Run all checks from the repository that the user wants to release:

    line 24
  11. Distinctive:

    Use the repository URL to get its GitHub host.

    line 46
  12. Distinctive:

    Stop with a clear error if a check fails.

    line 52
  13. Distinctive:

    Use GitHub's descending release-list order as the release sequence.

    line 56
  14. Distinctive:

    If the list is empty, stop and state that no existing GitHub Release was found.

    line 65
  15. Distinctive:

    If there is one item, treat it as the project's first release.

    line 66
  16. Very specific:

    Do not re-sort the result.

    line 67
  17. Distinctive:

    Do not replace either tag with a Git tag that has no GitHub Release.

    line 68
  18. Distinctive:

    Check for a shallow repository:

    line 98
  19. Very specific:

    If the result is true, use the identified GitHub remote to fetch complete history and tags:

    line 104
  20. Very specific:

    When PREVIOUS_TAG exists, check whether it is an ancestor of LATEST_TAG:

    line 112
  21. Distinctive:

    When a previous release exists, start with:

    line 122
  22. Distinctive:

    Use this evidence order:

    line 149
  23. Distinctive:

    Use PR data when it resolves an unclear purpose, user impact, migration step, or reference.

    line 155
  24. Very specific:

    Use PR context only when state is MERGED and mergedAt is present.

    line 164
  25. Distinctive:

    If no change has material user impact, write only a short, factual summary that says the release contains maintenance changes with no …

    line 181
  26. Distinctive:

    Create an isolated temporary directory and Markdown file:

    line 185
  27. Distinctive:

    Start with a concise one-sentence or two-sentence summary.

    line 203
  28. Distinctive:

    Write for users, not for maintainers of the internals.

    line 232
  29. Distinctive:

    Prefer concrete behavior over implementation detail.

    line 234
  30. Very specific:

    Start bullets with consistent verbs such as Added, Improved, Changed, Fixed, Deprecated, or Removed.

    line 235
  31. Distinctive:

    Put commands, flags, configuration keys, API names, file paths, environment variables, and other technical identifiers in backticks.

    line 236
  32. Distinctive:

    Add a verified PR or issue reference at the end of a bullet when it is useful.

    line 237
  33. Very specific:

    Use Highlights only for approximately one to three important items.

    line 238
  34. Very specific:

    Do not repeat a change in two sections unless a short Highlights entry gives useful emphasis.

    line 239
  35. Very specific:

    Do not add a commit dump, contributor section, dependency-update list, or Full Changelog link.

    line 240
  36. Distinctive:

    Keep the notes concise. Prefer useful information to complete internal history.

    line 241
  37. Very specific:

    Use ### Security only for material public security impact.

    line 245
  38. Distinctive:

    Read the complete temporary Markdown file.

    line 249
  39. Distinctive:

    no version heading or release title is present

    line 252
  40. Very specific:

    Run exactly this release edit command.

    line 266
  41. Distinctive:

    If the command fails, report the error.

    line 272
  42. Very specific:

    Read the release again after success.

    line 274
  43. Distinctive:

    Remove the temporary file and directory after success or failure.

    line 288

“Common” is measured: kept by at least 6 in 10 of the 63 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Release Notes

Update only the body of the latest existing GitHub Release. Treat the repository diff as the source of truth. Use pull requests and commits only as supporting evidence.

Safety rules

  • Use gh for all GitHub Release, pull request, issue, and API operations. Use git fetch only when required tag objects or history are missing.
  • Do not create or delete a release.
  • Do not change a tag, title, target, draft state, prerelease state, latest-release state, or other release metadata.
  • Do not publish a draft.
  • Do not use a new release as a fallback when no release exists.
  • Do not infer release order from version text, semantic versions, or Git tag order.
  • Stop when required evidence is unavailable. Do not publish partial or speculative notes.
  • Treat the notes file as a full replacement for the current release body, not as text to append.

1. Verify prerequisites

Run all checks from the repository that the user wants to release:

  1. Confirm that the current directory is in a Git worktree:

    git rev-parse --is-inside-work-tree
  2. Confirm that gh is available:

    command -v gh
  3. Confirm that gh can resolve and access the current GitHub repository. Save its URL and get the GitHub host from it:

    REPO_URL="$(gh repo view --json url --jq '.url')"
    GH_HOSTNAME="${REPO_URL#*://}"
    GH_HOSTNAME="${GH_HOSTNAME%%/*}"
  4. Use the repository URL to get its GitHub host. Confirm the active account for that host:

    gh auth status --active --hostname "$GH_HOSTNAME"

Stop with a clear error if a check fails. Do not initialize a Git repository, change authentication, or select another repository as a fallback.

2. Select the release range

Use GitHub's descending release-list order as the release sequence. Include drafts and prereleases because they are existing releases:

gh release list --limit 2 --order desc \
  --json tagName,name,createdAt,publishedAt,isDraft,isPrerelease,isImmutable,isLatest
  • Select the first item as the latest release.
  • Select the second item as the previous release.
  • If the list is empty, stop and state that no existing GitHub Release was found. Never create one.
  • If there is one item, treat it as the project's first release.
  • Do not re-sort the result. A draft can have no publishedAt value.
  • Do not replace either tag with a Git tag that has no GitHub Release.

Set LATEST_TAG and, when present, PREVIOUS_TAG from this result. Quote both values in every command. Then load and record the latest release before any edit:

gh release view \
  --json tagName,name,body,isDraft,isPrerelease,isImmutable,publishedAt,targetCommitish,url \
  -- "$LATEST_TAG"

Confirm that the returned tagName is LATEST_TAG. Record tagName, name, isDraft, isPrerelease, isImmutable, and targetCommitish from this result. Also record isLatest, createdAt, and publishedAt from the release-list result. Use these values for the final safety check. If isImmutable is true, stop and report that GitHub does not permit the body update.

3. Resolve the tag history

Set full Git refs so that a tag that starts with - cannot become a command option:

LATEST_REF="refs/tags/$LATEST_TAG"
PREVIOUS_REF="refs/tags/$PREVIOUS_TAG"

Set PREVIOUS_REF only when PREVIOUS_TAG exists. Confirm that each selected release tag resolves to a local commit:

git rev-parse --verify "$LATEST_REF^{commit}"
git rev-parse --verify "$PREVIOUS_REF^{commit}"

Run the second command only when PREVIOUS_TAG exists. If a tag is missing, inspect the Git remotes, identify the remote for the same GitHub repository, and use git fetch to get the required tags. Do not assume that the remote is named origin. Stop if the remote is ambiguous or a release tag still does not resolve. Do not guess a replacement range.

Check for a shallow repository:

git rev-parse --is-shallow-repository

If the result is true, use the identified GitHub remote to fetch complete history and tags:

git fetch --unshallow --tags "$GITHUB_REMOTE"

Then run the shallow-repository check again. Continue only when the result is false and both required tag commits resolve. If the full history cannot be fetched, stop. Do not generate notes from an incomplete history.

When PREVIOUS_TAG exists, check whether it is an ancestor of LATEST_TAG:

git merge-base --is-ancestor "$PREVIOUS_REF^{commit}" "$LATEST_REF^{commit}"

A non-ancestor result is not an automatic failure. State it in the working notes, use the tree diff to identify the shipped-state change, and inspect both sides of the history so that the commit list does not cause a false claim.

4. Investigate all shipped changes

When a previous release exists, start with:

git log --date=short --format='%H%x09%ad%x09%s' "$PREVIOUS_REF..$LATEST_REF"
git diff --stat "$PREVIOUS_REF" "$LATEST_REF"
git diff --name-status "$PREVIOUS_REF" "$LATEST_REF"
git diff "$PREVIOUS_REF" "$LATEST_REF"

For non-linear history, also inspect:

git log --left-right --graph --oneline "$PREVIOUS_REF...$LATEST_REF"

For the first release, inspect all history reachable from the latest tag and compare its shipped tree with an empty tree:

git log --reverse --date=short --format='%H%x09%ad%x09%s' "$LATEST_REF"
EMPTY_TREE="$(git hash-object -t tree /dev/null)"
git diff --stat "$EMPTY_TREE" "$LATEST_REF"
git diff --name-status "$EMPTY_TREE" "$LATEST_REF"
git diff "$EMPTY_TREE" "$LATEST_REF"

Account for every changed path. Inspect the relevant diff hunks, not only the statistics or file names. For generated or binary files, inspect the source, manifest, configuration, or other evidence that explains their user impact. Do not include working-tree changes or commits after LATEST_TAG.

Use this evidence order:

  1. Actual code and configuration diff.
  2. Merged pull request title, body, changed files, and linked issue context.
  3. Commit messages.

Use PR data when it resolves an unclear purpose, user impact, migration step, or reference. Find associated PRs for a commit when needed:

gh api -H 'Accept: application/vnd.github+json' \
  "repos/{owner}/{repo}/commits/$COMMIT_SHA/pulls"
gh pr view "$PR_NUMBER" \
  --json number,state,mergedAt,title,body,files,commits,closingIssuesReferences,url

Use PR context only when state is MERGED and mergedAt is present. Verify every PR or issue association before adding its number. A commit prefix, PR label, or PR title does not prove user impact.

5. Select user-facing changes

For each changed behavior, identify what a user can observe and the evidence that supports it. Include a change only when it materially affects one or more of these areas:

  • behavior or user experience
  • compatibility or migration
  • installation or configuration
  • public commands, flags, APIs, or file formats
  • security or privacy
  • performance or resource use

Normally exclude refactoring, formatting, lint changes, tests, CI changes, build maintenance, merge commits, routine dependency updates, internal cleanup, and documentation-only changes. Include one only when the diff proves material user impact.

Investigate an ambiguous change before classification. If the available evidence cannot support a useful claim, describe only the supported fact or omit the change. Never invent behavior, fixes, performance results, security effects, breaking effects, migration steps, or PR and issue links.

If no change has material user impact, write only a short, factual summary that says the release contains maintenance changes with no material change to user-visible behavior. Do not create empty sections.

6. Draft the release body

Create an isolated temporary directory and Markdown file:

RELEASE_NOTES_DIR="$(mktemp -d)"
RELEASE_NOTES_FILE="$RELEASE_NOTES_DIR/release-notes.md"

Arrange the body in this exact order, and omit all empty sections:

  1. ### Highlights
  2. ### Added
  3. ### Changed
  4. ### Fixed
  5. ### Breaking Changes
  6. ### Deprecated
  7. ### Removed
  8. ### Security

Start with a concise one-sentence or two-sentence summary. Do not add a version heading and do not repeat the release title. Use this shape only for sections that contain entries:

A concise summary of the release and its most important user impact.

### Highlights

- Major user-facing improvement.

### Added

- Added support for ... (#123)

### Changed

- Improved ...

### Fixed

- Fixed an issue where ...

### Breaking Changes

- Replaced `--old-flag` with `--new-flag` for users of the command-line interface.
  - **Migration:** Replace `--old-flag` with `--new-flag` in scripts and configuration.

Apply these writing rules:

  • Write for users, not for maintainers of the internals.
  • Give one meaningful change in each bullet.
  • Prefer concrete behavior over implementation detail.
  • Start bullets with consistent verbs such as Added, Improved, Changed, Fixed, Deprecated, or Removed.
  • Put commands, flags, configuration keys, API names, file paths, environment variables, and other technical identifiers in backticks.
  • Add a verified PR or issue reference at the end of a bullet when it is useful.
  • Use Highlights only for approximately one to three important items. Omit it for a small release.
  • Do not repeat a change in two sections unless a short Highlights entry gives useful emphasis.
  • Do not add a commit dump, contributor section, dependency-update list, or Full Changelog link.
  • Keep the notes concise. Prefer useful information to complete internal history.

For each breaking change, explain what changed and who is affected. Add a nested **Migration:** instruction when the evidence supports one. Mention an important breaking change in the opening summary. Do not use the breaking label without evidence.

Use ### Security only for material public security impact. State the improvement at a safe public level. Do not include sensitive vulnerability details or exploitation instructions.

7. Review before publishing

Read the complete temporary Markdown file. Correct all problems before the edit. Confirm that:

  • the summary is one or two sentences
  • no version heading or release title is present
  • sections use the canonical order and no section is empty
  • entries are not duplicated
  • internal-only work is absent
  • each claim has evidence
  • each category matches the observable impact
  • breaking changes have affected-user and migration details when available
  • wording is consistent and concise
  • the body has no contributor list, dependency dump, or Full Changelog link

Immediately before the edit, run the release-list query from step 2 again. Confirm that its first tag is still LATEST_TAG and that the recorded list metadata for this release did not change. Then run gh release view -- "$LATEST_TAG" again and confirm that the recorded release metadata still identifies the intended release. Stop if CI or another actor created a newer release or changed the selected release.

8. Update only the body

Run exactly this release edit command. Do not add any other gh release edit option:

gh release edit --notes-file "$RELEASE_NOTES_FILE" -- "$LATEST_TAG"

If the command fails, report the error. Do not create a replacement release and do not change release settings to make the edit pass.

Read the release again after success. Confirm that its body matches RELEASE_NOTES_FILE and that tagName, name, isDraft, isPrerelease, and isImmutable match the values recorded before the edit:

gh release view \
  --json tagName,name,body,isDraft,isPrerelease,isImmutable,publishedAt,targetCommitish,url \
  -- "$LATEST_TAG"
gh release list --limit 2 --order desc \
  --json tagName,name,createdAt,publishedAt,isDraft,isPrerelease,isImmutable,isLatest

Also confirm that targetCommitish, createdAt, publishedAt, and isLatest did not change. Confirm that LATEST_TAG is still the first item. If a new release appeared during the edit, report the race and do not claim that the edited release is still the latest.

Report the updated tag and URL, the sections that were published, and any omitted ambiguous change. Do not claim success if the readback does not match.

Remove the temporary file and directory after success or failure. Delete the file first, then remove the empty directory. Do not use a recursive removal command.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.