You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(c) Milestone suggestion (only if time-bound signal detected)
Heuristic for time-bound:
Body 含「next meeting」「next sprint」「下次 meeting」「下週」「month-end」等 deadline reference
或 cross-reference 到既有 milestone 內 issue
AskUserQuestion:
"Detected time-bound discussion (mentions 'next advisor meeting').
Assign to milestone?"
options:
- "Pick existing milestone" → list open milestones
- "Create new milestone" → AskUserQuestion(title, date)
- "Skip — no milestone"
(d) Native relationships (GitHub 2024+ GraphQL)
從 body 內 #N references 抽出,suggest 用 GitHub native "Relates to" / "Parent of" / "Blocked by" 而非純 text reference:
AskUserQuestion (per #N reference):
"Body references #24. Set native relationship?"
options:
- "Related to #24" (default)
- "Parent of #24" (this issue is the parent)
- "Child of #24" (this issue is the child)
- "Blocks #24"
- "Blocked by #24"
- "Text reference only" (skip native, leave as body text)
技術實作: gh api graphql -f query='mutation addBlockedByDependency...' (already used in v2.52.0+ --blocked-by flag for bundle mode — reuse code path)
Milestone auto-create timing: 若 user 選 "Create new milestone" 但 due_date 未設,要不要 push to set due_date? Hard requirement 會 friction。建議: optional due_date,空 = open-ended (適合 "Backlog" type milestone)
Native relationship 跟 body text reference 重複: 設了 native "Related to [Bundle test] Step 2: add API #24" 後, body 內仍有 #24 markdown text。Github render 兩個都顯示。要不要建議 user 移除 body text reference 避免 redundancy? 建議: 保留 body text reference — markdown reference 在 issue body 內保留 inline context (e.g. "see [Bundle test] Step 2: add API #24's verify report"), 跟 native "Related to" backlink (sidebar) 是互補不重複
Pre-existing label not configured: 若 repo 沒 discussion label, auto-create 的 default color (0E8A16 green) 跟 user 既有 label color scheme 可能衝突。建議: auto-create 時用 GitHub default green; user 不滿意可手動改 label color
Related
--mention flag (v2.32.0+) — tagging-collaborators 5-step protocol 已 verify @login,本 feature 可 reuse 該 verified list 作為 assignee candidates
Problem
當
/idd-issue建立一個 討論型 issue(type=docs / 純 plain-language summary / 等決定 / 等 collaborator 提供資訊 / advisor meeting briefing 等)時,現行 skill 不會 surface 應該設的 GitHub metadata:discussion區分於 implementation issue)addBlockedByDependency等 GraphQL mutation,比 body 內#Ntext reference 更結構化)實戰案例(kiki830621/collaboration_liu-thesis-analysis):
Type
feature
Expected
Detection: 觸發 discussion-type metadata helper 的條件
任一命中 → 啟動本 helper:
--type discussion或--discussioncc @<login>mention pattern 但本身是 plain-language doc 而非 bug / feature 描述#Nreferences 但本身不要求 implementationHelper behavior (Step 3.5 between issue creation + Step 4 attachment)
當 detection 命中 → 跑以下 sub-steps(all advisory, AskUserQuestion based):
(a) Assignee suggestion
從 body 內已通過 tagging-collaborators 5-step protocol 的
@loginmentions 抽出來,建議 assign 給他們:(b) Label suggestion
Auto-create fallback: 若 user 選「Yes + auto-create」但 repo 沒這個 label,自動建:
(c) Milestone suggestion (only if time-bound signal detected)
Heuristic for time-bound:
(d) Native relationships (GitHub 2024+ GraphQL)
從 body 內
#Nreferences 抽出,suggest 用 GitHub native "Relates to" / "Parent of" / "Blocked by" 而非純 text reference:技術實作:
gh api graphql -f query='mutation addBlockedByDependency...'(already used in v2.52.0+--blocked-byflag for bundle mode — reuse code path)Implementation: where to add
最自然的 insertion point: 新增 Step 3.5: Discussion Metadata Helper, 在 Step 3 (issue creation) 之後 Step 4 (attachment upload) 之前。
理由:
Bootstrap task list 新 stage task
只在 detection 命中時 create 這 task;single-issue + bug 等 standard case 不 create.
Actual
現行
/idd-issue對 discussion-type issue 完全不 surface metadata:gh issue edit --add-assignee X--labelflag) → 純--label $TYPE(bug/feature/refactor/docs) 不夠精細#Nreferences 全部停留在 markdown text (GitHub sidebar 不會 reverse-render backlinks)Impact
Reviewer / collaborator UX
discussionlabel, 不知道哪個是「正在等決定」vs「正在 implement」Author UX
每次建 discussion issue 後手動
gh issue edit --add-assignee X --add-label discussion --milestone "..."× N issue → tedious + 容易漏Audit trail
Body 內
#Nmarkdown reference 在 GitHub sidebar 不 reverse-render — 從 #24 sidebar 看不到「#38 references this issue」。Native relationship 才有 backlink。對長期 issue tree 追溯影響大。Open design questions
Detection heuristic 精確度: 哪些 signal 應該 trigger helper? 過度敏感會 friction(每個 docs issue 都問四遍),不敏感會錯過真正討論型 issue。建議: opt-in
--discussionflag 為 primary trigger, body heuristic 為 fallback (預設 off, 透過 configdiscussion_metadata_heuristic: trueopt-in)Label naming convention:
discussion是最 generic 的命名,但 ecosystem 內可能已 reserve 給其他用途 (GitHub Discussions 是另一個 feature)。Alternative naming:awaiting-decisionneeds-inputfor-review(跟 PR review label 衝突)topic:discussion建議: 用 user 偏好的 (可在 config 中
discussion_label: "discussion"配置),defaultdiscussionMilestone auto-create timing: 若 user 選 "Create new milestone" 但 due_date 未設,要不要 push to set due_date? Hard requirement 會 friction。建議: optional due_date,空 = open-ended (適合 "Backlog" type milestone)
Native relationship 跟 body text reference 重複: 設了 native "Related to [Bundle test] Step 2: add API #24" 後, body 內仍有
#24markdown text。Github render 兩個都顯示。要不要建議 user 移除 body text reference 避免 redundancy? 建議: 保留 body text reference — markdown reference 在 issue body 內保留 inline context (e.g. "see [Bundle test] Step 2: add API #24's verify report"), 跟 native "Related to" backlink (sidebar) 是互補不重複Pre-existing label not configured: 若 repo 沒
discussionlabel, auto-create 的 default color (0E8A16green) 跟 user 既有 label color scheme 可能衝突。建議: auto-create 時用 GitHub default green; user 不滿意可手動改 label colorRelated
--mentionflag (v2.32.0+) — tagging-collaborators 5-step protocol 已 verify @login,本 feature 可 reuse 該 verified list 作為 assignee candidates--bundle-modeGraphQLaddBlockedByDependencymutation — 同 code path 可重用於 native relationship suggestionImplementation effort estimate
gh issue edit --add-assignee--mentioncollaborator list--add-labelgh api milestones)--blocked-by, but needs UI for relationship type pickerTotal estimate: ~6-8 hours for v1 implementation.
Notes
實戰觸發案例:Liu thesis #36 (Age multiverse) / #37 (sister fix narrative summary) / #38 (HsuanYuLiuuu review feedback) 都是 discussion-type issue. 3 個 metadata 都是事後手動 setup(建
discussionlabel + assign HsuanYuLiuuu + 建 "Advisor Meeting 2026-05-28" milestone)。若/idd-issue在建 #36 時就 surface 這些 prompt, 後續 #37 #38 配套 setup 自動沿用,省掉 ~5 分鐘手動操作 per discussion issue.Current Status
Phase: diagnosed
Last updated: 2026-07-06 by /idd-diagnose (via /idd-all batch drain)
Key Decisions