stash-jiralisted
Install: claude install-skill valasubramanian-kr/wallet-web-developer
# Stash JIRA Skill
## Purpose
Preserve current workflow artifacts by moving them from project directory to Claude home directory, enabling context switching between JIRA issues.
## Usage
```bash
/stash-jira
```
## What This Skill Does
1. **Detect Current JIRA**: Identifies JIRA number from `workflow/jira-to-github/` directory
2. **Check Conflicts**: Warns if artifacts already exist in Claude home and offers options
3. **Handle Artifacts**: Based on user choice:
- Move to Claude home (overwrite or merge with backup)
- Delete project artifacts (keep Claude home version)
- Cancel operation
4. **Cleanup**: Removes project workflow directory after successful operation
5. **Confirmation**: Reports successful operation with JIRA number
## Prerequisites
- Active workflow artifacts must exist in `workflow/jira-to-github/<JIRA-NUMBER>/`
- Write access to `~/.claude/artifacts/jira-to-github/`
## Instructions
You are coordinating the stashing of JIRA workflow artifacts to Claude home directory.
### Step 1: Detect Current JIRA
Find the JIRA number from the workflow directory:
```bash
# Find most recent workflow directory
WORKFLOW_DIR=$(ls -td workflow/jira-to-github/*/ 2>/dev/null | head -1)
if [ -z "$WORKFLOW_DIR" ]; then
echo "❌ No workflow artifacts found in project directory"
echo ""
echo "Nothing to stash. Workflow directory is empty."
exit 1
fi
# Extract JIRA number from path
JIRA_NUMBER=$(basename "$WORKFLOW_DIR")
```
### Step 2: Check for Conflicts