No slash command · from jira-integration
Starts work on a Jira task by creating a feature branch or worktree, confirming SDLC level, and transitioning the issue to In Progress. Handles fresh and reopened tasks.
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.
None: SKILL.md is the whole skill.
공용 규약: skills/_shared/conventions.md를 먼저 Read한다 — 언어, TASK-ID 감지, harness 차이 (한국어 출력, Jira 코멘트 제목은 영어).
/jira로 확인, skills/_shared/jira-cli.md)cwd에서 .jira-context.json을 Read로 읽어보고 아래로 분기 — init이 이미 워크트리·README·context를 만들어둔 상태이면 중복 작업을 건너뛴다.
taskId === <TASK-ID>이며 worktreePath가 디스크에 있음.
이 분기 결정은 사용자에게 한 줄로 알려준다 — 예: 📂 post-init 모드: worktree·README·context 재생성 생략.
cachedIssue.key === <TASK-ID>이고 fetchedAt이 있으면 그 값을 쓴다 (skills/_shared/conventions.md "Cache-First Fetch"). 아니면 조회한다:
python3 "<scripts>/jira-cli.py" get <TASK-ID> --fields subtasks,issuelinks > "<scratchpad>/<TASK-ID>.issue.json"
캐시는 Step 6에서 담당자·상태·라벨이 바뀐 뒤 한 번만 기록한다(--cache-issue). 이 단계에서는 파일에 쓰지 않는다 — fresh 모드에서는 worktree-local 파일이 아직 없고, cwd가 aggregate(tasks[])면 cachedIssue를 쓰는 순간 최상위가 오염된다.
Display to the user:
python3 "<scripts>/sdlc-gate.py" prior-prs <TASK-ID> # {"reopened": bool, "prs": [{number, state, url, at}]}
reopened: false면 넘어간다. true면 이 이슈는 PR이 머지·닫힌 뒤 다시 열린 것이다. 사용자에게 🔁 재오픈 모드: 이전 PR #<번호…>를 알리고 아래를 한다.
git fetch --prune origin — 머지 뒤 지워진 원격 브랜치의 추적 참조를 정리한다(그대로 두면 같은 이름 push가 stale info로 거부된다). 로컬에 feature/<TASK-ID> 브랜치가 남아 있으면 지우지 말고 멈춰 /jira-task clean <TASK-ID>를 안내한다.python3 "<scripts>/jira-cli.py" get <TASK-ID> --fields comment에서 마지막 PR의 at 이후 코멘트를 읽는다. 원인을 하나로 분류한다: 재현 미검증(재현 절차를 밟지 않고 통과) / 가정 오류(설계가 기댄 외부 성질이 틀림) / 범위 누락 / 회귀 / 환경 차이 / 기타. 근거는 코멘트 문장 한 줄로 적는다. 코멘트에 사유가 없으면 사용자에게 묻는다.--patch에 "supersededPrs":[<번호…>]와 "reopen":{"prs":[<번호…>],"since":"<마지막 PR at>","cause":"<분류>","note":"<근거 한 줄>"}를 더한다. sdlc-gate.py는 supersededPrs의 PR을 승인·머지 판정에서 뺀다 — 기록하지 않으면 옛 PR의 승인으로 단계를 건너뛰거나, loop가 옛 머지를 보고 이슈를 다시 닫는다.## Reopened(이전 PR 링크, 원인 분류, 근거)를 올린다.skills/_shared/sdlc-level.md를 Read하고 그대로 따른다. labels에 sdlc-L*가 이미 있으면 묻지 않는다. 확정 전에는 담당자 지정·상태 전이를 하지 않는다 — 질문에서 멈추거나 중단돼도 Jira와 로컬이 어긋나지 않게. 확정 뒤 라벨·## SDLC Level 코멘트를 올리고, context 기록은 Step 6의 --patch로 한다.
작업을 시작하는 계정으로 이슈 담당자를 지정한다.
python3 "<scripts>/jira-cli.py" whoami → 현재 토큰 사용자의 accountId·displayName.cachedIssue.assignee(또는 Step 1의 현재 담당자)가 이미 이 사용자면 호출 생략 (중복 write 방지).python3 "<scripts>/jira-cli.py" assign <TASK-ID> (기본 me).비차단: 권한 부족 등으로 실패하면 한 줄 경고만 출력하고 워크플로를 계속한다 (transition 단계와 동일 정책).
⚠ 담당자 자동 지정 실패 (<사유>) — 수동으로 할당하세요.
python3 "<scripts>/jira-cli.py" transitions <TASK-ID> # [{id,name,to}] — "In Progress"/"진행 중" 류를 고른다
python3 "<scripts>/jira-cli.py" transition <TASK-ID> "<id>" # 출력 {"key","status"} = 전이 후 실제 상태 (재조회 불필요)
transition 출력의 status가 곧 <fresh-jira-status>다 (Step 6에 그대로 전달). 코멘트는 전이에 섞지 않고 Step 5에서 별도로 올린다.
If the transition fails, the issue may already be in progress or the transition name differs. In that case, inform the user of the current status and continue with the remaining steps.
post-init 모드면 본 Step 스킵. Step 0에서 .jira-context.json의 worktreePath가 디스크에 존재함을 이미 확인했으므로 git 체크 자체가 불필요.
fresh 모드: worktree를 새로 생성:
REPO_ROOT=$(git rev-parse --show-toplevel)
PARENT_DIR=$(dirname "$REPO_ROOT")
PROJECT_NAME=$(basename "$REPO_ROOT")
WORKTREE_BASE="$PARENT_DIR/${PROJECT_NAME}_worktree"
mkdir -p "$WORKTREE_BASE"
# base branch 감지 (develop → main → master)
git rev-parse --verify develop 2>/dev/null # 1st
git rev-parse --verify main 2>/dev/null # 2nd
git rev-parse --verify master 2>/dev/null # 3rd
# 원격이 있으면 최신 origin/<base>에서 분기한다 (로컬 base에 쌓인 미리뷰 커밋을 끌고 가지 않게)
git fetch origin <base-branch> 2>/dev/null && START_POINT="origin/<base-branch>" || START_POINT="<base-branch>"
git worktree add -b "feature/<TASK-ID>" "$WORKTREE_BASE/<TASK-ID>" "$START_POINT"
(선택 — MCP 서버를 쓰는 경우에만) jira-cli는 메인 레포 .jira-context.json의 jira 블록을 worktree에서도 찾아 읽으므로 CLI만 쓰면 전파가 필요 없다 — 이 경우 이 단계를 건너뛴다. MCP 서버를 등록해 쓰는 환경에서만 메인 레포의 atlassian MCP 설정을 worktree로 전파한다 (worktree는 별도 프로젝트 루트로 인식되어 MCP 설정이 자동 상속되지 않음 — init Step 5.5와 동일). 스크립트 경로 결정은 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
post-init 모드면 본 Step 스킵. init이 이미 만든 TASK-README.md를 덮어쓰지 않는다. 보강이 필요하면 사용자가 직접 수정.
fresh 모드: TASK-README.md를 worktree 디렉토리(또는 branch는 project root)에 생성:
# <TASK-ID>: <Summary>
## Issue Details
- **Status**: In Progress
- **Priority**: <priority>
- **Assignee**: <assignee>
- **Branch**: feature/<TASK-ID>
- **Started**: <current date/time>
## Description
<issue description from Jira>
## Acceptance Criteria
<extracted from description if available>
## Related Issues
<linked issues if any>
python3 "<scripts>/jira-cli.py" comment <TASK-ID> "## Start Work
브랜치 \`feature/<TASK-ID>\`에서 개발을 시작했습니다. 작업 디렉토리: \`<worktree-path or branch>\`"
skills/_shared/context-update.md 패턴으로 worktree-local + aggregate 두 파일을 한 번에 갱신한다. LLM 인라인 JSON patch 금지 — 누락/덮어쓰기 사고 방지.
호출 직전 skills/_shared/script-lookup.md로 JIRA_CTX_UPDATE_PY 절대경로를 해석:
SCRIPT_NAME="jira-context-update.py" OUT_VAR="JIRA_CTX_UPDATE_PY"
# Read skills/_shared/script-lookup.md and execute its lookup block here
python3 "<scripts>/jira-cli.py" get <TASK-ID> --fields subtasks,issuelinks > "<scratchpad>/<TASK-ID>.issue.json" # 담당자·상태·라벨 반영본
python3 "$JIRA_CTX_UPDATE_PY" <TASK-ID> start "<fresh-jira-status>" \
"<worktree>/.jira-context.json" \
"<repoRoot>/.jira-context.json" \
--cache-issue "<scratchpad>/<TASK-ID>.issue.json" \
--patch '{"level":"<L1|L2|L3>","riskSignals":[<번호...>]}'
<fresh-jira-status>: Step 2 transition 출력의 status (전이 후 실제 status명, 예: "In Progress", "진행 중"). transition 시도값을 그대로 쓰지 말 것.<repoRoot>: Step 0에서 Read한 worktree-local context의 repoRoot 값을 리터럴로 쓴다(셸에서 다시 파싱하지 않는다). 없으면 git worktree list | head -1의 첫 칸.error: missing: …와 exit 1을 낸다 — 경로를 고쳐 다시 호출한다.스크립트는 completedSteps에 "start" 추가, status·startAt·level·riskSignals 기록, cachedIssue(+fetchedAt) 저장을 한 번에 한다.
fresh 모드는 worktree-local 파일이 없으므로 init과 같은 필드(taskId, branch, worktreePath, repoRoot, baseBranch, summary, completedSteps: [])로 먼저 만든 뒤 위 스크립트를 호출한다.
아래 형식으로 완료 요약 출력:
---
✅ **Start Complete** — <TASK-ID>
- 이슈 상태: In Progress
- 담당자: <본인 표시명> (자동 지정)
- 브랜치: feature/<TASK-ID>
- Worktree: <path>
- 등급: <L1|L2|L3> (위험 신호: <이름 또는 없음>) — 라벨 `sdlc-<Lx>`
- Jira 코멘트 게시됨
**Progress**: init → **start ✓** → approach(L2·L3) → test-write → impl → verify → pr → done
**Next**:
- L1: `/jira-task test-write <TASK-ID>` — 동작이 바뀌지 않는 변경(오타·로그 한 줄 등)이면 사유를 남기고 `/jira-task impl <TASK-ID>`
- L2·L3: `/jira-task approach <TASK-ID>` — spec·plan(L3는 intent부터)을 쓰고 draft PR에서 승인을 기다립니다
---
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
17 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; 명세, 계획, 승인 요청.npx claudepluginhub mzd-hseokkim/jira-claude-code-integration --plugin jira-integrationOther plugins' skills for the same job