基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/DataDog/pprof-format --skill release命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | release |
| description | Create a release proposal for the v2.x branch by cherry-picking commits from main |
| disable-model-invocation | true |
| argument-hint | [version (optional, auto-determined from PR labels)] |
Create a v2.x release proposal. If a version is provided as $ARGUMENTS, use it. Otherwise, determine it automatically (see step 2).
The branch-diff tool must be installed globally:
npm install branch-diff -g
Use the branch-diff tool to list commits on main not yet applied to v2.x:
branch-diff v2.x main
Review the output with the user. Skip:
Confirm the list of commits with the user before proceeding.
If the user didn't provide a version, determine it from PR labels. For each commit being cherry-picked, extract the PR number from the commit message (e.g. (#42)) and check its labels:
gh pr view <number> --json labels --jq '.labels[].name'
semver-minor label, the release is a minor bump.semver-patch label, the release is a patch bump.Get the current version from the tip of v2.x (the most recent version commit message), then compute the next version accordingly. Confirm the version with the user.
In the steps below, $VERSION refers to the determined version number.
Create a git worktree from the current repo, checking out a new branch v$VERSION-proposal based on the v2.x branch:
git worktree add ../pprof-format-v2 -b v$VERSION-proposal v2.x
All subsequent steps run in the worktree directory.
Cherry-pick the agreed-upon commits in chronological order (oldest first):
git cherry-pick <hash1> <hash2> ...
If a cherry-pick has conflicts, stop and resolve with the user.
Bump the version in package.json and package-lock.json using npm, then commit:
npm version $VERSION --no-git-tag-version
git add package.json package-lock.json
git commit -m "v$VERSION"
Push the branch and create a PR targeting v2.x:
git push -u origin v$VERSION-proposal
Create the PR with gh pr create --base v2.x. The PR body should categorize the cherry-picked PRs by type, following this pattern:
# New features
* #NNN
# Improvements
* #NNN
# Bug fixes
* #NNN
# Other (build, dev)
* #NNN
Only include sections that have entries. Reference PR numbers from the original commit messages.