plugins/agile-workflow/skills/ln-220-story-coordinator/SKILL.md
Creates, replans, or appends 5-10 Stories per Epic with standards research and multi-epic routing. Use when Epic needs Story decomposition.
npx skillsauth add levnikolaevich/claude-code-skills ln-220-story-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 (
references/,../ln-*) are relative to this skill directory.
Type: L2 Domain Coordinator Category: 2XX Planning
Runtime-backed Story planning coordinator. The runtime owns flow control, pause/resume, and worker result tracking.
Load these before execution:
references/coordinator_runtime_contract.mdreferences/story_planning_runtime_contract.mdreferences/coordinator_summary_contract.mdreferences/environment_state_contract.mdreferences/storage_mode_detection.mdreferences/problem_solving.mdMANDATORY READ: Load references/researchgraph_mcp_usage.md when the Epic, source docs, or existing Stories cite H/G/run IDs or when a researchgraph layout can change Story decomposition.
| Parameter | Required | Description |
|-----------|----------|-------------|
| epicId | Yes | Epic to decompose |
| autoApprove | No | If false, runtime pauses on preview confirmation |
Runtime family: story-planning-runtime
Identifier:
epic-{epicId}Phases:
PHASE_0_CONFIGPHASE_1_CONTEXT_ASSEMBLYPHASE_2_RESEARCHPHASE_3_PLANPHASE_4_ROUTINGPHASE_5_MODE_DETECTIONPHASE_6_DELEGATEPHASE_7_FINALIZEPHASE_8_SELF_CHECKTerminal phases:
DONEPAUSEDSummary flow:
story-plan-worker artifacts from ln-221 / ln-222story-plan artifact during PHASE_7_FINALIZEResolve Epic and assemble only the planning inputs that change Story decomposition:
Checkpoint payload:
context_readyDo focused research only when it changes Story Technical Notes or implementation constraints.
Do not let research expand Story scope.
If a researchgraph layout exists, use verify_index first and then query only the relevant goals, hypotheses, evidence, or runs. Use graph results to ground Story scope, readiness, and Technical Notes; do not create new Story scope just because graph debt exists.
Checkpoint payload:
research_statusresearch_fileBuild the ideal Story plan before looking at existing Stories.
Rules:
Checkpoint payload:
ideal_plan_summaryRoute planned Stories to epic groups.
Fast path:
Pause only when routing is ambiguous or requires confirmation.
Checkpoint payload:
routing_summaryDetermine mode per epic group:
CREATEREPLANADDCheckpoint payload:
epic_group_modesPhase 6 has two internal steps.
Phase 6a: Prepare delegation
run_id and summary_artifact_path for each childPhase 6b: Execute delegation
Delegate by group:
ln-221-story-creatorln-222-story-replannerWorkers remain standalone-capable. In managed mode the coordinator starts them through planning-worker-runtime, passes runId + summaryArtifactPath, stores the launch metadata in child_run, then records the resulting worker artifact through record-epic.
Worker summary kind:
story-plan-workerFinalize only after all expected worker summaries are recorded.
Coordinator output:
story-plan summary for the parent runtimenode references/scripts/story-planning-runtime/cli.mjs record-plan-summaryPHASE_8_SELF_CHECKTemplate compliance gate: Fetch each created Story via the configured tracker provider (getStory operation per references/tracker_provider_contract.md). Run validateTemplateCompliance(description, 'story') from planning-runtime/lib/template-compliance.mjs. All stories must pass (9 sections in order). Record template_compliance_passed in state. Guard blocks SELF_CHECK without it.
Checkpoint payload:
final_resulttemplate_compliance_passedConfirm:
Checkpoint payload:
passfinal_resultUse runtime PAUSED + pending_decision for:
ADD vs REPLANautoApprove=falseDo not hold these decisions only in chat.
Workers:
summaryArtifactPathExpected summary kind:
story-plan-workerstory-planHost Skill Invocation: Skill(skill: "...", args: "...") is mandatory delegation.
SKILL.md, treat args as $ARGUMENTS, execute that skill workflow, then return here with its result/artifact.| Phase | Worker | Context |
|-------|--------|---------|
| 6 | ln-221-story-creator | CREATE or ADD path |
| 6 | ln-222-story-replanner | REPLAN path |
node references/scripts/planning-worker-runtime/cli.mjs start --skill {worker} --identifier {identifier} --manifest-file {workerManifestPath} --run-id {childRunId} --summary-artifact-path {childSummaryArtifactPath}
child_run = { skill, run_id, identifier, summary_artifact_path }
childSummaryArtifactPath = .hex-skills/runtime-artifacts/runs/{parent_run_id}/story-plan-worker/{worker}--{identifier}.json
Skill(skill: "{worker}", args: "{identifier} --ideal-plan {idealPlanJSON} --epic {epicId} --run-id {childRunId} --summary-artifact-path {childSummaryArtifactPath}")
Read {childSummaryArtifactPath}
node references/scripts/story-planning-runtime/cli.mjs record-epic --epic {epicId} --payload-file {childSummaryArtifactPath}
node references/scripts/story-planning-runtime/cli.mjs record-plan-summary --epic {epicId} --payload-file {coordinatorSummaryPath}
- Phase 1: Assemble context (pending)
- Phase 2: Research only what changes Technical Notes (pending)
- Phase 3: Build ideal Story plan (pending)
- Phase 4: Route Stories by Epic (pending)
- Phase 5: Detect mode per group (pending)
- Phase 6a: Prepare delegation batch (pending)
- Phase 6b: Execute worker(s) sequentially (pending)
- Phase 7: Finalize result (pending)
- Phase 8: Self-check (pending)
story-plan summary recordedOptional reference: load references/meta_analysis_protocol.md only when the user asks for post-run meta-analysis or protocol-formatted run reflection.
Skill type: planning-coordinator. When requested, run after all phases complete. Output to chat using the protocol format.
references/environment_state_contract.mdreferences/storage_mode_detection.mdreferences/replan_algorithm.mdVersion: 5.0.0 Last Updated: 2026-02-03
testing
Audits architecture config boundaries: typed settings, scattered env reads, config leakage, and layer ownership. Use for config architecture.
tools
Finds architecture-level modernization opportunities: obsolete custom mechanisms, overbuilt extension points, and simplifiable architecture. Use when auditing architecture evolution.
development
Builds dependency topology, detects cycles, validates import rules, and calculates coupling metrics. Use when auditing architecture topology.
testing
Checks layer, resource ownership, and orchestration boundaries. Use when auditing architecture boundary enforcement.