dart-backport-pr

dart-backport-pr is a command for Claude Code from dartsim/dart. It costs 13 tokens per session (866 once invoked), scanned A, original, BSD-2-Clause.

A workflow for applying a change from the main branch to a release branch. This process is called backporting.

In plain words
What is it for?
Use it to backport a pull request or commit, inspect equivalent changes, resolve conflicts, run relevant checks, and prepare the release change.
Why use it?
It checks that the original change is merged, avoids applying work twice, and adapts the change when the release branch differs from main.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: agent in frontmatter; mentions AGENTS.md; $skill-name invocation.

Good fit Use it to backport a pull request or commit, inspect equivalent changes, resolve conflicts, run relevant checks, and prepare the release change.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dartsim/dart/dart-backport-pr
About the project

DART is an open-source C++23 physics engine that simulates the movement and interactions of articulated rigid-body systems for robotics, animation, and machine learning. Researchers and developers use it for kinematics, dynamics, collision handling, constraints, and loading robot models, with C++ and Python interfaces. The catalogue add-ons support workflows built around this engine.

dartsim/dart · 1,233 stars · on GitHub · dart.readthedocs.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/dartsim/dart

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dart-backport-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/dartsim/dart/dart-backport-pr/github.svg)](https://agentmods.dev/commands/dartsim/dart/dart-backport-pr)
Your own site
<a href="https://agentmods.dev/commands/dartsim/dart/dart-backport-pr"><img src="https://agentmods.dev/badge/commands/dartsim/dart/dart-backport-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dart-backport-pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/dartsim/dart/dart-backport-pr"><img src="https://agentmods.dev/badge/commands/dartsim/dart/dart-backport-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 866 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.00866
Opus 5.5 $0.00005 $0.00346
Sonnet 5.5 $0.00003 $0.00173
Haiku 4.5 $0.00001 $0.00087

Measured 1mo ago against content hash dcb299a02b12, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dart-backport-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/dart-backport-pr.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Backport PR or commits: $ARGUMENTS

Required Reading

@AGENTS.md @docs/onboarding/contributing.md @docs/onboarding/release-management.md @docs/onboarding/changelog.md

Workflow

New patches land on main. Use this workflow to backport merged PRs to a selected release-* stabilization or maintenance branch. A release branch may be cut from an approved stabilization commit before its first release tag, or from a published release tag.

For a source change involving model/scene structure, physics behavior, or Filament output, use the release branch's dart-verify-sim workflow to preserve the text oracle and assessed visual evidence. Document a visual exception when the release branch cannot render the claim.

  1. Verify the source PR or commit is merged to main:
    gh pr view <SOURCE_PR> --json state,mergedAt,baseRefName,mergeCommit
    
  2. Resolve the target from the live backport PR base or the selected release branch. Fetch it and read its docs/onboarding/release-management.md § "Release target"; verify the exact DART <Next release> milestone is open on GitHub. Publishing requires explicit maintainer/user approval. Check whether an equivalent change already exists on that branch:
    git fetch origin <RELEASE_BRANCH> main
    git cherry -v --abbrev=40 origin/<RELEASE_BRANCH> origin/main | grep <COMMIT_HASH>
    
  3. Create a topic branch from the release target without resetting an existing local branch:
    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
    
  4. Cherry-pick with provenance: git cherry-pick -x <COMMIT_HASH>.
  5. Resolve conflicts minimally; stop and ask if conflicts are broad or change behavior.
  6. Run /dart-changelog decide or $dart-changelog decide against the backport diff and release target before opening the release 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. Release branches take no fragments: if the cherry-pick added changelog.d/ fragments, delete them and let dart-changelog write the entry into the release branch's CHANGELOG.md.
  7. Run pixi run lint and the smallest relevant release-branch checks.
  8. Ask for explicit maintainer/user approval before pushing or opening the PR. After approval, open it as a draft against the release branch with the resolved next-release milestone and the PR template, then follow docs/onboarding/ai-tools.md § "PR Lifecycle". If the changelog decision was deferred for the PR number, run /dart-changelog finalize or $dart-changelog finalize and push the follow-up only after explicit approval.

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +3 lines dcb299a02b12
  2. 1mo ago Changed 8b4077935423
  3. 1mo ago Changed · +6 lines · +2 tokens per session a547ba2fc95b
  4. 1mo ago Changed · +2 lines 835719fe9d7a
  5. 1mo ago Changed · +2 lines · -4 tokens per session 95d40d21f714
  6. 2mo ago Changed · +5 tokens per session 80932eb5f6cb
  7. 2mo ago Changed · +13 lines 57666f580676
  8. 3mo ago First seen · 56 lines · 10 tokens per session scan A f1c822f18e48

Subscribe to this mod's changes

dart-backport-pr is a command published in the GitHub repository dartsim/dart (1,233 stars, last pushed yesterday), licensed BSD-2-Clause. It adds 13 tokens to every session and 866 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

dart-backport-pr compared with commands from other repositories

dart-backport-pr next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dart-backport-prdartsim/dartCommand1.2kyesterdayBSD-2-ClauseA13Claude Code
landgmickel/flow-nextCommand735yesterdayMITA13Claude Code
qualityDesko77/claude-code-skills-1cCommand1027d agoMITA18Claude Code
release-notesOpenHands/extensionsCommand190todayMITA44Claude Code
doc-changelogchristopherlouet/claude-baseCommand5yesterdayMITA0Claude Code
releaseelct9620/claudekitCommand10todayMITA11Claude Code
releaseparuff/uFawkesAICommand2todayMITA39Claude Code, Codex