builder-pr

builder-pr is a command for Claude Code from rjwalters/kicad-tools. It costs 0 tokens per session (11,577 once invoked), scanned A, original, MIT.

Instructions for a software-building role that explain how to review recent code changes, create pull requests, handle test results, and meet quality checks.

In plain words
What is it for?
Use them when implementing a change, checking recent commits, running tests, and preparing a pull request for review.
Why use it?
They help prevent new work from conflicting with recent decisions, duplicating existing code, or reaching review with avoidable quality problems.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is # ./.loom/scripts/create-pr.sh. Mirrors the CI job "defaults/ Changes.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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 builder-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjwalters/kicad-tools/builder-pr.svg)](https://agentmods.dev/commands/rjwalters/kicad-tools/builder-pr)
Your own site
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/builder-pr"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/builder-pr.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 11,577 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.1 $0.00000 $0.11577
Opus 5 $0.00000 $0.05789
Sonnet 5 $0.00000 $0.02315
Haiku 4.5 $0.00000 $0.01158

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

Security

Grade A, and why

builder-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 6d 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/loom/builder-pr.md · 1,109 lines

How it starts

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

Builder: PR Creation and Quality

This document covers PR creation, test output handling, and quality requirements for the Builder role. For the core builder workflow, see builder.md.

Pre-Implementation Review: Check Recent Main Changes

CRITICAL: Before implementing, review recent changes to main to avoid conflicts with recent architectural decisions.

Why This Matters

The codebase evolves while you work. Recent PRs may have:

  • Introduced new utilities or helper functions you should use
  • Changed authentication/authorization patterns
  • Updated API conventions or response formats
  • Added shared components or abstractions
  • Modified configuration or environment handling

Without this review: You may implement using outdated patterns, leading to merge conflicts, inconsistent code, or duplicated functionality.

Required Commands

Step 1: Review recent commits to main

# Show last 20 commits to main
git fetch origin main
git log --oneline -20 origin/main

# Show files changed in recent commits
git diff HEAD~20..origin/main --stat

Step 2: Check changes in your feature area

# Check recent changes in directories related to your feature
git log --oneline -10 origin/main -- "src/relevant/path"
git log --oneline -10 origin/main -- "*.ts"  # or relevant file types

Step 3: Look for these architectural changes

Change Type What to Look For Why It Matters
Authentication New auth middleware, session handling, token patterns Use the new auth approach, not old patterns
API Patterns Response formats, error handling, validation Match existing conventions
Utilities New helper functions, shared modules Reuse instead of reimplementing
Shared Components Common UI elements, base classes Extend rather than duplicate
Configuration New env vars, config patterns Follow established patterns

Example Workflow

# 1. Fetch latest main
git fetch origin main

# 2. See what changed recently
git log --oneline -20 origin/main
# 5b55cb7 Add dependency unblocking to Guide role (#997)
# cc41f95 Add guidance for handling pre-existing lint/build failures (#982)
# 6b55a3e Add rebase step before PR creation (#980)
# ...

# 3. If you see relevant changes, investigate
git show 5b55cb7 --stat  # See what files changed
git show 5b55cb7          # See the actual changes

# 4. Check changes in your feature area
git log --oneline -10 origin/main -- "src/lib/auth"
# -> If you see auth changes, read them before implementing!

# 5. Adapt your implementation plan based on findings

Read the full file on GitHub · 1,109 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. 6d ago First seen · 1,109 lines · 0 tokens per session scan A cef0538d50f2

Subscribe to this mod's changes

builder-pr is a command published in the GitHub repository rjwalters/kicad-tools (55 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 11,577 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.