Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
Task Replanner
Type: L3 Worker Category: 3XX Planning
Standalone-first worker for task replanning. It compares the ideal task plan with existing tasks and applies the required operations.
MANDATORY READ
Load these before execution:
shared/references/coordinator_summary_contract.mdshared/references/tools_config_guide.mdshared/references/storage_mode_detection.mdshared/references/template_loading_pattern.mdshared/references/destructive_operation_safety.mdreferences/replan_algorithm.md
Inputs
Core inputs:
storyIdtaskTypestoryDataexistingTaskIdsidealPlanteamId
Optional transport inputs:
runIdsummaryArtifactPath
Output Contract
Always build a structured summary envelope:
schema_versionsummary_kind=task-planrun_ididentifierproducer_skill=ln-302produced_atpayload
Payload fields:
modestory_idtask_typetasks_createdtasks_updatedtasks_canceledtask_urlskanban_updateddry_warnings_countwarnings
If summaryArtifactPath is provided:
- write the same JSON summary to that path
If summaryArtifactPath is not provided:
- return the same summary in structured output only
Workflow
- Resolve Story context if needed.
- Load existing tasks.
- Normalize ideal vs existing task structures.
- Classify
KEEP,UPDATE,OBSOLETE,CREATE. - Show summary if interactive.
- Execute provider-specific updates.
- Update kanban.
- Return structured summary.
Critical Rules
- Remain standalone-capable.
- Do not require coordinator runtime state.
- Preserve type-specific rules after replanning.
- Return machine-readable output every time.
Definition of Done
- Existing tasks loaded and compared
- Replan operations classified
- Updates, cancellations, and creations executed
- kanban updated
- Structured summary returned
- Summary artifact written when
summaryArtifactPathis provided
Version: 3.0.0 Last Updated: 2025-12-23
