-
Notifications
You must be signed in to change notification settings - Fork 6
Github Scanning
GitHub data collection patterns for workflow agents. Covers search query construction by intent, date range handling, repository scope narrowing, preferences.md integration, cross-repo intelligence, parallel stream collection model, and auto-recovery for empty results.
| Agent | Why |
|---|---|
| github-hub | Routing and repo-wide discovery |
| daily-briefing | Multi-stream parallel collection |
| issue-tracker | Issue search queries |
| pr-review | Pull request search queries |
| analytics | Repository-level data collection |
| insiders-a11y-tracker | Accessibility commit and release tracking |
| Intent | Query Pattern |
|---|---|
| Assigned to you | is:open assignee:USERNAME |
| @mentioned | is:open mentions:USERNAME |
| Authored by you | is:open author:USERNAME |
| Specific repo | repo:owner/repo is:open |
| Org-wide | org:ORGNAME is:open |
| Closed (for recap) | is:closed author:USERNAME |
| Intent | Query Pattern |
|---|---|
| Awaiting your review | review-requested:USERNAME state:open |
| Your open PRs | author:USERNAME state:open |
| You reviewed, check updates | reviewed-by:USERNAME state:open |
| Org-wide | org:ORGNAME state:open |
| User Says | GitHub Qualifier |
|---|---|
| "last week" |
created:>YYYY-MM-DD (7 days ago) |
| "this month" | created:>YYYY-MM-01 |
| "today" | closed:YYYY-MM-DD |
| "between X and Y" | created:X..Y |
| Not specified |
updated:>YYYY-MM-DD (30 days) - mention the assumption |
| Scope | Qualifier |
|---|---|
| Single repo | repo:owner/name |
| All org repos | org:orgname |
| All user repos | user:username |
| Everything (default) | No qualifier |
Read .github/agents/preferences.md before searching. Key settings:
| Preference Key | Effect |
|---|---|
repos.discovery |
Default scope: all / starred / owned / configured / workspace
|
repos.include |
Always include these repos |
repos.exclude |
Always skip these repos |
repos.overrides |
Per-repo tracking toggles and label/path filters |
search.default_window |
Default time range when user doesn't specify |
briefing.sections |
Which sections to include in the daily briefing |
Run independent streams simultaneously. Don't serialize calls with no dependencies.
| Batch | Streams (run in parallel) |
|---|---|
| 1 | Issues + Pull Requests + Releases + Accessibility updates |
| 2 | Discussions + CI/CD health + Security alerts |
| 3 | Project board status + Recently closed/merged work |
Batch 2 can overlap with Batch 3. Both depend on Batch 1 completing first.
| Batch | Streams |
|---|---|
| 1 | Closed PRs + Opened issues + CI runs + Security alerts (all independent) |
| 2 | Health score + Velocity + Bottleneck detection (depend on Batch 1) |
Running N searches in parallel...
Batch 1 complete - X items found
Running N additional searches...
All complete - Y items collected
When results arrive from multiple repos, surface these patterns:
| Pattern | Action |
|---|---|
| Cross-repo references | Fetch referenced item and surface both together |
| Shared label patterns | Group P0 items from different repos |
| Merged PR not yet released | Note: "PR #N is merged but not in any release yet" |
| Issue with merged fix PR | Flag: "This may be resolved - PR #N that closes it was merged on {date}" |
Never return 0 results without trying at least one broader query first:
- Remove date qualifier
- Expand scope (add
org:or removerepo:qualifier) - Remove label filters
- Report 0 only after all three attempts return nothing
Always tell the user what was broadened: "No results in last 7 days - broadened to last 30 days and found 3 items."
- Batch results in groups of 10
- Always disclose total count: "Showing 10 of 47. Load more?"
- Never silently truncate
When the same item appears in multiple streams, show it once with all signals combined:
"Assigned, @mentioned" - priority = highest-scoring signal only, not additive.
.github/skills/github-scanning/SKILL.md
- Accessibility Lead
- Web Accessibility Wizard
- Document Accessibility Wizard
- Alt Text and Headings
- ARIA Specialist
- Contrast Master
- Forms Specialist
- Keyboard Navigator
- Link Checker
- Live Region Controller
- Modal Specialist
- Tables Data Specialist
- Word Accessibility
- Excel Accessibility
- PowerPoint Accessibility
- PDF Accessibility
- Office Scan Config
- PDF Scan Config
- Testing Coach
- WCAG Guide