new-release
GitHub用于创建 GitHub Release 的自动化技能,通过对比历史版本生成用户可见的单行更新日志,经确认后执行打标签和发布操作。
Trigger Scenarios
Install
npx skills add emavgl/oinkoin --skill new-release -g -y
SKILL.md
Frontmatter
{
"name": "new-release",
"description": "Creates a GitHub release for Oinkoin with a tag, release name, and a one-line changelog summary. Use when the user wants to ship a new version.",
"argument-hint": "<version>"
}
Skill: new-release
Create a release on GitHub for the given version.
Usage
/new-release 1.9.0
Steps
Step 1 — Confirm the version
The version comes from the skill argument (e.g. 1.9.0). If the user didn't provide one, ask for it before continuing.
Step 2 — Find the previous release tag
gh release list --limit 10
Identify the most recent non-draft, non-pre-release tag to use as the comparison base.
Step 3 — Collect commits since the previous tag
git log <previous-tag>..HEAD --oneline
Step 4 — Draft the changelog with the user
From the commit list, propose a single-line summary of the user-facing changes. Rules:
- The whole changelog is one line, under 100 characters total — not a bullet list, not per-bullet
- Do not reference issue/PR numbers (e.g. no
(#123)) - Skip internal/chore commits (version bumps, CI, typos) unless they matter to users
- Condense multiple changes into a single concise sentence rather than listing them separately
- Write in plain English, present tense ("Add X", "Fix Y", "Improve Z")
- Show the draft to the user and ask for approval or edits before creating the release
Step 5 — Create the tag and release
Once the user approves the changelog:
# Create and push the tag
git tag <version>
git push origin <version>
# Create the release
gh release create <version> \
--title "<version>" \
--notes "<approved bullet points>"
Step 6 — Confirm
Print the release URL returned by gh release create so the user can review it on GitHub.
Version History
- 7468a7c Current 2026-08-20 12:20


