mayurpise/draft/jira

Claude Code and agent skill by mayurpise/draft

Trust tier 3
  • community
Source check pending

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/jira

SKILL.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 IntentSubcommandBehavior
(no args), preview, preview <track-id>preview (default)Generate jira-export-<timestamp>.md — one Story containing all phases/tasks
preview --epic ...preview --epicGenerate rich export: 1 Epic + 1–3 Stories (max)
create, create <track-id>createCreate 1 Story (default) via MCP
review <JIRA_ID>reviewFull qualification review of any Jira ticket — delegates to references/review.md
  • preview is the default when no subcommand is supplied.
  • review requires 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:

markdown
## Jira
Project Key: <KEY>
Integration: jira-mcp
Team: <team-name>
Component: <component-name>
Swimlane: <swimlane-name>
Assignee Display Name: <assignee-name>
  • Project Key — required for create. If missing, prompt and persist.
  • Integration — informational; defaults to jira-mcp if 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:

  1. Prompt the user for it.
  2. Append to (or create) the ## Jira section in draft/workflow.md so 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
bash
basename "$(pwd)" # Project name
git branch --show-current # Local branch
git rev-parse --abbrev-ref --symbolic-full-name @{upstream} 2>/dev/null || echo "none"
git rev-parse HEAD # Full SHA
git rev-parse --short HEAD # Short SHA
git log -1 --format="%ci" # Commit date
git log -1 --format="%s" # Commit subject
git status --porcelain | head -1 # Dirty check
Metadata Template
yaml
---
project: "{PROJECT_NAME}"
module: "root"
track_id: "{TRACK_ID}"
generated_by: "draft:jira:preview"
generated_at: "{ISO_TIMESTAMP}"
git:
branch: "{LOCAL_BRANCH}"
remote: "{REMOTE/BRANCH or 'none'}"
commit: "{FULL_SHA}"
commit_short: "{SHORT_SHA}"
commit_date: "{COMMIT_DATE}"
commit_message: "{FIRST_LINE_OF_COMMIT_MESSAGE}"
dirty: {true|false}
synced_to_commit: "{FULL_SHA}"
---

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
FlagRoot IssueChild IssuesWhere phases/tasks live
(default)1 StoryNoneInside the single Story description
--epic1 Epic1–3 Stories (max)Distributed across the Story descriptions

Step 1: Load Context

  1. Capture git context (commands above).
  2. Find the active track from draft/tracks.md (look for [~] In Progress or first [ ]). If a track ID is provided in $ARGUMENTS, use that instead.
  3. Read the track's plan.md for phases and tasks.
  4. Read the track's metadata.json for title and type.
  5. Read the track's spec.md for root-issue description.
  6. 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
  1. Read draft/workflow.md → ## Jira section 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 --epic flag), 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
  1. Parse findings by severity (Critical, High, Medium, Low).
  2. 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.
  3. Group by severity for the export.
From review-report-latest.md
  1. 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).
  2. Extract for each finding: Severity (Critical ✗ / Warning ⚠), Category, Location, Issue, Risk/Impact, Fix.
  3. 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

bash
TIMESTAMP=$(date +%Y-%m-%dT%H%M)
EXPORT_FILE="draft/tracks/<track_id>/jira-export-${TIMESTAMP}.md"
SYMLINK="draft/tracks/<track_id>/jira-export-latest.md"

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:

markdown
## Root Issue
**Summary:** [Track Title]
**Issue Type:** Story # or Epic when --epic
**Labels:** draft
**Description:**
{noformat}
[First 2-3 paragraphs from spec.md]
## Plan

Then render the plan content concisely:

  • In default mode: Render all phases as ### Phase X: Name headings, 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 --epic for 1 Epic + 1-3 Stories.

Update the symlink.

Step 5: Report

text
Jira Preview Generated
Track: [track_id] - [title]
Mapping: [story-rooted | epic-rooted] (phases: N)
Export: draft/tracks/<id>/jira-export-<timestamp>.md
Symlink: draft/tracks/<id>/jira-export-latest.md
Summary:
- 1 root issue ({Story | Epic})
- N mid-level issues ({Tasks | Stories})
- M leaf issues (Sub-tasks)
- P total story points
- B bugs (from bughunt-report-latest.md)
Breakdown:
- Phase 1: [name] - X pts, Y tasks
- Phase 2: [name] - X pts, Y tasks
- ...
Bugs (if bughunt-report-latest.md exists):
- X critical bugs
- Y high bugs
- Z medium/low bugs
Next steps:
1. Review and edit the export via jira-export-latest.md (adjust points, descriptions, leaf issues, bug priorities)
2. Run `/draft:jira create` to create issues in Jira

Error Handling (preview)

plan.md has no phases:

  • Tell user: "No phases found in plan.md. Run /draft:new-track to generate a proper plan."

spec.md missing:

  • Use plan.md overview 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mayurpise/draft/jira/badge)](https://verified-skill.com/skills/mayurpise/draft/jira)

Something wrong with this skill or its page? Tell us.