[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EGDJ9T763DVW1VFPFR1EVY":3,"skill-same:01M6EGDJ9T763DVW1VFPFR1EVY":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"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":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6EGDJ9T763DVW1VFPFR1EVY","ln-222-story-replanner",null,"Replans Stories when Epic requirements change. Compares IDEAL vs existing, categorizes operations (KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE), executes in Linear.","levalencia\u002Fagent-god-mode","levalencia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6962857?v=4","01M6EB0FZZ4BPQPC4HET4QY6NM","Luis Valencia ","01M6EB0G4HWHPWW0H9X7QKSAHP",3,"MIT","https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode\u002Fblob\u002Fmain\u002Forganized-skills\u002Fln-222-story-replanner\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28],"Story","ln 222 story replanner","change","create","update","linear","operations","requirements","keep","EPIC","2026-11-10 10:12:30",false,"---\nname: ln-222-story-replanner\ndescription: Replans Stories when Epic requirements change. Compares IDEAL vs existing, categorizes operations (KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE), executes in Linear.\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.\n\n# Story Replanner\n\n## Purpose\nReplans existing Stories when Epic requirements change. Compares IDEAL plan vs existing Stories, categorizes operations (KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE), and executes changes in Linear. Invoked by ln-220-story-coordinator.\n\nUniversal replanner worker for updating Stories in Epic when requirements change. Invoked by ln-220-story-coordinator (count ≥ 1).\n\n## When Invoked\n\n**ln-220-story-coordinator REPLAN MODE (Phase 5b):**\n- Epic has existing Stories (Linear query count ≥ 1)\n- IDEAL plan generated (Phase 3)\n- Standards Research completed by ln-001 (Phase 2, may be updated)\n- Epic requirements changed (AC modified, features added\u002Fremoved, standards updated)\n- Parameters: `epicData`, `idealPlan`, `standardsResearch`, `existingStoryIds`, `teamId`, `autoApprove`\n\n## Input Parameters\n\n**From ln-220-story-coordinator:**\n\n```javascript\n{\n  epicData: {id, title, description},\n  idealPlan: [{number, title, statement, ac, technicalNotes, estimatedHours, testCounts}],\n  standardsResearch: \"OAuth 2.0 (RFC 6749)...\",  \u002F\u002F May differ from existing\n  existingStoryIds: [\"STORY-123\", \"STORY-124\"],  \u002F\u002F Metadata only\n  teamId: \"team-id\",\n  autoApprove: true\n}\n```\n\n## Inputs\n\n| Input | Required | Source | Description |\n|-------|----------|--------|-------------|\n| `epicId` | Yes | args, kanban, user | Epic to process |\n\n**Resolution:** Epic Resolution Chain.\n**Status filter:** Active (planned\u002Fstarted)\n\n## Tools Config\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Ftools_config_guide.md`, `shared\u002Freferences\u002Fstorage_mode_detection.md`, `shared\u002Freferences\u002Finput_resolution_pattern.md`\n\nExtract: `task_provider` = Task Management → Provider\n\n## Workflow\n\n### Phase 1: Load Existing Stories\n\n**Step 0: Resolve epicId** (standalone only — skip if epicData provided by ln-220 orchestrator):\nRun Epic Resolution Chain per guide.\n\n**Progressive Loading for token efficiency:**\n\n**Step 1:** Orchestrator provides Story metadata (ID, title, status)\n\n**Step 2:** Load FULL descriptions ONE BY ONE\n\n**IF task_provider == \"linear\":**\n```javascript\nfor each story_id:\n  get_issue(id=story_id)  \u002F\u002F ~5,000 tokens per Story\n```\n\n**ELSE (file mode):**\n```javascript\nfor each story_id:\n  Read(\"docs\u002Ftasks\u002Fepics\u002Fepic-{N}-*\u002Fstories\u002Fus{NNN}-*\u002Fstory.md\")  \u002F\u002F ~5,000 tokens per Story\n```\n\n**Token Rationale:** 10 Stories × 5,000 = 50,000 tokens. Load sequentially to manage context.\n\n**Step 3:** Parse 9 sections for each Story\n- Story Statement (persona, capability, value)\n- Context\n- Acceptance Criteria (3-5 GWT)\n- Implementation Tasks\n- Test Strategy\n- Technical Notes (**Standards Research** in Library Research subsection)\n- Definition of Done\n- Dependencies\n- Assumptions\n\n**Step 4:** Extract metadata\n- ID, number, title, status\n- Persona, capability, value\n- AC scenarios\n- Standards Research (from Technical Notes)\n\n**Output:** Array of N existing Story structures ready for comparison.\n\n### Phase 2: Compare IDEAL vs Existing\n\n**MANDATORY READ:** Load [replan_algorithm_stories.md](references\u002Freplan_algorithm_stories.md) for replan algorithm.\n\n**Match by goal, persona, capability:**\n\nFor EACH Story in IDEAL:\n- Extract: Title, Persona, Capability\n- Search existing: Fuzzy match title, check persona\u002Fcapability overlap\n- Result: Match → KEEP\u002FUPDATE | No match → CREATE\n\nFor EACH existing Story:\n- Extract: Title, Persona, Capability (from Story Statement)\n- Search IDEAL: Fuzzy match\n- Result: Match → KEEP\u002FUPDATE | No match → OBSOLETE\n\n**Categorize operations:**\n\n| Operation | Criteria | Status Constraint | Action |\n|-----------|----------|-------------------|--------|\n| **KEEP** | Goal + Persona + Capability + AC + Standards Research same | Any | None |\n| **UPDATE** | Match + (AC OR Standards Research OR Technical Notes changed) | Backlog\u002FTodo ✅\u003Cbr>In Progress\u002FReview ⚠️\u003Cbr>Done ❌ | `update_issue` |\n| **OBSOLETE** | No match + Feature removed | Backlog\u002FTodo ✅\u003Cbr>In Progress\u002FReview ⚠️\u003Cbr>Done ❌ | `update_issue(state=\"Canceled\")` |\n| **CREATE** | In IDEAL + No match + New requirement | N\u002FA | Generate doc + `create_issue` |\n\n**Edge Cases:**\n\n| Case | Action |\n|------|--------|\n| **In Progress OBSOLETE** | ⚠️ NO auto-cancel, show warning |\n| **Done conflicts** | Preserve Done, CREATE follow-up |\n| **Story Split** (1 → 2+) | ⚠️ UPDATE first + CREATE new |\n| **Story Merge** (2+ → 1) | ⚠️ UPDATE first + OBSOLETE rest |\n| **Ambiguous match** (>70% similarity) | Show all, select highest |\n\n**Details:** [replan_algorithm_stories.md](references\u002Freplan_algorithm_stories.md)\n\n### Phase 3: Show Operations Summary\n\n```\nREPLAN SUMMARY for Epic 7: OAuth Authentication\n\nIDEAL PLAN:\n1. US004: Register OAuth client (Persona: Third-party developer)\n2. US005: Request access token ← AC5 ADDED! ← RFC 7636 PKCE ADDED!\n3. US006: Validate access token\n4. US009: Token scope management (NEW!)\n\nEXISTING STORIES:\n\n✓ US004 - Status: Done - KEEP\n⚠ US005 - Status: Todo - UPDATE\n   Changes: Add AC5, Add RFC 7636 to Technical Notes, Add 2 Integration tests\n   Diff (AC): + AC5 \"Given public client, When request with PKCE...\"\n   Diff (Technical Notes): + RFC 7636 (PKCE)\n✗ US008 - Status: Todo - OBSOLETE (feature removed)\n+ US009 - NEW (14h, 20 tests, OAuth 2.0 Scope standard)\n\nOPERATIONS: 2 keep, 1 update, 1 cancel, 1 create\n\nWARNINGS:\n- ⚠️ US005 (Todo): AC changed, Standards Research updated\n- ⚠️ US008 (Todo): Feature removed - check dependencies\n\nType \"confirm\" to execute.\n```\n\n**Diffs show:**\n- AC changes (line-by-line)\n- Standards Research changes (added\u002Fremoved RFCs)\n- Test Strategy changes (test counts)\n\n**Warnings for:**\n- Status conflicts (In Progress\u002FReview affected)\n- Story Split\u002FMerge detected\n- Ambiguous matches\n\n### Phase 4: User Confirmation\n\n**If autoApprove=true:** Skip → Phase 5\n**Otherwise:** Wait for \"confirm\"\n\n**Adjustment:** User can request changes → Recategorize → Show updated summary → Loop until \"confirm\"\n\n### Phase 5: Execute Operations\n\n**Sequence:** UPDATE → OBSOLETE → CREATE → Update kanban\n\n**UPDATE operations:**\n1. Generate new Story document (load via Template Loading logic)\n2. Validate INVEST (same as ln-221-story-creator Phase 2)\n3. **IF task_provider == \"linear\":** `save_issue({id, description: new_description})`\n   **ELSE:** `Edit(\"docs\u002Ftasks\u002Fepics\u002F...\u002Fstories\u002Fus{NNN}-*\u002Fstory.md\")` with new content\n4. **IF task_provider == \"linear\":** `create_comment({issueId, body: \"Story updated: ...\"})`\n   **ELSE:** `Write(\"...\u002Fstories\u002Fus{NNN}-*\u002Fcomments\u002F{ISO-timestamp}.md\")` with update note\n\n**OBSOLETE operations:**\n1. **IF task_provider == \"linear\":** `save_issue({id, state: \"Canceled\"})`\n   **ELSE:** `Edit` `**Status:**` line to `**Status:** Canceled` in story.md\n2. **IF task_provider == \"linear\":** `create_comment({issueId, body: \"Story canceled: ...\"})`\n   **ELSE:** `Write(\"...\u002Fcomments\u002F{ISO-timestamp}.md\")` with cancellation note\n\n**CREATE operations:**\n1. Generate Story document (same as ln-221-story-creator Phase 1)\n2. Validate INVEST\n3. **IF task_provider == \"linear\":** `save_issue({title, description, project: Epic.id, team: teamId, labels: [\"user-story\"], state: \"Backlog\"})`\n   **ELSE:** `mkdir -p ...\u002Fstories\u002Fus{NNN}-{slug}\u002Ftasks\u002F` + `Write story.md` with file headers\n\n**Update kanban_board.md:**\n\n**DELETE (OBSOLETE):** Remove canceled Story lines, remove task lines if any, remove Epic header if empty\n\n**CREATE (NEW):** Find `### Backlog` → Search Epic group → Add Stories (2-space indent)\n\n**UPDATE Epic Story Counters:** Last Story, Next Story\n\n**Return:**\n```\nREPLAN EXECUTED for Epic 7\n\nOPERATIONS SUMMARY:\n✓ Kept: 2 Stories\n✓ Updated: 1 Story (AC\u002FStandards Research changed)\n✓ Canceled: 1 Story (feature removed)\n✓ Created: 1 Story (new requirement)\n\nUPDATED: [ID: US005](url) - AC5 added, RFC 7636 PKCE added\nCANCELED: US008 Custom token formats\nNEW: [ID: US009](url) - Token scope management\n\nWARNINGS: US005 (Todo) AC changed\n\n✓ kanban_board.md updated\n✓ Standards Research updates: RFC 7636 PKCE added to US005\n\nNEXT STEPS:\n1. Review warnings\n2. Run ln-310-multi-agent-validator on updated\u002Fcreated Stories\n3. Use ln-300-task-coordinator to create\u002Freplan tasks\n```\n\n## Critical Rules\n\n| Rule | Description |\n|------|-------------|\n| **Status Constraints** | UPDATE\u002FOBSOLETE: Backlog\u002FTodo ✅, In Progress\u002FReview ⚠️, Done ❌ |\n| **Preserve Done** | Never update\u002Fcancel Done Stories (CREATE follow-up if conflicts) |\n| **Story Split\u002FMerge** | Detect 1→2+ OR 2+→1, show warnings (complex, impacts Tasks) |\n| **Clear Diffs** | Show before\u002Fafter for UPDATE (AC, Standards Research, Technical Notes) |\n| **Meaningful Comments** | Explain why updated\u002Fcanceled (reference removed capabilities) |\n| **Conservative Updates** | Prefer CREATE over UPDATE when in doubt |\n| **Progressive Loading** | Load Stories ONE BY ONE (not all at once, token efficiency) |\n\n## Definition of Done\n\n**✅ Phase 1:**\n- [ ] Existing Story IDs queried (Linear or file mode)\n- [ ] FULL descriptions fetched ONE BY ONE\n- [ ] 9 sections parsed\n- [ ] Metadata extracted (persona, capability, AC, Standards Research)\n\n**✅ Phase 2:**\n- [ ] Stories matched by goal\u002Fpersona\u002Fcapability\n- [ ] Operations categorized (KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE)\n- [ ] Edge cases detected (Split\u002FMerge, Ambiguous)\n\n**✅ Phase 3:**\n- [ ] Operations summary shown\n- [ ] Diffs shown for UPDATE (AC, Standards Research, Technical Notes)\n- [ ] Warnings shown\n\n**✅ Phase 4:**\n- [ ] autoApprove=true OR user confirmed\n\n**✅ Phase 5:**\n- [ ] All operations executed (UPDATE\u002FOBSOLETE\u002FCREATE)\n- [ ] kanban_board.md updated\n- [ ] Summary returned (URLs + warnings)\n\n## Template Loading\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Ftemplate_loading_pattern.md` for template copy workflow.\n\n**Template:** `story_template.md`\n**Local copy:** `docs\u002Ftemplates\u002Fstory_template.md` (in target project)\n\n## Reference Files\n\n- **MANDATORY READ:** `shared\u002Freferences\u002Ftools_config_guide.md`\n- **MANDATORY READ:** `shared\u002Freferences\u002Fstorage_mode_detection.md`\n- **Template loading:** `shared\u002Freferences\u002Ftemplate_loading_pattern.md`\n- **Linear creation workflow:** `shared\u002Freferences\u002Flinear_creation_workflow.md`\n- **Replan algorithm:** `shared\u002Freferences\u002Freplan_algorithm.md`\n\n### replan_algorithm_stories.md\n\n**Location:** `references\u002F` (owned by this skill)\n**Purpose:** Detailed comparison logic for REPLAN mode (Story level)\n**Contents:** KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE rules, Match criteria, Status constraints, Edge cases, Examples\n**Usage:** Applied in Phase 2\n\n### story_template.md\n\n**Location:** `shared\u002Ftemplates\u002Fstory_template.md` (centralized)\n**Local Copy:** `docs\u002Ftemplates\u002Fstory_template.md` (in target project)\n**Purpose:** Universal Story template (9 sections)\n**Usage:** Load via Template Loading logic when generating updated Story documents for UPDATE\u002FCREATE operations\n\n## Integration\n\n**Called by:** ln-220-story-coordinator (Phase 5b, count ≥ 1)\n\n**Returns:**\n- Success: Operations summary + URLs + warnings\n- Error: \"Story USXXX violates INVEST: [details]\"\n\n**Worker does NOT:**\n- Query Linear for Epic (already in context)\n- Analyze Epic complexity (orchestrator Phase 3)\n- Research standards (orchestrator Phase 2)\n- Build IDEAL plan (receives from orchestrator)\n\n---\n\n**Version:** 3.0.0\n**Last Updated:** 2025-12-23\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.\n\n# Story Replanner\n\n## Purpose\nReplans existing Stories when Epic requirements change. Compares IDEAL plan vs existing Stories, categorizes operations (KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE), and executes changes in Linear. Invoked by ln-220-story-coordinator.\n\nUniversal replanner worker for updating Stories in Epic when requirements change. Invoked by ln-220-story-coordinator (count ≥ 1).\n\n## When Invoked\n\n**ln-220-story-coordinator REPLAN MODE (Phase 5b):**\n- Epic has existing Stories (Linear query count ≥ 1)\n- IDEAL plan generated (Phase 3)\n- Standards Research completed by ln-001 (Phase 2, may be updated)\n- Epic requirements changed (AC modified, features added\u002Fremoved, standards updated)\n- Parameters: `epicData`, `idealPlan`, `standardsResearch`, `existingStoryIds`, `teamId`, `autoApprove`\n\n## Input Parameters\n\n**From ln-220-story-coordinator:**\n\n```javascript\n{\n  epicData: {id, title, description},\n  idealPlan: [{number, title, statement, ac, technicalNotes, estimatedHours, testCounts}],\n  standardsResearch: \"OAuth 2.0 (RFC 6749)...\",  \u002F\u002F May differ from existing\n  existingStoryIds: [\"STORY-123\", \"STORY-124\"],  \u002F\u002F Metadata only\n  teamId: \"team-id\",\n  autoApprove: true\n}\n```\n\n## Inputs\n\n| Input | Required | Source | Description |\n|-------|----------|--------|-------------|\n| `epicId` | Yes | args, kanban, user | Epic to process |\n\n**Resolution:** Epic Resolution Chain.\n**Status filter:** Active (planned\u002Fstarted)\n\n## Tools Config\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Ftools_config_guide.md`, `shared\u002Freferences\u002Fstorage_mode_detection.md`, `shared\u002Freferences\u002Finput_resolution_pattern.md`\n\nExtract: `task_provider` = Task Management → Provider\n\n## Workflow\n\n### Phase 1: Load Existing Stories\n\n**Step 0: Resolve epicId** (standalone only — skip if epicData provided by ln-220 orchestrator):\nRun Epic Resolution Chain per guide.\n\n**Progressive Loading for token efficiency:**\n\n**Step 1:** Orchestrator provides Story metadata (ID, title, status)\n\n**Step 2:** Load FULL descriptions ONE BY ONE\n\n**IF task_provider == \"linear\":**\n```javascript\nfor each story_id:\n  get_issue(id=story_id)  \u002F\u002F ~5,000 tokens per Story\n```\n\n**ELSE (file mode):**\n```javascript\nfor each story_id:\n  Read(\"docs\u002Ftasks\u002Fepics\u002Fepic-{N}-*\u002Fstories\u002Fus{NNN}-*\u002Fstory.md\")  \u002F\u002F ~5,000 tokens per Story\n```\n\n**Token Rationale:** 10 Stories × 5,000 = 50,000 tokens. Load sequentially to manage context.\n\n**Step 3:** Parse 9 sections for each Story\n- Story Statement (persona, capability, value)\n- Context\n- Acceptance Criteria (3-5 GWT)\n- Implementation Tasks\n- Test Strategy\n- Technical Notes (**Standards Research** in Library Research subsection)\n- Definition of Done\n- Dependencies\n- Assumptions\n\n**Step 4:** Extract metadata\n- ID, number, title, status\n- Persona, capability, value\n- AC scenarios\n- Standards Research (from Technical Notes)\n\n**Output:** Array of N existing Story structures ready for comparison.\n\n### Phase 2: Compare IDEAL vs Existing\n\n**MANDATORY READ:** Load [replan_algorithm_stories.md](references\u002Freplan_algorithm_stories.md) for replan algorithm.\n\n**Match by goal, persona, capability:**\n\nFor EACH Story in IDEAL:\n- Extract: Title, Persona, Capability\n- Search existing: Fuzzy match title, check persona\u002Fcapability overlap\n- Result: Match → KEEP\u002FUPDATE | No match → CREATE\n\nFor EACH existing Story:\n- Extract: Title, Persona, Capability (from Story Statement)\n- Search IDEAL: Fuzzy match\n- Result: Match → KEEP\u002FUPDATE | No match → OBSOLETE\n\n**Categorize operations:**\n\n| Operation | Criteria | Status Constraint | Action |\n|-----------|----------|-------------------|--------|\n| **KEEP** | Goal + Persona + Capability + AC + Standards Research same | Any | None |\n| **UPDATE** | Match + (AC OR Standards Research OR Technical Notes changed) | Backlog\u002FTodo ✅\u003Cbr>In Progress\u002FReview ⚠️\u003Cbr>Done ❌ | `update_issue` |\n| **OBSOLETE** | No match + Feature removed | Backlog\u002FTodo ✅\u003Cbr>In Progress\u002FReview ⚠️\u003Cbr>Done ❌ | `update_issue(state=\"Canceled\")` |\n| **CREATE** | In IDEAL + No match + New requirement | N\u002FA | Generate doc + `create_issue` |\n\n**Edge Cases:**\n\n| Case | Action |\n|------|--------|\n| **In Progress OBSOLETE** | ⚠️ NO auto-cancel, show warning |\n| **Done conflicts** | Preserve Done, CREATE follow-up |\n| **Story Split** (1 → 2+) | ⚠️ UPDATE first + CREATE new |\n| **Story Merge** (2+ → 1) | ⚠️ UPDATE first + OBSOLETE rest |\n| **Ambiguous match** (>70% similarity) | Show all, select highest |\n\n**Details:** [replan_algorithm_stories.md](references\u002Freplan_algorithm_stories.md)\n\n### Phase 3: Show Operations Summary\n\n```\nREPLAN SUMMARY for Epic 7: OAuth Authentication\n\nIDEAL PLAN:\n1. US004: Register OAuth client (Persona: Third-party developer)\n2. US005: Request access token ← AC5 ADDED! ← RFC 7636 PKCE ADDED!\n3. US006: Validate access token\n4. US009: Token scope management (NEW!)\n\nEXISTING STORIES:\n\n✓ US004 - Status: Done - KEEP\n⚠ US005 - Status: Todo - UPDATE\n   Changes: Add AC5, Add RFC 7636 to Technical Notes, Add 2 Integration tests\n   Diff (AC): + AC5 \"Given public client, When request with PKCE...\"\n   Diff (Technical Notes): + RFC 7636 (PKCE)\n✗ US008 - Status: Todo - OBSOLETE (feature removed)\n+ US009 - NEW (14h, 20 tests, OAuth 2.0 Scope standard)\n\nOPERATIONS: 2 keep, 1 update, 1 cancel, 1 create\n\nWARNINGS:\n- ⚠️ US005 (Todo): AC changed, Standards Research updated\n- ⚠️ US008 (Todo): Feature removed - check dependencies\n\nType \"confirm\" to execute.\n```\n\n**Diffs show:**\n- AC changes (line-by-line)\n- Standards Research changes (added\u002Fremoved RFCs)\n- Test Strategy changes (test counts)\n\n**Warnings for:**\n- Status conflicts (In Progress\u002FReview affected)\n- Story Split\u002FMerge detected\n- Ambiguous matches\n\n### Phase 4: User Confirmation\n\n**If autoApprove=true:** Skip → Phase 5\n**Otherwise:** Wait for \"confirm\"\n\n**Adjustment:** User can request changes → Recategorize → Show updated summary → Loop until \"confirm\"\n\n### Phase 5: Execute Operations\n\n**Sequence:** UPDATE → OBSOLETE → CREATE → Update kanban\n\n**UPDATE operations:**\n1. Generate new Story document (load via Template Loading logic)\n2. Validate INVEST (same as ln-221-story-creator Phase 2)\n3. **IF task_provider == \"linear\":** `save_issue({id, description: new_description})`\n   **ELSE:** `Edit(\"docs\u002Ftasks\u002Fepics\u002F...\u002Fstories\u002Fus{NNN}-*\u002Fstory.md\")` with new content\n4. **IF task_provider == \"linear\":** `create_comment({issueId, body: \"Story updated: ...\"})`\n   **ELSE:** `Write(\"...\u002Fstories\u002Fus{NNN}-*\u002Fcomments\u002F{ISO-timestamp}.md\")` with update note\n\n**OBSOLETE operations:**\n1. **IF task_provider == \"linear\":** `save_issue({id, state: \"Canceled\"})`\n   **ELSE:** `Edit` `**Status:**` line to `**Status:** Canceled` in story.md\n2. **IF task_provider == \"linear\":** `create_comment({issueId, body: \"Story canceled: ...\"})`\n   **ELSE:** `Write(\"...\u002Fcomments\u002F{ISO-timestamp}.md\")` with cancellation note\n\n**CREATE operations:**\n1. Generate Story document (same as ln-221-story-creator Phase 1)\n2. Validate INVEST\n3. **IF task_provider == \"linear\":** `save_issue({title, description, project: Epic.id, team: teamId, labels: [\"user-story\"], state: \"Backlog\"})`\n   **ELSE:** `mkdir -p ...\u002Fstories\u002Fus{NNN}-{slug}\u002Ftasks\u002F` + `Write story.md` with file headers\n\n**Update kanban_board.md:**\n\n**DELETE (OBSOLETE):** Remove canceled Story lines, remove task lines if any, remove Epic header if empty\n\n**CREATE (NEW):** Find `### Backlog` → Search Epic group → Add Stories (2-space indent)\n\n**UPDATE Epic Story Counters:** Last Story, Next Story\n\n**Return:**\n```\nREPLAN EXECUTED for Epic 7\n\nOPERATIONS SUMMARY:\n✓ Kept: 2 Stories\n✓ Updated: 1 Story (AC\u002FStandards Research changed)\n✓ Canceled: 1 Story (feature removed)\n✓ Created: 1 Story (new requirement)\n\nUPDATED: [ID: US005](url) - AC5 added, RFC 7636 PKCE added\nCANCELED: US008 Custom token formats\nNEW: [ID: US009](url) - Token scope management\n\nWARNINGS: US005 (Todo) AC changed\n\n✓ kanban_board.md updated\n✓ Standards Research updates: RFC 7636 PKCE added to US005\n\nNEXT STEPS:\n1. Review warnings\n2. Run ln-310-multi-agent-validator on updated\u002Fcreated Stories\n3. Use ln-300-task-coordinator to create\u002Freplan tasks\n```\n\n## Critical Rules\n\n| Rule | Description |\n|------|-------------|\n| **Status Constraints** | UPDATE\u002FOBSOLETE: Backlog\u002FTodo ✅, In Progress\u002FReview ⚠️, Done ❌ |\n| **Preserve Done** | Never update\u002Fcancel Done Stories (CREATE follow-up if conflicts) |\n| **Story Split\u002FMerge** | Detect 1→2+ OR 2+→1, show warnings (complex, impacts Tasks) |\n| **Clear Diffs** | Show before\u002Fafter for UPDATE (AC, Standards Research, Technical Notes) |\n| **Meaningful Comments** | Explain why updated\u002Fcanceled (reference removed capabilities) |\n| **Conservative Updates** | Prefer CREATE over UPDATE when in doubt |\n| **Progressive Loading** | Load Stories ONE BY ONE (not all at once, token efficiency) |\n\n## Definition of Done\n\n**✅ Phase 1:**\n- [ ] Existing Story IDs queried (Linear or file mode)\n- [ ] FULL descriptions fetched ONE BY ONE\n- [ ] 9 sections parsed\n- [ ] Metadata extracted (persona, capability, AC, Standards Research)\n\n**✅ Phase 2:**\n- [ ] Stories matched by goal\u002Fpersona\u002Fcapability\n- [ ] Operations categorized (KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE)\n- [ ] Edge cases detected (Split\u002FMerge, Ambiguous)\n\n**✅ Phase 3:**\n- [ ] Operations summary shown\n- [ ] Diffs shown for UPDATE (AC, Standards Research, Technical Notes)\n- [ ] Warnings shown\n\n**✅ Phase 4:**\n- [ ] autoApprove=true OR user confirmed\n\n**✅ Phase 5:**\n- [ ] All operations executed (UPDATE\u002FOBSOLETE\u002FCREATE)\n- [ ] kanban_board.md updated\n- [ ] Summary returned (URLs + warnings)\n\n## Template Loading\n\n**MANDATORY READ:** Load `shared\u002Freferences\u002Ftemplate_loading_pattern.md` for template copy workflow.\n\n**Template:** `story_template.md`\n**Local copy:** `docs\u002Ftemplates\u002Fstory_template.md` (in target project)\n\n## Reference Files\n\n- **MANDATORY READ:** `shared\u002Freferences\u002Ftools_config_guide.md`\n- **MANDATORY READ:** `shared\u002Freferences\u002Fstorage_mode_detection.md`\n- **Template loading:** `shared\u002Freferences\u002Ftemplate_loading_pattern.md`\n- **Linear creation workflow:** `shared\u002Freferences\u002Flinear_creation_workflow.md`\n- **Replan algorithm:** `shared\u002Freferences\u002Freplan_algorithm.md`\n\n### replan_algorithm_stories.md\n\n**Location:** `references\u002F` (owned by this skill)\n**Purpose:** Detailed comparison logic for REPLAN mode (Story level)\n**Contents:** KEEP\u002FUPDATE\u002FOBSOLETE\u002FCREATE rules, Match criteria, Status constraints, Edge cases, Examples\n**Usage:** Applied in Phase 2\n\n### story_template.md\n\n**Location:** `shared\u002Ftemplates\u002Fstory_template.md` (centralized)\n**Local Copy:** `docs\u002Ftemplates\u002Fstory_template.md` (in target project)\n**Purpose:** Universal Story template (9 sections)\n**Usage:** Load via Template Loading logic when generating updated Story documents for UPDATE\u002FCREATE operations\n\n## Integration\n\n**Called by:** ln-220-story-coordinator (Phase 5b, count ≥ 1)\n\n**Returns:**\n- Success: Operations summary + URLs + warnings\n- Error: \"Story USXXX violates INVEST: [details]\"\n\n**Worker does NOT:**\n- Query Linear for Epic (already in context)\n- Analyze Epic complexity (orchestrator Phase 3)\n- Research standards (orchestrator Phase 2)\n- Build IDEAL plan (receives from orchestrator)\n\n---\n\n**Version:** 3.0.0\n**Last Updated:** 2025-12-23\n",{"name":5,"license":15,"description":7},"main","fa638b97a18ff6d9f26cf0eaf3dfa123531bcc87","organized-skills\u002Fln-222-story-replanner",1,"https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode","https:\u002F\u002Fgithub.com\u002Flevalencia","https:\u002F\u002Fmedium.com\u002F@luisevalencia","Microsoft MVP - Artificial Intelligence\r\nMachine Learning Enthusiast\r\n","2026-05-02 06:55:36",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add levalencia\u002Fagent-god-mode --skill ln-222-story-replanner",{"tool":49,"command":50},"bunx","bunx skills add levalencia\u002Fagent-god-mode --skill ln-222-story-replanner",{"tool":52,"command":53},"pnpm","pnpm dlx skills add levalencia\u002Fagent-god-mode --skill ln-222-story-replanner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode\u002Fblob\u002Fmain\u002Forganized-skills\u002Fln-222-story-replanner\u002FSKILL.md",true,[57,63,69],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Freplan_algorithm_stories.md","REFERENCE","参考文档",5676,"https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode\u002Fblob\u002Fmain\u002Forganized-skills\u002Fln-222-story-replanner\u002Freferences\u002Freplan_algorithm_stories.md",{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fmethod_numbers.py","SCRIPT","脚本",52828,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-numbers\u002Fscripts\u002Fmethod_numbers.py",{"path":70,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fmethod_numbers.R",11204,"https:\u002F\u002Fgithub.com\u002Fsajor2000\u002Fmethodsmith\u002Fblob\u002Fmain\u002Fplugins\u002Fmethodsmith\u002Fskills\u002Fmethod-numbers\u002Fscripts\u002Fmethod_numbers.R",[74,96,120,147,173,198],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":29},"01M6EM8ES5M9J4S8N78NJST0YC","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode\u002Fblob\u002Fmain\u002Forganized-skills\u002Fzarr-python\u002FSKILL.md",[],[81,82,83,84,85,86,87,88,89,90,91,92,93,94,95],"python","zarr python","storage","integration","s3","gcs","cloud","dask","parallel","pipelines","arrays","numpy","scientific computing","scale","scientific",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":29},"01M6EM8AR6ZFKZ9YVW8TTG850Z","zabbix","Zabbix monitoring system automation via API and Python. Use when: (1) Managing hosts, templates, items, triggers, or host groups, (2) Automating monitoring configuration, (3) Sending data via Zabbix trapper\u002Fsender, (4) Querying historical data or events, (5) Bulk operations on Zabbix objects, (6) Maintenance window management, (7) User\u002Fpermission management","https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode\u002Fblob\u002Fmain\u002Forganized-skills\u002Fzabbix-api-skill\u002FSKILL.md",[],[98,81,103,104,105,106,107,108,109,25,110,111,112,113,114,115,116,117,118,119],"automation","window management","monitoring","data","templates","api","system","use","maintenance","objects","permission","bulk operations","triggers","host","events","via","bulk",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":29},"01M6EM6Q9JG846ECQY9A210A26","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode\u002Fblob\u002Fmain\u002Forganized-skills\u002Fx-twitter-growth\u002FSKILL.md",[],[127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],"twitter","x twitter growth","growth","competitive intelligence","search","analyzing","plan","marketing","web search","competitors","analyze","write","optimize","social","intelligence","viral","growth engine","mechanics","grow","competitive",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":29},"01M6EM3FQNPYNKPC4CV9TCVNGD","what-if-oracle","Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like \"what if...\", \"what would happen if...\", \"what are the possibilities\", \"explore scenarios\", \"scenario analysis\", \"possibility space\", \"what could go wrong\", \"best case \u002F worst case\", \"risk analysis\", \"contingency planning\", \"strategic options\", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.","https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode\u002Fblob\u002Fmain\u002Forganized-skills\u002Fwhat-if-oracle\u002FSKILL.md",[],[154,155,156,157,158,159,160,161,162,163,164,165,110,166,167,168,169,170,171,172],"oracle","what if oracle","test","planning","ux","futures","risk","analysis","explore","decision","branch","question","exploration","options","stress-test","strategies","trigger","case","multi",{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":179,"publishedAt":29},"01M6EM08C06RGDYCJ86HAPK0FF","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode\u002Fblob\u002Fmain\u002Forganized-skills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[180,181,182,183,184,185,186,187,188,189,190,191,192,106,193,194,195,196,197,115],"react","vercel react best practices","best practices","react best practices","vercel","writing","performance","components","react components","guidelines","tasks","code","Optimization","Next.js","refactoring","performance optimization","next","pages",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":29},"01M6EM00S13326QM08DTM94J6Z","venue-templates","Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.","https:\u002F\u002Fgithub.com\u002Flevalencia\u002Fagent-god-mode\u002Fblob\u002Fmain\u002Forganized-skills\u002Fvenue-templates\u002FSKILL.md",[],[107,205,206,189,207,208,209,210,211,212,213,138,214,215,216,26,217,218,95,219],"venue templates","research","NeurIPS","ICML","LaTeX","science","Bash","access","read","edit","proposals","Academic","formatting","journal","chi"]