Habilidades release
📦

release

Seguro ⚙️ Comandos externos

使用 git 标签和 GitHub Actions 自动化发布

在多个插件中手动创建发布容易出错且耗时。此技能自动化整个发布工作流程,包括版本号变更检测、git 标签创建以及针对 monorepo 项目的 GitHub Release 生成。

Suporta: Claude Codex Code(CC)
📊 70 Adequado
1

Baixar o ZIP da skill

2

Upload no Claude

Vá em Configurações → Capacidades → Skills → Upload skill

3

Ative e comece a usar

Testar

A utilizar "release". Release downloader-v0.5.2

Resultado esperado:

I will release version 0.5.2 for the Stash Downloader plugin.

Step 1: Verifying pre-release checklist
- Current branch: dev
- Working directory clean: yes

Step 2: Checking current version
- Current version in plugins/stash-downloader/package.json: 0.5.1

Step 3: Reviewing commits since downloader-v0.5.1
- Found 5 commits: 3 bug fixes, 2 documentation updates
- Recommended version bump: PATCH

Step 4: Merging dev to main and creating release
- Merged dev into main
- Updated version to 0.5.2
- Created commit with release message

Step 5: Creating and pushing tag
- Created tag: downloader-v0.5.2
- Pushed to origin with tags

GitHub Actions will now run CI checks and create the GitHub Release.

A utilizar "release". Release a new version for stash-browser

Resultado esperado:

I will help you release a new version for Stash Browser.

Step 1: Analyzing current state
- Current version: 0.1.0
- Commits since browser-v0.1.0: 8 commits

Step 2: Determining version bump
- Found 2 feature commits, 3 bug fixes, 3 documentation updates
- Recommended bump: MINOR (new features detected)

Step 3: Creating release
- Merging dev to main
- Updating version to 0.2.0 in plugins/stash-browser/package.json
- Creating tag: browser-v0.2.0
- Pushing tags to trigger release workflow

The GitHub Actions workflow will run automated tests and create the GitHub Release.

Auditoria de Segurança

Seguro
v6 • 1/21/2026

All 61 static findings are false positives. The skill provides documentation for release automation workflows using standard git and npm commands. Detected patterns include SHA256 hashes for content verification (not weak crypto), markdown examples of shell commands (not executable code), GitHub URLs for workflow references, and optional GOOGLE_API_KEY documentation. No actual security risks identified.

2
Arquivos analisados
873
Linhas analisadas
1
achados
6
Total de auditorias

Fatores de risco

⚙️ Comandos externos
Nenhuma localização específica registrada
Auditado por: claude Ver Histórico de Auditoria →

Pontuação de qualidade

38
Arquitetura
100
Manutenibilidade
87
Conteúdo
30
Comunidade
100
Segurança
83
Conformidade com especificações

O Que Você Pode Construir

修复错误后发布补丁版本

当热修复或错误修复合并后,快速增加并发布补丁版本。该技能分析提交消息以确认补丁级别的更改,然后处理版本增加、标记和推送以触发自动部署。

发布带有次版本号增加的新功能

当新功能准备好用于生产环境时,调用该技能创建适当的发布。该技能检测功能提交并增加次版本号,创建触发 GitHub Actions 工作流程进行部署的标记发布。

在 monorepo 中管理多插件发布

对于包含多个插件(如 Stash Downloader 和 Stash Browser)的项目,此技能帮助识别哪个插件发生了更改,并为每个插件独立创建适当的带前缀标签。

Tente Estes Prompts

使用特定版本快速发布
Release version X.Y.Z for the downloader plugin
使用自动版本号增加进行发布
Release a new version for stash-downloader. Determine the version bump based on recent commits.
带分析的完整发布工作流程
I want to release a new version. Check the current version, review commits since the last tag, determine if this is a major, minor, or patch release, then create the release.
发布后分支同步
The release workflow completed successfully. Sync the dev branch with main to incorporate the release changes.

Melhores Práticas

  • 始终从 dev 分支开始发布,永远不要直接提交到 main 分支
  • 等待 GitHub Actions 工作流程完成后再同步 dev 分支,以避免取消部署
  • 当多个插件在同一开发周期中有更改时,分别发布插件

Evitar

  • 在稳定工作流程完成之前推送到 dev 分支可能会取消部署
  • 跳过发布前检查清单(类型检查、代码检查、测试、构建)可能导致发布失败
  • 使用与插件命名约定不匹配的错误标签前缀会破坏自动化

Perguntas Frequentes

此技能如何确定版本号增加类型?
该技能分析自上次标签以来的提交消息。破坏性更改触发主版本号增加,新功能触发次版本号增加,错误修复或文档更改使用语义化版本控制约定触发补丁版本号增加。
我可以将此技能用于非 monorepo 项目吗?
该技能针对带有插件前缀的 monorepo 工作流程进行了优化。对于单包仓库,你仍然可以使用核心发布工作流程,但需要调整标签命名约定。
如果我过早推送到 dev 会发生什么?
在稳定的 GitHub Actions 工作流程完成之前推送到 dev 可能会由于并发组而取消部署。该技能包含明确的警告,并建议等待工作流程完成。
这是否会自动创建 GitHub Releases?
该技能创建并推送 git 标签。然后 GitHub Actions 工作流程会根据这些标签自动创建 GitHub Releases,包括生成的变更日志和 ZIP 文件附件。
如果发布工作流程失败怎么办?
如果 GitHub Actions 失败,你可以重新推送标签以重试工作流程。技能文档包含故障排除步骤和发布前要运行的检查清单。
如何配置 AI 生成的发布说明?
在 GitHub Actions secrets 中设置 GOOGLE_API_KEY 环境变量。配置后,工作流程将使用 AI 自动从提交历史生成发布说明。

Detalhes do Desenvolvedor

Estrutura de arquivos

📄 SKILL.md