create-github-release
关于
This skill automates creating GitHub releases with proper semantic versioning tags, changelog generation, and optional artifact attachment. It's designed for publishing stable software versions, libraries, or applications through GitHub CLI. Use it when you need to distribute build artifacts or generate release notes for stakeholders.
快速安装
Claude Code
推荐npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/create-github-release在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
Create GitHub Release
Create tagged GitHub release with release notes and optional artifacts.
When Use
- Marking stable software version for distribution
- Publishing new version of library or app
- Creating release notes for stakeholders
- Distributing build artifacts (binaries, tarballs)
Inputs
- Required: Version number (semantic versioning)
- Required: Summary of changes since last release
- Optional: Build artifacts to attach
- Optional: Whether this is a pre-release
Steps
Step 1: Determine Version Number
Follow semantic versioning (MAJOR.MINOR.PATCH):
| Change | Example | When |
|---|---|---|
| MAJOR | 1.0.0 -> 2.0.0 | Breaking changes |
| MINOR | 1.0.0 -> 1.1.0 | New features, backward compatible |
| PATCH | 1.0.0 -> 1.0.1 | Bug fixes only |
Got: Version number chosen reflects scope of changes since last release.
If fail: Unsure if changes are breaking? Review public API diff. Any removal or signature change of exported function → breaking change needing MAJOR bump.
Step 2: Update Version in Project Files
DESCRIPTION(R packages)package.json(Node.js)Cargo.toml(Rust)pyproject.toml(Python)
Got: Version number updated in right project file and committed to version control.
If fail: Version already updated in earlier step (e.g., via usethis::use_version() in R)? Verify matches intended release version.
Step 3: Write Release Notes
Create or update changelog. Organize by category:
## What's Changed
### New Features
- Added user authentication (#42)
- Support for custom themes (#45)
### Bug Fixes
- Fixed crash on empty input (#38)
- Corrected date parsing in UTC (#41)
### Improvements
- Improved error messages
- Updated dependencies
### Breaking Changes
- `old_function()` renamed to `new_function()` (#50)
**Full Changelog**: https://github.com/user/repo/compare/v1.0.0...v1.1.0
Got: Release notes organized by category (features, fixes, breaking changes) with issue/PR references for traceability.
If fail: Changes hard to categorize? Review git log v1.0.0..HEAD --oneline to rebuild list of changes since last release.
Step 4: Create Git Tag
git tag -a v1.1.0 -m "Release v1.1.0"
git push origin v1.1.0
Got: Annotated tag v1.1.0 exists locally and on remote. git tag -l shows tag.
If fail: Tag already exists? Delete with git tag -d v1.1.0 && git push origin :refs/tags/v1.1.0 and recreate. Push rejected? Confirm write access to remote.
Step 5: Create GitHub Release
Using GitHub CLI (recommended):
gh release create v1.1.0 \
--title "v1.1.0" \
--notes-file CHANGELOG.md
With artifacts:
gh release create v1.1.0 \
--title "v1.1.0" \
--notes "Release notes here" \
build/app-v1.1.0.tar.gz \
build/app-v1.1.0.zip
Pre-release:
gh release create v2.0.0-beta.1 \
--title "v2.0.0 Beta 1" \
--prerelease \
--notes "Beta release for testing"
Got: Release visible on GitHub with tag, notes, attached artifacts (if any).
If fail: gh not authenticated? Run gh auth login. Tag does not exist on remote? Push it first with git push origin v1.1.0.
Step 6: Auto-Generate Release Notes
GitHub can auto-generate notes from merged PRs:
gh release create v1.1.0 \
--title "v1.1.0" \
--generate-notes
Configure categories in .github/release.yml:
changelog:
categories:
- title: New Features
labels:
- enhancement
- title: Bug Fixes
labels:
- bug
- title: Documentation
labels:
- documentation
- title: Other Changes
labels:
- "*"
Got: Release notes auto-generated from merged PR titles, categorized by label. .github/release.yml controls categories.
If fail: Auto-generated notes empty? Confirm PRs were merged (not closed) and had labels. Write notes by hand as fallback.
Step 7: Verify Release
# List releases
gh release list
# View specific release
gh release view v1.1.0
Got: gh release list shows new release. gh release view displays right title, tag, notes, assets.
If fail: Release missing? Check Actions tab for release workflows that may have failed. Verify tag exists with git tag -l.
Checks
- Version tag follows semantic versioning
- Git tag points to right commit
- Release notes accurately describe changes
- Artifacts (if any) attached and downloadable
- Release visible on GitHub repo page
- Pre-release flag set correctly
Pitfalls
- Tagging wrong commit: Always verify
git logbefore tagging. Tag after version-bump commit. - Forgetting to push tags:
git pushdoesn't push tags. Usegit push --tagsorgit push origin v1.1.0. - Inconsistent version format: Pick
v1.0.0vs1.0.0and stick with it. - Empty release notes: Always give meaningful notes. Users need to know what changed.
- Deleting and recreating tags: Dodge changing tags after push. If needed, create new version instead.
See Also
commit-changes- staging and committing workflowmanage-git-branches- branch management for release preprelease-package-version- R-specific release workflowconfigure-git-repository- Git setup prerequisitesetup-github-actions-ci- automate releases via CI
GitHub 仓库
相关推荐技能
content-collections
元Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
polymarket
元这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
creating-opencode-plugins
元该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
sglang
元SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
