with one click
ln-210-epic-coordinator
// Creates or replans 3-7 Epics from scope using Decompose-First pattern. Use when initiative needs Epic-level breakdown or Epic scope changed.
// Creates or replans 3-7 Epics from scope using Decompose-First pattern. Use when initiative needs Epic-level breakdown or Epic scope changed.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | ln-210-epic-coordinator |
| description | Creates or replans 3-7 Epics from scope using Decompose-First pattern. Use when initiative needs Epic-level breakdown or Epic scope changed. |
| license | MIT |
Paths: File paths (
references/,../ln-*) are relative to this skill directory.
Type: L2 Domain Coordinator Category: 2XX Planning
Universal Epic management coordinator that handles both creation and replanning through scope decomposition.
Coordinates Epic creation (CREATE) and replanning (REPLAN) from scope decomposition. Discovery and research stay read-only until preview is approved; execution remains inline inside ln-210.
This skill should be used when:
Output: 3-7 tracker Epics (logical domains/modules; transport per the configured provider)
MANDATORY READ: Load references/coordinator_runtime_contract.md, references/epic_planning_runtime_contract.md, references/epic_plan_summary_contract.md
MANDATORY READ: Load references/researchgraph_mcp_usage.md when the project has docs/hypotheses/, docs/goals/, or benchmark run manifests that can change Epic boundaries.
Runtime family: epic-planning-runtime
Identifier:
Phases:
PHASE_0_CONFIGPHASE_1_DISCOVERYPHASE_2_RESEARCHPHASE_3_PLANPHASE_4_MODE_DETECTIONPHASE_5_PREVIEWPHASE_6_DELEGATEPHASE_7_FINALIZEPHASE_8_SELF_CHECKDecision handling:
PAUSED + pending_decisionepic-plan summary for ln-200 when used as downstream coordinatorCoordinator artifact flow:
PHASE_7_FINALIZE writes the coordinator summary through node references/scripts/epic-planning-runtime/cli.mjs record-plan-summary.hex-skills/runtime-artifacts/runs/{parent_run_id}/epic-plan/{identifier}.json| Phase | Worker | Context |
|---|---|---|
| 6 | None | CREATE/REPLAN execution is inline inside ln-210; no downstream Skill worker is delegated |
Downstream contract: ln-210 is itself a worker for ln-200 and writes epic-plan machine-readable output after inline Epic create/replan execution completes.
- Phase 1: Discover scope and project context (pending)
- Phase 2: Research only what changes Epic boundaries (pending)
- Phase 3: Build ideal Epic plan (pending)
- Phase 4: Detect mode and validate Infra Epic need (pending)
- Phase 5: Preview and confirm plan (pending)
- Phase 6: Execute create/replan flow (pending)
- Phase 7: Finalize epic-plan summary (pending)
- Phase 8: Self-check (pending)
Key principle: ALWAYS analyze scope and build IDEAL Epic plan FIRST, THEN check existing Epics to determine mode:
Rationale: Ensures consistent Epic decomposition based on current scope requirements, independent of existing Epic structure (which may be outdated or suboptimal).
MANDATORY READ: Load references/numbering_conventions.md for Epic 0 rules, when to use it, and tracker numbering.
| Input | Required | Source | Description |
|---|---|---|---|
scopeDoc | Yes | args, project docs, user | Scope document for Epic decomposition |
Resolution: Epic Resolution Chain (adapted: scope doc discovery). Fallback: IF no scope doc found → AskUserQuestion: "What should be decomposed into Epics?"
MANDATORY READ: Load references/environment_state_contract.md, references/storage_mode_detection.md, references/input_resolution_pattern.md
Extract: task_provider = Task Management → Provider
Objective: Gather the minimum context required to shape Epic boundaries before any preview or mutation.
Step 0: Resolve scopeDoc (per input_resolution_pattern.md, adapted for scope):
docs/project/requirements.md exists → use as scope sourcedocs/requirements.md exists → use as scope sourceStep 1: Load Configuration
Auto-discovers Team ID and Next Epic Number from docs/tasks/kanban_board.md:
MANDATORY READ: Load CLAUDE.md — sections "Configuration Auto-Discovery" and "Tracker Integration".
Objective: Research only what changes Epic boundaries, Infra Epic need, or batch preview quality.
Step 1: Project Research
Objective: Research project documentation AND frontend code to understand context BEFORE asking user questions.
Process:
Researchgraph Preflight (if present):
docs/hypotheses/, docs/goals/, or benchmark/runs/*/manifest.yaml exists, run read-only verify_index first.inspect_goal, trace_goal_tree, find_hypotheses, or audit_goal_alignment only when goals/hypotheses can change Epic boundaries, validation scope, or promotion/generalization work.STALE graph debt as planning context, not as an Epic blocker by itself.Document Scan:
Glob to find: docs/requirements.md, docs/architecture.md, docs/tech_stack.mdRead to load found documentsFrontend Code Scan (if applicable):
Glob to find: **/*.html, src/**/*.html, public/**/*.html, templates/**/*.htmlRead to load HTML files<nav>, <a href> links reveal feature areas<h1>, <title> tags reveal feature namesExample HTML extraction:
<nav>
<a href="/products">Products</a>
<a href="/cart">Shopping Cart</a>
<a href="/checkout">Checkout</a>
</nav>
<!-- Reveals domains: Product Catalog, Shopping Cart, Payment -->
Extract key information from docs + HTML:
Combine findings:
Fallback: If docs AND HTML missing → Skip to scope questioning; do not invent research-heavy detail
Step 2: Infrastructure Epic Decision
Objective: Determine if Infrastructure Epic (Epic 0) should be proposed.
Criteria for Infrastructure Epic:
✅ PROPOSE Infrastructure Epic (Epic 0) if ANY of:
docs/infrastructure.md found, no Epic "Infrastructure" in kanban_board.md Epic Story Counters)❌ DO NOT propose if:
docs/infrastructure.md)Decision: Store YES/NO decision for use in Phase 2
Output from Discovery + Research:
Objective: Identify logical domains and build Epic structure inline.
Process:
Step 1: Auto-identify Domains
Use research context from Phase 1 Step 2:
Fallback: If no docs/HTML → Ask user basic questions (scope, objectives, functional areas)
Step 2: Build Epic List (inline)
IF Infrastructure needed (from Phase 1 Step 3):
numbering_conventions.md §Epic 0 Content TemplateELSE:
Step 3: Determine Epic Count
Step 4: Show Proposed Epic Structure (USER CONTROL POINT 1)
Display identified Epics with initiative-internal indexes:
📋 Proposed Epic Structure:
Epic 0: Infrastructure & Operations
Epic 1: User Management
Epic 2: Product Catalog
Epic 3: Shopping Cart
Epic 4: Payment Processing
Epic 5: Order Management
Total: 6 Epics
Type "confirm" to proceed, or modify the list
Step 5: User Confirmation
Output: Approved Epic list (Epic 0-N or Epic 1-N) ready for next phase
Read-only preparation rule: Domain extraction, HTML scanning, and Infrastructure Epic detection may be gathered up front. Do not move into creation/replan until preview is confirmed.
Context: Structured quality check before creating Epics ensures scope clarity and prevents rework during Story decomposition.
For each proposed Epic, validate 5 criteria:
| # | Criterion | PASS | FAIL |
|---|---|---|---|
| 1 | Scope clarity | Clear In/Out boundaries | Vague or overlapping with other Epics |
| 2 | Success criteria | Measurable ("<200ms", ">98%") | Vague ("fast", "reliable") |
| 3 | Risk documentation | Dependencies/blockers identified | Risks section empty or generic |
| 4 | Balance | Similar scope size across Epics (±30%) | One Epic has 80% of work |
| 5 | Independence | No circular Epic dependencies | Epics block each other |
Quality Score = count of PASS criteria (0-5)
Objective: Determine CREATE vs REPLAN mode.
Query kanban_board.md and task provider for existing Epics:
list_projects(team=teamId) to cross-check
ELSE IF task_provider == "github": gh issue list -R {REPO} --label epic --state all --json number,title to cross-check
ELSE: Glob("docs/tasks/epics/*/epic.md") to list file-based EpicsDecision Point:
Trigger: Phase 3 determined Count = 0 (CREATE MODE)
Objective: Prepare all Epic documents before batch preview.
Step 1: Auto-extract Information for ALL Domains
For EACH domain (from Phase 2), extract answers to 5 key questions from project documentation:
Q1: Business goal - Why this Epic/domain matters
Q2: Key features in scope - 3-5 bullet points of capabilities
Q3: Out of scope - Prevent scope creep
Q4: Success criteria - Measurable outcomes
Q5: Known risks (Optional) - Blockers, dependencies
If extraction incomplete:
Step 2: Generate ALL Epic Documents
For EACH domain, generate complete Epic document using epic_template_universal.md:
Epic indexing:
Tracker Title (will be created in Phase 5a):
Sections: Goal, Scope In/Out, Success Criteria, Dependencies, Risks & Mitigations, Architecture Impact, Phases
Use extracted information from Step 1 for all sections
Output: All Epic documents ready (Epic 0-N), indexed within initiative
Trigger: Phase 4 completed preparation
Objective: Show preview, get confirmation, create all Epics via the configured tracker provider.
Step 1: Show Batch Preview (USER CONTROL POINT 2)
Display ALL generated Epics with initiative-internal indexes:
📋 Epic Batch Preview (6 Epics to create)
═══════════════════════════════════════════════
Epic 0: Infrastructure & Operations
═══════════════════════════════════════════════
Goal: Establish foundational infrastructure, deployment pipeline, and operational capabilities to support all business Epics
Scope In:
- Logging and error handling framework
- Monitoring and alerting system
- CI/CD pipeline (GitHub Actions)
- Security baseline (secrets management, encryption)
- Performance optimization (caching, rate limiting)
Scope Out:
- Application-specific business logic
- User-facing features
- Domain-specific integrations
Success Criteria:
- All deployments automated via CI/CD (<10 min deployment time)
- System uptime ≥99.9%
- API response time <200ms (p95)
- Security audit passed
═══════════════════════════════════════════════
Epic 1: User Management
═══════════════════════════════════════════════
Goal: Enable users to register, authenticate, and manage their accounts securely
Scope In:
- User registration with email verification
- Login/logout with JWT authentication
- Password reset flow
- Profile management
Scope Out:
- Social login (OAuth) - planned for Epic 5
- Multi-factor authentication - future version
- User roles and permissions - part of Epic 3
Success Criteria:
- User registration <2 seconds
- Login success rate >98%
- Password reset completion rate >90%
[... all other Epics ...]
───────────────────────────────────────────────
Total: 6 Epics (Epic 0: Infrastructure, Epic 1-5: Business domains)
Type "confirm" to create all Epics via the configured tracker provider
Step 2: User Confirmation
| Condition | Action |
|---|---|
| User confirms (types "confirm" or approves) | STOP — proceed to creation |
| User feedback cycle >= 3 | STOP — ASK: "3 revision cycles. Proceed with current, or abandon?" |
| Epic Quality Gate score < 3/5 after 2 rework attempts | STOP — ESCALATE: "Cannot achieve quality threshold. Review scope." |
Step 3: Create All Epics
For EACH Epic (in sequential order for numbering consistency):
Get Next Epic Number:
Create Epic (provider-dependent):
IF task_provider == "linear":
save_project({name: "Epic {N}: {Title}", description: epic_markdown, team: teamId, state: "planned"})ELSE IF task_provider == "github":
gh issue create -R {REPO} --title "Epic {N}: {Title}" --body "{epic_markdown}" --label "epic"ELSE (file mode):
mkdir -p docs/tasks/epics/epic-{N}-{slug}/stories/Write("docs/tasks/epics/epic-{N}-{slug}/epic.md") with Epic markdown + file headers (**Status:** Backlog, **Created:** {date})Update kanban_board.md:
Epic {N} | - | US001 | - | EPN_01- [Epic {N}: Title](link) - BacklogCollect URL (Linear/GitHub mode) or file path (file mode) per references/provider_file.md, references/provider_github.md, references/provider_linear.md
Step 4: Display Summary
✅ Created 6 Epics for initiative
Epics created:
- Epic 11: Infrastructure & Operations (Epic 0 index) [link]
- Epic 12: User Management (Epic 1 index) [link]
- Epic 13: Product Catalog (Epic 2 index) [link]
- Epic 14: Shopping Cart (Epic 3 index) [link]
- Epic 15: Payment Processing (Epic 4 index) [link]
- Epic 16: Order Management (Epic 5 index) [link]
Next Epic Number updated to: 17
Next Steps:
1. Use ln-220-story-coordinator to create Stories for each Epic (run 6 times)
2. OR use ln-200-scope-decomposer to automate Epic + Story creation
Output: Created Epic URLs + summary
TodoWrite format: Add Phase 1-5a todos + one todo per Epic + kanban update. Mark in_progress/completed.
Trigger: Phase 3 determined Count ≥ 1 (REPLAN MODE)
Full workflow: MANDATORY READ: Load references/replan_workflow.md for complete REPLAN process.
Summary:
gh issue list --label epic | ELSE: from docs/tasks/epics/*/epic.md)Constraints: Never auto-update/archive Epics with Stories In Progress. Never delete (use archived). Always require confirmation.
Before completing work, verify ALL checkpoints:
✅ Discovery Complete (Phase 1):
✅ Scope Analysis Complete (Phase 2):
✅ Existing Epics Checked (Phase 3):
✅ Epic Preparation Complete (Phase 4 - CREATE only):
✅ Epic Creation Complete (Phase 5a - CREATE only):
epic-plan summary recorded during finalize✅ Epic Replan Complete (Phase 5b - REPLAN only):
references/replan_workflow.md for full checklistepic-plan summary recorded during finalizeOutput: List of Epic URLs (Epic {N}: {Title}) + Next Epic Number value
Request: "Create epics for e-commerce platform"
Flow: Phase 1 (discover Team ID=Product, Next=11, scan docs+HTML) → Phase 2 (identify 6 domains: Infrastructure, User, Products, Cart, Payment, Orders) → Phase 3 (count=0 → CREATE) → Phase 4 (auto-extract Q1-Q5, generate docs) → Phase 5a (preview, confirm, create via configured tracker provider: Epic 11-16)
Result: 6 Epics created (Epic 0-5 internal indexes, Epic 11-16 tracker titles)
Optional 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 planning-coordinator format.
references/environment_state_contract.mdreferences/storage_mode_detection.mdreferences/problem_solving.mdreferences/orchestrator_pattern.mdreferences/auto_discovery_pattern.mdreferences/decompose_first_pattern.mdreferences/numbering_conventions.md (Epic 0 reserved, tracker numbering)references/issue_creation_workflow.mdreferences/templates/linear_integration.md)Version: 8.0.0 Last Updated: 2026-04-05