Release

作者 parcadeid07ff4b06b62无许可证3.9K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

Release preparation workflow - security audit → E2E tests → review → changelog → docs

仅含说明DevOps & Cloud
AI 生成的概览

结构化的发布准备工作流:安全审计、端到端测试、评审、版本号更新、变更日志与发布说明。

功能
该技能定义了一个分五个阶段依次执行的发布准备工作流:安全漏洞扫描、完整端到端测试套件、最终发布评审、版本号更新与变更日志生成,以及发布说明与文档。每个阶段都委派给指定的子代理(aegis、atlas、review-agent、herald、scribe),并给出明确的提示词和产出物,例如安全报告、测试报告、审批结论、更新后的版本文件或 RELEASE.md。它还描述了发布类型(major、minor、patch、hotfix)、会中止流程的阻塞条件,以及 --dry-run、--skip-security 等参数。
适用场景
适用于准备发布某个版本、切出发布版本或部署到生产环境,并希望在发布前执行一套可重复、有顺序的检查清单时。适合“准备发布”“发布版本 X”“可以部署了”这类请求。
运行要求
仅为说明性指令,不附带脚本。它假定存在指定的子代理(aegis、atlas、review-agent、herald、scribe),并且项目具备测试套件、package.json 或 pyproject.toml 等版本文件,以及用于生成变更日志的 git 历史记录。

/release - Release Workflow

Structured release preparation to ship with confidence.

When to Use

  • "Prepare a release"
  • "Ship version X"
  • "Release to production"
  • "Cut a release"
  • "Ready to deploy"
  • Before any production deployment

Workflow Overview

┌─────────┐    ┌─────────┐    ┌──────────────┐    ┌──────────┐    ┌─────────┐│  aegis  │───▶│  atlas  │───▶│ review-agent │───▶│  herald  │───▶│  scribe ││         │    │         │    │              │    │          │    │         │└─────────┘    └─────────┘    └──────────────┘    └──────────┘    └─────────┘  Security       E2E            Final              Version         Release  audit          tests          review             bump            notes

Agent Sequence

#AgentRoleOutput
1aegisSecurity vulnerability scanSecurity report
2atlasRun full E2E test suiteTest report
3review-agentFinal release reviewRelease approval
4heraldVersion bump, changelog generationUpdated version files
5scribeRelease notes, documentationRELEASE.md, docs

Why This Order?

  1. Security first: Catch vulnerabilities before they ship
  2. E2E tests: Verify full system works end-to-end
  3. Final review: Human-in-the-loop approval
  4. Version bump: Only after approval
  5. Documentation: Ship with proper release notes

Execution

Phase 1: Security Audit

Task(  subagent_type="aegis",  prompt="""  Security audit for release: [VERSION]
  Scan for:  - Dependency vulnerabilities (npm audit, pip audit)  - Hardcoded secrets/credentials  - SQL injection, XSS, CSRF risks  - Authentication/authorization issues  - Insecure configurations
  Output: Security report with severity levels  """)

Phase 2: E2E Tests

Task(  subagent_type="atlas",  prompt="""  Run E2E tests for release: [VERSION]
  Execute:  - Full E2E test suite  - Critical path tests  - Integration tests  - Performance benchmarks (if applicable)
  Output: Test report with pass/fail counts  """)

Phase 3: Final Review

Task(  subagent_type="review-agent",  prompt="""  Final release review: [VERSION]
  Review:  - Security audit results  - E2E test results  - Changes since last release (git log)  - Breaking changes  - Migration requirements
  Output: RELEASE_APPROVED or RELEASE_BLOCKED with reasons  """)

Phase 4: Version Bump & Changelog

Task(  subagent_type="herald",  prompt="""  Prepare release: [VERSION]
  Tasks:  - Bump version in package.json/pyproject.toml  - Generate CHANGELOG.md entry  - Update version constants in code  - Tag commit (don't push yet)
  Follow semantic versioning.  """)

Phase 5: Release Notes

Task(  subagent_type="scribe",  prompt="""  Write release notes: [VERSION]
  Include:  - Summary of changes  - New features  - Bug fixes  - Breaking changes  - Migration guide (if needed)  - Contributors
  Output: RELEASE.md or update docs  """)

Release Types

Major Release (Breaking Changes)

/release --major→ Full workflow with migration guide

Minor Release (New Features)

/release --minor→ Full workflow, lighter security review

Patch Release (Bug Fixes)

/release --patch→ Security + tests + quick review

Hotfix

/release --hotfix→ Expedited: aegis → atlas → herald

Example

User: /release v2.0.0
Claude: Starting /release workflow for v2.0.0...
Phase 1: Security audit...[Spawns aegis]✅ No critical vulnerabilities⚠️ 2 low-severity issues (documented)
Phase 2: E2E tests...[Spawns atlas]✅ 156/156 E2E tests passing
Phase 3: Final review...[Spawns review-agent]✅ RELEASE_APPROVED- 47 commits since v1.9.0- 3 new features- 12 bug fixes- No breaking changes
Phase 4: Version bump...[Spawns herald]✅ Version bumped to 2.0.0✅ CHANGELOG.md updated✅ Git tag created
Phase 5: Release notes...[Spawns scribe]✅ RELEASE-v2.0.0.md created
┌─────────────────────────────────────────┐│ Release v2.0.0 Ready                    │├─────────────────────────────────────────┤│ Security: ✅ Passed                     ││ Tests: ✅ 156/156                       ││ Review: ✅ Approved                     ││                                         ││ Next steps:                             ││ 1. git push origin v2.0.0              ││ 2. Create GitHub release               ││ 3. Deploy to production                │└─────────────────────────────────────────┘

Blockers

The workflow stops if:

  • Critical security vulnerability found
  • E2E tests failing
  • Review verdict is RELEASE_BLOCKED
Phase 1: Security audit...❌ CRITICAL: SQL injection in user.py:45
Release blocked. Fix critical issues before proceeding.

Flags

  • --major/--minor/--patch: Semantic version type
  • --hotfix: Expedited release path
  • --skip-security: Skip security audit (not recommended)
  • --dry-run: Run checks without bumping version

来源与署名

来源:parcadei/continuous-claude-v3位于.claude/skills/release提交d07ff4b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架