/cascade-mcp:write-jira-storyfrom cascade-mcp
Writes or refines Jira stories by gathering context from Figma, Confluence, Google Docs, and parent epics. Analyzes frames, runs scope analysis, and outputs acceptance criteria and developer notes.
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.
Write or refine a Jira story description using comprehensive context from all linked sources (Figma, Confluence, Google Docs, parent epic).
Use when the user wants to:
Typical triggers:
PROJ-456) — the story to write/refineCall MCP tool extract-linked-resources with the Jira issue URL (e.g., https://myco.atlassian.net/browse/PROJ-456).
Save the returned markdown+frontmatter directly to .temp/cascade/context/jira-PROJ-456.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.mdFor each Figma URL:
figma-batch-zip with the URL
downloadUrl and manifestcurl -sL "{downloadUrl}" -o /tmp/cascade-figma.zip && unzip -qo /tmp/cascade-figma.zip -d .temp/cascade/figma/ && rm /tmp/cascade-figma.zip
figma-batch-cache with the same Figma URLsbatchToken and manifest from the responseChoose the matching path based on Phase 3 outcome:
For each frame in manifest.json, launch a subagent with 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 with 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.
Use analyze-feature-scope sub-skill 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 the analyze-feature-scope sub-skill recommends CLARIFY (>5 unanswered ❓ and no previous scope analysis), warn the user that there are many open questions. Suggest running generate-behavior-questions first to get answers before writing the story. Proceed only if the user confirms.
Call atlassian-get-issue to get the current story description (if it exists). This is needed to:
Using the scope analysis (.temp/cascade/scope-analysis.md), frame analyses, content summaries, Figma comments, and existing description (if any), write the story description.
## User Story Statement
As a {role}, I want {capability} so that {benefit}.
## Supporting Artifacts
- **Figma**: [Screen Name](figma-url) | [Another Screen](figma-url)
- **Confluence**: [Spec Title](confluence-url)
- **Epic**: [PROJ-123](jira-url): {epic summary}
<details>
<summary>Scope Analysis</summary>
### {Feature Area}
- ☐ **{Feature}**: {description} — [Screen Name](figma-url)
- ✅ **{Existing Feature}**: {description}
- ❌ **{Out of Scope}**: {why excluded}
- ❓ **{Open Question}**: {what needs clarification}
- 💬 **{Answered Question}**: {question} → {answer from comments/context}
</details>
## Non-Functional Requirements
{ONLY include if explicitly mentioned in context — do NOT invent}
- Performance: {specific requirement from specs}
- Accessibility: {specific requirement from specs}
## Developer Notes
{ONLY include if explicitly mentioned in context — do NOT invent}
- {specific technical guidance from Confluence, Google Docs, or Jira comments}
## Acceptance Criteria
**GIVEN** {precondition}:
[View in Figma](figma-url)
- **WHEN** {user action}, **THEN**
- {expected result 1}
- {expected result 2}
[View state in Figma](figma-url)
- **WHEN** {subsequent action}, **THEN**
- {nested expected result}
**GIVEN** {another precondition}:
- **WHEN** {user action}, **THEN**
- {expected result}
Note on Scope Analysis formatting: Wrap the Scope Analysis content in <details><summary>Scope Analysis</summary>...</details> as shown above. The MCP tool will convert this to a collapsible expand panel in Jira automatically.
When the story already has a description:
Call MCP tool atlassian-update-issue-description to write the story description to Jira.
Present the updated description to the user and confirm the update was successful.
example-story.md in this skill folder for a complete worked example of the expected output format, including nested Gherkin, scope markers, and <details> wrapping.temp/cascade/ already has data from a prior generate-behavior-questions run, reuse it instead of re-fetching everythingWhat 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