/cascade-mcp:write-shell-storiesfrom cascade-mcp
Generates or refreshes shell stories for Jira epics by loading linked context from Figma, Confluence, and Google Docs, analyzing Figma frames, and producing prioritized story outlines grouped by workflow.
Ships in cascade-mcp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate or refresh the ## Shell Stories section of a Jira epic using comprehensive context from all linked sources (Figma, Confluence, Google Docs) and a scope analysis pass.
Use when the user wants to:
Typical triggers:
PROJ-123) — the epic to write shell stories forCall MCP tool extract-linked-resources with the Jira epic URL (e.g., https://myco.atlassian.net/browse/PROJ-123).
Save the returned markdown+frontmatter directly to .temp/cascade/context/jira-PROJ-123.md.
Parse discoveredLinks from frontmatter to build .temp/cascade/context/to-load.md.
For each non-Figma URL in to-load.md (prioritize parent and blocks relationships first):
extract-linked-resources with the URL.temp/cascade/context/{type}-{identifier}.mddiscoveredLinks from frontmatter — add any new URLs to to-load.mdImportant: Figma URLs are collected but NOT loaded here — they go in the ## Figma section of to-load.md for Phase 3.
For each Figma URL collected:
Call MCP tool figma-batch-zip with the Figma file URL
downloadUrl and manifestTry to download and extract:
curl -sL "{downloadUrl}" -o /tmp/cascade-figma.zip && unzip -qo /tmp/cascade-figma.zip -d .temp/cascade/figma/ && rm /tmp/cascade-figma.zip
If curl succeeds, the extracted data is at:
.temp/cascade/figma/{fileKey}/
├── manifest.json ← frame list with metadata
├── prompts/
│ └── frame-analysis.md ← analysis prompt for frames
└── frames/
├── {nodeId}-{name}/
│ ├── image.png
│ ├── structure.xml
│ └── context.md
└── ...
→ Proceed to Phase 4 (filesystem path).
If curl fails (e.g., DNS blocked in cloud environments):
figma-batch-cache with the same Figma URLsbatchToken and manifest from the response
→ Proceed to Phase 4 (MCP path).Choose the matching path based on Phase 3 outcome:
For each frame listed in manifest.json, launch a subagent using the cascade-analyze-figma-frame sub-skill.
Pass only the frame directory path (e.g., .temp/cascade/figma/{fileKey}/frames/{dirName}/). Do NOT read context.md, structure.xml, or image.png yourself — the subagent reads all files internally.
For each frame in the manifest from figma-batch-cache, launch a subagent using the cascade-analyze-figma-frame-mcp sub-skill.
Pass the frame's Figma URL and the batchToken. The subagent calls figma-frame-data(url, batchToken) to retrieve data via MCP.
Run all subagents in parallel. Wait for all to complete before proceeding.
Use sub-skill cascade-analyze-feature-scope to produce .temp/cascade/scope-analysis.md. This categorizes every feature by scope (☐/✅/⏬/❌/❓/💬) using the epic context as the primary source of truth.
Self-healing check: If cascade-analyze-feature-scope recommends CLARIFY (>5 unanswered ❓ and no previous scope analysis exists), warn the user that there are many open questions. Suggest running generate-behavior-questions first to get answers before generating shell stories. Proceed only if the user confirms.
Call atlassian-get-issue with the epic key to get the current epic description. This is needed to:
## Shell Stories section to find completion markers (stories with a Jira link + timestamp, e.g., **[Story Title](https://...atlassian.net/browse/PROJ-456)** _(2025-01-15T10:30:00Z)_) — these must be preserved exactly## Scope Analysis section (if present) for ❓ → 💬 flipping awarenessPreserve completion markers: Record which story IDs already have a jiraUrl completion marker. During Phase 7, do NOT rewrite those stories — copy them verbatim from the existing description.
Using the scope analysis (.temp/cascade/scope-analysis.md), frame analyses, content summaries, and Figma annotations, generate a prioritized list of shell stories.
Each story is a top-level list item with sub-bullets:
## Shell Stories
- `st001` **Story Title** ⟩ One sentence description of what this story delivers
* SCREENS: [Screen Name](figma-url), [Another Screen](figma-url)
* DEPENDENCIES: none
* ☐ Feature included in this story
* ☐ Another included feature — [Screen Name](figma-url)
* ⏬ Lower-priority feature (implement in st005)
* ❌ Out of scope for this epic
* ❓ Open question about behavior
- `st002` **Another Story Title** ⟩ One sentence description
* SCREENS: [Screen Name](figma-url)
* DEPENDENCIES: st001
* ☐ Feature that builds on st001
* ❓ Another open question
☐ In-Scope features → include as ☐ bullets⏬ Low Priority features → group into stories at the end (add ⏬ bullets with (implement in stXXX))❌ Out-of-Scope features → add as ❌ bullets (no story reference needed)❓ Open questions → include as ❓ bullets in the most relevant storySCREENS bullet with Figma links. Extract Figma URLs from the scope analysis feature areas.none. Only reference story IDs that exist in the output. Sequence foundational stories first.⏬ bullets — all deferred work must be accounted for in earlier or intermediate stories.❌, not ⏬.When the epic already has a ## Shell Stories section:
**[Title](url)** _(date)_) must be copied exactly as-is. Do NOT renumber or rephrase them.DEPENDENCIES bullets that reference it.## Shell Stories section exists: replace it with the newly generated section## Shell Stories after ## Scope Analysis (or at the end of the description if no scope analysis section is present)atlassian-update-issue-description with the updated full description (preserve all other sections unchanged)## Shell Stories section. Leave ## Scope Analysis, ## Acceptance Criteria, and any other sections exactly as they are.[Screen Name](figma-url) — screen name as link text, Figma node URL as target.cascade-analyze-feature-scope sub-skill will flip ❓ → 💬 automatically. Updated scope analysis may result in different stories being generated.write-next-story-from-shell-story skill to turn the first unwritten shell story into a full Jira subtask with acceptance criteria.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bitovi/cascade-mcp --plugin cascade-mcp13 skills in this plugin
/cascade-analyze-feature-scopeSub-skill: Produce a Scope Analysis from frame analyses and all gathered context. This is the critical step that takes per-frame analyses + epic context + Confluence/Google Docs + Figma comments and categorizes every feature by scope (☐/✅/⏬/❌/❓/💬). Groups features by user workflow, not by screen. Supports self-healing ❓→💬 flipping on re-runs. Output drives all downstream work (questions, shell stories, story writing)./cascade-analyze-figma-frameSub-skill: Analyze a single Figma design frame from local files. Reads image.png (vision), structure.xml (component tree), and context.md (comments/annotations) from .temp/cascade/figma/{fileKey}/frames/{name}/. Writes analysis.md. Designed to run as a subagent — no MCP tools needed, pure filesystem./cascade-analyze-figma-frame-mcpSub-skill: Analyze a single Figma design frame via the figma-frame-data MCP tool. Use this variant when local files are NOT available (e.g., GitHub cloud Copilot where curl is blocked). Calls figma-frame-data with a batchToken to retrieve image, structure, and context via MCP, then analyzes and returns the analysis as text. No filesystem reads needed — pure MCP./cascade-answer-design-questions-post-to-figmaInteractive Q&A flow for design behavior questions. Asks each question one at a time, collects the user's answer, and posts each Q&A pair as a Figma comment pinned to the correct frame with proper vertical spacing./cascade-answer-design-questions-post-to-jiraInteractive Q&A flow for design behavior questions. Asks each question one at a time, collects the user's answer, and incrementally builds a growing Q&A comment on a Jira issue using atlassian-add-comment and atlassian-update-comment./cascade-load-linked-resource-contentSub-skill: Fetch raw content for one or more URLs via the extract-linked-resources MCP tool. Supports Jira issues, Confluence pages, Google Docs, and Google Sheets. Saves content to .temp/cascade/context/ and appends newly discovered links to to-load.md. Used as a building block by parent skills like generate-questions and write-jira-story.Other plugins' skills for the same job