← ClaudeAtlas

checkout-jiralisted

Switch between JIRA issues by checking out workflow artifacts from Claude home directory to the project directory. Takes JIRA key or number as argument.
valasubramanian-kr/wallet-web-developer · ★ 0 · AI & Automation · score 65
Install: claude install-skill valasubramanian-kr/wallet-web-developer
# Checkout JIRA Skill ## Purpose Switch between JIRA issues by checking out workflow artifacts from Claude home directory to the project directory. ## Usage ```bash /checkout-jira DRT-17270 /checkout-jira 17270 ``` ## What This Skill Does 1. **Extract JIRA Number**: Accepts full JIRA key (DRT-17270) or just the number (17270) 2. **Check Destination**: Verifies if workflow artifacts already exist in project directory 3. **Check Source**: Verifies artifacts exist in Claude home directory 4. **Copy Artifacts**: Copies all workflow files from `~/.claude/artifacts/jira-to-github/<JIRA-NUMBER>/` to project's `workflow/jira-to-github/<JIRA-NUMBER>/` 5. **Confirmation**: Reports successful checkout ## Prerequisites - JIRA artifacts must exist in `~/.claude/artifacts/jira-to-github/<JIRA-NUMBER>/` (created by previous workflow runs) - If current workflow exists in project directory, run `/stash-jira` first to preserve it ## Instructions You are coordinating the checkout of JIRA workflow artifacts. ### Step 1: Extract JIRA Number Extract the numeric part from the skill argument: ```bash JIRA_ARG="<skill-argument>" # Extract numeric part - handles both "DRT-17270" and "17270" if [[ "$JIRA_ARG" =~ -([0-9]+)$ ]]; then JIRA_NUMBER="${BASH_REMATCH[1]}" elif [[ "$JIRA_ARG" =~ ^[0-9]+$ ]]; then JIRA_NUMBER="$JIRA_ARG" else echo "❌ Invalid JIRA format. Use 'DRT-17270' or '17270'" exit 1 fi ``` ### Step 2: Check for Existing Workflows in Project Check if any workflow art