🎯

ln-220-story-coordinator

🎯Skill

from levnikolaevich/claude-code-skills

VibeIndex|
What it does

Coordinates story creation and replanning for epics by auto-discovering team context, decomposing requirements, and delegating to specialized workers.

πŸ“¦

Part of

levnikolaevich/claude-code-skills(85 items)

ln-220-story-coordinator

Installation

Claude CodeAdd plugin in Claude Code
/plugin add levnikolaevich/claude-code-skills
git cloneClone repository
git clone https://github.com/levnikolaevich/claude-code-skills.git ~/.claude/skills
πŸ“– Extracted from docs: levnikolaevich/claude-code-skills
11Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

CREATE/REPLAN Stories for Epic (5-10 Stories). Delegates ln-001-standards-researcher for standards research. Decompose-First Pattern. Auto-discovers team/Epic.

Overview

# Story Coordinator

Universal Story management coordinator that delegates CREATE/REPLAN operations to specialized workers after building IDEAL Story plan.

When to Use This Skill

Use when:

  • Decompose Epic to User Stories (5-10 Stories covering Epic scope)
  • Update existing Stories when Epic requirements change
  • Rebalance Story scopes within Epic
  • Add new Stories to existing Epic structure

Core Pattern: Decompose-First

Key principle: Build IDEAL Story plan FIRST, THEN check existing Stories to determine mode:

  • No existing Stories β†’ CREATE MODE (delegate to ln-221-story-creator)
  • Has existing Stories β†’ REPLAN MODE (delegate to ln-222-story-replanner)

Rationale: Ensures consistent Story decomposition based on current Epic requirements, independent of existing Story structure (may be outdated).

Story Numbering Convention

Rule: Stories start from Story 1 (US001), NO Story 0 reserved.

Rationale:

  • Epic 0 = Infrastructure Epic (group of 5-10 Stories like any other Epic)
  • Stories within Epic 0 numbered normally: US001, US002, ... US010
  • No reserved Story 0 (unlike Epics, Stories don't need infrastructure placeholder)

Numbering within Epic:

  • Epic 0: Infrastructure β†’ US001-US010 (logging, monitoring, CI/CD Stories)
  • Epic 1: User Management β†’ US011-US020 (registration, login, profile Stories)
  • Epic 2: Product Catalog β†’ US021-US030 (product list, search, details Stories)

Next Story Number: Incremented sequentially across ALL Epics (read from kanban_board.md Epic Story Counters table)

How It Works

Phase 1: Context Assembly

Objective: Gather context for Story planning (Epic details, planning questions, frontend context, fallback docs, user input)

Step 1: Discovery (Automated)

Auto-discovers from docs/tasks/kanban_board.md:

  1. Team ID: Reads Linear Configuration table
  2. Epic: Parses Epic number from request β†’ Validates in Linear β†’ Loads Epic description

- User format: "Epic N" (Linear Project number, e.g., "Epic 7: OAuth Authentication")

- Query: get_project(query="Epic N") β†’ Fetch full Epic document

- Extract: Goal, Scope In/Out, Success Criteria, Technical Notes (Standards Research if Epic created by ln-210 v7.0.0+)

- Note: Epic N = Linear Project number (global), NOT initiative-internal index (Epic 0-N)

  1. Next Story Number: Reads Epic Story Counters table β†’ Gets next sequential number

Step 2: Extract Planning Information (Automated)

Parses Epic structure for Story planning questions:

| Question | Extraction Source |

|----------|-------------------|

| Q1 - User/Persona | Epic Goal ("Enable [persona]...") + Scope In (user roles) |

| Q2 - What they want | Epic Scope In (capabilities) + functional requirements |

| Q3 - Why it matters | Epic Success Criteria (metrics) + Goal (business value) |

| Q4 - Which Epic | Already from Step 1 |

| Q5 - Main AC | Derive from Epic Scope In features β†’ testable scenarios |

| Q6 - Application type | Epic Technical Notes (UI/API mentioned) β†’ Default: API |

Step 3: Frontend Research (Optional)

Trigger: If Q2 (capabilities) OR Q5 (AC) missing after Step 2

Process:

  1. Scan HTML files: Glob */.html, src/*/.html
  2. Extract:

- Forms β†’ AC scenarios (e.g.,

β†’ "Given valid credentials, When submit, Then login success")

- Buttons/Actions β†’ capabilities (e.g.,

Integration with Ecosystem

Calls:

  • ln-001-standards-researcher (Phase 2) - research standards/patterns for Epic
  • ln-221-story-creator (Phase 5a, 5c) - CREATE and ADD worker
  • ln-222-story-replanner (Phase 5b) - REPLAN worker

Called by:

  • ln-200-scope-decomposer (Phase 3) - automated full decomposition (scope β†’ Epics β†’ Stories)
  • Manual - user invokes for Epic Story creation/replanning

Upstream:

  • ln-210-epic-coordinator - creates Epics (prerequisite for Story creation)

Downstream:

  • ln-300-task-coordinator - creates implementation tasks for each Story
  • ln-310-story-validator - validates Story structure/content
  • ln-400-story-executor - orchestrates task execution for Story

---

Definition of Done

βœ… Phase 1: Context Assembly Complete:

  • [ ] Team ID, Epic number, Next Story Number loaded from kanban_board.md
  • [ ] Q1-Q6 extracted from Epic (Step 2)
  • [ ] Frontend Research attempted if Q2/Q5 missing (Step 3)
  • [ ] Fallback Search attempted for missing info (Step 4)
  • [ ] User input requested if still missing (Step 5)
  • [ ] Complete Story planning context assembled

βœ… Phase 2: Standards Research Complete:

  • [ ] Epic parsed for domain keywords
  • [ ] ln-001-standards-researcher invoked with Epic description + Story domain
  • [ ] Standards Research cached for workers
  • [ ] OR Phase 2 skipped (trivial CRUD, no standards, explicit skip)

βœ… Phase 3: Planning Complete:

  • [ ] Epic Scope analyzed
  • [ ] Optimal Story count determined (5-10 Stories)
  • [ ] IDEAL Story plan created (titles, statements, core AC, ordering)
  • [ ] Story Grouping Guidelines validated (vertical slicing)
  • [ ] INVEST checklist validated for all Stories

βœ… Phase 4: Check Existing Complete:

  • [ ] Queried Linear for existing Stories (count only)
  • [ ] Execution mode determined (CREATE or REPLAN)

βœ… Phase 5: Delegation Complete:

  • [ ] Called ln-221-story-creator (Phase 5a) OR ln-222-story-replanner (Phase 5b) via Skill tool
  • [ ] Passed epicData, idealPlan, standardsResearch, teamId, autoApprove
  • [ ] Received output from worker (Story URLs + summary + next steps)

---

Example Usage

CREATE MODE (First Time):

```

"Create stories for Epic 7: OAuth Authentication"

```

Process:

  1. Phase 1: Context Assembly β†’ Discovery (Team "API", Epic 7, US004), Extract (Persona: API client, Value: secure API access), Frontend Research (HTML login/register forms β†’ AC), Fallback Search (requirements.md for personas)
  2. Phase 2: Standards Research β†’ Epic mentions "OAuth 2.0", delegate ln-001 β†’ Standards Research with RFC 6749, patterns
  3. Phase 3: Planning β†’ Build IDEAL (5 Stories: "Register client", "Request token", "Validate token", "Refresh token", "Revoke token")
  4. Phase 4: Check Existing β†’ Count = 0 β†’ CREATE MODE
  5. Phase 5a: Delegate CREATE β†’ Call ln-221-story-creator β†’ US004-US008 created with Standards Research

REPLAN MODE (Requirements Changed):

```

"Replan stories for Epic 7 - removed custom token formats, added scope management"

```

Process:

  1. Phase 1: Context Assembly β†’ Discovery (Team "API", Epic 7, has US004-US008), Extract (Removed custom formats, added scopes)
  2. Phase 2: Standards Research β†’ Epic mentions "OAuth 2.0 scopes", delegate ln-001 β†’ Updated Standards Research with RFC 6749 Section 3.3
  3. Phase 3: Planning β†’ Build IDEAL (5 Stories: "Register client", "Request token", "Validate token", "Refresh token", "Manage scopes")
  4. Phase 4: Check Existing β†’ Count = 5 β†’ REPLAN MODE
  5. Phase 5b: Delegate REPLAN β†’ Call ln-222-story-replanner β†’ KEEP 4, UPDATE Technical Notes (scope research), OBSOLETE US008, CREATE US009

---

Best Practices

Story Content:

  • Research-First: Always perform Phase 2 research (standards/patterns) before Story generation

- Story level: STANDARDS/PATTERNS (OAuth RFC 6749, middleware pattern)

- Task level: LIBRARIES (authlib vs oauthlib) - delegated by ln-300

  • Business-oriented Stories: Each Story = USER JOURNEY (what user does, what they get), NOT technical tasks

- βœ… GOOD: "As API client, I want to refresh expired token, so that I maintain session without re-authentication"

- ❌ BAD: "Create token refresh endpoint in API" (Task, not Story)

  • Vertical Slicing: Each Story delivers end-to-end functionality (UI β†’ API β†’ Service β†’ DB)
  • One capability per Story: Clear, focused persona + capability + value
  • Testable AC: Given-When-Then, 3-5 AC, specific criteria ("<200ms" not "fast")
  • Test Strategy: Section exists but is empty at Story creation (tests planned later by ln-510-test-planner)
  • Standards Research: Include Phase 2 research in ALL Story Technical Notes

Story Decomposition:

  • Decompose-First: Build IDEAL plan before checking existing - prevents anchoring to suboptimal structure
  • INVEST validation: Validate every Story against INVEST criteria
  • Size enforcement: 3-5 AC, 6-20 hours
  • Avoid over-decomposition: <3 AC, <6 hours β†’ Merge Stories

User Interaction:

  • Epic extraction: Try to extract all planning info from Epic in Phase 1 Step 2 before asking user
  • Frontend Research: HTML forms/validation β†’ AC scenarios (Phase 1 Step 3)
  • Fallback search: requirements.md, tech_stack.md if Epic incomplete (Phase 1 Step 4)
  • Only ask user for missing info after Epic extraction AND frontend AND fallback search fail

Delegation:

  • Orchestrator loads metadata only: ID, title, status (~50 tokens per Story)
  • Workers load full descriptions: 8 sections (~5,000 tokens per Story)
  • Token efficiency: 10 Stories Γ— 50 tokens = 500 tokens (orchestrator) vs 10 Stories Γ— 5,000 tokens = 50,000 tokens (workers load when needed)

---

Version: 5.0.0 (BREAKING: Added AC Quality Validation in Phase 3 (completeness: happy path + errors + edge cases; specificity: HTTP codes + timing). Updated INVEST Independent criterion with forward dependency check. Added Database Creation Principle to Story Grouping Guidelines per BMAD Method best practices.)

Last Updated: 2026-02-03

More from this repository10

πŸͺ
levnikolaevich-claude-code-skillsπŸͺMarketplace

Official marketplace for Agile Linear Workflow plugin - complete end-to-end automation for software development teams using Linear. Includes 7XX Project Bootstrap series for technology-agnostic project migration.

🎯
ln-140-test-docs-creator🎯Skill

Generates comprehensive test documentation with testing strategy and test organization structure for software projects.

🎯
ln-110-project-docs-coordinator🎯Skill

Coordinates project documentation by gathering context once, detecting project type, and delegating document creation to 5 specialized workers.

🎯
ln-114-frontend-docs-creator🎯Skill

Generates design guidelines documentation for frontend projects with WCAG 2.1 compliance when a frontend framework is detected.

🎯
ln-113-backend-docs-creator🎯Skill

Generates backend documentation files (API spec and database schema) automatically when backend or database technologies are detected in a project.

🎯
ln-610-code-comments-auditor🎯Skill

Audits code comments and docstrings across 6 quality categories, generating a comprehensive compliance score and actionable recommendations for improvement.

🎯
ln-115-devops-docs-creator🎯Skill

Generates a comprehensive runbook.md for DevOps setup, dynamically tailored to project's Docker configuration and deployment specifics.

🎯
ln-772-error-handler-setup🎯Skill

Configures global exception handling middleware for .NET and Python backend applications with standardized error responses.

🎯
ln-120-reference-docs-creator🎯Skill

Generates reference documentation structure and smart documents for project tech stack, creating only justified architectural decision records and guides.

🎯
ln-625-dependencies-auditor🎯Skill

Audits dependencies for outdated packages, unused imports, unnecessary libraries, and custom implementations, providing actionable recommendations.