From issue-driven-dev
產出進度報告到 GitHub Discussions。 可指定 issue 清單、來源檔案、或 milestone,彙整所有相關 issue 的處理狀態。 Use when: milestone 完成、Sprint review、向客戶/主管匯報進度。
npx claudepluginhub psychquant/psychquant-claude-plugins --plugin issue-driven-devThis skill is limited to using the following tools:
從 GitHub Issues 彙整進度,發布到 GitHub Discussions。
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.
從 GitHub Issues 彙整進度,發布到 GitHub Discussions。
報告是給人看的,不是給工程師看的。引用原文,白話解釋,量化成果。
/idd-report #157 #158 #159 → 指定 issues
/idd-report source:網站調整內容.docx → 所有來自該檔案的 issues
/idd-report milestone:UX Redesign → milestone 下所有 issues
/idd-report #157 #158 @Hardy1Yang @che → 指定 issues + tag 人
/idd-report milestone:UX Redesign @hardy → milestone + tag
讀取 .claude/issue-driven-dev.local.md frontmatter:
---
github_repo: "owner/repo"
github_owner: "owner"
attachments_release: "attachments"
---
從 $ARGUMENTS 解析:
#NNN → issue number 清單source:檔案名 → 搜尋 issue body 含該檔案名的 issuesmilestone:名稱 → 該 milestone 下所有 issues@username → 報告末尾 mention如果沒有任何指定,提示使用者。
# 方式 A: 指定 issues
for n in $ISSUE_NUMBERS; do
gh issue view $n --repo $GITHUB_REPO \
--json number,title,state,body,labels,comments,closedAt,createdAt
done
# 方式 B: 來源檔案
gh issue list --repo $GITHUB_REPO --state all --limit 100 \
--json number,title,state,body,labels,closedAt \
| jq '[.[] | select(.body | contains("'$SOURCE_FILE'"))]'
# 方式 C: Milestone
gh issue list --repo $GITHUB_REPO --state all --milestone "$MILESTONE_NAME" \
--json number,title,state,body,labels,closedAt
對每個 issue 檢查:
# 找對應 commits
git log --all --oneline --grep="#$NUMBER" | head -5
# 找對應 PR
gh pr list --repo $GITHUB_REPO --state merged --search "#$NUMBER" \
--json number,title,mergedAt,additions,deletions
產出驗證表:
| # | Issue | 狀態 | PR | 變更量 | 驗證 |
|---|-------|------|----|--------|------|
| 1 | #157 首頁架構 | CLOSED | #165 | +314/-496 | ✅ |
| 2 | #158 Hero F型 | CLOSED | #167 | +82/-65 | ✅ |
| 3 | #260 某功能 | OPEN | — | — | 🔴 尚未完成 |
對每個 CLOSED issue:
Problem 段落中的原文引用(blockquote)# {Project} 進度報告
> **報告日期**:{YYYY-MM-DD}
> **來源**:{source_file / milestone_name / 手動指定}
> **處理狀態**:{closed_count} / {total_count} 個問題已解決
---
## 總覽
{來源描述}共包含 {total_count} 個工作項目。
目前 {closed_count} 個已完成,{open_count} 個處理中。
### 變更統計
| 指標 | 數值 |
|------|------|
| Issues 總數 | {total_count} |
| 已關閉 | {closed_count} |
| PRs 合併 | {pr_count} |
| 新增行數 | +{additions} |
| 刪除行數 | -{deletions} |
| 測試數量 | {test_count} |
---
## 已完成的工作
### {N}. {plain_language_title}
**需求**:
> {引用 issue body 的原文,blockquote 格式}
> — 來源:{source}
**做了什麼**:{白話描述解決方式,不用技術術語}
**驗證方式**:{怎麼確認做對了}
**狀態**:✅ 已完成([#{number}]({issue_url}) → [PR #{pr}]({pr_url}))
---
(重複每個 issue...)
## 處理中的工作
(列出 OPEN issues,說明目前進度和阻礙)
---
## 下一步
{建議的後續行動}
---
{@tag1 @tag2 請查閱}
# 搜尋 Discussions 中是否已有同主題報告
gh api graphql -f query='
query($query: String!) {
search(query: $query, type: DISCUSSION, first: 5) {
nodes {
... on Discussion {
id
number
title
url
updatedAt
}
}
}
}' -f query="repo:$GITHUB_REPO {report_title}"
# 列出可用的 Discussion categories
gh api graphql -f query='
query($owner: String!, $name: String!) {
repository(owner: $owner, name: $name) {
discussionCategories(first: 20) {
nodes {
id
name
}
}
}
}' -f owner="$GITHUB_OWNER" -f name="$REPO_NAME"
優先使用 Reports category。不存在則讓使用者選擇。
先顯示報告預覽給使用者確認,確認後發布:
# CREATE
gh api graphql -f query='
mutation($repoId: ID!, $catId: ID!, $title: String!, $body: String!) {
createDiscussion(input: {
repositoryId: $repoId,
categoryId: $catId,
title: $title,
body: $body
}) {
discussion { url }
}
}'
# UPDATE
gh api graphql -f query='
mutation($id: ID!, $body: String!) {
updateDiscussion(input: {
discussionId: $id,
body: $body
}) {
discussion { url }
}
}'
✓ 報告已發布:{discussion_url}
涵蓋 {total_count} 個 issues({closed_count} 已完成)
Tagged: @user1, @user2
@username 請查閱 放在報告最末idd-issue → idd-diagnose → idd-implement → idd-verify → idd-close
↓
idd-report
(多個 close 後彙整)
idd-report 是在多個 issues 完成後,把成果打包成一份可讀的報告。