Install
openclaw skills install @xukp20/organize-task-packageOrganize auditable task packages and launch workflows
openclaw skills install @xukp20/organize-task-packageManage one bounded task as one directory and keep these concerns separate:
Always follow the target repository's AGENTS.md, coordination files, branch rules, documentation-language rules, and latest user instructions. This skill supplies defaults; it does not override project policy.
Keep this skill and all bundled resources in English. Select the language used for user-facing messages and generated task documents in this order:
Use one language consistently across a task package unless the project requires file-specific exceptions. Preserve code identifiers, paths, commands, schema fields, model names, status values, and quoted source text in their original form.
Bundled templates are canonical English semantic scaffolds, not a mandate that generated documents remain English. When the selected output language is not English, localize every human-facing heading, explanation, placeholder, table label, and sample sentence before presenting the package as ready. Do not translate machine-readable identifiers such as pending, implemented_pending_review, approved, or launch_config_status.
Never interpret the existence of GOAL.md as authorization to create an active Goal.
Before writing design documents:
git status; distinguish current facts from plans and historical behavior.design/00_discussion-decisions.md.Read design-and-planning.md for the full decision and design rules.
Resolve ordinary local implementation details independently, but return to the user when any of these material choices remain open:
Mark unresolved gates as OPEN. Do not proceed by inserting a temporary default.
Use the local creation date and a stable slug by default: YYYY-MM-DD_<task_slug>. Freeze the date after creation. Let the user or project choose the parent directory; do not force dev_docs/implementation.
Prefer the bundled initializer:
python scripts/init_task_package.py \
--parent <parent-directory> \
--slug <task-slug> \
--title "<task title>" \
--part core="Core behavior"
The script path is relative to this skill directory and refuses to overwrite an existing directory. After generation, localize the scaffold to the selected output language and replace every placeholder with task facts. See package-structure.md.
Default single-Worker structure:
YYYY-MM-DD_<task_slug>/
├── README.md
├── GOAL.md
├── design/
│ ├── 00_discussion-decisions.md
│ └── 01_<part>.md
├── execution/
│ └── worker-main.md
└── review/
└── reviewer-main.md
Do not append execution results to design prose, and do not leave Reviewer findings only in chat.
Split by capability, defect, investigation question, or operational stage rather than arbitrary file boundaries. Each work item must include:
End each part with an integrated audit across its work items: combined behavior, adjacent risks, documentation, and stale symbol or entry-point residue. Read task-profiles.md for task-type adaptations.
Validation and review scope must be proportional to owned business risk. Do not add work items or tests solely for theoretically possible malformed inputs, extreme recursion or payload sizes outside the supported contract, impossible internal states, or failures owned by a lower-level library. Such cases become blocking only when an explicit acceptance criterion, realistic public input path, threat model, or observed failure makes them relevant.
Each work item has exactly one state:
pending: implementation or execution is incomplete;implemented_pending_review: the Worker completed it and recorded evidence, but the configured review mode has not approved it;approved: the configured review mode approved an exact snapshot and the Worker applied that receipt to the GOAL.With reviewer_mode: inherited_subagent (default), the Reviewer writes the verdict and notifies the Worker. With explicit reviewer_mode: self_review, the Worker writes a concise SELF receipt after checking scope, validation, and task-document coverage; do not describe that receipt as independent review. Mark approved only when the selected mode has an exact receipt. Never replace this state machine with binary checkboxes.
Use README only for navigation and derived status. Use GOAL as the aggregate state index and execution/review documents as evidence truth. Reconcile all three at every milestone.
After the task documents, design gates, and validation plan are ready, do not immediately fork or execute. Derive a recommended configuration in this priority order:
Inherit history only when the task family matches, sessions remain usable, no incompatible active Goal exists, and permissions and worktrees are compatible. Show each concrete value and its source. If a historical value is invalid, show the fallback reason instead of guessing silently.
Present one concise launch confirmation covering: single or parallel execution, current-session role, Worker and review mode, task/session construction, model inheritance or explicit overrides, GOAL, branch/worktree/baseline, review cadence, validation scope, commit/notification/cleanup policy, and external actions such as real providers, servers, migrations, Release, or push. Freeze and execute only after the user confirms the bundle or explicitly edits individual fields.
Use human-readable task titles or stable role labels in every user-facing launch summary. Resolve the Codex sidebar title when task tools expose it. Do not lead with opaque task, thread, host, or subagent IDs; keep those only in durable execution/review receipts for exact routing. If no title exists, derive a readable label such as <task title> — Worker or <Worker label> / Pre-execution Reviewer.
For every current-session, Worker, Reviewer, and Orchestrator entry, state its construction type and source explicitly. At minimum report: readable label; context kind (current task, existing sidebar task, new sidebar task, or nested subagent); session mode (current_task, reuse_fixed, fork_current, fresh, isolated_subagent, or another supported mode); whether it is reused, forked, or newly created; the source context it inherits; requested model/reasoning; and the enforcement/independence boundary. Never make the user infer topology from a role name alone.
Store a single-Worker configuration in the root GOAL.md. Store parallel aggregate settings in the root GOAL and per-lane settings in coordination/lanes.md. Read launch-configuration.md for provenance, validity checks, and the confirmation format.
Defaults:
gpt-5.6-sol, reasoning high;inherited_subagent by default. The Reviewer inherits the selected Worker's model and reasoning unless the user explicitly chooses another supported topology and configuration.Treat role models as requested configuration, not as facts, until the target context accepts them. Enforce and record them as follows:
current_task: record the actual model and reasoning; a turn cannot change its own model mid-turn;fresh: pass the confirmed model and reasoning when creating the task and record the accepted launch receipt;fork_current, fork_worker_pre_execution, shared_planning_base, or reuse_fixed: after selecting the target, send a short configuration-only liveness turn with the confirmed model and reasoning, wait for READY, then send the formal dispatch with the same explicit settings;isolated_subagent: for the default Reviewer, use full pre-implementation history and parent model/reasoning inheritance. For an explicitly different or blind Reviewer, use the confirmed finite/no-history construction and separate configuration receipt.Do not silently fall back while claiming the confirmed configuration. If the target rejects the model/reasoning pair, reports a mismatch, or cannot provide the required isolation, stop before execution and return the discrepancy for a new decision. A separate Reviewer must remain independent of the implementation under review; self_review must remain explicitly labeled.
For a single Worker, choose among the supported topologies in session-topology.md. The default is a Worker-managed Reviewer subagent that inherits the Worker's complete pre-implementation history. Explicit self_review is also supported when the user does not want a separate Reviewer.
Choose the least expensive topology that preserves the confirmed auditability. In independent modes, a context may implement or approve a snapshot, never both. Explicit self_review permits the Worker to approve only with a labeled SELF receipt. A Reviewer subagent created after implementation is valid only when it inherits no implementation reasoning. Apply all role, isolation, selection, and lineage rules in session-topology.md.
Default single-Worker topology: after launch confirmation, the selected Worker reads the frozen package, project rules, current code, HEAD, and validation boundary. Before implementation reasoning, active Goal creation, or product writes, it creates a Reviewer subagent with full current history and no model/reasoning override, so the Reviewer inherits the Worker's configuration and pre-implementation understanding. Wait for READY_REVIEW, then implement and reuse the same Reviewer for exact-snapshot review and re-review. With explicit self_review, do not create a subagent; the Worker performs the concise receipt-based check itself.
Reviewers prioritize, in order: confirmed business behavior; durable state and recovery truth; authorization, identity, concurrency, confidentiality, and destructive boundaries; public contracts used by real consumers; then realistic negative inputs. Findings must state the violated owned contract, plausible reachability, evidence, and material impact.
P0 and P1 findings are blocking when supported by evidence.P2 is blocking only when it affects a supported or realistically reachable path, an explicit acceptance criterion, or a high-consequence invariant. Speculative or extreme long-tail P2 observations are follow-up, not release gates.P3 and optional defense-in-depth never block approval unless the task explicitly makes them acceptance criteria.Do not require application code to wrap every lower-level parser, recursion, memory, or malformed-data failure. For example, thousand-level JSON nesting is non-blocking unless that shape is within documented limits, crosses a realistic untrusted boundary that the application owns, or has observed failure evidence. Prefer existing library limits and bounded public-input validation over speculative wrappers.
The initial review returns all material blocking findings together. Re-review covers accepted repairs and their immediate impact. Non-blocking observations are consolidated once as residual risk; they do not trigger repeated review turns, new abstractions, or expanded test matrices.
Execution loop:
READY_REVIEW, and keeps it available. In self_review mode, record that no subagent is created.GOAL.md and begin implementation.implemented_pending_review and invokes the selected review mode on the exact snapshot.SELF receipt covering scope, validation, task-document goals, and residual risk. The verdict separates blocking findings from non-blocking follow-up under the risk-proportional gate.approved.Read execution-and-review.md for exact responsibilities, receipts, and notifications.
Recommend parallelism when current task boundaries or validated same-family history support it, but enable it only after user confirmation. Without a confirmed parallel configuration, remain single-Worker. In parallel mode, the current session becomes an event-driven Orchestrator, normally without an active Goal or continuous polling.
For a long-lived multi-slice program, prefer a manager/worker pipeline when subagent capacity is available: the parent task acts as Orchestrator/Integrator and delegates each concrete implementation slice to a bounded Worker subagent or task. The Orchestrator should not also be the routine product Writer; it owns planning decisions, lane assignment, shared integration, progress truth, and user-facing gates. Keep one product Writer per shared transaction, schema, state machine, or tightly coupled file set. Add a second Writer only for proven disjoint ownership, not merely because a slot is free.
Pipeline roles instead of serializing all activity: pre-create implementation-independent Reviewers at the frozen pre-execution boundary; let a read-only Planner prepare at most the next slice while the current Worker implements; run non-overlapping Reviewer passes concurrently only after the candidate is frozen; and let the Orchestrator integrate approved output while the next bounded Worker is being prepared. Idle Reviewer capacity is not a reason to invent more findings or wider validation.
Add goals/ and coordination/ to parallel packages:
coordination/lanes.md;coordination/integration.md;self_review was confirmed;Read parallel-orchestration.md for the full protocol.
Use built-in Codex task tools for task creation, fork, read, wait, and messaging.
If a needed built-in tool is absent or explicitly reports that its handler is
unavailable, use $codex-app-task-channel as an optional installed fallback.
Record whether delivery used steer, start, followup, or queue; queue is
durable next-turn delivery and must not be reported as same-turn steer. After a
failed built-in mutation, verify task state before fallback so an uncertain
outcome does not create a duplicate task or message.
Claim completion only when all conditions hold:
approved;Use observed-lessons.md as the final audit checklist.