agentleFS
lamxylamxy/agent-prompt-rules-system/skills/skills-github-ops/github-release/SKILL.md

github-release

Skill4 starsChanged 6 months agoMITView on GitHub

Publish a GitHub release using gh CLI. Use when creating a new version tag, writing release notes, or fixing garbled/corrupted characters in release notes. Covers standard release flow, ASCII-safe notes file approach, and Unicode homoglyph prevention.

  • Commits and pushes

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write notes to .release_notes_tmp.md using create_file tool -- never inline in the shell command.

    line 34
  2. Distinctive:

    If any characters are found, consult ascii-replacements.md and fix before continuing.

    line 53
  3. Very specific:

    Always: use --notes-file with a file that has passed the ASCII verification step.

    line 77
  4. Very specific:

    Keep .release_notes_tmp.md out of version control (add to .gitignore).

    line 78

“Common” is measured: kept by at least 6 in 10 of the 7 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

GitHub Release

When to Use

  • Publishing a new version (patch / minor / major)
  • Writing or updating release notes for an existing tag
  • Fixing garbled characters (question marks, mojibake) in release notes caused by Unicode homoglyphs

Procedure

Step 1: Collect changes since last tag

git log --oneline <last-tag>..HEAD
git diff <last-tag>..HEAD --stat
gh release view <last-tag>   # reference previous notes format

Step 2: Create and push tag

git tag -a <new-tag> -m "release: <new-tag>"
git push origin <new-tag>

Step 3: Write release notes to a temp file

Write notes to .release_notes_tmp.md using create_file tool -- never inline in the shell command.

See release-notes-template.md for the recommended structure.

Step 4: Verify pure ASCII (required)

python3 -c "
import sys
data = open('.release_notes_tmp.md', encoding='utf-8').read()
bad = [(i, c, ord(c)) for i, c in enumerate(data) if ord(c) > 127]
print(f'Non-ASCII count: {len(bad)}')
for idx, ch, cp in bad:
    print(f'  index {idx}: U+{cp:04X}  repr={ch!r}')
if bad: sys.exit(1)
"

Expected output: Non-ASCII count: 0 and exit code 0.
If any characters are found, consult ascii-replacements.md and fix before continuing.

Step 5: Create release

gh release create <new-tag> --title "<new-tag>" --notes-file .release_notes_tmp.md

Step 6: Cleanup

rm .release_notes_tmp.md

Step 7 (fix existing release): Edit release notes

gh release edit <tag> --notes-file .release_notes_tmp.md
rm .release_notes_tmp.md

Key Constraints

  • Never pass AI-generated text as an inline --notes "..." argument -- Unicode homoglyphs (e.g. Cyrillic a U+0430 disguised as Latin a) survive copy-paste and corrupt the published notes.
  • Always use --notes-file with a file that has passed the ASCII verification step.
  • Keep .release_notes_tmp.md out of version control (add to .gitignore).

References

  • release-notes-template.md -- recommended notes structure
  • ascii-replacements.md -- common Unicode-to-ASCII replacement table

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.