pdd-prompting

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

A guide for writing prompts that define software modules in a prompt-driven development process. In this approach, the prompt describes the required behavior first, while the code implements it afterward.

In plain words
What is it for?
Use it when creating or reviewing module prompts, user stories, and test cases, or when running the project’s prompt checks and trials.
Why use it?
It keeps requirements, expected results, and edge cases explicit before code is written. This reduces the risk of copying accidental behavior from existing code or letting one rule be defined in several places.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or reviewing module prompts, user stories, and test cases, or when running the project’s prompt checks and trials.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/promptdriven/pdd/pdd-prompting"><img src="https://agentmods.dev/badge/skills/promptdriven/pdd/pdd-prompting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 600 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.00060 $0.00600
Opus 5.5 $0.00024 $0.00240
Sonnet 5.5 $0.00012 $0.00120
Haiku 4.5 $0.00006 $0.00060

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

Security

Grade A, and why

pdd-prompting 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-prompting/SKILL.md · 39 lines

How it starts

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

PDD prompting

In PDD, prompts are the source. Each code module has one .prompt.md file; the code implements it.

Core rules

  • Read guide.md in full before you write or change a prompt, Story or test cases. A link or a summary is not enough. Read RUNBOOK.md §2–§4 before you write a prompt or a test file.
  • Change the prompt first, then the code.
  • Write one prompt for each module: what it must do and why, not the code line by line.
  • Give each rule one owner prompt. Link to a shared rule. Do not copy it. For a CLI, say if a rule belongs to the whole-CLI prompt or to one module's prompt.
  • Keep the behavior callers need and the edge cases that matter.
  • Write expected results from the requirement before the code exists. Never copy them from the code's output.
  • Show the prompt, Story and cases to the person before you build. The person decides; never approve for them.
  • Report only checks that you ran, with their real output.

Files

  • guide.md: the full Prompting guide.
  • review.md: how to review drafts and report results.
  • RUNBOOK.md: how to write prompts and tests that the runtime can check (§2–§10), and how to run pdd check and pdd try.

How to write

  1. Tell the person which rules of guide.md apply.
  2. Find the prompt that owns the behavior. Use the repo's paths.
  3. Write or change the prompt. Then write the Story in the person's words, with no function calls or type names. A Story is one behavior that a person can check in about a minute: one "I can…" sentence.
  4. Write test cases for normal input, limits and errors, with expected results from the prompt and the Story.
  5. Show the drafts and mark open questions. Ask only about choices that change the result.
  6. After you write or change a prompt, its Story and its test file, run pdd check as RUNBOOK.md says, and show the person the Runtime check line(s) and the report link(s). Then offer pdd try STORY so they can use it by hand. If a check fails, show it; never change the expected value yourself.

Read the full file on GitHub · 39 lines

Files

What ships with it

3 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 · 39 lines · 60 tokens per session scan A 5a974559504f

Subscribe to this mod's changes

pdd-prompting is a skill published in the GitHub repository promptdriven/pdd (920 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 600 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