skills/plan/SKILL.md
Converts SPEC.md + DESIGN.md + CHECKLIST.md into a self-contained coordinator prompt (PROMPT.md) with complete task decomposition, dependency analysis, batch scheduling, and pre-written worker prompts. The generated PROMPT.md is consumed directly by the implement skill.
npx skillsauth add laitszkin/apollo-toolkit planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Transform business specifications (SPEC.md) and technical design (DESIGN.md + CHECKLIST.md) into a coordinator prompt (PROMPT.md).
This prompt defines a coordinator agent:
This skill is responsible for "planning the coordination strategy" — extracting information from SPEC/DESIGN/CHECKLIST, decomposing into concrete tasks, pre-writing worker prompts, and scheduling batch execution order.
Worker prompts are written to individual files under <spec_dir>/plan/ (single spec) or <batch_dir>/plan/ (batch spec) instead of inline in PROMPT.md. This keeps PROMPT.md focused on coordination strategy while each worker prompt is independently dispatchable.
docs/plans/<YYYY-MM-DD>/<spec_name>/PROMPT.md is produced and placed at the root of the spec or batch spec directory<spec_dir>/plan/*.md or <batch_dir>/plan/*.md, one per fileRead the specified directory and determine the type:
Read all files thoroughly:
SPEC.md — Business requirements and scope (BDD GIVEN/WHEN/THEN), In/Out of ScopeDESIGN.md — Module architecture, interaction anchors (INT-###), external dependencies (EXT-###), system invariants, technical trade-offsCHECKLIST.md — Behavior-to-test mapping, hardening requirements, test level choices<spec_dir>/references/ or <batch_dir>/references/ — External method/API reference documents (name, purpose, parameters)Decompose the architecture design from DESIGN.md into tasks precise to the file or function level.
Decomposition principles:
Decide whether each task needs an independent worker:
Analyze dependencies between tasks:
Output: Task DAG → PROMPT.md Section 5 (Task Units).
Analyze dependencies between specs:
Output: Spec DAG.
File overlap detection and dependency analysis form the dual gate that determines parallelism. Parallel execution is only permitted when BOTH conditions are met:
For each task that needs an independent worker, write a self-contained worker prompt. Save each prompt to a separate file under <spec_dir>/plan/ or <batch_dir>/plan/.
Worker prompt file naming: plan/T{batch}.{sequence}-{kebab-case-name}.md
Use assets/templates/WORKER_PROMPT.md. The template follows the P1-P5 architecture:
| Section | Purpose (P#) | | --------------------- | ----------------------------------------------------------- | | 1. Mission & Rules | Goal + behavioral rules | | 2. Context | Files to read, background knowledge | | 3. Tasks | Concrete file-level instructions (file, line range, change) | | 4. Verification | Commands and expected results | | 5. Scope & References | Allowed/forbidden files, related references |
Writing principles (move these to your process, not the template):
Tasks that do not need a worker (purely procedural operations) do not get a worker prompt. The coordinator handles these directly in the corresponding batch.
Based on dependency analysis and file overlap detection, build the batch schedule → PROMPT.md Section 7 (Batch Schedule).
Batch partitioning principles (file overlap and logical dependency are the hard gates):
Populate the RULES section with boundaries and error recovery rules that fit the specific task. Think through:
The ALWAYS / ASK FIRST / NEVER framework is a useful structure, but adapt it as the task demands. The rules should emerge from the coordinator role and the task's specific constraints, not from a fixed template.
Use assets/templates/PROMPT.md. The template has three content sections — here is guidance on what each should contain:
ROLE — Define the coordinator's mission and responsibilities. Describe what the coordinator does, what it avoids, and what success looks like. Derive the mission from SPEC.md's Goal and business value.
RULES — The operating boundaries and error recovery rules you designed in step 8. Structure them clearly so the coordinator can reference them during execution.
WORKING STEPS → 1. PREPARATION — List the files the coordinator must read before starting, with brief context on what each file provides. This typically includes SPEC.md (requirements), DESIGN.md (architecture), CHECKLIST.md (verification gates), references/, and all worker prompt files.
WORKING STEPS → 2. COORDINATION — The batch execution plan from steps 3-7. Describe each batch, which tasks it contains, whether they run in parallel or sequentially, their dependencies, and the verification gate that must pass before proceeding. Reference worker prompt files by their plan/*.md paths. The format should be clear enough that the coordinator can execute without ambiguity.
WORKING STEPS → 3. FINAL VERIFICATION — The meta-checks that confirm completeness. Extract these from CHECKLIST.md's verification gates.
The exact format, detail level, and structure of each section should fit the task — a simple spec needs less detail than a complex batch spec.
Before delivering, review the following:
Worker prompts — are they truly self-contained? Scan for phrases like "based on your findings", "fix it appropriately", "as discussed above" — these leak context assumptions. Every fact the worker needs should be written inline. Are file paths and line ranges concrete? Is the verification command precise (not just "run tests")?
Coverage — is anything missing? Every BDD requirement from SPEC.md should map to at least one task. Every DESIGN.md module should be addressed or explicitly noted as unchanged. Every CHECKLIST.md verification gate should appear somewhere in the execution plan.
Consistency — does the schedule hold together? Dependencies and batch ordering should be consistent. No task should be scheduled before its dependencies complete. No task should be orphaned (defined but never scheduled). Every worker prompt should have a matching entry in the execution plan.
Place the PROMPT.md at the root of the spec or batch spec directory.
Place worker prompts in <spec_dir>/plan/ or <batch_dir>/plan/.
plan/ → Schedule: Batch 1 parallel T1.1+T1.2 → Batch 2 T1.3 → Output PROMPT.md + plan/*.mdplan/ → Output PROMPT.md + plan/*.mdplan/, sequential execution → Reference both prompt paths in PROMPT.mdassets/templates/PROMPT.md — Coordinator prompt templateassets/templates/WORKER_PROMPT.md — Worker prompt template (used in Step 6)development
Guides the agent through creating a new Agent Skill from scratch. Use when the user wants to build a skill, create a new skill, scaffold a skill directory, or author a SKILL.md. Do NOT use for optimising or rewriting existing skills — use 'optimise-skill' for that. Do NOT use for editing files that are already part of a skill. Do NOT use for creating non-skill content like documentation, scripts, or project files.
development
Guides the agent through creating a new Agent Skill from scratch. Use when the user wants to build a skill, create a new skill, scaffold a skill directory, or author a SKILL.md. Do NOT use for optimising or rewriting existing skills — use 'optimise-skill' for that. Do NOT use for editing files that are already part of a skill. Do NOT use for creating non-skill content like documentation, scripts, or project files.
development
Review a pull request — interactive PR selection via `gh`, 4-dimension code review (hallucinated code, architecture, performance, test validity), then post severity-graded comments with fix suggestions on the PR. Not for spec-based review — use `review` instead.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。