[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FJ8P4DY2Q9W4WVYN62YFZV":3,"skill-same:01M6FJ8P4DY2Q9W4WVYN62YFZV":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"01M6FJ8P4DY2Q9W4WVYN62YFZV","ln-210-epic-coordinator",null,"Creates or replans 3-7 Epics from scope using Decompose-First pattern. Use when initiative needs Epic-level breakdown or Epic scope changed.","boisenoise\u002Fskills-collections","boisenoise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193180?v=4","01M6CDBDQK6BDN55ZMA6B6PKBM","01M6CDBDVSJ3JPTBYN26FZ7TZK",13,"MIT","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Flevn-ln-210-epic-coordinator\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28],"EPIC","ln 210 epic coordinator","coordinator","ln","first","use","decompose","pattern","scope","when","breakdown","2026-11-10 10:12:30",false,"---\nname: ln-210-epic-coordinator\ndescription: \"Creates or replans 3-7 Epics from scope using Decompose-First pattern. Use when initiative needs Epic-level breakdown or Epic scope changed.\"\nlicense: MIT\n---\n\n> **Paths:** File paths (`shared\u002F`, `references\u002F`, `..\u002Fln-*`) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If `shared\u002F` is missing, fetch files via WebFetch from `https:\u002F\u002Fraw.githubusercontent.com\u002Flevnikolaevich\u002Fclaude-code-skills\u002Fmaster\u002Fskills\u002F{path}`.\n\n# Epic Coordinator\n\n**Type:** L2 Domain Coordinator\n**Category:** 2XX Planning\n\nUniversal Epic management coordinator that handles both creation and replanning through scope decomposition.\n\n## Purpose\n\nCoordinates 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.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Start new scope\u002Finitiative requiring decomposition into multiple logical domains (CREATE mode)\n- Break down large architectural requirement into Epics\n- Update existing Epics when scope\u002Frequirements change (REPLAN mode)\n- Rebalance Epic scopes within an initiative\n- Add new Epics to existing initiative structure\n- First step in project planning (scope → Epics → Stories → Tasks)\n- Define clear scope boundaries and success criteria for each domain\n\n**Output:** 3-7 Linear Projects (logical domains\u002Fmodules)\n\n## Runtime Contract\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fcoordinator_runtime_contract.md`, `shared\u002Freferences\u002Fepic_planning_runtime_contract.md`, `shared\u002Freferences\u002Fepic_plan_summary_contract.md`\n\nRuntime family: `epic-planning-runtime`\n\nIdentifier:\n- scope identifier\n\nPhases:\n1. `PHASE_0_CONFIG`\n2. `PHASE_1_DISCOVERY`\n3. `PHASE_2_RESEARCH`\n4. `PHASE_3_PLAN`\n5. `PHASE_4_MODE_DETECTION`\n6. `PHASE_5_PREVIEW`\n7. `PHASE_6_DELEGATE`\n8. `PHASE_7_FINALIZE`\n9. `PHASE_8_SELF_CHECK`\n\nDecision handling:\n- preview\u002Fconfirmation is runtime `PAUSED + pending_decision`\n- ln-210 writes final `epic-plan` summary for ln-200 when used as downstream coordinator\n\nCoordinator artifact flow:\n- execution remains inline inside ln-210\n- `PHASE_7_FINALIZE` writes the coordinator summary through `node shared\u002Fscripts\u002Fepic-planning-runtime\u002Fcli.mjs record-plan-summary`\n- managed parent flow stores the artifact at `.hex-skills\u002Fruntime-artifacts\u002Fruns\u002F{parent_run_id}\u002Fepic-plan\u002F{identifier}.json`\n\n## Worker Invocation (MANDATORY)\n\n| Phase | Worker | Context |\n|-------|--------|---------|\n| 6 | None | CREATE\u002FREPLAN execution is inline inside ln-210; no downstream Skill worker is delegated |\n\n**Downstream contract:** ln-210 is itself a worker for `ln-200` and writes `epic-plan` machine-readable output after inline Epic create\u002Freplan execution completes.\n\n## TodoWrite format (mandatory)\n\n```text\n- Phase 1: Discover scope and project context (pending)\n- Phase 2: Research only what changes Epic boundaries (pending)\n- Phase 3: Build ideal Epic plan (pending)\n- Phase 4: Detect mode and validate Infra Epic need (pending)\n- Phase 5: Preview and confirm plan (pending)\n- Phase 6: Execute create\u002Freplan flow (pending)\n- Phase 7: Finalize epic-plan summary (pending)\n- Phase 8: Self-check (pending)\n```\n\n## Core Concepts\n\n### Decompose-First Pattern\n\n**Key principle:** ALWAYS analyze scope and build IDEAL Epic plan FIRST, THEN check existing Epics to determine mode:\n- **No existing Epics** → CREATE MODE (generate and create all Epics)\n- **Has existing Epics** → REPLAN MODE (compare, determine operations: KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE)\n\n**Rationale:** Ensures consistent Epic decomposition based on current scope requirements, independent of existing Epic structure (which may be outdated or suboptimal).\n\n### Epic 0 Reserved for Infrastructure\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fnumbering_conventions.md` for Epic 0 rules, when to use it, and Linear numbering.\n\n---\n\n## Inputs\n\n| Input | Required | Source | Description |\n|-------|----------|--------|-------------|\n| `scopeDoc` | Yes | args, project docs, user | Scope document for Epic decomposition |\n\n**Resolution:** Epic Resolution Chain (adapted: scope doc discovery).\n**Fallback:** IF no scope doc found → AskUserQuestion: \"What should be decomposed into Epics?\"\n\n## Workflow\n\n### Phase 0: Tools Config\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fenvironment_state_contract.md`, `shared\u002Freferences\u002Fstorage_mode_detection.md`, `shared\u002Freferences\u002Finput_resolution_pattern.md`\n\nExtract: `task_provider` = Task Management → Provider\n\n### Phase 1: Discovery\n\n**Objective:** Gather the minimum context required to shape Epic boundaries before any preview or mutation.\n\n**Step 0: Resolve scopeDoc** (per input_resolution_pattern.md, adapted for scope):\n- IF args provided (scope description or doc path) → use args\n- ELSE IF `docs\u002Fproject\u002Frequirements.md` exists → use as scope source\n- ELSE IF `docs\u002Frequirements.md` exists → use as scope source\n- ELSE → AskUserQuestion: \"What should be decomposed into Epics?\"\n\n**Step 1: Load Configuration**\n\nAuto-discovers Team ID and Next Epic Number from `docs\u002Ftasks\u002Fkanban_board.md`:\n- **Team ID:** Reads Linear Configuration table → Fallback: Ask user directly\n- **Next Epic Number:** Reads Next Epic Number field → Fallback: Ask user directly\n\n**MANDATORY READ:** Load `CLAUDE.md` — sections \"Configuration Auto-Discovery\" and \"Linear Integration\".\n\n### Phase 2: Research\n\n**Objective:** Research only what changes Epic boundaries, Infra Epic need, or batch preview quality.\n\n**Step 1: Project Research**\n\n**Objective:** Research project documentation AND frontend code to understand context BEFORE asking user questions.\n\n**Process:**\n\n1. **Document Scan:**\n   - Use `Glob` to find: `docs\u002Frequirements.md`, `docs\u002Farchitecture.md`, `docs\u002Ftech_stack.md`\n   - Use `Read` to load found documents\n\n2. **Frontend Code Scan (if applicable):**\n   - Use `Glob` to find: `**\u002F*.html`, `src\u002F**\u002F*.html`, `public\u002F**\u002F*.html`, `templates\u002F**\u002F*.html`\n   - Use `Read` to load HTML files\n   - Extract functional domains from:\n     - **Navigation menus:** `\u003Cnav>`, `\u003Ca href>` links reveal feature areas\n     - **Forms:** Input fields reveal data models (user registration, login, checkout)\n     - **Page titles:** `\u003Ch1>`, `\u003Ctitle>` tags reveal feature names\n     - **Route patterns:** URL structures reveal domain boundaries\n\n   **Example HTML extraction:**\n   ```html\n   \u003Cnav>\n     \u003Ca href=\"\u002Fproducts\">Products\u003C\u002Fa>\n     \u003Ca href=\"\u002Fcart\">Shopping Cart\u003C\u002Fa>\n     \u003Ca href=\"\u002Fcheckout\">Checkout\u003C\u002Fa>\n   \u003C\u002Fnav>\n   \u003C!-- Reveals domains: Product Catalog, Shopping Cart, Payment -->\n   ```\n\n3. **Extract key information from docs + HTML:**\n   - **Business objectives:** What is the project trying to achieve? (from requirements.md)\n   - **User personas:** Who will use the system? (from requirements.md)\n   - **Major functional domains:** What are the main modules\u002Fareas? (from requirements.md, architecture.md, HTML navigation)\n   - **Technical stack:** What technologies mentioned? (from tech_stack.md, architecture.md, HTML meta\u002Fscript tags)\n   - **Infrastructure requirements:** Any mention of logging, monitoring, deployment, CI\u002FCD, security, performance optimization?\n\n4. **Combine findings:**\n   - Merge domains from docs + HTML (deduplicate, consolidate similar)\n   - Example: \"User Auth\" (from docs) + \"Login\" (from HTML) → \"User Management\"\n\n**Fallback:** If docs AND HTML missing → Skip to scope questioning; do not invent research-heavy detail\n\n**Step 2: Infrastructure Epic Decision**\n\n**Objective:** Determine if Infrastructure Epic (Epic 0) should be proposed.\n\n**Criteria for Infrastructure Epic:**\n\n✅ **PROPOSE Infrastructure Epic (Epic 0)** if ANY of:\n1. **New project** (no `docs\u002Finfrastructure.md` found, no Epic \"Infrastructure\" in kanban_board.md Epic Story Counters)\n2. **Multi-stack** (requirements.md or tech_stack.md mentions frontend AND backend on different stacks - e.g., React + Python)\n3. **Infrastructure requirements mentioned** in requirements.md, architecture.md:\n   - Logging, Error Handling\n   - Monitoring, Alerting\n   - Hosting, Deployment, CI\u002FCD\n   - Security (authentication, authorization, encryption, secrets management)\n   - Performance optimization (caching, rate limiting, database optimization)\n\n❌ **DO NOT propose** if:\n1. Existing project (found `docs\u002Finfrastructure.md`)\n2. Epic Story Counters shows existing Epic with \"Infrastructure\" in title\n3. User explicitly declined in previous interaction\n\n**Decision:** Store YES\u002FNO decision for use in Phase 2\n\n**Output from Discovery + Research:**\n- Team ID, Next Epic Number\n- Project context (business goals, domains from docs + HTML, tech stack, infrastructure needs) - if found\n- Infrastructure Epic decision (YES\u002FNO)\n\n---\n\n### Phase 2: Scope Analysis & Epic Planning\n\n**Objective:** Identify logical domains and build Epic structure inline.\n\n**Process:**\n\n**Step 1: Auto-identify Domains**\n\nUse research context from Phase 1 Step 2:\n- If project docs found → Extract domains from requirements.md, architecture.md (module names, feature areas)\n- If HTML found → Extract domains from navigation, forms, page structures\n- Combine and deduplicate domains\n- Example: \"User Auth\" + \"Profile Management\" → \"User Management\"\n\n**Fallback:** If no docs\u002FHTML → Ask user basic questions (scope, objectives, functional areas)\n\n**Step 2: Build Epic List (inline)**\n\n**IF Infrastructure needed (from Phase 1 Step 3):**\n- **Epic 0: Infrastructure & Operations** — per `numbering_conventions.md` §Epic 0 Content Template\n- **Epic 1-N:** Business domains (from Step 1)\n\n**ELSE:**\n- **Epic 1-N:** Business domains only\n\n**Step 3: Determine Epic Count**\n\n- Infrastructure Epic (if applicable): +1 Epic\n- Simple Initiative (1-3 domains): 3-4 Epics total\n- Medium Initiative (4-6 domains): 5-7 Epics total\n- Complex Initiative (7+ domains): 7-10 Epics total (rare)\n- **Max 10 Epics per Initiative** (enforced)\n\n**Step 4: Show Proposed Epic Structure (USER CONTROL POINT 1)**\n\nDisplay identified Epics with initiative-internal indexes:\n\n```\n? Proposed Epic Structure:\n\nEpic 0: Infrastructure & Operations\nEpic 1: User Management\nEpic 2: Product Catalog\nEpic 3: Shopping Cart\nEpic 4: Payment Processing\nEpic 5: Order Management\n\nTotal: 6 Epics\nType \"confirm\" to proceed, or modify the list\n```\n\n**Step 5: User Confirmation**\n\n- User types \"confirm\" → Proceed to Phase 3\n- User modifies → Update domain list, show again\n\n**Output:** Approved Epic list (Epic 0-N or Epic 1-N) ready for next phase\n\n**Read-only preparation rule:** Domain extraction, HTML scanning, and Infrastructure Epic detection may be gathered up front. Do not move into creation\u002Freplan until preview is confirmed.\n\n### Epic Quality Gate\n\n**Context:** Structured quality check before creating Epics ensures scope clarity and prevents rework during Story decomposition.\n\nFor each proposed Epic, validate 5 criteria:\n\n| # | Criterion | PASS | FAIL |\n|---|-----------|------|------|\n| 1 | **Scope clarity** | Clear In\u002FOut boundaries | Vague or overlapping with other Epics |\n| 2 | **Success criteria** | Measurable (\"\u003C200ms\", \">98%\") | Vague (\"fast\", \"reliable\") |\n| 3 | **Risk documentation** | Dependencies\u002Fblockers identified | Risks section empty or generic |\n| 4 | **Balance** | Similar scope size across Epics (±30%) | One Epic has 80% of work |\n| 5 | **Independence** | No circular Epic dependencies | Epics block each other |\n\n**Quality Score = count of PASS criteria (0-5)**\n- 5\u002F5: Proceed to creation\n- 3-4\u002F5: Show warnings, user decides\n- \u003C3\u002F5: Rework Epic structure before creation\n\n---\n\n### Phase 3: Check Existing Epics\n\n**Objective:** Determine CREATE vs REPLAN mode.\n\nQuery kanban_board.md and task provider for existing Epics:\n\n1. **Read Epic Story Counters** table in kanban_board.md\n2. **IF task_provider == \"linear\":** `list_projects(team=teamId)` to cross-check\n   **ELSE IF task_provider == \"github\":** `gh issue list -R {REPO} --label epic --state all --json number,title` to cross-check\n   **ELSE:** `Glob(\"docs\u002Ftasks\u002Fepics\u002F*\u002Fepic.md\")` to list file-based Epics\n3. **Count existing Epic rows** (excludes header row)\n\n**Decision Point:**\n- **Count = 0** → No existing Epics → **Proceed to Phase 4+5a (CREATE MODE)**\n- **Count ≥ 1** → Existing Epics found → **Proceed to Phase 5b (REPLAN MODE)**\n\n---\n\n### Phase 4: Epic Preparation (CREATE mode only)\n\n**Trigger:** Phase 3 determined Count = 0 (CREATE MODE)\n\n**Objective:** Prepare all Epic documents before batch preview.\n\n**Step 1: Auto-extract Information for ALL Domains**\n\nFor EACH domain (from Phase 2), extract answers to 5 key questions from project documentation:\n\n1. **Q1: Business goal** - Why this Epic\u002Fdomain matters\n   - **Source:** requirements.md (domain objectives section)\n   - **Extraction:** \"The [domain] module aims to...\" or \"Goal: [objective]\"\n   - **Fallback:** architecture.md (module purpose)\n\n2. **Q2: Key features in scope** - 3-5 bullet points of capabilities\n   - **Source:** requirements.md (functional requirements for this domain)\n   - **Extraction:** Bulleted lists under domain heading, feature descriptions\n   - **Fallback:** architecture.md (component responsibilities)\n\n3. **Q3: Out of scope** - Prevent scope creep\n   - **Source:** requirements.md (explicitly excluded features section)\n   - **Extraction:** \"Not in scope:\", \"Future versions:\", \"Out of scope for [domain]:\"\n   - **Fallback:** Infer from requirements.md (features NOT mentioned in domain)\n\n4. **Q4: Success criteria** - Measurable outcomes\n   - **Source:** requirements.md (acceptance criteria, metrics, KPIs for domain)\n   - **Extraction:** Performance targets, user metrics, quality gates\n   - **Fallback:** Generic criteria based on domain type (e.g., \"\u003C200ms API response\" for backend)\n\n5. **Q5: Known risks** (Optional) - Blockers, dependencies\n   - **Source:** architecture.md (technical constraints, dependencies section)\n   - **Extraction:** \"Risks:\", \"Dependencies:\", \"Constraints:\"\n   - **Fallback:** User input if critical, otherwise leave as \"To be determined during Story planning\"\n\n**If extraction incomplete:**\n- Show extracted information to user\n- Ask ONCE for ALL missing information across ALL domains (batch question, not per-domain)\n- Example: \"For Epic 1 (User Management), I couldn't find success criteria. For Epic 2 (Payment), I couldn't find risks. Please provide...\"\n\n**Step 2: Generate ALL Epic Documents**\n\nFor EACH domain, generate complete Epic document using epic_template_universal.md:\n\n**Epic indexing:**\n- IF Infrastructure Epic exists (from Phase 1 Step 3) → Epic 0 (Infrastructure), Epic 1-N (business domains)\n- ELSE → Epic 1-N (business domains only)\n\n**Linear Title (will be created in Phase 5a):**\n- Use Next Epic Number from kanban_board.md for sequential numbering\n- Format: \"Epic {Next Epic Number}: {Domain Title}\"\n- Example: Next = 11 → \"Epic 11: Infrastructure & Operations\"\n\n**Sections:** Goal, Scope In\u002FOut, Success Criteria, Dependencies, Risks & Mitigations, Architecture Impact, Phases\n\n**Use extracted information** from Step 1 for all sections\n\n**Output:** All Epic documents ready (Epic 0-N), indexed within initiative\n\n---\n\n### Phase 5a: Epic Creation (CREATE mode)\n\n**Trigger:** Phase 4 completed preparation\n\n**Objective:** Show preview, get confirmation, create all Epics in Linear.\n\n**Step 1: Show Batch Preview (USER CONTROL POINT 2)**\n\nDisplay ALL generated Epics with initiative-internal indexes:\n\n```\n? Epic Batch Preview (6 Epics to create)\n\n═══════════════════════════════════════════════\nEpic 0: Infrastructure & Operations\n═══════════════════════════════════════════════\nGoal: Establish foundational infrastructure, deployment pipeline, and operational capabilities to support all business Epics\n\nScope In:\n- Logging and error handling framework\n- Monitoring and alerting system\n- CI\u002FCD pipeline (GitHub Actions)\n- Security baseline (secrets management, encryption)\n- Performance optimization (caching, rate limiting)\n\nScope Out:\n- Application-specific business logic\n- User-facing features\n- Domain-specific integrations\n\nSuccess Criteria:\n- All deployments automated via CI\u002FCD (\u003C10 min deployment time)\n- System uptime ≥99.9%\n- API response time \u003C200ms (p95)\n- Security audit passed\n\n═══════════════════════════════════════════════\nEpic 1: User Management\n═══════════════════════════════════════════════\nGoal: Enable users to register, authenticate, and manage their accounts securely\n\nScope In:\n- User registration with email verification\n- Login\u002Flogout with JWT authentication\n- Password reset flow\n- Profile management\n\nScope Out:\n- Social login (OAuth) - planned for Epic 5\n- Multi-factor authentication - future version\n- User roles and permissions - part of Epic 3\n\nSuccess Criteria:\n- User registration \u003C2 seconds\n- Login success rate >98%\n- Password reset completion rate >90%\n\n[... all other Epics ...]\n\n───────────────────────────────────────────────\nTotal: 6 Epics (Epic 0: Infrastructure, Epic 1-5: Business domains)\nType \"confirm\" to create all Epics in Linear\n```\n\n**Step 2: User Confirmation**\n\n- User types \"confirm\" → Proceed to Step 3\n- User provides feedback → Adjust documents in Phase 4, regenerate preview, repeat\n\n### Stop Conditions (Preview Loop)\n\n| Condition | Action |\n|-----------|--------|\n| User confirms (types \"confirm\" or approves) | STOP — proceed to creation |\n| User feedback cycle >= 3 | STOP — ASK: \"3 revision cycles. Proceed with current, or abandon?\" |\n| Epic Quality Gate score \u003C 3\u002F5 after 2 rework attempts | STOP — ESCALATE: \"Cannot achieve quality threshold. Review scope.\" |\n\n**Step 3: Create All Epics**\n\nFor EACH Epic (in sequential order for numbering consistency):\n\n1. **Get Next Epic Number:**\n   - Read current Next Epic Number from kanban_board.md\n   - Example: 11\n\n2. **Create Epic (provider-dependent):**\n\n   **IF task_provider == \"linear\":**\n   - `save_project({name: \"Epic {N}: {Title}\", description: epic_markdown, team: teamId, state: \"planned\"})`\n   - Collect returned URL\n\n   **ELSE IF task_provider == \"github\":**\n   - `gh issue create -R {REPO} --title \"Epic {N}: {Title}\" --body \"{epic_markdown}\" --label \"epic\"`\n   - Add to project + set status Backlog (per provider_github.md)\n   - Collect returned issue URL\n\n   **ELSE (file mode):**\n   - `mkdir -p docs\u002Ftasks\u002Fepics\u002Fepic-{N}-{slug}\u002Fstories\u002F`\n   - `Write(\"docs\u002Ftasks\u002Fepics\u002Fepic-{N}-{slug}\u002Fepic.md\")` with Epic markdown + file headers (`**Status:** Backlog`, `**Created:** {date}`)\n\n3. **Update kanban_board.md:**\n   - Increment Next Epic Number by 1 in Linear Configuration table\n   - Add new row to Epic Story Counters: `Epic {N} | - | US001 | - | EPN_01`\n   - Add to \"Epics Overview\" → Active: `- [Epic {N}: Title](link) - Backlog`\n\n4. **Collect URL** (Linear\u002FGitHub mode) or file path (file mode)\n\n**Step 4: Display Summary**\n\n```\n✅ Created 6 Epics for initiative\n\nEpics created:\n- Epic 11: Infrastructure & Operations (Epic 0 index) [link]\n- Epic 12: User Management (Epic 1 index) [link]\n- Epic 13: Product Catalog (Epic 2 index) [link]\n- Epic 14: Shopping Cart (Epic 3 index) [link]\n- Epic 15: Payment Processing (Epic 4 index) [link]\n- Epic 16: Order Management (Epic 5 index) [link]\n\nNext Epic Number updated to: 17\n\nNext Steps:\n1. Use ln-220-story-coordinator to create Stories for each Epic (run 6 times)\n2. OR use ln-200-scope-decomposer to automate Epic + Story creation\n```\n\n**Output:** Created Epic URLs + summary\n\n**TodoWrite format:** Add Phase 1-5a todos + one todo per Epic + kanban update. Mark in_progress\u002Fcompleted.\n\n---\n\n### Phase 5b: Replan Mode (Existing Epics Found)\n\n**Trigger:** Phase 3 determined Count ≥ 1 (REPLAN MODE)\n\n**Full workflow:** **MANDATORY READ:** Load `references\u002Freplan_workflow.md` for complete REPLAN process.\n\n**Summary:**\n1. Load existing Epics (IF task_provider == \"linear\": from Linear API | IF task_provider == \"github\": from `gh issue list --label epic` | ELSE: from `docs\u002Ftasks\u002Fepics\u002F*\u002Fepic.md`)\n2. Compare IDEAL plan vs existing → Categorize: KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE\n3. Show replan summary with diffs and warnings\n4. User confirmation required\n5. Execute operations (per provider_*.md) + update kanban_board.md\n\n**Constraints:** Never auto-update\u002Farchive Epics with Stories In Progress. Never delete (use archived). Always require confirmation.\n\n---\n\n## Critical Rules\n\n- **Decompose-First:** Always build IDEAL Epic plan before checking existing Epics (prevents anchoring to outdated structure)\n- **Epic 0 reserved for Infrastructure:** Business domains start from Epic 1; Epic 0 auto-proposed when new project, multi-stack, or infra requirements detected\n- **Auto-extract before asking:** Extract Q1-Q5 from docs (requirements.md, architecture.md, tech_stack.md) + HTML; ask user only for missing info in a single batch\n- **Never auto-update Epics with In Progress Stories:** REPLAN mode requires user confirmation; Epics with active Stories get warnings, not silent changes\n- **Linear title format:** \"Epic {Next Epic Number}: {Domain Title}\" — sequential numbering from kanban_board.md\n\n---\n\n## Definition of Done\n\nBefore completing work, verify ALL checkpoints:\n\n**✅ Discovery Complete (Phase 1):**\n- [ ] Team ID loaded from kanban_board.md\n- [ ] Next Epic Number loaded from kanban_board.md\n- [ ] Documentation scanned (requirements.md, architecture.md, tech_stack.md)\n- [ ] HTML files scanned (if frontend exists)\n- [ ] Infrastructure Epic decision made (YES\u002FNO based on project conditions)\n\n**✅ Scope Analysis Complete (Phase 2):**\n- [ ] Domains auto-identified from docs + HTML\n- [ ] Infrastructure Epic (Epic 0) included if applicable\n- [ ] Epic list built (Epic 0-N or Epic 1-N)\n- [ ] User confirmed Epic structure (CONTROL POINT 1)\n\n**✅ Existing Epics Checked (Phase 3):**\n- [ ] Epic Story Counters read from kanban_board.md\n- [ ] Existing Epic count determined (0 → CREATE, ≥1 → REPLAN)\n\n**✅ Epic Preparation Complete (Phase 4 - CREATE only):**\n- [ ] Q1-Q5 auto-extracted for ALL domains\n- [ ] User provided missing information if needed (batch question)\n- [ ] ALL Epic documents generated (Epic 0-N indexes)\n\n**✅ Epic Creation Complete (Phase 5a - CREATE only):**\n- [ ] Batch preview shown with Epic 0-N indexes\n- [ ] User confirmed preview (CONTROL POINT 2)\n- [ ] ALL Epics created (Linear or file mode) with \"Epic {N}: {Title}\" format (N = Next Epic Number)\n- [ ] kanban_board.md updated after EACH Epic:\n  - Next Epic Number incremented by 1\n  - Epic Story Counters row added\n  - Epics Overview updated\n- [ ] Summary displayed with all Epic URLs\n- [ ] Coordinator `epic-plan` summary recorded during finalize\n\n**✅ Epic Replan Complete (Phase 5b - REPLAN only):**\n- **MANDATORY READ:** Load `references\u002Freplan_workflow.md` for full checklist\n- [ ] Coordinator `epic-plan` summary recorded during finalize\n\n**Output:** List of Linear Project URLs (Epic {N}: {Title}) + Next Epic Number value\n\n---\n\n## Example Usage\n\n**Request:** \"Create epics for e-commerce platform\"\n\n**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 in Linear: Epic 11-16)\n\n**Result:** 6 Epics created (Epic 0-5 internal indexes, Epic 11-16 Linear titles)\n\n---\n\n## Phase 6: Meta-Analysis\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fmeta_analysis_protocol.md`\n\nSkill type: `planning-coordinator`. Run after all phases complete. Output to chat using the `planning-coordinator` format.\n\n## Reference Files\n\n- **MANDATORY READ:** Load `shared\u002Freferences\u002Fenvironment_state_contract.md`\n- **MANDATORY READ:** Load `shared\u002Freferences\u002Fstorage_mode_detection.md`\n- **[MANDATORY] Problem-solving approach:** `shared\u002Freferences\u002Fproblem_solving.md`\n- **Orchestrator lifecycle:** `shared\u002Freferences\u002Forchestrator_pattern.md`\n- **Auto-discovery patterns:** `shared\u002Freferences\u002Fauto_discovery_pattern.md`\n- **Decompose-first pattern:** `shared\u002Freferences\u002Fdecompose_first_pattern.md`\n- **Numbering conventions:** `shared\u002Freferences\u002Fnumbering_conventions.md` (Epic 0 reserved, Linear numbering)\n- **Issue creation workflow:** `shared\u002Freferences\u002Fissue_creation_workflow.md`\n- **linear_integration.md:** Discovery patterns + Linear API reference (moved to `shared\u002Ftemplates\u002Flinear_integration.md`)\n- **epic_template_universal.md:** Epic template structure\n- **replan_workflow.md:** Complete REPLAN mode workflow (Phase 5b)\n\n---\n\n## Best Practices\n\n- **Research first:** Scan docs (requirements.md, architecture.md, tech_stack.md) + HTML before asking user\n- **Epic 0 for Infrastructure:** Reserved index for Infrastructure Epic; business domains start from Epic 1\n- **Business Epic grouping:** 1 Epic = 5-10 Stories = 1 business capability (not technical components)\n- **Auto-extraction:** Extract Q1-Q5 from docs before asking user; ask only for missing info\n- **Linear Title:** \"Epic {Next Epic Number}: {Domain}\" format\n- **Business-focused Scope:** List USER CAPABILITIES, not technical tasks\n- **Measurable criteria:** \"\u003C200ms\" not \"fast\"; \">98% login rate\" not \"reliable\"\n- **No code snippets:** High-level features and goals only\n\n---\n\n**Version:** 8.0.0\n**Last Updated:** 2026-04-05\n","> **Paths:** File paths (`shared\u002F`, `references\u002F`, `..\u002Fln-*`) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. If `shared\u002F` is missing, fetch files via WebFetch from `https:\u002F\u002Fraw.githubusercontent.com\u002Flevnikolaevich\u002Fclaude-code-skills\u002Fmaster\u002Fskills\u002F{path}`.\n\n# Epic Coordinator\n\n**Type:** L2 Domain Coordinator\n**Category:** 2XX Planning\n\nUniversal Epic management coordinator that handles both creation and replanning through scope decomposition.\n\n## Purpose\n\nCoordinates 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.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Start new scope\u002Finitiative requiring decomposition into multiple logical domains (CREATE mode)\n- Break down large architectural requirement into Epics\n- Update existing Epics when scope\u002Frequirements change (REPLAN mode)\n- Rebalance Epic scopes within an initiative\n- Add new Epics to existing initiative structure\n- First step in project planning (scope → Epics → Stories → Tasks)\n- Define clear scope boundaries and success criteria for each domain\n\n**Output:** 3-7 Linear Projects (logical domains\u002Fmodules)\n\n## Runtime Contract\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fcoordinator_runtime_contract.md`, `shared\u002Freferences\u002Fepic_planning_runtime_contract.md`, `shared\u002Freferences\u002Fepic_plan_summary_contract.md`\n\nRuntime family: `epic-planning-runtime`\n\nIdentifier:\n- scope identifier\n\nPhases:\n1. `PHASE_0_CONFIG`\n2. `PHASE_1_DISCOVERY`\n3. `PHASE_2_RESEARCH`\n4. `PHASE_3_PLAN`\n5. `PHASE_4_MODE_DETECTION`\n6. `PHASE_5_PREVIEW`\n7. `PHASE_6_DELEGATE`\n8. `PHASE_7_FINALIZE`\n9. `PHASE_8_SELF_CHECK`\n\nDecision handling:\n- preview\u002Fconfirmation is runtime `PAUSED + pending_decision`\n- ln-210 writes final `epic-plan` summary for ln-200 when used as downstream coordinator\n\nCoordinator artifact flow:\n- execution remains inline inside ln-210\n- `PHASE_7_FINALIZE` writes the coordinator summary through `node shared\u002Fscripts\u002Fepic-planning-runtime\u002Fcli.mjs record-plan-summary`\n- managed parent flow stores the artifact at `.hex-skills\u002Fruntime-artifacts\u002Fruns\u002F{parent_run_id}\u002Fepic-plan\u002F{identifier}.json`\n\n## Worker Invocation (MANDATORY)\n\n| Phase | Worker | Context |\n|-------|--------|---------|\n| 6 | None | CREATE\u002FREPLAN execution is inline inside ln-210; no downstream Skill worker is delegated |\n\n**Downstream contract:** ln-210 is itself a worker for `ln-200` and writes `epic-plan` machine-readable output after inline Epic create\u002Freplan execution completes.\n\n## TodoWrite format (mandatory)\n\n```text\n- Phase 1: Discover scope and project context (pending)\n- Phase 2: Research only what changes Epic boundaries (pending)\n- Phase 3: Build ideal Epic plan (pending)\n- Phase 4: Detect mode and validate Infra Epic need (pending)\n- Phase 5: Preview and confirm plan (pending)\n- Phase 6: Execute create\u002Freplan flow (pending)\n- Phase 7: Finalize epic-plan summary (pending)\n- Phase 8: Self-check (pending)\n```\n\n## Core Concepts\n\n### Decompose-First Pattern\n\n**Key principle:** ALWAYS analyze scope and build IDEAL Epic plan FIRST, THEN check existing Epics to determine mode:\n- **No existing Epics** → CREATE MODE (generate and create all Epics)\n- **Has existing Epics** → REPLAN MODE (compare, determine operations: KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE)\n\n**Rationale:** Ensures consistent Epic decomposition based on current scope requirements, independent of existing Epic structure (which may be outdated or suboptimal).\n\n### Epic 0 Reserved for Infrastructure\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fnumbering_conventions.md` for Epic 0 rules, when to use it, and Linear numbering.\n\n---\n\n## Inputs\n\n| Input | Required | Source | Description |\n|-------|----------|--------|-------------|\n| `scopeDoc` | Yes | args, project docs, user | Scope document for Epic decomposition |\n\n**Resolution:** Epic Resolution Chain (adapted: scope doc discovery).\n**Fallback:** IF no scope doc found → AskUserQuestion: \"What should be decomposed into Epics?\"\n\n## Workflow\n\n### Phase 0: Tools Config\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fenvironment_state_contract.md`, `shared\u002Freferences\u002Fstorage_mode_detection.md`, `shared\u002Freferences\u002Finput_resolution_pattern.md`\n\nExtract: `task_provider` = Task Management → Provider\n\n### Phase 1: Discovery\n\n**Objective:** Gather the minimum context required to shape Epic boundaries before any preview or mutation.\n\n**Step 0: Resolve scopeDoc** (per input_resolution_pattern.md, adapted for scope):\n- IF args provided (scope description or doc path) → use args\n- ELSE IF `docs\u002Fproject\u002Frequirements.md` exists → use as scope source\n- ELSE IF `docs\u002Frequirements.md` exists → use as scope source\n- ELSE → AskUserQuestion: \"What should be decomposed into Epics?\"\n\n**Step 1: Load Configuration**\n\nAuto-discovers Team ID and Next Epic Number from `docs\u002Ftasks\u002Fkanban_board.md`:\n- **Team ID:** Reads Linear Configuration table → Fallback: Ask user directly\n- **Next Epic Number:** Reads Next Epic Number field → Fallback: Ask user directly\n\n**MANDATORY READ:** Load `CLAUDE.md` — sections \"Configuration Auto-Discovery\" and \"Linear Integration\".\n\n### Phase 2: Research\n\n**Objective:** Research only what changes Epic boundaries, Infra Epic need, or batch preview quality.\n\n**Step 1: Project Research**\n\n**Objective:** Research project documentation AND frontend code to understand context BEFORE asking user questions.\n\n**Process:**\n\n1. **Document Scan:**\n   - Use `Glob` to find: `docs\u002Frequirements.md`, `docs\u002Farchitecture.md`, `docs\u002Ftech_stack.md`\n   - Use `Read` to load found documents\n\n2. **Frontend Code Scan (if applicable):**\n   - Use `Glob` to find: `**\u002F*.html`, `src\u002F**\u002F*.html`, `public\u002F**\u002F*.html`, `templates\u002F**\u002F*.html`\n   - Use `Read` to load HTML files\n   - Extract functional domains from:\n     - **Navigation menus:** `\u003Cnav>`, `\u003Ca href>` links reveal feature areas\n     - **Forms:** Input fields reveal data models (user registration, login, checkout)\n     - **Page titles:** `\u003Ch1>`, `\u003Ctitle>` tags reveal feature names\n     - **Route patterns:** URL structures reveal domain boundaries\n\n   **Example HTML extraction:**\n   ```html\n   \u003Cnav>\n     \u003Ca href=\"\u002Fproducts\">Products\u003C\u002Fa>\n     \u003Ca href=\"\u002Fcart\">Shopping Cart\u003C\u002Fa>\n     \u003Ca href=\"\u002Fcheckout\">Checkout\u003C\u002Fa>\n   \u003C\u002Fnav>\n   \u003C!-- Reveals domains: Product Catalog, Shopping Cart, Payment -->\n   ```\n\n3. **Extract key information from docs + HTML:**\n   - **Business objectives:** What is the project trying to achieve? (from requirements.md)\n   - **User personas:** Who will use the system? (from requirements.md)\n   - **Major functional domains:** What are the main modules\u002Fareas? (from requirements.md, architecture.md, HTML navigation)\n   - **Technical stack:** What technologies mentioned? (from tech_stack.md, architecture.md, HTML meta\u002Fscript tags)\n   - **Infrastructure requirements:** Any mention of logging, monitoring, deployment, CI\u002FCD, security, performance optimization?\n\n4. **Combine findings:**\n   - Merge domains from docs + HTML (deduplicate, consolidate similar)\n   - Example: \"User Auth\" (from docs) + \"Login\" (from HTML) → \"User Management\"\n\n**Fallback:** If docs AND HTML missing → Skip to scope questioning; do not invent research-heavy detail\n\n**Step 2: Infrastructure Epic Decision**\n\n**Objective:** Determine if Infrastructure Epic (Epic 0) should be proposed.\n\n**Criteria for Infrastructure Epic:**\n\n✅ **PROPOSE Infrastructure Epic (Epic 0)** if ANY of:\n1. **New project** (no `docs\u002Finfrastructure.md` found, no Epic \"Infrastructure\" in kanban_board.md Epic Story Counters)\n2. **Multi-stack** (requirements.md or tech_stack.md mentions frontend AND backend on different stacks - e.g., React + Python)\n3. **Infrastructure requirements mentioned** in requirements.md, architecture.md:\n   - Logging, Error Handling\n   - Monitoring, Alerting\n   - Hosting, Deployment, CI\u002FCD\n   - Security (authentication, authorization, encryption, secrets management)\n   - Performance optimization (caching, rate limiting, database optimization)\n\n❌ **DO NOT propose** if:\n1. Existing project (found `docs\u002Finfrastructure.md`)\n2. Epic Story Counters shows existing Epic with \"Infrastructure\" in title\n3. User explicitly declined in previous interaction\n\n**Decision:** Store YES\u002FNO decision for use in Phase 2\n\n**Output from Discovery + Research:**\n- Team ID, Next Epic Number\n- Project context (business goals, domains from docs + HTML, tech stack, infrastructure needs) - if found\n- Infrastructure Epic decision (YES\u002FNO)\n\n---\n\n### Phase 2: Scope Analysis & Epic Planning\n\n**Objective:** Identify logical domains and build Epic structure inline.\n\n**Process:**\n\n**Step 1: Auto-identify Domains**\n\nUse research context from Phase 1 Step 2:\n- If project docs found → Extract domains from requirements.md, architecture.md (module names, feature areas)\n- If HTML found → Extract domains from navigation, forms, page structures\n- Combine and deduplicate domains\n- Example: \"User Auth\" + \"Profile Management\" → \"User Management\"\n\n**Fallback:** If no docs\u002FHTML → Ask user basic questions (scope, objectives, functional areas)\n\n**Step 2: Build Epic List (inline)**\n\n**IF Infrastructure needed (from Phase 1 Step 3):**\n- **Epic 0: Infrastructure & Operations** — per `numbering_conventions.md` §Epic 0 Content Template\n- **Epic 1-N:** Business domains (from Step 1)\n\n**ELSE:**\n- **Epic 1-N:** Business domains only\n\n**Step 3: Determine Epic Count**\n\n- Infrastructure Epic (if applicable): +1 Epic\n- Simple Initiative (1-3 domains): 3-4 Epics total\n- Medium Initiative (4-6 domains): 5-7 Epics total\n- Complex Initiative (7+ domains): 7-10 Epics total (rare)\n- **Max 10 Epics per Initiative** (enforced)\n\n**Step 4: Show Proposed Epic Structure (USER CONTROL POINT 1)**\n\nDisplay identified Epics with initiative-internal indexes:\n\n```\n? Proposed Epic Structure:\n\nEpic 0: Infrastructure & Operations\nEpic 1: User Management\nEpic 2: Product Catalog\nEpic 3: Shopping Cart\nEpic 4: Payment Processing\nEpic 5: Order Management\n\nTotal: 6 Epics\nType \"confirm\" to proceed, or modify the list\n```\n\n**Step 5: User Confirmation**\n\n- User types \"confirm\" → Proceed to Phase 3\n- User modifies → Update domain list, show again\n\n**Output:** Approved Epic list (Epic 0-N or Epic 1-N) ready for next phase\n\n**Read-only preparation rule:** Domain extraction, HTML scanning, and Infrastructure Epic detection may be gathered up front. Do not move into creation\u002Freplan until preview is confirmed.\n\n### Epic Quality Gate\n\n**Context:** Structured quality check before creating Epics ensures scope clarity and prevents rework during Story decomposition.\n\nFor each proposed Epic, validate 5 criteria:\n\n| # | Criterion | PASS | FAIL |\n|---|-----------|------|------|\n| 1 | **Scope clarity** | Clear In\u002FOut boundaries | Vague or overlapping with other Epics |\n| 2 | **Success criteria** | Measurable (\"\u003C200ms\", \">98%\") | Vague (\"fast\", \"reliable\") |\n| 3 | **Risk documentation** | Dependencies\u002Fblockers identified | Risks section empty or generic |\n| 4 | **Balance** | Similar scope size across Epics (±30%) | One Epic has 80% of work |\n| 5 | **Independence** | No circular Epic dependencies | Epics block each other |\n\n**Quality Score = count of PASS criteria (0-5)**\n- 5\u002F5: Proceed to creation\n- 3-4\u002F5: Show warnings, user decides\n- \u003C3\u002F5: Rework Epic structure before creation\n\n---\n\n### Phase 3: Check Existing Epics\n\n**Objective:** Determine CREATE vs REPLAN mode.\n\nQuery kanban_board.md and task provider for existing Epics:\n\n1. **Read Epic Story Counters** table in kanban_board.md\n2. **IF task_provider == \"linear\":** `list_projects(team=teamId)` to cross-check\n   **ELSE IF task_provider == \"github\":** `gh issue list -R {REPO} --label epic --state all --json number,title` to cross-check\n   **ELSE:** `Glob(\"docs\u002Ftasks\u002Fepics\u002F*\u002Fepic.md\")` to list file-based Epics\n3. **Count existing Epic rows** (excludes header row)\n\n**Decision Point:**\n- **Count = 0** → No existing Epics → **Proceed to Phase 4+5a (CREATE MODE)**\n- **Count ≥ 1** → Existing Epics found → **Proceed to Phase 5b (REPLAN MODE)**\n\n---\n\n### Phase 4: Epic Preparation (CREATE mode only)\n\n**Trigger:** Phase 3 determined Count = 0 (CREATE MODE)\n\n**Objective:** Prepare all Epic documents before batch preview.\n\n**Step 1: Auto-extract Information for ALL Domains**\n\nFor EACH domain (from Phase 2), extract answers to 5 key questions from project documentation:\n\n1. **Q1: Business goal** - Why this Epic\u002Fdomain matters\n   - **Source:** requirements.md (domain objectives section)\n   - **Extraction:** \"The [domain] module aims to...\" or \"Goal: [objective]\"\n   - **Fallback:** architecture.md (module purpose)\n\n2. **Q2: Key features in scope** - 3-5 bullet points of capabilities\n   - **Source:** requirements.md (functional requirements for this domain)\n   - **Extraction:** Bulleted lists under domain heading, feature descriptions\n   - **Fallback:** architecture.md (component responsibilities)\n\n3. **Q3: Out of scope** - Prevent scope creep\n   - **Source:** requirements.md (explicitly excluded features section)\n   - **Extraction:** \"Not in scope:\", \"Future versions:\", \"Out of scope for [domain]:\"\n   - **Fallback:** Infer from requirements.md (features NOT mentioned in domain)\n\n4. **Q4: Success criteria** - Measurable outcomes\n   - **Source:** requirements.md (acceptance criteria, metrics, KPIs for domain)\n   - **Extraction:** Performance targets, user metrics, quality gates\n   - **Fallback:** Generic criteria based on domain type (e.g., \"\u003C200ms API response\" for backend)\n\n5. **Q5: Known risks** (Optional) - Blockers, dependencies\n   - **Source:** architecture.md (technical constraints, dependencies section)\n   - **Extraction:** \"Risks:\", \"Dependencies:\", \"Constraints:\"\n   - **Fallback:** User input if critical, otherwise leave as \"To be determined during Story planning\"\n\n**If extraction incomplete:**\n- Show extracted information to user\n- Ask ONCE for ALL missing information across ALL domains (batch question, not per-domain)\n- Example: \"For Epic 1 (User Management), I couldn't find success criteria. For Epic 2 (Payment), I couldn't find risks. Please provide...\"\n\n**Step 2: Generate ALL Epic Documents**\n\nFor EACH domain, generate complete Epic document using epic_template_universal.md:\n\n**Epic indexing:**\n- IF Infrastructure Epic exists (from Phase 1 Step 3) → Epic 0 (Infrastructure), Epic 1-N (business domains)\n- ELSE → Epic 1-N (business domains only)\n\n**Linear Title (will be created in Phase 5a):**\n- Use Next Epic Number from kanban_board.md for sequential numbering\n- Format: \"Epic {Next Epic Number}: {Domain Title}\"\n- Example: Next = 11 → \"Epic 11: Infrastructure & Operations\"\n\n**Sections:** Goal, Scope In\u002FOut, Success Criteria, Dependencies, Risks & Mitigations, Architecture Impact, Phases\n\n**Use extracted information** from Step 1 for all sections\n\n**Output:** All Epic documents ready (Epic 0-N), indexed within initiative\n\n---\n\n### Phase 5a: Epic Creation (CREATE mode)\n\n**Trigger:** Phase 4 completed preparation\n\n**Objective:** Show preview, get confirmation, create all Epics in Linear.\n\n**Step 1: Show Batch Preview (USER CONTROL POINT 2)**\n\nDisplay ALL generated Epics with initiative-internal indexes:\n\n```\n? Epic Batch Preview (6 Epics to create)\n\n═══════════════════════════════════════════════\nEpic 0: Infrastructure & Operations\n═══════════════════════════════════════════════\nGoal: Establish foundational infrastructure, deployment pipeline, and operational capabilities to support all business Epics\n\nScope In:\n- Logging and error handling framework\n- Monitoring and alerting system\n- CI\u002FCD pipeline (GitHub Actions)\n- Security baseline (secrets management, encryption)\n- Performance optimization (caching, rate limiting)\n\nScope Out:\n- Application-specific business logic\n- User-facing features\n- Domain-specific integrations\n\nSuccess Criteria:\n- All deployments automated via CI\u002FCD (\u003C10 min deployment time)\n- System uptime ≥99.9%\n- API response time \u003C200ms (p95)\n- Security audit passed\n\n═══════════════════════════════════════════════\nEpic 1: User Management\n═══════════════════════════════════════════════\nGoal: Enable users to register, authenticate, and manage their accounts securely\n\nScope In:\n- User registration with email verification\n- Login\u002Flogout with JWT authentication\n- Password reset flow\n- Profile management\n\nScope Out:\n- Social login (OAuth) - planned for Epic 5\n- Multi-factor authentication - future version\n- User roles and permissions - part of Epic 3\n\nSuccess Criteria:\n- User registration \u003C2 seconds\n- Login success rate >98%\n- Password reset completion rate >90%\n\n[... all other Epics ...]\n\n───────────────────────────────────────────────\nTotal: 6 Epics (Epic 0: Infrastructure, Epic 1-5: Business domains)\nType \"confirm\" to create all Epics in Linear\n```\n\n**Step 2: User Confirmation**\n\n- User types \"confirm\" → Proceed to Step 3\n- User provides feedback → Adjust documents in Phase 4, regenerate preview, repeat\n\n### Stop Conditions (Preview Loop)\n\n| Condition | Action |\n|-----------|--------|\n| User confirms (types \"confirm\" or approves) | STOP — proceed to creation |\n| User feedback cycle >= 3 | STOP — ASK: \"3 revision cycles. Proceed with current, or abandon?\" |\n| Epic Quality Gate score \u003C 3\u002F5 after 2 rework attempts | STOP — ESCALATE: \"Cannot achieve quality threshold. Review scope.\" |\n\n**Step 3: Create All Epics**\n\nFor EACH Epic (in sequential order for numbering consistency):\n\n1. **Get Next Epic Number:**\n   - Read current Next Epic Number from kanban_board.md\n   - Example: 11\n\n2. **Create Epic (provider-dependent):**\n\n   **IF task_provider == \"linear\":**\n   - `save_project({name: \"Epic {N}: {Title}\", description: epic_markdown, team: teamId, state: \"planned\"})`\n   - Collect returned URL\n\n   **ELSE IF task_provider == \"github\":**\n   - `gh issue create -R {REPO} --title \"Epic {N}: {Title}\" --body \"{epic_markdown}\" --label \"epic\"`\n   - Add to project + set status Backlog (per provider_github.md)\n   - Collect returned issue URL\n\n   **ELSE (file mode):**\n   - `mkdir -p docs\u002Ftasks\u002Fepics\u002Fepic-{N}-{slug}\u002Fstories\u002F`\n   - `Write(\"docs\u002Ftasks\u002Fepics\u002Fepic-{N}-{slug}\u002Fepic.md\")` with Epic markdown + file headers (`**Status:** Backlog`, `**Created:** {date}`)\n\n3. **Update kanban_board.md:**\n   - Increment Next Epic Number by 1 in Linear Configuration table\n   - Add new row to Epic Story Counters: `Epic {N} | - | US001 | - | EPN_01`\n   - Add to \"Epics Overview\" → Active: `- [Epic {N}: Title](link) - Backlog`\n\n4. **Collect URL** (Linear\u002FGitHub mode) or file path (file mode)\n\n**Step 4: Display Summary**\n\n```\n✅ Created 6 Epics for initiative\n\nEpics created:\n- Epic 11: Infrastructure & Operations (Epic 0 index) [link]\n- Epic 12: User Management (Epic 1 index) [link]\n- Epic 13: Product Catalog (Epic 2 index) [link]\n- Epic 14: Shopping Cart (Epic 3 index) [link]\n- Epic 15: Payment Processing (Epic 4 index) [link]\n- Epic 16: Order Management (Epic 5 index) [link]\n\nNext Epic Number updated to: 17\n\nNext Steps:\n1. Use ln-220-story-coordinator to create Stories for each Epic (run 6 times)\n2. OR use ln-200-scope-decomposer to automate Epic + Story creation\n```\n\n**Output:** Created Epic URLs + summary\n\n**TodoWrite format:** Add Phase 1-5a todos + one todo per Epic + kanban update. Mark in_progress\u002Fcompleted.\n\n---\n\n### Phase 5b: Replan Mode (Existing Epics Found)\n\n**Trigger:** Phase 3 determined Count ≥ 1 (REPLAN MODE)\n\n**Full workflow:** **MANDATORY READ:** Load `references\u002Freplan_workflow.md` for complete REPLAN process.\n\n**Summary:**\n1. Load existing Epics (IF task_provider == \"linear\": from Linear API | IF task_provider == \"github\": from `gh issue list --label epic` | ELSE: from `docs\u002Ftasks\u002Fepics\u002F*\u002Fepic.md`)\n2. Compare IDEAL plan vs existing → Categorize: KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE\n3. Show replan summary with diffs and warnings\n4. User confirmation required\n5. Execute operations (per provider_*.md) + update kanban_board.md\n\n**Constraints:** Never auto-update\u002Farchive Epics with Stories In Progress. Never delete (use archived). Always require confirmation.\n\n---\n\n## Critical Rules\n\n- **Decompose-First:** Always build IDEAL Epic plan before checking existing Epics (prevents anchoring to outdated structure)\n- **Epic 0 reserved for Infrastructure:** Business domains start from Epic 1; Epic 0 auto-proposed when new project, multi-stack, or infra requirements detected\n- **Auto-extract before asking:** Extract Q1-Q5 from docs (requirements.md, architecture.md, tech_stack.md) + HTML; ask user only for missing info in a single batch\n- **Never auto-update Epics with In Progress Stories:** REPLAN mode requires user confirmation; Epics with active Stories get warnings, not silent changes\n- **Linear title format:** \"Epic {Next Epic Number}: {Domain Title}\" — sequential numbering from kanban_board.md\n\n---\n\n## Definition of Done\n\nBefore completing work, verify ALL checkpoints:\n\n**✅ Discovery Complete (Phase 1):**\n- [ ] Team ID loaded from kanban_board.md\n- [ ] Next Epic Number loaded from kanban_board.md\n- [ ] Documentation scanned (requirements.md, architecture.md, tech_stack.md)\n- [ ] HTML files scanned (if frontend exists)\n- [ ] Infrastructure Epic decision made (YES\u002FNO based on project conditions)\n\n**✅ Scope Analysis Complete (Phase 2):**\n- [ ] Domains auto-identified from docs + HTML\n- [ ] Infrastructure Epic (Epic 0) included if applicable\n- [ ] Epic list built (Epic 0-N or Epic 1-N)\n- [ ] User confirmed Epic structure (CONTROL POINT 1)\n\n**✅ Existing Epics Checked (Phase 3):**\n- [ ] Epic Story Counters read from kanban_board.md\n- [ ] Existing Epic count determined (0 → CREATE, ≥1 → REPLAN)\n\n**✅ Epic Preparation Complete (Phase 4 - CREATE only):**\n- [ ] Q1-Q5 auto-extracted for ALL domains\n- [ ] User provided missing information if needed (batch question)\n- [ ] ALL Epic documents generated (Epic 0-N indexes)\n\n**✅ Epic Creation Complete (Phase 5a - CREATE only):**\n- [ ] Batch preview shown with Epic 0-N indexes\n- [ ] User confirmed preview (CONTROL POINT 2)\n- [ ] ALL Epics created (Linear or file mode) with \"Epic {N}: {Title}\" format (N = Next Epic Number)\n- [ ] kanban_board.md updated after EACH Epic:\n  - Next Epic Number incremented by 1\n  - Epic Story Counters row added\n  - Epics Overview updated\n- [ ] Summary displayed with all Epic URLs\n- [ ] Coordinator `epic-plan` summary recorded during finalize\n\n**✅ Epic Replan Complete (Phase 5b - REPLAN only):**\n- **MANDATORY READ:** Load `references\u002Freplan_workflow.md` for full checklist\n- [ ] Coordinator `epic-plan` summary recorded during finalize\n\n**Output:** List of Linear Project URLs (Epic {N}: {Title}) + Next Epic Number value\n\n---\n\n## Example Usage\n\n**Request:** \"Create epics for e-commerce platform\"\n\n**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 in Linear: Epic 11-16)\n\n**Result:** 6 Epics created (Epic 0-5 internal indexes, Epic 11-16 Linear titles)\n\n---\n\n## Phase 6: Meta-Analysis\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Fmeta_analysis_protocol.md`\n\nSkill type: `planning-coordinator`. Run after all phases complete. Output to chat using the `planning-coordinator` format.\n\n## Reference Files\n\n- **MANDATORY READ:** Load `shared\u002Freferences\u002Fenvironment_state_contract.md`\n- **MANDATORY READ:** Load `shared\u002Freferences\u002Fstorage_mode_detection.md`\n- **[MANDATORY] Problem-solving approach:** `shared\u002Freferences\u002Fproblem_solving.md`\n- **Orchestrator lifecycle:** `shared\u002Freferences\u002Forchestrator_pattern.md`\n- **Auto-discovery patterns:** `shared\u002Freferences\u002Fauto_discovery_pattern.md`\n- **Decompose-first pattern:** `shared\u002Freferences\u002Fdecompose_first_pattern.md`\n- **Numbering conventions:** `shared\u002Freferences\u002Fnumbering_conventions.md` (Epic 0 reserved, Linear numbering)\n- **Issue creation workflow:** `shared\u002Freferences\u002Fissue_creation_workflow.md`\n- **linear_integration.md:** Discovery patterns + Linear API reference (moved to `shared\u002Ftemplates\u002Flinear_integration.md`)\n- **epic_template_universal.md:** Epic template structure\n- **replan_workflow.md:** Complete REPLAN mode workflow (Phase 5b)\n\n---\n\n## Best Practices\n\n- **Research first:** Scan docs (requirements.md, architecture.md, tech_stack.md) + HTML before asking user\n- **Epic 0 for Infrastructure:** Reserved index for Infrastructure Epic; business domains start from Epic 1\n- **Business Epic grouping:** 1 Epic = 5-10 Stories = 1 business capability (not technical components)\n- **Auto-extraction:** Extract Q1-Q5 from docs before asking user; ask only for missing info\n- **Linear Title:** \"Epic {Next Epic Number}: {Domain}\" format\n- **Business-focused Scope:** List USER CAPABILITIES, not technical tasks\n- **Measurable criteria:** \"\u003C200ms\" not \"fast\"; \">98% login rate\" not \"reliable\"\n- **No code snippets:** High-level features and goals only\n\n---\n\n**Version:** 8.0.0\n**Last Updated:** 2026-04-05\n",{"name":5,"license":14,"description":7},"main","7bf2279c8a65758319526a721d5c4b75683aec9c","skills\u002Flevn-ln-210-epic-coordinator",3,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections","https:\u002F\u002Fgithub.com\u002Fboisenoise","2026-11-14 14:18:11",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add boisenoise\u002Fskills-collections --skill ln-210-epic-coordinator",{"tool":47,"command":48},"bunx","bunx skills add boisenoise\u002Fskills-collections --skill ln-210-epic-coordinator",{"tool":50,"command":51},"pnpm","pnpm dlx skills add boisenoise\u002Fskills-collections --skill ln-210-epic-coordinator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Flevn-ln-210-epic-coordinator\u002FSKILL.md",true,[55,61],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fepic_template_universal.md","REFERENCE","参考文档",2250,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Flevn-ln-210-epic-coordinator\u002Freferences\u002Fepic_template_universal.md",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Freplan_workflow.md",3685,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Flevn-ln-210-epic-coordinator\u002Freferences\u002Freplan_workflow.md",[66,75,83,92,100,108],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M7B6HREHB53EHGGVZND7DDXN","scrapely-scrape","Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":74},"01M7B6GDNNN4HE662KA6KPF7GW","lumify-odds","Lumify's hosted sports MCP\u002FREST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":91},"01M743PZMJW2GEKG5J199GPSK7","sync-lipsync","Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":91},"01M743MMN3CKTJVNRSZMB684E5","music-for-robots","Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":91},"01M743KC2GN5WE11BSTWSSWD8B","imagera-media","Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":91},"01M743HDJNZQA8A4VT68NWGWQJ","deja-history","Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FSKILL.md",[],[]]