No slash command · from jira-integration
Fetches assigned high-priority Jira tasks and creates git worktrees for each. Supports count mode, issue key mode with subtask dependency analysis, and natural language input.
Ships in jira-integration. 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.
공용 규약: skills/_shared/conventions.md를 먼저 Read한다 — 언어, TASK-ID 감지, harness 차이 (한국어 출력, Jira 코멘트 제목은 영어).
나에게 할당된 Jira 태스크를 우선순위 순으로 가져와서 각각 git worktree를 생성하고 작업 컨텍스트를 세팅하는 일괄 처리 워크플로우.
scripts/jira-cli.py (규약: Read skills/_shared/jira-cli.md). 호출 prompt가 <scripts>/ 절대 경로를 줬으면 그대로, 없으면 skills/_shared/script-lookup.md로 SCRIPT_NAME="jira-cli.py" 1회 해석..jira-context.json의 jira 블록 (없으면 환경변수 JIRA_URL, JIRA_USERNAME, JIRA_API_TOKEN)인자를 분석하여 3가지 모드 중 하나로 분류한다:
"", "3", "5"[A-Z]+-\d+, 예: MAE-2, PROJ-123)이 포함되면 → Step 1-B로 진행.
"MAE-2", "MAE-2 하위작업 분석해서 착수 가능한 것만"사용자에게 몇 개의 태스크를 가져올지 확인 (기본값: 5).
JQL 쿼리로 나에게 할당된 고우선순위 태스크 조회.
python3 "<scripts>/jira-cli.py" search "assignee = currentUser() AND status NOT IN (Done, Closed) ORDER BY priority DESC, created ASC" --limit 20
또는 활성 스프린트가 있으면 스프린트 기반으로 조회:
python3 "<scripts>/jira-cli.py" boards [PROJECT]로 보드 목록 확인python3 "<scripts>/jira-cli.py" sprints <BOARD-ID> active로 활성 스프린트 확인python3 "<scripts>/jira-cli.py" search "sprint = <active-sprint-id> AND assignee = currentUser() AND status NOT IN (Done, Closed) ORDER BY priority DESC" --limit 20결과에서 상위 N개(기본 5개)만 선택. → Step 2로 진행.
Step 0에서 추출한 이슈 키로 해당 이슈와 하위작업을 조회하고 의존성을 분석한다.
상세 절차: Read skills/jira-task-init/refs/issue-key-mode.md
요약:
jira-cli.py get <ISSUE-KEY>)jira-cli.py search "parent = <ISSUE-KEY> AND status NOT IN (Done, Closed)")get <KEY> --fields issuelinks) → is blocked by 미완료 블로커 있으면 blocked 처리가져온 태스크 목록을 테이블로 표시:
Found <N> tasks assigned to you:
| # | Key | Summary | Priority | Status | Type |
|---|-----|---------|----------|--------|------|
| 1 | PROJ-101 | 로그인 기능 구현 | Highest | To Do | Story |
| 2 | PROJ-102 | API 에러 핸들링 | High | To Do | Task |
| 3 | PROJ-103 | 대시보드 UI | High | In Progress | Story |
| 4 | PROJ-104 | 테스트 커버리지 | Medium | To Do | Task |
| 5 | PROJ-105 | 문서 업데이트 | Medium | To Do | Task |
사용자에게 확인: "이 태스크들에 대해 worktree를 생성할까요? (전체 또는 번호 선택)"
REPO_ROOT=$(git rev-parse --show-toplevel)
PROJECT_NAME=$(basename "$REPO_ROOT")
PARENT_DIR=$(dirname "$REPO_ROOT")
WORKTREE_BASE="$PARENT_DIR/${PROJECT_NAME}_worktree"
Base branch 감지 (순서대로 시도):
git rev-parse --verify develop 2>/dev/null # 1st: develop
git rev-parse --verify main 2>/dev/null # 2nd: main
git rev-parse --verify master 2>/dev/null # 3rd: master
프로젝트의 .gitignore에 아래 항목이 없으면 bash로 추가:
REPO_GITIGNORE="$REPO_ROOT/.gitignore"
if ! grep -qF ".jira-context.json" "$REPO_GITIGNORE" 2>/dev/null; then
printf '\n# Jira integration (local dev context)\n.jira-context.json\nTASK-README.md\n' >> "$REPO_GITIGNORE"
fi
if ! grep -qF ".jira-epic.json" "$REPO_GITIGNORE" 2>/dev/null; then
printf '\n# Jira integration (local epic scope)\n.jira-epic.json\n' >> "$REPO_GITIGNORE"
fi
if ! grep -qF "docs/review-log/" "$REPO_GITIGNORE" 2>/dev/null; then
printf '\n# Jira integration (harness telemetry, local only)\ndocs/review-log/\ndocs/run-log/\n' >> "$REPO_GITIGNORE"
fi
이미 존재하면 스킵.
선택된 각 태스크에 대해 브랜치/worktree 존재 여부를 확인한 뒤 생성하고, .gitignore를 동기화한다.
상세 절차: Read skills/jira-task-init/refs/worktree-creation.md
요약:
git worktree add "$WORKTREE_BASE/<TASK-ID>" "feature/<TASK-ID>"git worktree add -b "feature/<TASK-ID>" "$WORKTREE_BASE/<TASK-ID>" origin/<base-branch> (원격 없으면 로컬 base).gitignore에 .jira-context.json / TASK-README.md 항목 추가 (없으면)<parent>/<project>_worktree/<TASK-ID>)atlassian MCP 서버를 계속 쓰는 경우에만 수행한다. jira-cli.py는 메인 레포 .jira-context.json의 jira 블록을 worktree에서도 찾아 읽으므로 CLI만 쓰면 이 전파는 필요 없다 — 그 경우 Step 6으로 넘어간다.
워크트리는 별도의 프로젝트 루트로 인식되어 MCP 설정이 자동 상속되지 않는다.
scripts/propagate-mcp-config.sh를 호출하여 메인 레포의 atlassian 서버 설정을 워크트리로 전파한다.
스크립트 경로 결정은 Read skills/_shared/script-lookup.md 후 lookup 블록 실행:
REPO_ROOT_ABS="<REPO_ROOT 절대경로>"
WORKTREE_ABS="<워크트리 절대경로>"
SCRIPT_NAME="propagate-mcp-config.sh" OUT_VAR="PROPAGATE_SH"
# Read skills/_shared/script-lookup.md and execute its lookup block here
if [ -n "$PROPAGATE_SH" ]; then
bash "$PROPAGATE_SH" "$REPO_ROOT_ABS" "$WORKTREE_ABS"
else
echo "propagate-mcp-config.sh not found — skipping MCP propagation. Run /jira setup in the worktree if needed." >&2
fi
.mcp.json > ~/.claude.json projects > ~/.claude.json top-levelatlassian 서버가 빠져 있으면 경고만 출력하고 진행.mcp.json을 처음 로드하면 신뢰 승인 프롬프트가 한 번 뜰 수 있다각 worktree 디렉토리에 TASK-README.md 생성. 포함 항목:
start(등급 확정) → approach(L2·L3) → test-write → impl → verify → 사람이 draft 해제·머지 → done, 또는 auto)각 태스크에 코멘트 게시:
python3 "<scripts>/jira-cli.py" comment <TASK-ID> "브랜치 \`feature/<TASK-ID>\`의 worktree가 \`<worktree-path>\`에 초기화되었습니다."
각 worktree에 .jira-context.json 생성 (세션 시작 시 hook이 읽을 수 있도록):
{
"taskId": "PROJ-101",
"branch": "feature/PROJ-101",
"worktreePath": "<path>",
"repoRoot": "<REPO_ROOT 절대경로>",
"baseBranch": "<detected base branch>",
"summary": "로그인 기능 구현",
"priority": "Highest",
"status": "To Do",
"completedSteps": ["init"],
"initializedAt": "<ISO timestamp>"
}
원본 레포에도 .jira-context.json 저장 (전체 태스크 목록용). 기존 aggregate가 있으면 통째로 덮어쓰지 말고 병합한다: 기존 tasks[]에 같은 taskId 항목이 있으면 그 항목의 completedSteps·deferred·deferredKind·deferredReason·타임스탬프를 보존하고(없는 신규 태스크만 추가), 최상위 필드는 갱신 — 진행 중 큐를 리셋하면 loop/resume이 깨진다.
{
"initialized": "<ISO timestamp>",
"repoRoot": "<REPO_ROOT 절대경로>",
"baseBranch": "<detected base branch>",
"worktreeBase": "<worktree base path>",
"tasks": [
{
"taskId": "PROJ-101",
"branch": "feature/PROJ-101",
"worktreePath": "<path>",
"repoRoot": "<REPO_ROOT 절대경로>",
"summary": "로그인 기능 구현",
"priority": "Highest",
"status": "To Do"
}
]
}
생성된 worktree들이 dashboard에 즉시 보이도록, 부모 레포($REPO_ROOT)를 dashboard
workspace registry에 등록한다. (idempotent — 이미 등록돼 있으면 lastSeenAt만 갱신.)
node "${CLAUDE_PLUGIN_ROOT}/scripts/register-workspace.js" "$REPO_ROOT"
실패해도 워크플로는 진행 (등록은 dashboard 가시성에만 영향).
.jira-context.json의 completedSteps에 "init" 추가.
결과를 테이블로 표시한 뒤, 아래 형식으로 완료 요약 출력:
| # | Task | Branch | Worktree Path | Status |
|---|------|--------|---------------|--------|
| 1 | PROJ-101 | feature/PROJ-101 | ../project_worktree/PROJ-101 | Created |
| 2 | PROJ-102 | feature/PROJ-102 | ../project_worktree/PROJ-102 | Created |
---
✅ **Init Complete**
- <N>개 worktree 생성됨
- Jira 코멘트 게시됨
- 컨텍스트 `.jira-context.json`에 저장됨
**Progress**: **init ✓** → start → approach(L2·L3) → test-write → impl → verify → pr → done
**Next**: `cd <worktree-path>` → `/jira-task start <TASK-ID>`
---
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mzd-hseokkim/jira-claude-code-integration --plugin jira-integration17 skills in this plugin
/jira-dashboardManage the Jira dashboard server — setup, start, stop, or check status. Triggers: jira dashboard, dashboard status; 대시보드 시작, 대시보드 상태./jira-setupInteractive setup wizard — Jira credentials for this workspace (jira-cli) and optional MCP registration. Triggers: jira setup, setup jira; Jira 설정, 자격증명 설정./jira-task-approachWrite the standard L2/L3 artifacts (intent·spec·plan in work/<KEY>/), open a draft PR, ask the questions only a human can answer, and request approval when the approver is someone else. Triggers: jira-task approach, approach task; 명세, 계획, 승인 요청./jira-task-autoAuto-run a Jira task up to the next human gate — L2/L3 stop at plan approval when the approver is someone else, then test-write → impl → verify stops at 'ready for review'. Triggers: jira-task auto, auto run; 자동 실행, 전체 워크플로 자동./jira-task-cleanClean up git worktrees and branches for completed Jira tasks. Triggers: jira-task clean, remove worktree; 워크트리 정리, 브랜치 정리./jira-task-createInteractively create a new Jira issue (and optional sub-tasks) from conversation context — gathers details via dialog and creates in Jira. Triggers: jira-task create, create task, new task; Jira 이슈 만들어, 태스크 등록, 이슈 생성.Other plugins' skills for the same job