version-sdlc
Semantic versioning and release management. Handles version bumping (major, minor, patch), release tags, and automated changelog generation. Supports --pre labels and --auto for non-interactive releases.
- License 许可
- MIT
- 最近更新
- 2026-05-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- version-sdlc
- description
- Semantic versioning and release management. Handles version bumping (major, minor, patch), release tags, and automated changelog generation. Supports --pre labels and --auto for non-interactive releases.
- argument-hint
- [major|minor|patch|<label>] [--pre <label>] [--changelog] [--hotfix] [--auto]
- user-invocable
- true
02 资源文件 2
- 参考文档changelog-workflow.md4.8 KB
- 参考文档init-workflow.md3.4 KB
03 SKILL.md 正文
Versioning Releases Skill
Consume pre-computed version context from scripts/skill/version.js and execute either
the one-time init setup or a full semantic release: version bump, annotated git tag,
optional CHANGELOG entry, release commit, and push to origin.
Announce at start: "I'm using version-sdlc (sdlc v{sdlc_version})." — extract the version from the sdlc: line in the session-start system-reminder.
Workflow
Step 0: Resolve and Run scripts/skill/version.js
VERBATIM — Run this bash block exactly as written. Do not modify, rephrase, or simplify the commands.
SCRIPT="scripts/skill/version.js"
[ ! -f "$SCRIPT" ] && { echo "ERROR: Could not locate $SCRIPT. Is the sdlc extension installed?" >&2; exit 2; }
VERSION_CONTEXT_FILE=$(node "$SCRIPT" --output-file $ARGUMENTS)
EXIT_CODE=$?
# Single canonical cleanup
trap 'rm -f "$VERSION_CONTEXT_FILE"' EXIT INT TERM
Branch A: Init Workflow (flow === "init")
If the user invoked with --init, read and follow the init procedure (scaffold CI, create config).
Branch B: Release Workflow (flow === "release")
Step 1: Read Context
Extract currentVersion, bumpOptions, conventionalSummary.
Step 2 (PLAN): Determine Bump Type and Draft CHANGELOG
Apply semver rules. suggest major if breaking changes detected. Draft CHANGELOG in "Keep a Changelog" format.
Step 3-4 (CRITIQUE/IMPROVE): Self-review
Check for semver correctness and changelog completeness.
Step 5 (DO): Present Release Plan
Show release plan and draft changelog. Use ask_user for approval.
Step 6-7: Verify Pre-conditions
Check version file existence, tag conflicts, and git identity.
Step 8 (EXECUTE): Execute the Release
- Update version file using
replacetool. Verifygit diffshows 1 line changed. - Update CHANGELOG.md.
- Stage and commit.
- Link verification — HARD GATE.
- Git tag and Push.
See Also
04 同仓库更多 Skills
pr-sdlc
Creates or updates GitHub pull requests with auto-generated 8-section descriptions.
example-skill
Fixture skill for validate-cost-tiers drift tests.
example-skill
Fixture skill for validate-cost-tiers tests.
sdlc-broken-skill
暂无简介
verify-pipeline-sdlc
Analyze and fix failed CI runs on pull requests. Classifies root causes and either applies minimal fixes or emits proposals. Integrated with ship-sdlc.
ship-sdlc
End-to-end feature shipping pipeline. Chains execution, commit, review, fixing, versioning, and PR creation in one flow. Supports --auto, --bump, --draft, and --quality. Handles resume and workspace isolation.