microsoft/hve-core

Public

mirrored fromhttps://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
abfd03ef8b9f81e150e6d564a43b755cc910c8e6

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

docs/agents/github-backlog/discovery.md

126lines ยท modecode

1---
2title: Discovery Workflow
3description: Discover and categorize GitHub issues through user-centric, artifact-driven, and search-based paths
4author: Microsoft
5ms.date: 2026-02-12
6ms.topic: tutorial
7keywords:
8 - github backlog manager
9 - issue discovery
10 - github copilot
11estimated_reading_time: 5
12---
13
14The Discovery workflow finds and categorizes GitHub issues from multiple sources, producing structured analysis files that feed into triage and planning.
15
16## When to Use
17
18* ๐Ÿ†• Starting a new sprint and need to survey open issues across repositories
19* ๐Ÿ‘ค Reviewing issues assigned to you or your team before a planning session
20* ๐Ÿ”€ Code changes on a feature branch that may relate to existing backlog items
21* ๐Ÿ” Searching for issues matching specific criteria across multiple repositories
22
23## What It Does
24
251. Identifies issues through one of three discovery paths (user-centric, artifact-driven, or search-based)
262. Retrieves issue metadata including labels, assignees, milestones, and linked pull requests
273. Categorizes issues by type, area, and current state
284. Produces structured analysis files with issue summaries and recommendations
295. Flags issues that may need triage attention (unlabeled, stale, or assigned incorrectly)
30
31> [!NOTE]
32> Discovery is deliberately separated from triage. Finding issues and deciding what to do with them are different cognitive tasks. Running them in a single pass increases the chance of misclassification.
33
34## The Three Discovery Paths
35
36### User-Centric Discovery
37
38Finds issues assigned to a specific user or team. This path is ideal for sprint preparation, where you need to see your current backlog before planning new work. The workflow queries GitHub for issues by assignee, filters by state, and organizes results by repository and milestone.
39
40### Artifact-Driven Discovery
41
42Analyzes local code changes (branches, commits, modified files) and maps them to existing backlog items. This path surfaces issues related to your current work, helping you avoid duplicate effort and identify issues your changes may resolve. The workflow reads git diff output and searches for matching issues by file path, keyword, and component area.
43
44### Search-Based Discovery
45
46Queries across repositories using criteria you define: labels, keywords, date ranges, milestone association, or any combination. This path handles broad inventory tasks, such as finding all unlabeled issues, all issues older than 90 days, or all issues in a specific area across multiple repositories.
47
48## Output Artifacts
49
50```text
51.copilot-tracking/github-issues/discovery/<scope-name>/
52โ”œโ”€โ”€ issue-analysis.md # Categorized issue inventory with metadata
53โ”œโ”€โ”€ issues-plan.md # Recommended actions for discovered issues
54โ””โ”€โ”€ planning-log.md # Discovery session log with search queries used
55```
56
57Discovery writes its output to the `.copilot-tracking/github-issues/discovery/` directory. The scope name reflects the discovery target (a username, repository, or search description). These files serve as input for the triage workflow.
58
59## How to Use
60
61### Option 1: Prompt Shortcut
62
63Use the backlog manager prompts to start a discovery session:
64
65```text
66Discover open issues assigned to me in microsoft/hve-core
67```
68
69```text
70Find issues related to my current branch changes
71```
72
73```text
74Search for unlabeled issues across all repositories in our organization
75```
76
77### Option 2: Direct Agent
78
79Start a conversation with the GitHub Backlog Manager agent and describe your discovery goal. The agent classifies your intent and dispatches the appropriate discovery path automatically.
80
81## Example Prompt
82
83```text
84Discover open issues assigned to me in microsoft/hve-core that don't have
85a milestone. Include any issues labeled "needs-triage" regardless of assignee.
86```
87
88## Tips
89
90โœ… Do:
91
92* Scope discovery to a specific repository or user to keep results manageable
93* Run discovery before triage to ensure you have a complete picture
94* Use artifact-driven discovery when working on a feature branch to find related issues
95* Review the planning log to understand what queries produced the results
96
97โŒ Don't:
98
99* Combine discovery with triage in a single session (clear context between workflows)
100* Run discovery across an entire organization without filters (results become unwieldy)
101* Skip reviewing the issue analysis before proceeding to triage
102* Assume discovery catches everything on the first pass (iterate if needed)
103
104## Common Pitfalls
105
106| Pitfall | Solution |
107|------------------------------------------|-----------------------------------------------------------------------|
108| Too many results to review | Narrow the scope with repository, label, or date filters |
109| Missing issues from private repositories | Verify MCP token has access to the target repositories |
110| Stale results from cached queries | Clear context and re-run discovery for fresh API results |
111| Artifact-driven path finds no matches | Ensure your branch has committed changes (unstaged files are skipped) |
112
113## Next Steps
114
1151. Send your discovery output through the [Triage workflow](triage.md) to assign labels and priorities
1162. See [Using Workflows Together](using-together.md) for the full pipeline walkthrough
117
118> [!TIP]
119> Run `/clear` between discovery and triage. Each workflow reads its own planning files and mixing session context produces unreliable label suggestions.
120
121---
122
123<!-- markdownlint-disable MD036 -->
124*๐Ÿค– Crafted with precision by โœจCopilot following brilliant human instruction,
125then carefully refined by our team of discerning human reviewers.*
126<!-- markdownlint-enable MD036 -->