Summary
The discussion-builder/SKILL.md now defines label attachment rules for GitHub Discussions, but the discussion-manager agent (src/agents/discussion-manager.md) does not implement them. Labels are never attached when /plan-discussion creates a discussion.
Expected Behavior
After creating a discussion, the agent should:
- Run
gh label list to fetch existing repo labels
- Match labels based on the discussion type (per the mapping table in
SKILL.md)
- Auto-attach matching labels that already exist
- For missing suggested labels, propose name + color and wait for user approval before creating
- Use the GraphQL
addLabelsToLabelable mutation to attach labels (REST endpoints do not support discussion labels)
Label Mapping to Implement
| Type |
Auto-attach if exists |
Suggest creating if not |
design |
enhancement, architecture |
design (#0075ca) |
decision |
architecture |
decision (#e4e669) |
retro |
— |
retro (#f9d0c4) |
postmortem |
— |
postmortem (#b60205) |
distribution |
— |
distribution (#0e8a16) |
analysis |
— |
analysis (#5319e7) |
Files to Update
src/agents/discussion-manager.md — add label resolution and attachment steps after discussion creation
Notes
- Labels on discussions require GraphQL (
addLabelsToLabelable) — the REST /labels endpoint only works for issues
- The discussion node ID is returned by the
createDiscussion mutation and must be passed to addLabelsToLabelable
- Label node IDs must be fetched via GraphQL before attaching
Relates to discussion #1.
Summary
The
discussion-builder/SKILL.mdnow defines label attachment rules for GitHub Discussions, but thediscussion-manageragent (src/agents/discussion-manager.md) does not implement them. Labels are never attached when/plan-discussioncreates a discussion.Expected Behavior
After creating a discussion, the agent should:
gh label listto fetch existing repo labelsSKILL.md)addLabelsToLabelablemutation to attach labels (REST endpoints do not support discussion labels)Label Mapping to Implement
designenhancement,architecturedesign(#0075ca)decisionarchitecturedecision(#e4e669)retroretro(#f9d0c4)postmortempostmortem(#b60205)distributiondistribution(#0e8a16)analysisanalysis(#5319e7)Files to Update
src/agents/discussion-manager.md— add label resolution and attachment steps after discussion creationNotes
addLabelsToLabelable) — the REST/labelsendpoint only works for issuescreateDiscussionmutation and must be passed toaddLabelsToLabelableRelates to discussion #1.