From jira-integration
Complete a Jira task. Generates a completion summary, transitions the issue, and posts the summary to Jira. Use when user says "done", "complete task", "finish task", "jira-task done", "작업 완료", "태스크 완료", or wants to wrap up work on a Jira issue.
npx claudepluginhub mzd-hseokkim/jira-claude-code-integration --plugin jira-integrationThis skill is limited to using the following tools:
모든 출력을 한국어로 작성한다: 사용자 응답, 생성 문서, Jira 코멘트 내용 등 모든 텍스트가 대상이다.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides TDD-style skill creation: pressure scenarios as tests, baseline agent failures, write docs to enforce compliance, verify with RED-GREEN-REFACTOR.
모든 출력을 한국어로 작성한다: 사용자 응답, 생성 문서, Jira 코멘트 내용 등 모든 텍스트가 대상이다. 예외: 코드, 변수명, 브랜치명, 파일명, 명령어는 영어를 유지한다. Jira 코멘트: 섹션 제목(##, ###)은 영어로, 내용(설명·요약·노트)은 한국어로 작성한다.
feature/<TASK-ID> must exist with commitsCheck for .jira-context.json to get the active task context.
If TASK-ID is provided as argument, use that instead.
Verify the feature branch exists:
git branch --list "feature/<TASK-ID>"
Use mcp__atlassian__jira_get_issue to confirm the issue exists and check its current status.
Get the diff summary against the base branch:
git log --oneline <base-branch>..feature/<TASK-ID>
git diff --stat <base-branch>..feature/<TASK-ID>
git diff/log 정보와 PDCA 문서들을 기반으로 완료 요약 생성:
docs/plan/<TASK-ID>.plan.md 존재 시 기획 요약 추출docs/design/<TASK-ID>.design.md 존재 시 설계 요약 추출Step 5의 요약을 기반으로 mcp__atlassian__jira_add_comment에 게시:
## Task Completed: <TASK-ID>
**브랜치**: feature/<TASK-ID>
**커밋 수**: <count>개
**변경 파일**: <count>개 (+<추가> -<삭제>)
### Summary
- **Plan**: <기획 요약>
- **Design**: <설계 요약>
- **Changes**: <구현 변경사항 요약>
### Key Changes
<구현된 내용 간단 설명>
Use mcp__atlassian__jira_get_transitions to fetch available transitions, then use mcp__atlassian__jira_transition_issue to move the issue:
Important: Do NOT pass a comment parameter to jira_transition_issue. The comment field requires Atlassian Document Format (ADF) JSON — passing plain text will cause an error. Add comments separately using jira_add_comment.
.jira-context.json의 worktreePath를 읽어 ~/.claude.json에서 해당 경로의 mcpServers를 제거한다.
entry 전체는 삭제하지 않고 mcpServers 키만 제거하여 Claude Code의 다른 메타데이터는 보존한다.
python - "<worktreePath from .jira-context.json>" << 'PYEOF'
import json, os, sys
worktree_path = sys.argv[1]
claude_json_path = os.path.expanduser("~/.claude.json")
with open(claude_json_path, "r", encoding="utf-8") as f:
data = json.load(f)
def norm(p):
return p.replace("\\", "/").rstrip("/")
wt = norm(worktree_path)
projects = data.get("projects", {})
matched_key = None
for k in list(projects.keys()):
if norm(k) == wt:
matched_key = k
break
if matched_key and isinstance(projects[matched_key], dict):
projects[matched_key].pop("mcpServers", None)
with open(claude_json_path, "w", encoding="utf-8") as f:
json.dump(data, f, indent=2, ensure_ascii=False)
print(f"MCP config removed from {wt}")
else:
print(f"No entry found for {wt}, skipping")
PYEOF
.jira-context.json에 worktreePath가 없으면 스킵~/.claude.json에 해당 경로 entry가 없어도 스킵 (오류 아님)기존 .jira-context.json을 읽고, 다음 필드를 업데이트하여 저장:
completedSteps 배열에 "done" 추가 (중복 방지)status를 "Done"으로 변경completedAt에 현재 ISO 8601 타임스탬프 추가아래 형식으로 완료 요약 출력:
---
✅ **Task Done** — <TASK-ID>
- Jira 상태: Done (또는 In Review)
- 완료 리포트 Jira에 게시됨
- `.jira-context.json` 업데이트됨
- 워크트리 MCP config 정리됨 (`~/.claude.json`)
**Progress**: init → start → plan → design → impl → test → review → merge → pr → **done ✓**
🎉 모든 단계가 완료되었습니다!
---