dagster: Command for Claude Code

.claude/commands/erk/land.md

land is a command for Claude Code from dagster-io/dagster. It costs 10 tokens per session (1,292 once invoked), scanned A, original, Apache-2.0.

A command that lands a pull request and then checks whether its linked objective issue should be updated. A pull request is a proposed code change reviewed before it is merged.

In plain words
What is it for?
Use it to merge the current or specified PR and optionally update the related objective, or skip that update when needed.
Why use it?
It keeps the project objective in sync with code that has just been merged. It also accepts a branch, PR number, or PR URL, so you do not need to find the PR manually.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool.

This is dagster-io/dagster's own configuration. It tells Claude Code how to work on dagster itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dagster configures →

About the project

Dagster is a platform for developing, running, and observing data assets, such as datasets and the processes that produce them. It is used to organize and automate data workflows.

dagster-io/dagster · 16,114 stars · on GitHub · dagster.io

Reuse

Borrowing it

Nothing to install: this file belongs to dagster-io/dagster. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dagster-io/dagster/master/.claude/commands/erk/land.md
Clone the repo
git clone --depth 1 https://github.com/dagster-io/dagster

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 land

README.md
[![agentmods](https://agentmods.dev/badge/commands/dagster-io/dagster/land.svg)](https://agentmods.dev/commands/dagster-io/dagster/land)
Your own site
<a href="https://agentmods.dev/commands/dagster-io/dagster/land"><img src="https://agentmods.dev/badge/commands/dagster-io/dagster/land.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,292 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.00010 $0.01292
Opus 5 $0.00005 $0.00646
Sonnet 5 $0.00002 $0.00258
Haiku 4.5 $0.00001 $0.00129

Measured 7d ago against content hash ba619718353b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

land 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 7d 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/erk/land.md · 194 lines

How it starts

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

/erk:land

Objective-aware wrapper for erk land. Lands the PR first, then offers to update the linked objective if one exists.

Usage

# Land PR for current branch
/erk:pr-land

# Land PR for specific branch
/erk:pr-land feature-branch

# Land PR by number
/erk:pr-land 123

# Land PR by URL
/erk:pr-land https://github.com/owner/repo/pull/123

# Skip objective update prompt
/erk:pr-land --skip-objective

Agent Instructions

Step 1: Parse Arguments

Parse the command arguments:

  • $ARGUMENTS may contain: branch name, PR number, PR URL, or be empty (use current branch)
  • Check for --skip-objective flag

Step 2: Determine Branch Name

If no branch argument provided, get current branch:

git branch --show-current

If argument is a PR number or URL, extract the branch name:

# For PR number
gh pr view <number> --json headRefName -q '.headRefName'

# For PR URL (extract number first, then use above)

Step 3: Resolve to PR Number

Critical: Always resolve the branch to a PR number. The erk land command only accepts PR numbers or URLs, not branch names.

# Get PR number for branch
gh pr list --head <branch-name> --state open --json number -q '.[0].number'

If no open PR found, check all states:

gh pr list --head <branch-name> --state all --limit 1 --json number -q '.[0].number'

If no PR found: Report error and exit - cannot land without a PR.

Step 4: Extract Plan Issue Number (P-prefix Detection)

Parse the plan issue number from the branch name pattern P<number>-...

Example: P3699-objective-aware-pr-land -> Plan Issue #3699

If branch doesn't have P-prefix: Record that there's no plan link. Continue to Step 6.

Step 5: Check for Objective Link

If branch has P-prefix, use the get-plan-metadata exec command to extract the objective issue:

erk exec get-plan-metadata <plan-number> objective_issue

Output format:

{
  "success": true,
  "value": 3400,
  "issue_number": 3509,
  "field": "objective_issue"
}

Read the full file on GitHub · 194 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. 7d ago First seen · 194 lines · 10 tokens per session scan A ba619718353b

Subscribe to this mod's changes

land is a command published in the GitHub repository dagster-io/dagster (16,114 stars, last pushed 2d ago), licensed Apache-2.0. It adds 10 tokens to every session and 1,292 once invoked, about $0.0001 per session on Opus 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-08-30.