dart-pr
GitHub用于在DART项目中自动化创建分支、提交代码并发起Pull Request的完整工作流。涵盖PR模板填写、代码规范检查及特定3D仿真变更的验证流程,确保符合项目贡献规范。
Trigger Scenarios
Install
npx skills add dartsim/dart --skill dart-pr -g -y
SKILL.md
Frontmatter
{
"name": "dart-pr",
"description": "DART PR: create a branch, commit, push, and open a DART pull request"
}
dart-pr
Use this skill in Codex to run the DART dart-pr workflow. The editable
workflow source lives in .claude/commands/; this file is its generated adapter
in the shared .agents/skills/ catalog.
Invocation
- Claude Code:
/dart-pr <arguments> - Codex:
$dart-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.
Command Body
Prepare the PR locally within the authorized task: $ARGUMENTS Before an action requiring explicit maintainer/user approval under the owner docs, verify that existing authorization covers its action, target, and scope. Ask only for missing or changed authority after completing authorized preparation.
Required Reading
@AGENTS.md @docs/onboarding/contributing.md @docs/onboarding/ai-reviews.md @docs/ai/verification.md @docs/onboarding/changelog.md @.github/PULL_REQUEST_TEMPLATE.md
Drafting the PR
Follow the PR-writing guidance in
docs/onboarding/contributing.md#submitting-a-pull-request and fill the compact
PR template. Keep titles plain, scoped, and outcome-focused, without agent
prefixes. Recent PRs can supply relevant context; use the current owner guidance
rather than copying their length or structure.
Draft from the final diff and the reason for it, not from the session report. Before publication, read the rendered body as a reviewer: the opening must explain the concrete problem and solution, and the rest must earn its space through review-relevant rationale or evidence. Short but generic is not enough.
For 3D structure or behavior changes (model/scene, dynamics, collision/contact,
simulation, rendering, GUI, visual examples), use dart-verify-sim. Preserve the
owner's visible media, assessed comparisons, text oracle, claim boundaries, and
reproduction evidence. Publish transient evidence with pixi run evidence-publish
as described in docs/onboarding/agent-sim-verification.md; never commit
transient evidence. A compact template does not reduce these requirements.
Workflow
-
Inspect scope:
git status --short --branch git diff --stat git diff --check -
Exclude unrelated dirty files unless the user explicitly includes them.
-
Choose the target branch and milestone:
Target Milestone mainDART 7.0Active DART 6 LTS release-6.*Branch-matching DART 6.x patch -
For bug fixes, use the dual-PR flow: fix the active DART 6 LTS branch first, then cherry-pick or reapply to
main. -
Before every commit, run
pixi run lint. Also runpixi run buildfor C++ or Python changes and focused tests for behavior changes. -
Create or update a topic branch when needed:
git checkout -b <type>/<topic> origin/<target-branch> -
Commit only intended files with a plain descriptive commit title.
-
Merge the latest base branch into the PR branch before any push, and follow the base-merge and automated-review rules in
docs/onboarding/ai-reviews.md(no inline bot replies; one trigger owner and completed fix batches). Commit and validate the immutable candidate, obtain two clean non-author local reviews (or the evidenced trivial exception), and passpixi run review-gate check <candidate>before publication. Complete this local work before asking for missing publication approval. Verify explicit maintainer/user approval covers pushing and opening the draft PR; ask only for missing authority. With that approval:git push -u origin HEAD gh pr create --draft --base <target-branch> --milestone "<milestone>" \ --title "<plain title>" --body-file <filled-template-file> -
Prefer additive follow-up commits for updates to a published PR. Amend or force-push only after explicit maintainer/user approval and only when the user requests it or a clear reason exists (removing sensitive content, repairing branch history).
-
Invoke the
dart-changelogroutine for the changelog decision, entry wording, and PR-link follow-up. IfCHANGELOG.mdneeds the PR number, keep the follow-up changelog commit local unless existing explicit maintainer/user approval covers its push or PR update; otherwise request only the missing authority. -
Follow the single Review-Fix Loop Workflow in
docs/onboarding/ai-reviews.md, reusing explicit approval for its action, PR, and scope. Account for the initial automatic review before requesting another; apply the strategy checkpoint and current-head readiness gates. Monitor CI:gh pr checks <PR_NUMBER>.
Output
- Branch, target base, and milestone used
- Commit titles and files included
- PR URL and draft/ready state, or the prepared PR text awaiting approval
- Changelog decision
- CI status and any remaining blocker
Version History
-
deb9869
Current 2026-09-08 21:45
更新触发器描述以区分不同AI工具;细化PR撰写指南,强调基于最终差异而非会话报告生成内容;新增针对3D结构或行为变更的仿真验证要求。
-
bcd584e
2026-09-02 23:40
更新AI工具文档引用,从ai-tools.md变更为ai-reviews.md
- b9fbefc 2026-07-19 11:30


