Prerequisites
Method 1: Web interface
The easiest entry point.pdd connect launches a browser UI where you can run any agentic command and watch progress in real time.
pdd change https://github.com/myorg/myrepo/issues/123for featurespdd bug https://github.com/myorg/myrepo/issues/456for bugs
Method 2: Feature workflow (pdd change)
pdd change implements a feature request from a GitHub issue using a 12-step agentic workflow.
12-step workflow
12-step workflow
- Duplicate check — Search for existing issues describing the same request
- Documentation check — Verify the feature is not already implemented
- Research — Web search for specifications and best practices
- Clarification — Ensure requirements are clear; posts questions to the issue if not (pauses until answered)
- Documentation changes — Identify required documentation updates
- Identify dev units — Find affected prompts, code, examples, and tests
- Architecture review — Surface architectural decisions; posts questions if needed (pauses until answered)
- Analyze changes — Design prompt modifications
- Implement changes — Modify prompts in an isolated git worktree
- Identify issues — Review changes for problems
- Fix issues — Iterative fix loop, up to 5 passes
- Create PR — Open a pull request linked to the issue
Handling clarifying questions
Steps 4 and 7 may pause the workflow to ask questions in the GitHub issue comments. When this happens:- Answer the questions in the issue
- Re-run the same command — PDD resumes from the last completed step
Workflow state is stored in a hidden GitHub comment, so you can resume from any machine. Pass
--no-github-state to keep state local only.sync_order.sh script. Run it after merge to regenerate code from modified prompts:
Method 3: Bug workflow (pdd bug + pdd fix)
Use this two-command pair to fix bugs from GitHub issues.
Step 1: Create failing tests
pdd bug analyzes the issue and creates failing tests that reproduce the bug.
If
pdd bug determines the bug is in the prompt specification rather than the code, it auto-fixes the prompt file and posts a comment explaining what was changed.Step 2: Fix the failing tests
pdd fix iteratively fixes the code until all tests pass, then validates against CI.
pdd bug created correct tests that you trust, use --protect-tests so the LLM only fixes code — not tests:
| Flag | Description |
|---|---|
--ci-retries INT | Maximum post-push fix attempts (default: 3) |
--skip-ci | Skip CI validation entirely |
--max-cycles INT | Maximum outer loop iterations (default: 5) |
--no-resume | Start fresh, ignoring saved state |
pdd checkup: automated project health check
pdd checkup scans a project end-to-end, identifies problems, fixes them, writes regression tests, and creates a PR.
8-step workflow
8-step workflow
- Discover — Scan project structure, tech stack, and module inventory
- Dependency audit — Check all imports resolve; detect missing packages and circular deps
- Build check — Run build/compile commands; check for syntax and type errors
- Interface check — Verify cross-module interfaces, nav reachability, API call consistency
- Test execution — Run the full test suite; identify failures
- Fix issues (3 sub-steps):
- Fix discovered issues (missing deps, imports, interfaces, build errors, orphan pages)
- Write regression tests for every fix
- Write end-to-end tests for cross-module interactions
- Verify — Re-run build and tests to confirm all fixes work
- Create PR — Open a pull request with all fixes and tests
User story validation
PDD can validate that your prompts satisfy user stories stored as Markdown files. Stories live inuser_stories/ and must match the pattern story__*.md.
pdd detect --stories validates against the full prompt set.
Override directories with environment variables:
| Variable | Default | Description |
|---|---|---|
PDD_USER_STORIES_DIR | user_stories/ | Directory containing story__*.md files |
PDD_PROMPTS_DIR | prompts/ | Directory containing .prompt files |