pd-execution
Skill2 starsChanged 5 months agoMITView on GitHub
Find incomplete issues on the local markdown issue tracker, execute their acceptance criteria in dependency order, and mark them as completed. Use when you want to批量执行未完成的任务、按依赖顺序实现 issue、或自动完成已规划的切片。
- Deletes or force-pushes
In this repository71 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- academic-searchSkill
- agent-reachSkill
- anysearchSkill
- brainstormingSkill
- brave-searchSkill
- clash-verge-controlSkill
- drawio-skillSkill
- find-skillsSkill
- fireworks-tech-graphSkill
- github-trending-discoverySkill
- html-pptSkill
- humanizer-zhSkill
- ai-news-collectorSkill
- info-andrej-karpathy-rssSkill
- info-daily-hot-topicsSkill
- karpathy-guidelinesSkill
- markdown-to-docxSkill
- mcp-builderSkill
- minimax-docxSkill
- minimax-pdfSkill
- minimax-xlsxSkill
- office-docxSkill
- office-pdfSkill
- office-pptxSkill
- office-pywordSkill
- office-xlsxSkill
- ontologySkill
- openclaw-optimizationSkill
- pd-architectureSkill
- pd-bddSkill
- pd-brainstormingSkill
- pd-diagnoseSkill
- pd-docSkill
- pd-grill-with-docsSkill
- pd-improve-codebase-architectureSkill
- pd-planSkill
- pd-postgresSkill
- pd-prototypeSkill
- pd-puaSkill
- pd-reviewSkill
- pd-rules-checkSkill
- pd-setupSkill
- pd-simplifySkill
- pd-tddSkill
- pd-to-issuesSkill
- pd-to-prdSkill
- pd-triageSkill
- pd-zoom-outSkill
- pi-drawioSkill
- pi-githubSkill
- pi-llm-serverSkill
- pi-memorySkill
- pi-painterSkill
- pi-sketch-readerSkill
- pr-academic-searchSkill
- pr-arxiv-watcherSkill
- pr-critic-mentor-reviewSkill
- pr-daily-research-papersSkill
- pr-deep-researchSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Read docs/agents/issue-tracker.md to confirm the tracker layout.
- Very specific: line 24
Explicit completion marker: Look for a ## Completed section with a date.
- Distinctive: line 26
Implicit completion: If all acceptance criteria appear satisfied based on codebase verification (grep for the described behavior), flag it …
- Very specific: line 27
Interrupted work: Look for a ## In Progress section.
- Distinctive: line 42
If interrupted issues exist, ask the user whether to resume from where it left off or restart from scratch.
- Very specific: line 43
If resuming: skip the "Read" and "Verify current state" steps for that issue (already done), jump directly to the recorded Step.
- Very specific: line 44
If restarting: remove the ## In Progress section and treat as a fresh issue.
- Distinctive: line 75
If there are circular dependencies or unclear ordering, ask the user which to execute first.
- Distinctive: line 172
After all issues are executed and marked, summarize:
- Very specific: line 197
Multiple feature directories: If .scratch/ has multiple <feature-slug>/issues/ directories, process them one feature at a time — ask the …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Execution
Scan the project's local markdown issue tracker, identify incomplete issues, resolve their dependency order, execute each one's acceptance criteria, and write completion status back to the issue files.
The issue tracker and triage label vocabulary should have been provided to you — run /pd-setup if not.
Process
1. Discover issues
Read docs/agents/issue-tracker.md to confirm the tracker layout. For local markdown, issues live under .scratch/<feature-slug>/issues/.
Glob for all .md files in each .scratch/*/issues/ directory. Read every issue file to get its full content.
2. Assess completion status and resume interrupted work
For each issue file, check:
- Explicit completion marker: Look for a
## Completedsection with a date. If present, the issue is done — skip it. - Acceptance criteria: Count how many
- [ ](unchecked) vs- [x](checked) boxes exist. If ALL are checked and there's a completion marker, skip. - Implicit completion: If all acceptance criteria appear satisfied based on codebase verification (grep for the described behavior), flag it as "appears done but not marked" — the user can confirm.
- Interrupted work: Look for a
## In Progresssection. If present without a## Completedsection, this issue was previously started but not finished (e.g., session timed out, crash, or user exited). Capture:- The
Startedtimestamp - The
Stepfield (which sub-step it was in) - Any
Notesabout what was already done
- The
Present a summary table:
| # | Issue | Status | Blocked by |
| 01 | Map loading | ✅ Completed | — |
| 02 | A* pathfinding | ⚠️ Appears done, not marked | 01 |
| 03 | LiDAR scanning | ❌ Incomplete | 01 |
| 04 | Dynamic replanning | 🔄 Interrupted (Step: implementing) | 03 |
Resumption strategy:
- If interrupted issues exist, ask the user whether to resume from where it left off or restart from scratch.
- If resuming: skip the "Read" and "Verify current state" steps for that issue (already done), jump directly to the recorded
Step. - If restarting: remove the
## In Progresssection and treat as a fresh issue.
3. Resolve dependency order
For each issue file, check:
- Explicit completion marker: Look for a
## Completedsection with a date. If present, the issue is done — skip it. - Acceptance criteria: Count how many
- [ ](unchecked) vs- [x](checked) boxes exist. If ALL are checked and there's a completion marker, skip. - Implicit completion: If all acceptance criteria appear satisfied based on codebase verification (grep for the described behavior), flag it as "appears done but not marked" — the user can confirm.
Present a summary table:
| # | Issue | Status | Blocked by |
| 01 | Map loading | ✅ Completed | — |
| 02 | A* pathfinding | ⚠️ Appears done, not marked | 01 |
| 03 | LiDAR scanning | ❌ Incomplete | 01 |
3. Resolve dependency order
For all incomplete issues, parse their ## Blocked by sections to build a dependency graph.
Perform a topological sort to determine execution order. Present the order to the user:
执行顺序:
1. 02-astar-pathfinding (无依赖)
2. 03-lidar-scanning (依赖 01 ✅)
3. 04-simulation-state-machine (依赖 02, 03)If there are circular dependencies or unclear ordering, ask the user which to execute first.
4. Execute each issue in order
For each issue in dependency order:
a. Read the issue fully — understand the acceptance criteria and what to build.
b. Write "In Progress" marker — immediately after reading, append to the issue file:
## In Progress
- **Started**: YYYY-MM-DD HH:MM
- **Step**: analyzing
- **Notes**: What has been understood so far (key acceptance criteria, constraints)This marker serves as a progress checkpoint. If execution is interrupted, the next run of /pd-execution will detect this marker and offer to resume.
c. Verify current state — explore the codebase to see what's already implemented vs what's missing.
d. Update marker → Step: reporting — update the ## In Progress section:
## In Progress
- **Started**: YYYY-MM-DD HH:MM
- **Step**: reporting
- **Notes**: What already exists, what's missing, proposed approache. Report findings — tell the user:
- What already exists (if anything)
- What needs to be built
- Your implementation approach
f. Determine confirmation strategy — judge whether the issue is "execution-ready" (sufficiently specified to implement without human confirmation):
An issue is execution-ready only when ALL of the following are true:
- Has
## Acceptance Criteriawith- [ ]checklist items (explicit, verifiable criteria) - Has
## Blocked bysection (dependency context is documented) - Has
## Parentor references a parent issue/PRD (upstream design context exists — this is the strongest signal ofpd-to-issuesorigin; hand-written issues rarely include this) - A PRD or RAD exists in the same feature directory (
.scratch/<feature>/PRD.mdorRAD.md) — confirms this issue came from a structured design workflow - No open questions or "TBD" / "待确认" markers in the issue body — everything is already decided
- If ALL 5 conditions are met → execution-ready: skip confirmation and proceed directly to implementation. The issue has already been grilled and approved during the design phase.
- If ANY condition is missing → needs confirmation: report your findings and wait for the user to confirm the approach before coding.
g. Update marker → Step: implementing — before writing code, update the ## In Progress section:
## In Progress
- **Started**: YYYY-MM-DD HH:MM
- **Step**: implementing
- **Notes**: Approach confirmed, beginning implementationh. Implement — write the code, following the project's development principles (KISS, SOLID, single responsibility, minimal change scope).
i. Update marker → Step: verifying — before verification, update the ## In Progress section:
## In Progress
- **Started**: YYYY-MM-DD HH:MM
- **Step**: verifying
- **Notes**: Implementation complete, running verificationj. Verify acceptance criteria — after implementation, verify each criterion:
- For code behavior: run the relevant commands/tests
- For API endpoints: curl the endpoint
- For UI: use browser tools or manual verification
- For format/structure: grep the codebase
k. Mark as completed — append a completion section to the issue file, then remove the ## In Progress section:
## Completed
- **Date**: YYYY-MM-DD
- **Verification**:
- [x] Criterion 1 — verified via `curl ...` / code inspection / browser
- [x] Criterion 2 — verified via ...
- **Notes**: Any deviations from original plan or important decisions madeAlso convert all remaining - [ ] acceptance criteria to - [x] in the original section.
l. Remove ## In Progress marker — delete the ## In Progress section from the issue file. The issue now has a clean ## Completed section as the final state.
m. Move to next issue — repeat until all incomplete issues are done.
5. Done
After all issues are executed and marked, summarize:
- How many issues were completed
- Any issues that were skipped (and why)
- The final state of all issues
Guide the user:
- Want to plan the next feature → run
/pd-brainstormingto explore new ideas - Want to document what was just built → run
/pd-docto update architecture/API docs and changelog - All issues done, nothing new → you're caught up
Safety rules
- Never execute destructive operations (git reset --hard, rm -rf, force push) without explicit user confirmation
- Show the plan before coding — especially for the first issue or unstructured issues, so the user can redirect if your understanding is wrong. For structured issues generated by
pd-to-issues, the plan has already been vetted; proceed directly to implementation. - Respect existing code — don't rewrite working code just because your approach differs
- One issue at a time — complete and verify one before starting the next
- If stuck, ask — if an acceptance criteria is ambiguous or can't be satisfied, flag it to the user rather than making assumptions
Edge cases
- No incomplete issues: Tell the user all issues are already completed.
- Blocked by unimplemented issue: Skip until the blocker is done (the topological sort should handle this).
- Issue references files that don't exist: The issue may be outdated — flag this to the user before deciding whether to execute or skip.
- Multiple feature directories: If
.scratch/has multiple<feature-slug>/issues/directories, process them one feature at a time — ask the user which feature to focus on first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

