بنقرة واحدة
dart-manage-pr
DART Manage PR: manage an open DART pull request through CI, review, merge, and cleanup
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
DART Manage PR: manage an open DART pull request through CI, review, merge, and cleanup
التثبيت باستخدام 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-manage-pr |
| description | DART Manage PR: manage an open DART pull request through CI, review, merge, and cleanup |
Use this skill in Codex to run the DART dart-manage-pr workflow. The editable
workflow source lives in .claude/commands/; this file is its generated adapter
in the shared .agents/skills/ catalog.
/dart-manage-pr <arguments>$dart-manage-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.
Manage an open DART pull request after explicit maintainer/user approval for mutations: $ARGUMENTS
@AGENTS.md @docs/onboarding/contributing.md @docs/onboarding/ci-cd.md @docs/onboarding/testing.md @docs/onboarding/ai-tools.md
mode=manage (default): run the full PR-management loop below to the next
terminal state.mode=merge: maintainer-only. Complete the local pre-merge validation in
step 6 and merge a ready PR only after explicit maintainer/user approval for
the merge.When the user says manage <PR> or continue managing <PR> without limiting
the request to status-only, treat that as approval to run the full
PR-management loop to the next terminal state:
This explicit approval covers routine PR-maintenance mutations for that loop: additive fix commits and pushes, PR description/metadata corrections, resolving already-addressed review threads, rerunning failed CI jobs, and requesting a fresh AI review after follow-up fixes. It does not cover merging the PR into the target branch, force-pushes, branch deletion, PR closure, base-branch changes, or human reviewer requests; ask separately for those.
Do not call the PR managed just because checks are green. Continue until the PR is mergeable with required checks complete and addressed review threads resolved, or until a concrete blocker remains.
Use the PR number or URL from $ARGUMENTS. If none is provided, infer the PR
from the current branch:
gh pr view --json number,url,headRefName,baseRefName
Then inspect the full state:
gh pr view <PR_NUMBER> --json number,title,state,isDraft,baseRefName,headRefName,mergeStateStatus,milestone,url,reviewDecision,statusCheckRollup
gh pr checks <PR_NUMBER>
DART 7.0 for a main base, the
branch-matching DART 6.x patch milestone for a release-* base. If it is
missing, set it only after explicit maintainer/user approval.main dual-PR flow.main, or prior implementation) plus workload, metric, and limitations.Visual verification subsection after Testing and verify it agrees with
the text oracle, covers explicit claims, names what is not proved and any
limitations, records view/debug layers, and includes reproduce commands.git status --short --branch
git diff --stat
git diff --check
gh pr checks <PR_NUMBER> --watch --interval 30 --fail-fast
If checks are still queued or running, report the current jobs and keep
watching unless the user asked only for status. Also poll mergeability:
gh pr view <PR_NUMBER> --json mergeStateStatus,headRefOid,isDraft,reviewDecision
If GitHub reports conflicts, fetch the target branch and resolve them before
treating green checks as sufficient.dart-fix-ci workflow for non-trivial CI debugging.pixi run ... task or focused test.pixi run lint; also build or test when code
or behavior changed. Commit only intended files.docs/onboarding/ai-tools.md; each push, PR comment, review re-trigger, or
thread resolution needs explicit maintainer/user approval.dart-review-pr workflow for substantive review feedback and the
automated-review handling in docs/onboarding/ai-tools.md (no inline bot
replies; verify claims locally; apply AI-review fixes silently).@codex review; that PR comment
needs explicit maintainer/user approval and must not duplicate an active
trigger./dart-review-pr) must record findings
before merge approval; docs-only and mechanical changes are exempt.pixi run test-all, plus pixi run -e cuda test-all on Linux hosts with a
visible NVIDIA CUDA runtime. Hosted CI may still be pending.main PRs use single-parent PR-title commits.mode=merge gate (maintainer-only): before any merge, run local pre-merge
validation on the current head after the latest pushed change:
pixi run test-all and, on Linux hosts with a visible NVIDIA CUDA runtime,
pixi run -e cuda test-all; do not substitute the default run for the CUDA
run, and record a skip or blocker explicitly. Merge only after CI and review
are green, the milestone is set, an independent review recorded findings, the
PR is not draft, GitHub reports it mergeable, and explicit merge approval is
given. PR comments, review re-triggers, thread resolution, reviewer requests,
ready-for-review transitions, merges, and branch deletion are external
mutations that require explicit maintainer/user approval.gh pr merge <PR_NUMBER> --squash --match-head-commit <HEAD_SHA> --delete-branch
Use --rebase or --merge instead of --squash when requested.git push origin --delete <HEAD_BRANCH>
git switch main
git pull --ff-only
git branch -D <HEAD_BRANCH>
Squash and rebase merges do not preserve the branch tip in main ancestry,
so force-delete locally only after confirming the PR branch landed and only
after explicit maintainer/user approval.Report:
@codex review ran.mode=merge ran.