npx claudepluginhub psychquant/psychquant-claude-plugins --plugin issue-driven-devThis skill uses the workspace's default tool permissions.
---
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
按 diagnosis 的策略寫 code,不多做也不少做。
每一行改動都必須能追溯到 #NNN。追溯不到的改動 → 開新 issue。
gh issue view $NUMBER --repo $GITHUB_REPO --json title,body,labels
回顧對話中的 diagnosis report,確認 strategy。
根據 diagnosis 的 strategy,列出具體要改的檔案:
## Implementation Plan
- [ ] 修改 src/foo.ts — {改什麼}
- [ ] 修改 src/bar.ts — {改什麼}
- [ ] 新增 tests/foo.test.ts — {測什麼}
Scope check: 清單裡的每一項都能對應到 issue 的某個要求?
Comment 到 issue(留下實作計畫的紀錄):
gh issue comment $NUMBER --repo $GITHUB_REPO --body "$IMPLEMENTATION_PLAN"
每個變更項依序執行:
寫測試(RED)
跑測試確認失敗
寫最小實作(GREEN)
跑測試確認通過
Commit
git add {changed files}
git commit -m "fix: {description} (#NNN)"
實作過程中發現的問題:
| 發現 | 處理 |
|---|---|
| 不相關的 bug | 開新 issue,繼續 #NNN |
| 不相關的 code smell | 開新 issue,繼續 #NNN |
| #NNN 的前置依賴 | 確認是否 blocker。是 → 先處理依賴;不是 → 記錄在 issue comment |
| 比預期更大的改動 | 停下來,回到 diagnosis 重新評估 |
鐵律:不在 #NNN 的 branch 上修不相關的東西。
所有變更清單項目完成後:
git status --short
git diff --stat HEAD~{N}
回顧:
如果有產出圖表,上傳到 attachments release:
# 讀取 .claude/issue-driven-dev.local.md 的 attachments_release 設定
gh release upload $ATTACHMENTS_RELEASE {figure_files}.png \
--repo $GITHUB_REPO --clobber
圖片 URL 格式:https://github.com/$GITHUB_REPO/releases/download/$ATTACHMENTS_RELEASE/{filename}.png
Comment 實作摘要到 issue(含圖片):
gh issue comment $NUMBER --repo $GITHUB_REPO --body "$(cat <<'EOF'
## Implementation Complete
### Changes
- {commit 1 hash}: {description}
- {commit 2 hash}: {description}
### Files Changed
{git diff --stat output}
### Figures (if any)

### Scope Compliance
{是否有超出範圍的改動,如有則說明}
### Next: verification pending
EOF
)"
提示下一步:/issue-driven-dev:idd-verify #NNN
<type>: <description> (#NNN)
(#NNN) 或 #NNNImplementation comment 完成後,自動執行 idd-update 更新 issue body 的 Current Status(phase → implemented)。
實作完成後,進入 verify:
/issue-driven-dev:idd-verify #NNN