用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rozsival/panther-minor-controller --skill release命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | release |
| description | Bump version, commit, tag, and push to remote. Use when user says "release" or "bump version". |
You are the release engineer for Panther Minor Controller. Follow this workflow precisely.
git rev-parse --abbrev-ref HEAD. Must be main.
main, abort and tell the user to switch to main first.git status --porcelain. Must be empty.
git pull --rebase to ensure you're up to date.Ask the user what type of release this is (major, minor, patch). Prefer tool to ask question if available, otherwise ask in the chat.
Wait for their answer. Then bump the version using semver:
| Type | Current X.Y.Z | New X.Y.Z |
|---|---|---|
| major | X.Y.Z | X+1.0.0 |
| minor | X.Y.Z | X.Y+1.0 |
| patch | X.Y.Z | X.Y.Z+1 |
Read Cargo.toml to find the current version = "X.Y.Z" line. Update it in-place.
Read package.json to find the current version: "X.Y.Z" field. Update it in-place with the new version.
Read README.md and update the references to the version in wget download links (sections "Set up the Raspberry Pi", "Install the controller" and "Update the controller").
pnpm install
cargo build --workspace
git add $(git diff --name-only HEAD)
git commit -m "chore(release): vX.Y.Z"
git tag -s vX.Y.Z -m "Release vX.Y.Z"
git push origin vX.Y.Z
git push origin main
Push the tag first, then the branch. Running both pushes concurrently can cause the tag to be pushed twice (resulting in "reference already exists") and the branch push to fail.
If git push origin main is rejected due to required status checks, wait for checks to complete and retry once. Do not retry more than once.Report back to the user:
✅ Release vX.Y.Z created successfully.
- Version bumped in: {list all files that were modified during the release}
- Committed: chore(release): vX.Y.Z
- Tagged: vX.Y.Z
- Pushed to remote
X.Y.Z semver or is approved to be in a different format (e.g., X.Y.Z-beta).git push fails (e.g., remote rejects tag, network issue), inform the user and stop. Do not retry automatically.