debug-toolbar: Command for Claude Code

.claude/commands/prd.md

prd is a command for Claude Code from JacobCoffee/debug-toolbar. It costs 10 tokens per session (1,523 once invoked), scanned A, original, MIT.

A command for creating a product requirements document (PRD), which describes what a product change should do and why. It studies similar code, project guidance, and feature complexity before choosing the depth of the plan.

In plain words
What is it for?
It is for researching a feature, adapting the planning process to its size, and writing a detailed PRD without changing implementation code.
Why use it?
It helps produce a plan based on the existing codebase instead of starting from assumptions or modifying code before requirements are clear.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

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

Reuse

Borrowing it

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

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 prd

README.md
[![agentmods](https://agentmods.dev/badge/commands/jacobcoffee/debug-toolbar/prd.svg)](https://agentmods.dev/commands/jacobcoffee/debug-toolbar/prd)
Your own site
<a href="https://agentmods.dev/commands/jacobcoffee/debug-toolbar/prd"><img src="https://agentmods.dev/badge/commands/jacobcoffee/debug-toolbar/prd.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,523 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.01523
Opus 5 $0.00005 $0.00762
Sonnet 5 $0.00002 $0.00305
Haiku 4.5 $0.00001 $0.00152

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

Security

Grade A, and why

prd 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 2d 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/prd.md · 258 lines

How it starts

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

Intelligent PRD Creation Workflow

You are creating a Product Requirements Document for: $ARGUMENTS

Intelligence Layer (ACTIVATE FIRST)

Before starting checkpoints:

  1. Read MCP Strategy: Load .claude/mcp-strategy.md for tool selection
  2. Learn from Codebase: Read 3-5 similar implementations
  3. Assess Complexity: Determine simple/medium/complex
  4. Adapt Workflow: Adjust checkpoint depth

Critical Rules

  1. CONTEXT FIRST - Read existing patterns before planning
  2. NO CODE MODIFICATION - Planning only
  3. PATTERN LEARNING - Identify 3-5 similar features
  4. ADAPTIVE DEPTH - Simple=6, Medium=8, Complex=10+ checkpoints
  5. RESEARCH GROUNDED - Minimum 2000+ words research
  6. COMPREHENSIVE PRD - Minimum 3200+ words

Checkpoint 0: Intelligence Bootstrap

Load project intelligence:

  1. Read CLAUDE.md
  2. Read specs/guides/patterns/README.md
  3. Read .claude/mcp-strategy.md

Learn from existing implementations:

For panels: Read files in src/debug_toolbar/core/panels/ For integrations: Read files in src/debug_toolbar/litestar/ For extras: Read files in src/debug_toolbar/extras/

Assess complexity:

  • Simple: Config change, bug fix, single file → 6 checkpoints
  • Medium: New panel, API endpoint, 2-3 files → 8 checkpoints
  • Complex: New integration, architecture change, 5+ files → 10+ checkpoints

Output: "✓ Checkpoint 0 complete - Complexity: [level], Checkpoints: [count]"


Checkpoint 1: Pattern Recognition

Identify similar implementations:

  1. Search for related patterns in src/debug_toolbar/
  2. Read at least 3 similar files
  3. Extract naming patterns
  4. Note testing patterns from tests/

Document:

## Similar Implementations

1. `src/path/to/similar1.py` - Description
2. `src/path/to/similar2.py` - Description
3. `src/path/to/similar3.py` - Description

## Patterns Observed

- Class structure: ...
- Naming conventions: ...
- Error handling: ...

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

Subscribe to this mod's changes

prd is a command published in the GitHub repository JacobCoffee/debug-toolbar (7 stars, last pushed 5mo ago), licensed MIT. It adds 10 tokens to every session and 1,523 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-09-04.