.claude/skills/ln-221-story-creator/SKILL.md
Creates Stories from IDEAL plan (CREATE) or appends user-requested Stories (ADD). Generates 8-section documents, validates INVEST, creates in Linear. Invoked by ln-220.
npx skillsauth add cbbkrd-tech/jl-finishes ln-221-story-creatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root.
Creates Story documents in Linear from IDEAL plan (CREATE mode) or appends user-requested Stories to existing Epic (ADD mode). Invoked by ln-220-story-coordinator.
Universal factory worker for creating Stories. Supports two modes:
Invoked by ln-220-story-coordinator (Phase 5a for CREATE, Phase 5c for ADD).
1. ln-220-story-coordinator CREATE MODE (Phase 5a):
epicData, idealPlan, standardsResearch, teamId, autoApprove2. ln-220-story-coordinator ADD MODE (Phase 5c):
epicData, appendMode: true, newStoryDescription, standardsResearch, teamIdFor CREATE MODE (from ln-220-story-coordinator Phase 5a):
{
epicData: {id, title, description},
idealPlan: [
{
number: "US004",
title: "Register OAuth client",
statement: {persona, capability, value},
ac: [GWT scenarios],
technicalNotes: {architecture, integrations, performance},
orchestratorBrief: {tech, keyFiles, approach, complexity},
estimatedHours: 12,
testCounts: {e2e: 2, integration: 5, unit: 11}
}
],
standardsResearch: "OAuth 2.0 (RFC 6749)...",
teamId: "team-id",
autoApprove: true
}
For ADD MODE (from ln-220-story-coordinator Phase 5c with appendMode):
{
epicData: {id, title, description},
appendMode: true, // Signals ADD MODE - append to existing
newStoryDescription: "User's request for new Story",
standardsResearch: "Focused research for new Story only",
teamId: "team-id",
autoApprove: false // User confirmation recommended
}
true signals ADD MODE - append to existing StoriesMANDATORY READ: Load shared/references/creation_quality_checklist.md §Story Creation Checklist for validation criteria that ln-310 will enforce.
[!NOTE] ADD MODE (appendMode: true): When adding Stories to existing Epic, workflow is simplified:
- Phase 1: Generate only requested Story(s) from
newStoryDescription- Skip full IDEAL plan comparison
- Standards Research is focused only on new Story topics
- Other phases proceed normally (INVEST, Preview, Create)
Load story template (see "Template Loading" section) and use 8 sections.
For EACH Story in IDEAL plan:
| Section | Content |
|---------|---------|
| 1. Story | As a [persona] / I want [capability] / So that [value] |
| 2. Context | Current Situation (from Epic Scope Out) / Desired Outcome (from Epic Success Criteria) |
| 3. Acceptance Criteria | Copy AC from idealPlan (3-5 GWT scenarios) |
| 4. Implementation Tasks | Placeholder: "Tasks created via ln-300-task-coordinator after ln-310-story-validator" |
| 5. Test Strategy | Copy test counts from idealPlan, Risk-Based Testing note |
| 6. Technical Notes | INSERT Orchestrator Brief from idealPlan[i].orchestratorBrief (markers <!-- ORCHESTRATOR_BRIEF_START/END -->). INSERT Standards Research in Library Research subsection |
| 7. Definition of Done | Standard checklist from template |
| 8. Dependencies | Empty OR "Depends On: US00X" if ordering implies dependency |
Output: Array of N complete Story documents (5-10) with Standards Research inserted.
For EACH Story, check:
| Criterion | Check | Pass | Fail | |-----------|-------|------|------| | Independent | No circular dependencies | ✅ | ❌ STOP | | Negotiable | AC focus on WHAT not HOW | ✅ | ❌ STOP | | Valuable | Clear "So that" value | ✅ | ❌ STOP | | Estimable | Size within checklist #9 range | ✅ | ❌ STOP | | Small | AC/hours/tests per checklist #9 | ✅ | ❌ STOP | | Testable | Measurable AC (GWT format) | ✅ | ❌ STOP |
Error if ANY Story fails → Report to orchestrator, stop execution.
STORY CREATION PREVIEW for Epic 7: OAuth Authentication
Will create 5 Stories:
1. US004: Register OAuth client
Persona: Third-party developer | Capability: Register app, get credentials
Value: Can integrate with API | AC: 4 | Estimate: 12h | Tests: 18
2. US005: Request access token
Persona: API client | Capability: Exchange credentials for token
Value: Authenticate to API | AC: 5 | Estimate: 18h | Tests: 24
... (3 more)
Total: 5 Stories, 62h, 90 tests
Standards Research: OAuth 2.0 (RFC 6749), RFC 7636 (PKCE), RFC 7009 (Revocation)
Story ordering: Dependency-aware (US004 → US005 → US006)
INVEST validation: ✓
Type "confirm" to create.
If autoApprove=true: Skip confirmation → Phase 5 Otherwise: Wait for "confirm"
Create Linear Issues:
for each Story:
create_issue({
title: Story.number + ": " + Story.title,
description: Story.generated_document,
project: epicData.id,
team: teamId,
labels: ["user-story"],
state: "Backlog"
})
Update kanban_board.md:
Epic Grouping Algorithm:
### Backlog**Epic {epicNumber}: {epicTitle}**
**Epic N: Epic Title**Format:
**Epic 7: OAuth Authentication**
📖 [ID: US004 Register OAuth client](url)
_(tasks not created yet)_
📖 [ID: US005 Request access token](url)
_(tasks not created yet)_
Update Epic Story Counters table:
Return:
STORIES CREATED for Epic 7: OAuth Authentication
✓ Created 5 Stories in Linear:
1. [ID: US004 Register OAuth client](url)
2. [ID: US005 Request access token](url)
3. [ID: US006 Validate access token](url)
4. [ID: US007 Refresh expired token](url)
5. [ID: US008 Revoke token](url)
✓ kanban_board.md updated (Backlog + Epic Story Counters)
✓ Standards Research included: OAuth 2.0, RFC 7636 PKCE, RFC 7009 Revocation
Total: 5 Stories, 62h, 90 tests
NEXT STEPS:
1. Run ln-310-story-validator to validate Stories (Backlog → Todo)
2. Use ln-300-task-coordinator to create tasks
| Rule | Description | |------|-------------| | Standards Research Insertion | MUST insert in EVERY Story Technical Notes → Library Research (prevents outdated library choices causing rework in ln-400) | | INVEST Validation | All Stories must pass before creation (stop if ANY fails) | | Template Ownership | This skill owns story_template_universal.md in references/ | | Epic Grouping | Reuse Epic header if exists (search by Epic number), don't duplicate | | Story Numbering | Sequential across ALL Epics (read Next Story from kanban_board.md) | | No Code | Descriptions contain approach ONLY, not code |
✅ Phase 1:
✅ Phase 2:
✅ Phase 3:
✅ Phase 4:
✅ Phase 5:
MANDATORY READ: Load shared/references/template_loading_pattern.md for template copy workflow.
Template: story_template.md
Local copy: docs/templates/story_template.md (in target project)
shared/references/kanban_update_algorithm.mdshared/references/template_loading_pattern.mdshared/references/linear_creation_workflow.mdLocation: shared/templates/story_template.md (centralized)
Local Copy: docs/templates/story_template.md (in target project)
Purpose: Universal Story template (8 sections)
Template Version: 9.0.0
Called by: ln-220-story-coordinator
Returns:
Worker does NOT:
Version: 3.0.0 Last Updated: 2025-12-23
testing
When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," or "content planning." For writing individual pieces, see copywriting. For SEO-specific audits, see seo-audit.
development
When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' or 'competitive landing pages.' Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. Emphasizes deep research, modular content architecture, and varied section types beyond feature tables.
development
Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Covers subject lines, opening lines, body copy, CTAs, personalization, and multi-touch follow-up sequences.
development
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' or 'involuntary churn.' This skill covers voluntary churn (cancel flows, save offers, exit surveys) and involuntary churn (dunning, payment recovery). For post-cancel win-back email sequences, see email-sequence. For in-app upgrade paywalls, see paywall-upgrade-cro.