Agent Skills › dartsim/dart › dart-review-pr

dart-review-pr

GitHub

用于执行 DART 项目的 PR 代码审查或响应反馈。支持查看 PR 差异、检查代码风格与测试,并根据反馈应用修复及合并基分支,确保符合项目规范与安全要求。

.agents/skills/dart-review-pr/SKILL.md dartsim/dart

Trigger Scenarios

需要审查 Pull Request 代码质量 需要处理或响应 PR 中的审核反馈

Install

npx skills add dartsim/dart --skill dart-review-pr -g -y
More Options

Non-standard path

npx skills add https://github.com/dartsim/dart/tree/main/.agents/skills/dart-review-pr -g -y

Use without installing

npx skills use dartsim/dart@dart-review-pr

指定 Agent (Claude Code)

npx skills add dartsim/dart --skill dart-review-pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add dartsim/dart --all -g -y

预览 repo 内 skill

npx skills add dartsim/dart --list

SKILL.md

Frontmatter
{
    "name": "dart-review-pr",
    "description": "DART Review PR: review a PR or address review feedback"
}

dart-review-pr

Use this skill to run the DART dart-review-pr workflow. The editable workflow source lives in .claude/commands/; this generated skill is its entrypoint for Codex and Muse.

Invocation

  • Claude Code: /dart-review-pr <arguments>
  • Codex: $dart-review-pr <arguments>
  • Muse: /dart-review-pr <arguments>

Treat the text after the skill name, or the user's request when the skill is loaded on demand, as $ARGUMENTS. When the workflow references $1, $2, etc., map those to the positional values supplied by the user.

Command Body

Review or respond to PR: $ARGUMENTS

Required Reading

@AGENTS.md @docs/onboarding/code-style.md @docs/onboarding/ai-tools.md (for AI-generated review handling) @docs/ai/verification.md

Workflow

To Review

gh pr view $1 && gh pr diff $1

Check code style, tests, docs, and focused commits. For claims involving 3D structure or behavior, require the dart-verify-sim text oracle plus assessed claim-tied Filament/debug-overlay evidence, or a justified replacement; a screenshot alone is not correctness evidence.

To Address Feedback

gh pr view $1 --comments

Apply minimal fixes locally and verify. Do not push, comment, resolve threads, or re-trigger review without explicit maintainer/user approval for that external mutation.

For published PRs, prefer a new follow-up commit for review fixes so reviewers can inspect what changed since the previous round. Amend or force-push only after explicit maintainer/user approval and only when the user explicitly requests it or when there is a clear reason such as removing sensitive content or repairing broken branch history.

Before every push, first merge the latest base branch into the PR branch (on every push, not just the first) so each pushed/CI-tested state reflects current target base branch and conflicts surface early: git fetch origin <base> then git merge --no-ff origin/<base>, rebuild/retest if the merge touched code, then push. The local base merge is a routine pre-push step; the push itself still requires explicit maintainer/user approval. Do not rebase a published PR branch by default because it invalidates existing CI runs and makes PR review/comment history harder to follow. Rebase or force-push only when the maintainer explicitly requests it.

If the push is rejected because the remote PR head moved, fetch and compare the remote head before retrying. If it already contains an equivalent review fix, validate that head and follow docs/onboarding/ai-tools.md instead of pushing a duplicate commit.

Automated Reviews (Codex, Code Quality, Copilot, etc.)

When a draft PR is first published, request the first Codex review with a top-level @codex review once explicit maintainer/user approval covers PR comments; it can run while the PR remains draft. If Codex already shows an activity signal or submitted review, do not post a duplicate trigger.

  1. Make the local fix silently (no reply)
  2. Run the relevant local gates, including pixi run lint before any commit
  3. Ask for explicit maintainer/user approval before push, thread resolution, PR comment, or review re-trigger
  4. If approved, push the fix silently
  5. If approved, resolve only the review threads that were actually reviewed and addressed (thread resolution is approval-gated; see docs/onboarding/ai-tools.md § "Approval Boundaries")
  6. After the approved push moves the head, ask for explicit maintainer/user approval for the PR comment, then re-trigger Codex for the new head: gh pr comment $1 --body "@codex review"
  7. Also handle github-code-quality[bot] review comments with the same no-inline-reply loop. Fix valid findings locally and push silently after approval.
  8. Monitor CI: gh pr checks $1
  9. Check for new review, repeat until no actionable comments remain
  10. Mark a draft ready, and merge, only as docs/onboarding/ai-tools.md § "PR Lifecycle" describes, after explicit maintainer/user approval

Review rules owner: docs/onboarding/ai-tools.md § "AI Review Comments", § "Approval Boundaries", and § "PR Lifecycle"

Output

  • Review findings ordered by severity, or the feedback addressed
  • Verification commands run for addressed feedback
  • Any external mutation left pending explicit approval

Version History

  • f630c91 Current 2026-10-18 20:25

    新增对 Muse 客户端的支持;更新引用文档以包含 ai-tools.md 和 code-style.md;调整工作流细节如预推送合并步骤。

  • deb9869 2026-09-08 21:46

    更新工具调用范围至 Claude Code 和 Codex,强化独立本地审查要求及收敛检查点。

  • bcd584e 2026-09-02 23:41

    将AI审查相关参考文档从 ai-tools.md 更新为 ai-reviews.md,并微调了关于3D结构验证的证据要求描述。

  • b9fbefc 2026-07-19 11:30

Same Skill Collection

.agents/skills/dart-analyze/SKILL.md
.agents/skills/dart-architecture/SKILL.md
.agents/skills/dart-audit-agent-compliance/SKILL.md
.agents/skills/dart-backport-pr/SKILL.md
.agents/skills/dart-benchmark-packet/SKILL.md
.agents/skills/dart-branch-cleanup/SKILL.md
.agents/skills/dart-build/SKILL.md
.agents/skills/dart-changelog/SKILL.md
.agents/skills/dart-ci/SKILL.md
.agents/skills/dart-close-issue/SKILL.md
.agents/skills/dart-contribute/SKILL.md
.agents/skills/dart-deps/SKILL.md
.agents/skills/dart-docs-update/SKILL.md
.agents/skills/dart-downstream-fix/SKILL.md
.agents/skills/dart-execute-packet/SKILL.md
.agents/skills/dart-fix-issue/SKILL.md
.agents/skills/dart-io/SKILL.md
.agents/skills/dart-manage-pr/SKILL.md
.agents/skills/dart-mechanical-refactor/SKILL.md
.agents/skills/dart-model-upgrade/SKILL.md
.agents/skills/dart-new-task/SKILL.md
.agents/skills/dart-next/SKILL.md
.agents/skills/dart-perf/SKILL.md
.agents/skills/dart-plan-update/SKILL.md
.agents/skills/dart-pr/SKILL.md
.agents/skills/dart-python/SKILL.md
.agents/skills/dart-references/SKILL.md
.agents/skills/dart-release-ci-fix/SKILL.md
.agents/skills/dart-release-merge-main/SKILL.md
.agents/skills/dart-release-packaging/SKILL.md
.agents/skills/dart-resume/SKILL.md
.agents/skills/dart-retro/SKILL.md
.agents/skills/dart-test/SKILL.md
.agents/skills/dart-triage-issue/SKILL.md
.agents/skills/dart-ultrawork/SKILL.md
.agents/skills/dart-verify-sim/SKILL.md
.claude/skills/dart-architecture/SKILL.md
.claude/skills/dart-build/SKILL.md
.claude/skills/dart-ci/SKILL.md
.claude/skills/dart-contribute/SKILL.md
.claude/skills/dart-io/SKILL.md
.claude/skills/dart-perf/SKILL.md
.claude/skills/dart-python/SKILL.md
.claude/skills/dart-references/SKILL.md
.claude/skills/dart-test/SKILL.md
.claude/skills/dart-verify-sim/SKILL.md
.codex/skills/dart-analyze/SKILL.md
.codex/skills/dart-architecture/SKILL.md
.codex/skills/dart-audit-agent-compliance/SKILL.md

Metadata

Files
0
Version
f630c91
Hash
d8401a6e
Indexed
2026-07-19 11:30

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-20 00:10
浙ICP备14020137号-1