pdd-bug

pdd-bug is a skill for Claude Code, Codex from promptdriven/pdd. It costs 55 tokens per session (786 once invoked), scanned A, original, MIT.

A controlled workflow for investigating and fixing bugs in a PDD project. It separates changes to prompts, which guide an AI system, from changes to program code and requires approval between stages.

In plain words
What is it for?
Use it to reproduce reported bugs, update prompt tests, and, when requested, make and verify a separate code change.
Why use it?
It helps identify whether a wrong result comes from the prompt or the code before making the corresponding fix.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to reproduce reported bugs, update prompt tests, and, when requested, make and verify a separate code change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/promptdriven/pdd/pdd-bug
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.

Any agent
npx skills add promptdriven/pdd --skill pdd-bug
Clone the repo
git clone --depth 1 https://github.com/promptdriven/pdd

Made for: Claude Code, Codex.

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 pdd-bug

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/promptdriven/pdd/pdd-bug"><img src="https://agentmods.dev/badge/skills/promptdriven/pdd/pdd-bug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 786 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.00055 $0.00786
Opus 5.5 $0.00022 $0.00314
Sonnet 5.5 $0.00011 $0.00157
Haiku 4.5 $0.00006 $0.00079

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

Security

Grade A, and why

pdd-bug 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 today.

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.

skills/pdd-bug/SKILL.md · 31 lines

How it starts

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

PDD bug

Each area is one main chat. Step briefs are in steps/. ? = optional.

  1. story: reproduce, prompt-story → gate: approve
  2. prompt-pr: check, try? → approve, then gate: pr (PR 1: prompt, Story, tests), then ask
  3. code: build, verify, formal → gate: pr (PR 2)

Rules

  • The main chat coordinates and talks with the person. It does not write code.
  • Run each step in a new subagent, never reused, so verify never checks its own code. Give it its full brief at once: the step file and file paths, not the chat history. Then wait for it with one long time-out. Do not send small follow-up messages or use short waits.
  • At a gate, show the result, ask the person, and stop. For changes, revise here and ask again.
  • Write each link as its full URL (https://…), never as a linked word.
  • Before an optional step, ask the person and wait for the answer: "Do you want to try it now? yes/no". In a run, run <pdd> workflow ask first.
  • At the story gate, start with one verdict line, then the details: "Verdict: the bug is in the PROMPT (its check fails on the issue's case).", "Verdict: the prompt is right; the bug is only in the CODE." or "Verdict: no prompt covers this yet; the bug can only be in the code." Give the full paths of the Story files. If a new prompt covers only this issue, say that a bigger "adopt PDD for this module" step can come later. You may offer: "You can also open it now with pdd try <story> before the check." End with: "Reply 'I approve' here or run pdd workflow approve N, or tell me what to change."
  • Before PR 1, show the Runtime check line(s) with the report link(s) and the Try link, if any. Ask the person to try it and approve, or ask for changes. pdd opens PR 1 only after the approval. Then show the PR 1 link and ask: "Do you want the code PR now, or stop here and merge PR 1 first? To make the code PR later, run pdd workflow approve N." The code area starts only when the person asks.
  • If verify or formal finds a failing case, go back to build in a new subagent, at most 2 times. If it still fails, PR 2 opens anyway with "✗ N vectors fail" on top. Say so at the gate.
  • A person decides expected values. Never change a test to make it pass.
  • Never push, open a PR or merge.

Read the full file on GitHub · 31 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 31 lines · 55 tokens per session scan A dec82139ee8b

Subscribe to this mod's changes

pdd-bug is a skill published in the GitHub repository promptdriven/pdd (920 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 786 once invoked, about $0.0002 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-10-28.

Related

Other skills, from other repositories

code-runner

A sandboxed code execution tool that runs short programs without using your computer's files or network. It supports Python, JavaScript, TypeScript, Go, Rust, Java, C, C++, Ruby, and PHP.

zhinjs/zhin · 87 tokens

systematic-debugging

Root-cause a bug with a hypothesis-driven loop instead of shotgun edits. Use when a bug isn't obvious after the first look, or when asked to "find out why" something fails.

jnMetaCode/skillet · 43 tokens

sparc-methodology

SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration.

ruvnet/RuView · 29 tokens

test-failure-explorer

Import and query an existing Vitest 3.2 JSON report to explore test failures, file-level errors and original diagnostic evidence.

QwenLM/qwen-code · 32 tokens

developing-openrig

Use when changing OpenRig's own source in a clone of the openrig repository: finding which package or file owns a behaviour, choosing which tests to run, testing a change without disturbing the OpenRig daemon your own session runs on, judging whether a diff touches a high-risk area, or preparing a pull request. Not…

mvschwarz/openrig · 84 tokens

winapp-sandbox

Run, debug, and UI-automate a Windows app in a persistent Windows Sandbox rather than the user's desktop. Use for disposable app testing, guest diagnostics, file transfer, and app or whole-desktop evidence. Builds remain on the host; connection and reconnect can briefly take focus.

microsoft/winappCli · 62 tokens