Commit 2b4d123
authored
feat(agents): add GitHub backlog management pipeline (#448)
## Description
Introduces a complete TPM-focused GitHub backlog management pipeline — 1
orchestrator agent, 5 instructions (including P0 reference
specification), and 4 entry-point prompts — mirroring the ADO tooling
pipeline architecture with GitHub-native MCP tools. Replaces and
deprecates the single-purpose `github-issue-manager` agent with a
four-stage workflow covering triage, discovery, sprint planning, and
batch execution.
Also fixes a bug in `github-add-issue.prompt.md` where the prompt
referenced non-existent `mcp_github_create_issue` (correct tool:
`mcp_github_issue_write`).
### Architecture
**Instructions-first pipeline** parallels the ADO tooling suite:
```text
github-backlog-planning.instructions.md (P0 — reference specification, 758 lines)
├── github-backlog-triage.instructions.md (302 lines)
├── github-backlog-discovery.instructions.md (234 lines)
└── github-backlog-update.instructions.md (226 lines)
github-backlog-manager.agent.md (orchestrator, 174 lines)
├── github-triage-issues.prompt.md → triage instructions
├── github-discover-issues.prompt.md → discovery instructions
├── github-execute-backlog.prompt.md → update instructions
└── github-sprint-plan.prompt.md → planning spec + milestone APIs
```
Key design decisions:
- **Reference specification as foundation** —
`github-backlog-planning.instructions.md` defines planning file
templates, MCP tool catalog, search protocols, similarity assessment
matrix, state persistence, and the three-tier autonomy model. All
workflow instructions cross-reference this specification.
- **Intent-based routing** — The orchestrator agent classifies requests
into five workflow types (triage, discovery, sprint, execution,
single-issue) and dispatches to the appropriate prompt.
- **Three-tier autonomy** — Full (no gates), Partial (key gates only),
Manual (all gates). Workflows default to Partial.
- **Similarity assessment** — 5-dimension weighted scoring matrix
prevents duplicate issue creation during batch operations.
- **Hierarchy-aware execution** — Batch operations process parent issues
before children to maintain referential integrity with the sub-issues
API.
### New Artifacts (10 files)
| File | Lines | Purpose |
|------|-------|---------|
| `github-backlog-manager.agent.md` | 174 | Orchestrator with intent
classification, five workflow dispatch paths |
| `github-backlog-planning.instructions.md` | 758 | P0 reference:
planning file templates, MCP tool catalog, similarity assessment,
autonomy model |
| `github-backlog-triage.instructions.md` | 302 | Batch label/milestone
suggestion, duplicate detection, triage-plan output |
| `github-backlog-discovery.instructions.md` | 234 | Three discovery
modes: artifact-driven, user-centric, search-based |
| `github-backlog-update.instructions.md` | 226 | Execution pipeline
consuming planning handoffs, hierarchy-aware ordering |
| `community-interaction.instructions.md` | 335 | Voice/tone guidelines
and 20 scenario templates for issue and PR comments |
| `github-triage-issues.prompt.md` | 84 | Triage entry point |
| `github-discover-issues.prompt.md` | 128 | Discovery entry point with
three-path classification |
| `github-execute-backlog.prompt.md` | 78 | Batch execution entry point
|
| `github-sprint-plan.prompt.md` | 109 | Sprint planning with milestone
management and velocity analysis |
### Modified Files (9)
| File | Change |
|------|--------|
| `github-add-issue.prompt.md` | Bug fix: `mcp_github_create_issue` →
`mcp_github_issue_write`; rewritten 304→86 lines; maturity→experimental
|
| `github-issue-manager.agent.md` | Deprecated (133→11 lines) with
`[!CAUTION]` migration notice |
| `CUSTOM-AGENTS.md` | Agent table: `github-issue-manager` →
`github-backlog-manager` |
| `hve-core-installer.agent.md` | Agent count 14→20+; listing updated;
formatting fixes |
| `writing-style.instructions.md` | Community row added to
formality/pronoun tables; cross-reference added |
| `docs/getting-started/install.md` | Reference rename |
| `docs/getting-started/mcp-configuration.md` | Agent MCP Dependencies
table updated |
| `extension/README.md` | Agent listing updated |
| `extension/package.json` | Manifest regenerated: 21 agents, 26
prompts, 23 instructions |
## Related Issue(s)
Closes #447
## Type of Change
Select all that apply:
**Code & Documentation:**
- [x] Bug fix (non-breaking change fixing an issue)
- [x] New feature (non-breaking change adding functionality)
- [ ] Breaking change (fix or feature causing existing functionality to
change)
- [x] Documentation update
**Infrastructure & Configuration:**
- [ ] GitHub Actions workflow
- [ ] Linting configuration (markdown, PowerShell, etc.)
- [ ] Security configuration
- [ ] DevContainer configuration
- [ ] Dependency update
**AI Artifacts:**
- [ ] Reviewed contribution with `prompt-builder` agent and addressed
all feedback
- [x] Copilot instructions (`.github/instructions/*.instructions.md`)
- [x] Copilot prompt (`.github/prompts/*.prompt.md`)
- [x] Copilot agent (`.github/agents/*.agent.md`)
- [ ] Copilot skill (`.github/skills/*/SKILL.md`)
**Other:**
- [ ] Script/automation (`.ps1`, `.sh`, `.py`)
- [ ] Other (please describe):
## Sample Prompts (for AI Artifact Contributions)
### Triage Workflow
**User Request:**
> @github-backlog-manager triage the open issues in microsoft/hve-core
**Execution Flow:**
1. Agent classifies intent → triage workflow
2. Dispatches to `github-triage-issues.prompt.md`
3. Loads `github-backlog-triage.instructions.md` + planning
specification
4. Fetches open issues via `mcp_github_list_issues`
5. Analyzes labels, milestones, and duplicates against the 17-label
taxonomy
6. Generates `triage-plan.md` under
`.copilot-tracking/github-issues/triage/`
7. Prompts for approval at Partial autonomy before applying changes
**Output Artifacts:**
```markdown
---
type: triage-plan
repo: microsoft/hve-core
created: 2026-02-07
---
# Triage Plan
## Issue #123 — Fix broken link in docs
- Labels: `docs`, `bug`
- Milestone: v2.3.0 (EVEN = maintenance)
- Priority: P2
- Duplicates: None detected
```
**Success Indicators:**
- Planning file created under `.copilot-tracking/github-issues/`
- Labels match the 17-label taxonomy from the planning specification
- Milestones follow EVEN/ODD conventions
- User prompted before mutations execute
### Discovery Workflow
**User Request:**
> @github-backlog-manager discover issues related to the new MCP tools
we added
**Execution Flow:**
1. Agent classifies intent → discovery workflow (Path B:
artifact-driven)
2. Dispatches to `github-discover-issues.prompt.md`
3. Scans changed files to extract feature context
4. Searches existing issues via `mcp_github_search_issues` for overlap
5. Generates `issues-plan.md` with new issues to create and existing
ones to update
**Success Indicators:**
- Discovery path correctly classified (artifact, user, or search)
- Similarity assessment prevents duplicate proposals
- Planning file output ready for execution handoff
## Testing
All 6 validators passed clean on committed artifacts:
| Validator | Command | Result |
|-----------|---------|--------|
| Table formatting | `npm run format:tables` | Clean |
| Frontmatter | `npm run lint:frontmatter` | 127 files, 0 errors |
| Markdown | `npm run lint:md` | 0 errors |
| Spelling | `npm run spell-check` | 91 files, 0 issues |
| Link validation | `npm run lint:md-links` | All links passed |
| Extension manifest | `npm run extension:prepare` | 21 agents, 26
prompts, 23 instructions |
## Checklist
### Required Checks
- [x] Documentation is updated (if applicable)
- [x] Files follow existing naming conventions
- [x] Changes are backwards compatible (if applicable)
- [ ] Tests added for new functionality (if applicable)
### AI Artifact Contributions
- [ ] Used `/prompt-analyze` to review contribution
- [ ] Addressed all feedback from `prompt-builder` review
- [x] Verified contribution follows common standards and type-specific
requirements
### Required Automated Checks
The following validation commands must pass before merging:
- [x] Markdown linting: `npm run lint:md`
- [x] Spell checking: `npm run spell-check`
- [x] Frontmatter validation: `npm run lint:frontmatter`
- [x] Link validation: `npm run lint:md-links`
- [ ] PowerShell analysis: `npm run lint:ps`
## Security Considerations
- [x] This PR does not contain any sensitive or NDA information
- [x] Any new dependencies have been reviewed for security issues
- [x] Security-related scripts follow the principle of least privilege
No new dependencies introduced. No authentication or secret changes. All
artifacts are declarative markdown — no executable code added.
## Additional Notes
### Branch Drift
This branch is based on commit `25b34de` which predates several changes
now on `main` (version rollback 2.2.0→2.1.0, deleted
`incident-response.prompt.md`, `rca-template.md`,
`copyright-headers.yml`). The PR diff shows 14 additional files not part
of this feature work. A rebase onto current `main` before merge will
isolate the feature delta to the 19 files listed above.
### Design Rationale
The instructions-first architecture follows the proven ADO pipeline
pattern where a single P0 reference specification (758 lines) defines
all shared conventions and specialized workflow instructions
cross-reference rather than duplicate. Each prompt file stays focused
(<130 lines) while the orchestrator agent handles intent classification
and routing.1 parent 69ef3c9 commit 2b4d123
21 files changed
Lines changed: 2636 additions & 483 deletions
File tree
- .github
- agents
- instructions
- prompts
- docs/getting-started
- extension
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
| 296 | + | |
296 | 297 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
| 298 | + | |
303 | 299 | | |
304 | | - | |
| 300 | + | |
305 | 301 | | |
306 | | - | |
| 302 | + | |
307 | 303 | | |
308 | 304 | | |
309 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 11 | + | |
0 commit comments