write_pr_summary

write_pr_summary is a command for Claude Code from dagster-io/dagster. It costs 0 tokens per session (235 once invoked), scanned A, original, Apache-2.0.

A command for writing a pull request summary, which explains proposed code changes before they are merged. It reviews the latest Git changes and commit messages, then formats the result in Markdown.

In plain words
What is it for?
Use it after coding to prepare text covering the change’s purpose, how it was tested, and any user-visible update.
Why use it?
It saves time gathering the change history and gives the pull request a consistent summary, test note, and optional changelog entry.

Command for Claude Code

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,073 stars · on GitHub

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.

agentmods
npx agentmods add commands/dagster-io/dagster/write_pr_summary
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 write_pr_summary

README.md
[![agentmods](https://agentmods.dev/badge/commands/dagster-io/dagster/write_pr_summary.svg)](https://agentmods.dev/commands/dagster-io/dagster/write_pr_summary)
Your own site
<a href="https://agentmods.dev/commands/dagster-io/dagster/write_pr_summary"><img src="https://agentmods.dev/badge/commands/dagster-io/dagster/write_pr_summary.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 235 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00235
Opus 5 $0.00000 $0.00118
Sonnet 5 $0.00000 $0.00047
Haiku 4.5 $0.00000 $0.00023

Measured 4d ago against content hash a6cf1ae45cd1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

write_pr_summary 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 4d 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/write_pr_summary.md · 20 lines

What it actually says

Write PR summary

Use gt ls -s to determine the last git ref in the stack. View all changes since that ref with git diff. Also view the commit messages with git log. Use this context, alongside any session context from what you know about the changes to write a PR summary in Markdown, of the format

## Summary & Motivation

[Brief summary of changes here, including code sample, if a new API was added, etc.]

## How I Tested These Changes

[Very brief summary of test plan here, e.g. "New unit tests.", "New integration tests.", "Existing test suite." This can be a single sentence.]

## Changelog

[End user facing changelog entry, remove this section if no public-facing API was changed and no bug was fixed. Public-facing APIs are identified by the @public decorator. Ignore minor changes. If there are no user-facing changes, remove this section.]

Use bullet points sparingly, and do not overuse italics/bold text. Use short sentences. Output the new markdown to the user so they can copy and paste it into the PR.

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. 4d ago First seen · 20 lines · 0 tokens per session scan A a6cf1ae45cd1

Subscribe to this mod's changes

write_pr_summary is a command published in the GitHub repository dagster-io/dagster (16,073 stars, last pushed 6d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 235 tokens. 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.