一键导入
ln-220-story-coordinator
Creates, replans, or appends 5-10 Stories per Epic with standards research and multi-epic routing. Use when Epic needs Story decomposition.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Creates, replans, or appends 5-10 Stories per Epic with standards research and multi-epic routing. Use when Epic needs Story decomposition.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Builds and queries code knowledge graph for dependency analysis, references, implementations, and architecture overview. Use when starting work on unfamiliar codebase or before refactoring.
Checks local maintainability hotspots: complexity, long methods, god modules, signatures, algorithms, and constants. Also flags identifier drift across API/DTO/DB layers. Use when auditing code hotspots.
Decomposes scope into Epics, Stories, and RICE priorities. Use when user has project scope and wants full Agile breakdown.
Discovers growth opportunities using Traffic-First KILL funnel. Use when searching for next product direction with validated demand.
Creates or replans 3-7 Epics from scope using Decompose-First pattern. Use when initiative needs Epic-level breakdown or Epic scope changed.
Creates Story documents with 9-section structure and INVEST validation via the configured tracker provider. Use when Epic has an IDEAL plan ready for Story generation.
| name | ln-220-story-coordinator |
| description | Creates, replans, or appends 5-10 Stories per Epic with standards research and multi-epic routing. Use when Epic needs Story decomposition. |
| license | MIT |
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