zenml: Command for Claude Code

.claude/commands/pr.md

pr is a command for Claude Code from zenml-io/zenml. It costs 11 tokens per session (265 once invoked), scanned A, original, Apache-2.0.

A guided command for preparing and creating a GitHub pull request, which is a request to merge code changes into another branch. It formats the code, reviews changed files, stages selected files, and uses the repository's instructions.

In plain words
What is it for?
Use it to inspect branch changes, choose files to stage, determine the target branch, draft the pull request details, and create the pull request with GitHub's command-line tool.
Why use it?
It helps avoid including unrelated files or targeting the wrong base branch when submitting changes for review.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; positional $N argument.

This is zenml-io/zenml's own configuration. It tells Claude Code how to work on zenml 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 zenml configures →

About the project

ZenML is a Python framework for turning machine-learning and AI workflows into tracked pipelines that run on different infrastructure backends. It is for ML and AI engineers building applications such as model-training workflows, language-model systems, and agent loops in company environments.

zenml-io/zenml · 5,629 stars · on GitHub · zenml.io

Reuse

Borrowing it

Nothing to install: this file belongs to zenml-io/zenml. 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/zenml-io/zenml/main/.claude/commands/pr.md
Clone the repo
git clone --depth 1 https://github.com/zenml-io/zenml

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 pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/zenml-io/zenml/pr/github.svg)](https://agentmods.dev/commands/zenml-io/zenml/pr)
Your own site
<a href="https://agentmods.dev/commands/zenml-io/zenml/pr"><img src="https://agentmods.dev/badge/commands/zenml-io/zenml/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 pr

Your own site · 80×15
<a href="https://agentmods.dev/commands/zenml-io/zenml/pr"><img src="https://agentmods.dev/badge/commands/zenml-io/zenml/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 265 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.00011 $0.00265
Opus 5.5 $0.00004 $0.00106
Sonnet 5.5 $0.00002 $0.00053
Haiku 4.5 $0.00001 $0.00026

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

Security

Grade A, and why

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 2mo 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/pr.md · 35 lines

What it actually says

Prepare and create pull request

First, let me run the formatting script:

! bash scripts/format.sh

Now let me check what files were modified:

! git status --short

Let me also check if there's a CLAUDE.md with PR instructions:

@CLAUDE.md

Steps to create PR:

  1. Review the changed files listed above and determine which ones are related to our current work
  2. Stage only the relevant files - I'll ask you to confirm which files to stage if there are unrelated changes
  3. Determine the base branch:
    • If you provided an argument: use $1
    • Otherwise, I'll ask you to confirm if it should be develop (the usual default) or another branch
  4. Create the PR using the gh CLI tool according to any instructions in CLAUDE.md
  5. Ask you for:
    • PR title (if not obvious from the changes)
    • PR description (I'll draft one based on the changes)

Let's proceed! Based on the git status above, which files should we stage for this 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. 2mo ago First seen · 35 lines · 11 tokens per session scan A fcc3508f9745

Subscribe to this mod's changes

pr is a command published in the GitHub repository zenml-io/zenml (5,629 stars, last pushed yesterday), licensed Apache-2.0. It adds 11 tokens to every session and 265 once invoked, about $0.0000 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-08-30.