ln-222-story-creator: Story Creator

Workflow Diagram

graph TD Start([Input: epicData, idealPlan, standardsResearch]) --> Phase1[Phase 1: Generate Story Documents] Phase1 --> ReadTemplate[Read story_template_universal.md] ReadTemplate --> GenerateDocs[For EACH Story in idealPlan:
Generate 8 sections
INSERT Standards Research] GenerateDocs --> Phase2[Phase 2: Validate INVEST] Phase2 --> ValidateAll[For EACH Story:
Check I-N-V-E-S-T criteria] ValidateAll --> CheckInvest{All pass?} CheckInvest -->|No| Error[❌ STOP
Report to orchestrator] CheckInvest -->|Yes| Phase3[Phase 3: Show Preview] Phase3 --> ShowPreview[Display:
Story summaries
Totals
Standards Research
INVEST: ✓] ShowPreview --> Phase4[Phase 4: User Confirmation] Phase4 --> CheckApprove{autoApprove?} CheckApprove -->|true| Phase5 CheckApprove -->|false| WaitConfirm[Wait for 'confirm'] WaitConfirm --> Phase5[Phase 5: Create in Linear + Update Kanban] Phase5 --> CreateLinear[For EACH Story:
create_issue
project=Epic, labels=user-story] CreateLinear --> UpdateKanban[Update kanban_board.md:
Epic Grouping Algorithm
Update Epic Story Counters] UpdateKanban --> Summary[Display Summary:
URLs, Standards Research, Next Steps] Summary --> End([Done]) style Start fill:#4A90E2,stroke:#2E5C8A,color:#fff style End fill:#26A69A,stroke:#1B5E20,color:#fff style Phase1 fill:#7E57C2,stroke:#4A148C,color:#fff style Phase2 fill:#7E57C2,stroke:#4A148C,color:#fff style Phase3 fill:#7E57C2,stroke:#4A148C,color:#fff style Phase4 fill:#7E57C2,stroke:#4A148C,color:#fff style Phase5 fill:#26A69A,stroke:#1B5E20,color:#fff style Error fill:#F44336,stroke:#B71C1C,color:#fff style CheckInvest fill:#FF9800,stroke:#E65100,color:#fff style CheckApprove fill:#FF9800,stroke:#E65100,color:#fff

Key Information

Important Notes