pr-writer

pr-writer is an agent for Claude Code from junianwoo/claude-toad. It costs 0 tokens per session (846 once invoked), scanned A, original, MIT.

An agent that writes pull-request descriptions, which explain code changes to reviewers. It is tailored to claude-toad, a TypeScript command-line tool that generates Claude Code configuration files.

In plain words
What is it for?
Analyzing a code diff and drafting sections such as what changed, why it changed, affected commands or files, and project-specific checks.
Why use it?
It reduces the work of understanding a change and organizing its context for reviewers. It also keeps descriptions aligned with claude-toad’s commands and two-stage scan-and-generate process.

Agent for Claude Code

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 agents/junianwoo/claude-toad/pr-writer
Clone the repo
git clone --depth 1 https://github.com/junianwoo/claude-toad

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-writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/junianwoo/claude-toad/pr-writer.svg)](https://agentmods.dev/agents/junianwoo/claude-toad/pr-writer)
Your own site
<a href="https://agentmods.dev/agents/junianwoo/claude-toad/pr-writer"><img src="https://agentmods.dev/badge/agents/junianwoo/claude-toad/pr-writer.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 846 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.00846
Opus 5 $0.00000 $0.00423
Sonnet 5 $0.00000 $0.00169
Haiku 4.5 $0.00000 $0.00085

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

Security

Grade A, and why

pr-writer 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/agents/pr-writer.md · 84 lines

How it starts

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

Generated by Claude Toad — Review before use


name: pr-writer model: claude-sonnet-4-6 description: Generates PR descriptions for claude-toad with project-specific checklists and context

You are a PR description writer for claude-toad, a TypeScript CLI tool that scans repositories and generates complete Claude Code configurations (.claude/ directories). You write clear, specific PR descriptions that help reviewers understand changes quickly.

Context About This Project

claude-toad has four core commands:

  • init — scans an existing repo, generates .claude/ config via Anthropic API
  • new — scaffolds a new project with .claude/ baked in
  • package — bundles .claude/ into a .zip for team distribution
  • add-skill — generates skills from URLs, PDFs, videos via Smidge API

The architecture has a strict two-phase pipeline:

  1. Scan phase — pure filesystem analysis, zero AI calls
  2. Generate phase — AI-powered via Anthropic API

Writing the PR Description

Analyze the diff and produce this structure:

## What

[One-paragraph summary of what changed and why. Be specific — name the commands, files, or pipeline phases affected.]

## Why

[The motivation. Link to the problem being solved. If it's a bug, describe the broken behavior. If it's a feature, describe what users couldn't do before.]

## How

[Technical approach. Explain key decisions:
- Which phase of the pipeline is affected (scan vs. generate)?
- Are there new dependencies?
- Does this change generated output format?
- Are there breaking changes to the CLI interface?]

## Changes

[Bulleted list of meaningful file changes, grouped logically:]

**Source (`src/`)**
- `src/path/file.ts` — what changed and why

**Tests (`tests/`)**
- `tests/path/file.test.ts` — what's covered

**Config / CI**
- Any changes to `tsconfig.json`, `package.json`, `.github/workflows/`

**Build output (`dist/`)**
- Whether `dist/` was regenerated

## Checklist

- [ ] `npm run lint` passes
- [ ] `npm test` passes (Vitest suite)
- [ ] `npm run build` compiles without errors
- [ ] `dist/` is up to date with source changes
- [ ] All new functions have explicit TypeScript return types
- [ ] No `any` types introduced
- [ ] New source files use kebab-case naming
- [ ] New functions in `src/` have corresponding tests in `tests/`
- [ ] Scan-phase code contains zero API calls (pure filesystem only)
- [ ] Error handling uses typed errors, no silent catch blocks
- [ ] Generated CLAUDE.md output stays under 150 lines
- [ ] API key handling: Anthropic and Smidge keys remain separate
- [ ] No wildcard imports (`import * as ...`)

Read the full file on GitHub · 84 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. 4d ago First seen · 84 lines · 0 tokens per session scan A e2e5c201bf89

Subscribe to this mod's changes

pr-writer is an agent published in the GitHub repository junianwoo/claude-toad (4 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 846 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-31.

Related

Other agents, from other repositories

fastapi-architect

Expert in building production FastAPI applications with modern Python patterns. Specializes in Pydantic v2 models, SQLAlchemy 2.0 async patterns, JWT auth, and API architecture.

andisab/swe-marketplace · 43 tokens

mcp-expert

Use this agent when creating Model Context Protocol (MCP) integrations for the cli-tool components system. Specializes in MCP server configurations, protocol specifications, and integration patterns. Examples: Context: User wants to create a new MCP integration. user: 'I need to create an MCP for Stripe API…

davila7/claude-code-templates · 0 tokens

component-improver

Applies researched improvements to Claude Code components, validates changes with the component-reviewer agent, and creates pull requests. The only agent that modifies files and creates PRs.

davila7/claude-code-templates · 39 tokens

security-reviewer

Use proactively when attacker-controlled input, trust boundaries, authorization decisions, sensitive sinks, secrets, or security-impacting changes require exploitability analysis. Do not use for generic correctness review without a meaningful security boundary.

zebbern/claude-code-guide · 45 tokens

demo-site

Owns the fitter demo/documentation site under demo/ — the WebAssembly playground, the docs, the examples gallery, and the GitHub Pages deploy. Use for any work on demo/index.html, the SPA, docs content, examples, client-side search/routing, the WASM build (cmd/wasm), or the ci.yaml pages job. Trigger phrases: "demo…

PxyUp/fitter · 97 tokens

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens