skills-catalog/ln-300-task-coordinator/SKILL.md
Analyzes Story and builds optimal task plan (1-8 tasks), then routes to create or replan. Use when Story needs task breakdown or replanning.
npx skillsauth add levnikolaevich/claude-code-skills ln-300-task-coordinatorInstall 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.
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.
Type: L2 Domain Coordinator Category: 3XX Planning
Runtime-backed task planning coordinator. The runtime owns readiness gating, pause/resume, and worker result tracking.
MANDATORY READ: Load shared/references/coordinator_runtime_contract.md, shared/references/task_planning_runtime_contract.md, shared/references/coordinator_summary_contract.md, and shared/references/task_plan_worker_runtime_contract.md
MANDATORY READ: Load shared/references/environment_state_contract.md, shared/references/storage_mode_detection.md, shared/references/problem_solving.md, and shared/references/creation_quality_checklist.md
MANDATORY READ: Load shared/references/mcp_tool_preferences.md, shared/references/mcp_integration_patterns.md, and shared/references/agent_delegation_pattern.md when Phase 3 external validation is triggered
CREATE, ADD, or REPLAN| Parameter | Required | Description |
|-----------|----------|-------------|
| storyId | Yes | Story to plan |
| autoApprove | No | If false, runtime may pause for readiness approval |
Runtime family: task-planning-runtime
Identifier:
story-{storyId}Phases:
PHASE_0_CONFIGPHASE_1_DISCOVERYPHASE_2_DECOMPOSEPHASE_3_READINESS_GATEPHASE_4_MODE_DETECTIONPHASE_5_DELEGATEPHASE_6_VERIFYPHASE_7_SELF_CHECKTerminal phases:
DONEPAUSEDCoordinator stage artifact:
summary_kind=pipeline-stage after verificationln-1000 consumes this artifact as the Stage 0 completion signalResolve Story and collect only the inputs required for task planning:
Do NOT load existing tasks here. Existing tasks load in Phase 4 only.
index_project(path=project_root)analyze_architecture(path=project_root, verbosity="minimal")find_symbols + inspect_symbol for named components from Story AC or Technical Notes, but only after narrowing path where possible; if symbol discovery is truncated, refine to name + file or workspace_qualified_name before planning from itCheckpoint payload:
discovery_readyBuild the ideal task plan from ACs only. Do not read or reference existing tasks.
Order of operations:
.hex-skills/task-planning/{identifier}_traceability.mdRules:
Checkpoint payload:
ideal_plan_summarytraceability_table_pathScore the plan before delegation.
Scoring policy:
6-7 -> continue4-5 -> PAUSED for approval or improvement<4 -> blocked until plan is correctedSelf-check: verify each layer (Foundation, Invocation, Knowledge, Wiring) has at least one task when the traceability table contains buildable artifacts in the corresponding segments.
Run this step only when at least one trigger is true:
4-5ADD vs REPLAN)If triggered:
Run agent health check: node shared/agents/agent_runner.mjs --health-check --json
If advisor agent available:
a. Build validation prompt from shared/agents/prompt_templates/traceability_validator.md
b. Fill placeholders with Phase 1 discovery and Phase 2 output
c. Save filled prompt to .hex-skills/task-planning/{identifier}_traceability_prompt.md
d. Launch agent via agent_runner.mjs:
node shared/agents/agent_runner.mjs \
--agent {advisor_agent} \
--prompt-file .hex-skills/task-planning/{identifier}_traceability_prompt.md \
--output-file .hex-skills/task-planning/{identifier}_traceability_result.json \
--cwd {project_dir}
e. Parse result JSON for gaps f. For each MISSING gap: readiness_score -= 1 g. For each BUNDLED gap: readiness_score -= 0.5 h. If MISSING gaps found: re-enter Phase 2. Max 1 re-decomposition.
If no agent available: log and keep the local score with degraded confidence.
If not triggered:
traceability_validation = self_check_onlyCheckpoint payload:
readiness_scorereadiness_findingstraceability_validation — one of: agent_validated, self_check_only, redecomposedDetect:
CREATEADDREPLANPause when mode is ambiguous.
Checkpoint payload:
mode_detectionSingle mutation handoff. Delegate to exactly one worker:
ln-301-task-creatorln-302-task-replannerManaged delegation sequence:
childRunId = {parent_run_id}--{worker}--{storyId}.childSummaryArtifactPath = .hex-skills/runtime-artifacts/runs/{parent_run_id}/task-plan/{worker}--{storyId}.json..hex-skills/task-planning/{worker}--{storyId}_manifest.json.task-plan-worker-runtime with both --run-id and --summary-artifact-path.child_run metadata before invoking the worker.task-plan artifact and record it through runtime record-plan.Coordinator context to pass to workers:
idealPlan: the full ideal plan from Phase 2traceabilityTablePath: path to materialized traceability tablediscoveryContext: Phase 1 findingsVerify the worker result and the resulting task set only. Do not reopen decomposition unless verification proves the worker output is invalid.
Template compliance gate: Fetch each created Task via get_issue. Run validateTemplateCompliance(description, 'task') from planning-runtime/lib/template-compliance.mjs. All tasks must pass (7 sections in order). Record template_compliance_passed in state. Guard blocks SELF_CHECK without it.
Checkpoint payload:
verification_summaryfinal_resulttemplate_compliance_passedAfter verification succeeds, write a Stage 0 coordinator artifact with:
stage=0story_idstatus=completedfinal_resultstory_statusreadiness_scorewarningsConfirm:
Checkpoint payload:
passfinal_resultUse runtime PAUSED + pending_decision for:
ADD vs REPLAN4-5Workers:
runId and summaryArtifactPathtask-plan summary envelope and write the artifact before terminal outcomeExpected summary kind:
task-plan| Phase | Worker | Context |
|-------|--------|---------|
| 5 | ln-301-task-creator | CREATE or ADD path |
| 5 | ln-302-task-replanner | REPLAN path |
node shared/scripts/task-plan-worker-runtime/cli.mjs start --skill {worker} --story {storyId} --manifest-file .hex-skills/task-planning/{worker}--{storyId}_manifest.json --run-id {childRunId} --summary-artifact-path {childSummaryArtifactPath}
node shared/scripts/task-planning-runtime/cli.mjs checkpoint --story {storyId} --phase PHASE_5_DELEGATE --payload '{"child_run":{"worker":"{worker}","run_id":"{childRunId}","summary_artifact_path":"{childSummaryArtifactPath}"}}'
Skill(skill: "{worker}", args: "{storyId} --ideal-plan {idealPlanJSON} --traceability {tablePath} --discovery {discoveryJSON} --run-id {childRunId} --summary-artifact-path {childSummaryArtifactPath}")
Read {childSummaryArtifactPath}
node shared/scripts/task-planning-runtime/cli.mjs record-plan --story {storyId} --payload '{...task-plan summary...}'
- Phase 1: Discover Story context (pending)
- Phase 2: Build ideal task plan (pending)
- Phase 3: Run readiness gate (local score first, external validation only if triggered) (pending)
- Phase 4: Detect mode (pending)
- Phase 5: Start child runtime, checkpoint child metadata, and perform the single worker handoff (pending)
- Phase 6: Verify worker result (pending)
- Phase 7: Self-check (pending)
runIdMANDATORY READ: Load shared/references/meta_analysis_protocol.md
Skill type: planning-coordinator. Run after all phases complete. Output to chat using the protocol format.
Version: 4.0.0 Last Updated: 2026-02-03
testing
Checks runtime lifecycle and config validation: bootstrap, shutdown, probes, cleanup, env sync, and fail-fast startup. Use for runtime readiness.
testing
Checks races, deadlocks, async hazards, TOCTOU, blocking I/O, and shared resource contention. Use when auditing concurrency correctness.
testing
Checks diagnosability through structured logs, metrics, traces, correlation IDs, and useful log levels. Use when auditing incident visibility.
development
Finds code that can be safely deleted: unreachable, unused, obsolete compatibility, and commented-out code. Use when pruning dead code.