一键导入
dart-pr
DART PR: create a branch, commit, push, and open a DART pull request
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
DART PR: create a branch, commit, push, and open a DART pull request
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
DART Analyze: analyze repository evidence without editing
DART Architecture: the DART 7 multi-physics, multi-solver, multi-backend simulation pipeline and where each abstraction is owned
DART Audit Agent Compliance: audit and fix gaps when agents miss or cannot discover documented rules
DART Backport PR: backport a merged main PR to a release branch
DART Benchmark Packet: author or refresh a benchmark evidence packet for an owning plan
DART Branch Cleanup: analyze or clean stale repository branches
| name | dart-pr |
| description | DART PR: create a branch, commit, push, and open a DART pull request |
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.
/dart-pr <arguments>$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.
Prepare or open a DART pull request after explicit maintainer/user approval: $ARGUMENTS
@AGENTS.md @docs/onboarding/contributing.md @docs/onboarding/ai-tools.md @docs/onboarding/changelog.md @.github/PULL_REQUEST_TEMPLATE.md
When the expected PR style is unclear, inspect recently merged PRs before drafting the title or body:
gh pr list --repo dartsim/dart --state merged --base main --limit 10 \
--json number,title,body,mergedAt
Use these practices:
## Before / After section before Testing covering
only relevant dimensions (public API, commands/workflows, behavior,
migration, performance baseline). Phrase each row as a user-visible
before/after, then name the mechanism as supporting context. For performance
claims, name the baseline explicitly (CPU path, parent commit, main, or
prior implementation) plus workload, metric, and limitations.dart-verify-sim: report the
text correctness oracle and include assessed, claim-relevant visual/debug
evidence when applicable (an image alone is not correctness proof):
--headless, --frames,
--width, --height, --screenshot) over manual screenshots. Capture
before and after with the same camera, dimensions, frame count, and
renderer; restore the replaced sample/assets or use the base branch to
capture the before image. Inspect the images yourself and include the
commands and any software-rendering flags in the PR body.https://github.com/user-attachments/assets/... URLs. Do not commit
transient visual evidence; commit visual files only when they are durable
documentation, fixtures, or source assets.gh pr edit,
gh pr comment, and the REST API do not provide a generic upload, and any
command that edits or comments on a PR still requires explicit
maintainer/user approval. If the current tool cannot upload attachments,
keep the local artifact paths in the working note, ask a maintainer to
upload them, then update the PR body with the returned URL after explicit
maintainer/user approval. Do not fall back to committing evidence into
docs/assets/.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 |
|---|---|
main | DART 7.0 |
Active 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 run pixi run build for 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-tools.md
(no inline bot replies; @codex review re-triggers are throttled to one per
approved review-fix round). Ask for explicit maintainer/user approval before
pushing or opening the draft PR. After 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-changelog routine for the changelog decision, entry
wording, and PR-link follow-up. If CHANGELOG.md needs the PR number, keep
the follow-up changelog commit local until explicit maintainer/user approval
is given for the additional push or PR update.
Monitor CI: gh pr checks <PR_NUMBER>.