release-guard
9
总安装量
9
周安装量
#33039
全站排名
安装命令
npx skills add https://github.com/d-o-hub/rust-self-learning-memory --skill release-guard
Agent 安装分布
opencode
9
gemini-cli
9
claude-code
9
github-copilot
9
codex
9
kimi-cli
9
Skill 文档
Release Guard Skill
Core Rules (NEVER VIOLATE)
- Releases ONLY from main after PR merge.
- ALL CI jobs must COMPLETE + SUCCESS. NO queued jobs.
- Verify branch protection requires status checks.
Activation Steps
- PR Check: Ask for PR# if needed. Run
gh pr view $PR_NUM --json state,baseRefName. Must: state=CLOSED, baseRefName=main. - Branch:
git branch --show-current+gh repo view --json default_branch. Fail if not main. - CI:
gh run list --branch main --limit 5 --json status,conclusion. ALL: completed + success. Log/screenshot. - Clean:
git status(clean working dir).
Fail Response
ð« BLOCKED: [Exact violation]
Fix:
- Merge PR to main
- Wait CI: gh run list --branch main
- git checkout main && git pull
Re-run task.
Pass: Safe Release
- Semver check:
cargo semver-checks check-release --workspace(ADR-034) - Tag: vMAJOR.MINOR.PATCH (semantic).
- Prefer:
cargo release patch|minor|major(ADR-034) - Fallback:
gh release create v1.2.3 --generate-notes --target main - Confirm before execute.
Examples
- User: “Create release from develop PR #199” â BLOCK: Wrong branch.
- User: “Tag v1.0.0 after PR #199” â Check PR/CI/branch â Proceed if pass.
Progressive disclosure: For CI details, see ci-reference.md if needed.
## Best Practices Applied
- **Description**: Keyword-rich for matching ("release", "tag").
- **allowed-tools**: Read + Bash wildcards (gh/git CLI). Install `gh`.[2]
- **Structure**: Essential in SKILL.md; link supports (add `ci-reference.md` for details).
- **Load/Test**: Restart Claude Code. Ask "What Skills available?". Test: "Create release PR #199".