Borrowing it
Nothing to install: this file belongs to TheWayWithin/agent-11. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/TheWayWithin/agent-11/main/.claude/commands/pmd.mdgit clone --depth 1 https://github.com/TheWayWithin/agent-11Wrote 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.
[](https://agentmods.dev/commands/thewaywithin/agent-11/pmd)<a href="https://agentmods.dev/commands/thewaywithin/agent-11/pmd"><img src="https://agentmods.dev/badge/commands/thewaywithin/agent-11/pmd/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.
<a href="https://agentmods.dev/commands/thewaywithin/agent-11/pmd"><img src="https://agentmods.dev/badge/commands/thewaywithin/agent-11/pmd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00013 | $0.01405 |
| Opus 5.5 | $0.00005 | $0.00562 |
| Sonnet 5.5 | $0.00003 | $0.00281 |
| Haiku 4.5 | $0.00001 | $0.00140 |
Grade A, and why
pmd 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.
POST MORTEM DUMP (PMD) COMMAND 🔍
Command: /pmd [issue_description]
Purpose: Conduct systematic root cause analysis of failures to identify improvements in agents, documentation, and processes.
WHAT IS PMD?
PMD (Post Mortem Dump) is a diagnostic command that analyzes failures and issues to identify their root causes across multiple system layers:
- Agent performance and prompts
- Documentation quality and completeness
- Tool usage and configuration
- Process and coordination issues
KEY FEATURES
- Systematic Analysis: Examines agents, docs, tools, and processes
- Root Cause Identification: Pinpoints primary and contributing factors
- Actionable Recommendations: Provides specific fixes with file locations
- Pattern Recognition: Identifies recurring issues across failures
- Prevention Strategies: Suggests monitoring and validation improvements
USAGE SCENARIOS
# Analyze recent failures from progress.md
/pmd
# Analyze specific issue
/pmd "Coordinator not using Task tool correctly"
# Analyze deployment failure
/pmd "Installation script failing on Windows"
# Analyze coordination breakdown
/pmd "Agents producing conflicting outputs"
ANALYSIS CATEGORIES
1. Agent Performance
- Prompt clarity and completeness
- Scope boundary compliance
- Coordination protocol adherence
- Tool usage correctness
- Error handling robustness
2. Documentation Quality
- CLAUDE.md currency and accuracy
- Project-plan.md task definition
- Progress.md issue logging
- Ideation document sufficiency
- README troubleshooting coverage
3. Tool Usage
- MCP prioritization
- Task tool delegation
- File operation accuracy
- Error detection and handling
- Performance optimization
4. Process Issues
- Planning adequacy
- Communication clarity
- Testing coverage
- Issue detection speed
- Escalation procedures
OUTPUT STRUCTURE
Generates post-mortem-analysis.md containing:
Executive Summary
High-level description of issue and impact
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.
- 1mo ago First seen · 227 lines · 13 tokens per session scan A d6c38174ccfa
pmd is a command published in the GitHub repository TheWayWithin/agent-11 (17 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 1,405 once invoked, about $0.0001 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-09-04.
Other commands, from other repositories
fix-issue
Fixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to…
ci-debug
Diagnose a failing CI run against an 11-pattern playbook. Classifies the failure, cites the relevant memory entry, proposes the exact fix command — but NEVER applies without explicit user approval. Use when a specific PR check or GitHub Actions run failed and you want a diagnosis instead of speculation. Don't use for…
time-travel
Debugger de razonamiento que muestra por qué el framework eligió cada modelo, skill y decisión. Usa cuando el usuario dice "time travel", "por qué eligió", "reasoning debug", "decision audit", "why this model", "razonamiento", "debug reasoning", "explain decision", "modelo elegido". Permite ajustar skills…
detectar-ambiguedad
Detectar ambigüedades y contradicciones en specs de forma exhaustiva.
doctor
Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…
check
Verify code quality, security, performance, and coverage. One command to audit everything.