用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/dartsim/dart --skill dart-backport-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | dart-backport-pr |
| description | DART Backport PR: backport a merged main PR to a release branch |
Use this skill in Codex to run the DART dart-backport-pr workflow. The editable
workflow source lives in .claude/commands/; this file is its generated adapter
in the shared .agents/skills/ catalog.
/dart-backport-pr <arguments>$dart-backport-pr <arguments>Treat the text after the skill name as $ARGUMENTS. When the workflow
references $1, $2, etc., map those to the positional values supplied by the
user.
Backport PR or commits: $ARGUMENTS
@AGENTS.md @docs/onboarding/contributing.md @docs/onboarding/release-management.md @docs/onboarding/changelog.md
For a source change that depends on 3D structure or behavior, use the target
branch's dart-verify-sim workflow to preserve the text oracle and assessed
visual evidence, or record why the target branch cannot render the claim.
main:
gh pr view <SOURCE_PR> --json state,mergedAt,baseRefName,mergeCommit
git fetch origin <RELEASE_BRANCH> main
git cherry -v --abbrev=40 origin/<RELEASE_BRANCH> origin/main | grep <COMMIT_HASH>
main. If the release branch has a
smaller workflow surface, adapt to the release branch instead of importing
main-only workflows.BRANCH=backport/<SOURCE_PR>-to-<RELEASE_BRANCH>
if git show-ref --verify --quiet "refs/heads/$BRANCH"; then
if [ -n "$(git status --short)" ] || [ "$(git rev-parse "$BRANCH")" \
!= "$(git rev-parse "origin/<RELEASE_BRANCH>")" ]; then
echo "existing $BRANCH is dirty or diverges from the release tip" >&2
exit 1 # stop and ask before resetting or cherry-picking onto it
fi
git switch "$BRANCH"
else
git switch --no-track -c "$BRANCH" origin/<RELEASE_BRANCH>
fi
git cherry-pick -x <COMMIT_HASH>./dart-changelog decide or $dart-changelog decide against the
backport diff and release target before opening the backport PR. If an entry
is required but needs the backport PR number, draft the decision and keep the
finalize/update follow-up local until explicit approval permits another
push. Do not skip the changelog decision just because this is a backport.pixi run lint and the smallest relevant release-branch checks.