agentleFS
samanhappysamanhappy/mcphub/.agents/skills/polish-release/SKILL.md

polish-release

Skill2.5k starsChanged 3 months agoApache-2.0View on GitHub

Polish an existing GitHub release's body into the project's bilingual (English + Chinese) template format with a References section built from merged PRs. Use when 修改 release、整理发布说明、release notes、编辑 release 内容、发版后整理、polish release、edit release body.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 5 mentionsJul 2026: 2 mentionsAug 2026: 2 mentionsSep 2026: 18 mentionsOct 2026: 7 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the samanhappy/mcphub repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about samanhappy/mcphub

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

See all 37

Talked about on GitHub (37 times).

On GitHub · 37

32 more on GitHub

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    Resolve the target release: Use the tag the user gave (e.g.

    line 23
  2. Very specific:

    Keep ## New Contributors and ## References as printed, replacing every <<FILL: ...>> marker.

    line 37
  3. Very specific:

    Validate locally before pushing: Write the finished draft to a throwaway temp file (e.g.

    line 39
  4. Distinctive:

    Clean up: Delete the temp file.

    line 50
  5. Distinctive:

    If the existing body already partially follows the template (e.g.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Polish Release

Rewrite an existing GitHub release's body into the project's bilingual template, then push it back. The repo's release pipeline auto-generates a raw body on tag push (generate_release_notes: true) that does not match the bilingual template — this skill cleans it up.

Structure contract

The required structure lives in exactly one place: .github/release-notes-template.md (read it). It is enforced by scripts/validate-release-notes.js (CI runs it on publish/edit). The rules:

  • Section order must match the template.
  • Summary, 摘要, References must be present and non-empty.
  • Each optional English section (Features/Fixes) and its Chinese pair must appear together — never one without the other.
  • Optional sections with no content are omitted entirely — never an empty section, never None/无 placeholders.
  • References bullets use the exact format <title> by @<login> in <pull url>, followed by one Full changelog: line.
  • New Contributors bullets use @<login> made their first contribution in #<number>.

Workflow

  1. Resolve the target release. Use the tag the user gave (e.g. v1.0.14), else the latest: gh release list --limit 1.
  2. Generate the deterministic parts.
    node scripts/build-release-notes.js <tag>
    This resolves the previous tag (compare line in the existing body, else git describe), fetches merged PRs in the range, and prints a draft skeleton to stdout with <<FILL: ...>> markers where you must write content. It reuses the existing body's ## New Contributors when present and falls back to detecting new contributors itself. It never writes files.
  3. Write the draft in the conversation (not in the working tree). From the PR list in the skeleton:
    • ## Summary — one English paragraph on why this release matters.
    • ## 摘要 — Chinese translation of the Summary.
    • ## Features/## 功能 — user-facing additions (omit if none).
    • ## Fixes/## 修复 — bug fixes, reliability, dependency bumps (omit if none).
    • Translate each bullet into Chinese: PR title in Chinese, then by @<author> and URL as-is.
    • Keep ## New Contributors and ## References as printed, replacing every <<FILL: ...>> marker. Drop any section whose content is empty.
  4. Validate locally before pushing. Write the finished draft to a throwaway temp file (e.g. /tmp/release-notes-<tag>.md, never inside the repo), then:
    node scripts/validate-release-notes.js /tmp/release-notes-<tag>.md
    On failure: report which section is missing/empty/asymmetric/out-of-order/malformed, fix the draft, re-validate.
  5. Push directly (no confirmation round).
    gh release edit <tag> --notes-file /tmp/release-notes-<tag>.md
  6. Clean up. Delete the temp file.

Notes

  • Editing a release is externally visible and re-triggers the release: edited GitHub event (which runs the validator in CI). Always validate locally first.
  • The temp file is only for validation input — keep iteration in the conversation.
  • If the existing body already partially follows the template (e.g. a prior run already edited it), reuse the good parts rather than regenerating from scratch.

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.