mayurpise/draft/jira
Claude Code and agent skill by mayurpise/draft
- community
Checking that the SKILL.md file is still in the repository.
Unified Jira entry point. Routes to preview (default), create, or review subcommands.
Install
npx vskill@latest install mayurpise/draft/jiraSKILL.md
The same SKILL.md was published earlier as mayurpise/draft/jira.
Jira
Single entry point for all Jira workflows: preview Draft tracks as Jira issues, create them via MCP (default = 1 Story per track; --epic = 1 Epic + 1-3 Stories), and review any Jira ticket (epic, story, bug, sub-task) end-to-end.
Subcommand Routing
Parse $ARGUMENTS and dispatch:
| User Intent | Subcommand | Behavior | |
|---|---|---|---|
(no args), preview, preview <track-id> | preview (default) | Generate jira-export-<timestamp>.md — one Story containing all phases/tasks | |
preview --epic ... | preview --epic | Generate rich export: 1 Epic + 1–3 Stories (max) | |
create, create <track-id> | create | Create 1 Story (default) via MCP | |
review <JIRA_ID> | review | Full qualification review of any Jira ticket — delegates to references/review.md |
previewis the default when no subcommand is supplied.reviewrequires a Jira ID as the next argument. Validate format<PROJECT>-<NUMBER>(e.g.,ENG-446236). If numeric-only, prompt for project prefix — do NOT assume.
Jira Configuration (Shared)
All subcommands read project-level Jira configuration from draft/workflow.md under a ## Jira section:
- Project Key — required for
create. If missing, prompt and persist. - Integration — informational; defaults to
jira-mcpif absent. - Team / Component / Swimlane / Assignee Display Name — applied as defaults to every issue created by
create. Empty values are skipped (Jira ignores blank fields).
If a value is missing when needed:
- Prompt the user for it.
- Append to (or create) the
## Jirasection indraft/workflow.mdso subsequent runs reuse it.
Jira Content Hygiene (Mandatory)
When writing any text that will go into Jira (descriptions, summaries, bug details):
- Be minimal, concise, and precise.
- Do not dump full plans, long task lists, verbose context, or Draft-internal reasoning into Jira.
- Use short summaries + key outcomes only.
- Structured content (phases, tasks) may be included as compact markdown, but keep it brief.
- Never pollute Jira with excessive text.
This rule applies to both preview generation and create descriptions.
Subcommand: preview
Generate a timestamped jira-export-<timestamp>.md (with jira-export-latest.md symlink) from the active track's plan for review and editing before creating Jira issues.
Flag handling: Check $ARGUMENTS for --epic at the very start of this section. If present, set EPIC_MODE=true and remove the flag from the working arguments. This flag changes the entire output structure (see Step 2).
Red Flags — STOP if you're
- Generating a preview without an approved plan.md
- Assigning story points inconsistent with task count
- Missing sub-tasks that exist in plan.md
- Not including quality findings when review/bughunt reports exist
- Overwriting a reviewed jira-export without warning the user
Plan first, then preview. Accuracy over speed.
Standard File Metadata
The generated jira-export-<timestamp>.md MUST include the standard YAML frontmatter for traceability and sync verification.
Gathering Git Information
Metadata Template
Mapping Structure
Default behavior (recommended)
- Every track becomes exactly 1 Story.
- All phases and their tasks are included inside the Story description (as markdown sections).
- No child Jira issues are created.
This keeps Jira clean and keeps the export focused on root issues by default.
Opt-in rich hierarchy (--epic)
Use /draft:jira preview --epic or /draft:jira create --epic when you want an Epic.
Splitting rule (simple):
- 5 or fewer phases → 1 Story under the Epic
- More than 5 phases → split across 2 or 3 Stories (maximum)
All detailed tasks remain inside the Story descriptions — we never create Jira Tasks or Sub-tasks.
Summary of mappings
| Flag | Root Issue | Child Issues | Where phases/tasks live | |
|---|---|---|---|---|
| (default) | 1 Story | None | Inside the single Story description | |
--epic | 1 Epic | 1–3 Stories (max) | Distributed across the Story descriptions |
Step 1: Load Context
- Capture git context (commands above).
- Find the active track from
draft/tracks.md(look for[~] In Progressor first[ ]). If a track ID is provided in$ARGUMENTS, use that instead. - Read the track's
plan.mdfor phases and tasks. - Read the track's
metadata.jsonfor title and type. - Read the track's
spec.mdfor root-issue description. - Check for quality reports:
draft/tracks/<id>/review-report-latest.md— review findings (from/draft:review)draft/tracks/<id>/bughunt-report-latest.md— defect findings
- Read
draft/workflow.md→## Jirasection for shared config (see Jira Configuration above).
If no track found: tell the user "No track found. Run /draft:new-track to create one, or specify track ID."
Step 2: Determine Export Mode, Count Phases, and Group Content
2.1 Detect Mode
- If
EPIC_MODE=true(from--epicflag), use Epic + Stories mode. - Otherwise, use default single-Story mode.
2.2 Count Phases and Decide Story Count (Epic Mode Only)
Count the number of ## Phase sections in plan.md.
Splitting guideline (when using --epic):
- Phases ≤ 5 → 1 Story under the Epic
- Phases 6–12 → 2 Stories under the Epic
- Phases > 12 → 3 Stories under the Epic (hard cap)
Store the target number of stories: TARGET_STORIES.
2.3 Group Phases (for Epic Mode)
Divide the phases as evenly as possible across TARGET_STORIES.
Example grouping (store this in memory):
- Story 1 gets phases 1..K
- Story 2 gets phases K+1..M
- Story 3 gets remaining phases
In default mode, ignore grouping — everything goes under one Story.
2.4 Build Data Structures
For every phase:
- Capture Phase name, Goal, Verification
- Collect all its tasks (with status)
Calculate total story points using the existing simple table (1-2 tasks = 1pt, 3-4=2pt, 5-6=3pt, 7+=5pt). This total goes on the root issue (or split across stories in epic mode if desired — default is to put total on the first Story).
2.5 Root Issue Data
- Summary = Track title
- Description base = content from
spec.md(first 2-3 paragraphs) + later the full structured plan - Issue Type = "Story" (default) or "Epic" (--epic)
Step 3: Extract Quality Findings (if reports exist)
If review-report-latest.md or bughunt-report-latest.md exists in the track directory:
From bughunt-report-latest.md
- Parse findings by severity (Critical, High, Medium, Low).
- Extract all sections for each bug: Location, Confidence, Code Evidence, Data Flow Trace, Issue, Impact, Verification Done, Why Not a False Positive, Fix, Regression Test.
- Group by severity for the export.
From review-report-latest.md
- Parse findings from review report stages — Stage 1: Automated Validation (Architecture Conformance, Dead Code, Dependency Cycles, Security Scan, Performance), Stage 2: Spec Compliance, Stage 3: Code Quality (Architecture, Error Handling, Testing, Maintainability).
- Extract for each finding: Severity (Critical ✗ / Warning ⚠), Category, Location, Issue, Risk/Impact, Fix.
- Group by severity for the export.
Critical/High findings should be highlighted — consider suggesting additional stories or tasks to address them before the track is complete.
Step 4: Generate the Export File
Create the file and the latest symlink.
4.1 Write Frontmatter + Header
Use the standard YAML frontmatter. Add a mode: default or mode: epic field.
Write a clean summary table.
4.2 Write Root Issue Section
Jira Content Rule: Keep the description minimal and focused. Use short paragraphs. Do not dump full plans or verbose reasoning. Structured phases/tasks must be compact.
Always start with:
Then render the plan content concisely:
- In default mode: Render all phases as
### Phase X: Nameheadings, with Goal, Verification, and a compact task checklist under each. - In --epic mode: If this is the root Epic section, put a short overview only.
Include the Draft signature at the bottom of the description.
4.3 Write Story Sections (only in --epic mode)
Jira Content Rule: Keep every Story description short and scannable. Use compact headings and minimal text.
If mode: epic:
- Emit 1 to 3
## Story N: [Short Title]blocks (using the grouping decided in Step 2). - Under each Story, put the phases assigned to it as
### Phase ...+ compact task checklists. - Each Story gets its share of the total story points (or put the total on the first one — simple is fine).
4.4 Write Bug Issues Section (always)
Use the existing high-quality bug export format from bughunt-report-latest.md. These will become real Bug issues linked to the root (Epic or the main Story).
4.5 Final Notes in the Export
Add at the top:
Default = 1 Story. Use--epicfor 1 Epic + 1-3 Stories.
Update the symlink.
Step 5: Report
Error Handling (preview)
plan.md has no phases:
- Tell user: "No phases found in plan.md. Run
/draft:new-trackto generate a proper plan."
spec.md missing:
- Use
plan.mdoverview for root-issue description. - Warn: "spec.md not found, using plan overview for root-issue description."
jira-export-latest.md already exists:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/jira/SKILL.md
Popularity
- Repository stars
- 40
- Repository forks
- 4
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mayurpise/draft/jira)