Install
openclaw skills install @micooz/batch-plan-executeUse when the user wants AI to turn a requirement text, requirement document, and existing reviewed plan files into dependency-ordered implementation plans and, only after an explicit execution command, implement those plans with subagents in parallel where safe and in sequence where required.
openclaw skills install @micooz/batch-plan-executeUse this skill when the task is to create, revise, retire, execute, or inspect module plans based on a requirement source and the current plans/ directory state.
This skill has two explicit modes:
plan: generate or revise implementation-ready plansexecute: implement already-reviewed plansDo not enter execute mode unless the user explicitly starts execution in the current turn.
requirements.md, or an existing plan file or plans/ directory.Choose the primary input in this order:
plans/ directory path mentioned by the user.Use these rules:
plans/ directory.plans/ directory path is provided, inspect only plan files and the state file inside that directory.plans/ directory are available, always use both.Fail immediately if any referenced file or directory does not exist or is not readable.
Default to plan mode.
Enter execute mode only when the user explicitly issues an execution command in the current turn.
Examples that DO enter execute mode:
开始执行按这个方案实现去改代码直接落地implement nowapply the planExamples that DO NOT enter execute mode:
LGTMOK继续按这个方向review 过了Use these rules:
plan mode and either refine the execution plan or ask for a clearer execution command.Write plan files into a plans/ directory:
plans/ folder next to that file.plans/ directory, keep writing into that same plans/ directory.<cwd>/plans/.Create the plans/ directory if it does not exist.
Base plan files use this format:
<module-slug>.mdRevision plan files use this format:
<module-slug>.rev-<n>.mdThe hidden state file must be:
.batch-plan-state.jsonUse these naming rules:
new-plan may create a base file if the module has no prior lineage.revise-plan and obsolete-plan must always write a new rev file.no-op must not write a new plan file.Maintain plans/.batch-plan-state.json as the planning baseline.
The state file must contain at least:
requirement_sourcerequirement_hashrun_atmodulesEach module state object must contain at least:
slugtitlestatussource_excerpt_hashbody_hash_without_headinglatest_plan_filelatest_revlast_actionStatus values must be explicit:
activeobsoleteUse these rules:
Use docs/plan.md as the detailed plan-writing contract.
Default to splitting by implementation units and dependency boundaries, not by repository package structure and not mechanically by requirement headings.
Before extracting modules or computing any requirement hashes, preprocess the latest requirement source by removing HTML comments outside fenced code blocks.
Use these rules:
If the source is plain text with no reliable headings:
misc, other, or supporting-workAfter extracting candidate modules, derive an explicit dependency graph before classification or subagent spawning.
Use these rules:
foundation, feature, or follow-on.depends_on, blocks, parallelizable_with, and shared_change_owner.A then B, model that directly instead of forcing both into one peer list.Review detection is only meaningful inside plans/*.md.
Use these rules:
rev, otherwise latest base file.body_hash_without_heading.Determine action per module, not once for the whole run.
Classify each module into exactly one action:
new-planrevise-planobsolete-planno-opUse these defaults:
revise-plan.obsolete-plan revision instead of silently dropping removed modules.revise-plan.Spawn one planning subagent per affected module after locking the module list, dependency graph, and action.
Use these rules:
The main agent owns final plan quality, plan file output, and state file updates.
Use these rules:
plans/.batch-plan-state.json only after all affected modules are processed.Use docs/execute.md as the detailed execution contract.
Enter this mode only after the explicit execution gate is satisfied.
Fail immediately if any of these is true:
plans/ directory can be resolvedUse these rules:
The main agent owns final verification and integration.
Use these rules:
Stop and report the problem instead of generating weak output when:
Do not emit empty plan files, summary-only files, or a single aggregate plan when the task requires per-module outputs.