# Daily Briefing reference: Workflow Part of the `daily-briefing` skill. Read this only when the task reaches these sections. ## Workflow ### Step 1: Identify User & Scope 1. Call #tool:mcp_github_github_get_me for the authenticated username. 2. Detect workspace repos from the current directory. 3. **Load preferences** from `.github/accessibility-agents/preferences.md` (the user creates it from `docs/reference/preferences.example.md`): - If that file does not exist, read `.github/agents/preferences.md` (the older location) and suggest moving it: VS Code loads every `.md` file in `.github/agents/` as a custom agent. - Read `repos.discovery` to determine search scope (default: `all` -- search every repo the user can access). - Read `repos.include` for pinned repos that always appear in the briefing. - Read `repos.exclude` for repos to skip. - Read `repos.overrides` for per-repo tracking granularity (issues, PRs, discussions, releases, security, CI, label filters, path filters). - Read `repos.defaults` for the default tracking settings applied to all other repos. - Read `briefing.sections` to determine which sections to include. - Read `accessibility_tracking` for a11y configuration. 4. Determine the briefing time scope: - **"morning briefing"** / no qualifier --> last 24 hours, all repos - **"weekly report"** --> last 7 days - **"since yesterday"** --> since yesterday 9 AM (assume business hours) - **Specific repo** --> scope to that repo - **"just PRs"** / **"just issues"** --> filter to that category 5. Determine the briefing repo scope: - Use the discovery mode from preferences to build the repo list. - For `all` mode (default): searches automatically span all repos via GitHub's search API -- no need to enumerate repos. Queries like `assignee:USERNAME`, `review-requested:USERNAME`, and `mentions:USERNAME` inherently search across all accessible repos. - For other modes: build the explicit repo list from starred/owned/configured repos, then add `repos.include` and subtract `repos.exclude`. - Apply per-repo `track` overrides to determine what to search per repo. ### Step 2: Collect All Data Streams ### Progress Announcements The daily briefing collects from up to 9 data streams. Always announce progress so the user knows data collection is active - this is especially important for large multi-repo scopes where collection can take 30-60 seconds. **Before collection begins:** ```text Collecting your daily briefing... ({N} repos, {date range}) ``` **Before each stream (announce what you're doing, not tool names):** ```text Checking issues and @mentions... (1/9) Issues: 4 need your response, 7 to monitor Checking pull requests... (2/9) PRs: 2 need your review, 1 needs your update Checking releases and deployments... (3/9) Releases: 1 new release, 2 PRs unreleased Checking GitHub Discussions... (4/9) Discussions: 2 active threads with @mentions Checking accessibility updates... (5/9) Accessibility: 8 items shipped to Insiders Checking CI/CD health... (6/9) CI/CD: 1 failing workflow Checking security alerts... (7/9) Security: 1 critical alert Checking project boards... (8/9) Projects: 3 sprint items need attention Checking recently completed work... (9/9) Completed: 3 PRs merged, 5 issues closed Scoring and prioritizing all items... Generating briefing document (markdown + HTML)... Daily briefing complete - {X} items need action, {Y} to monitor ``` Omit streams that are skipped due to preferences (e.g., if CI monitoring is disabled, don't announce step 6). Run these searches in one sweep: #### 2a: Issues Needing Attention - #tool:mcp_github_github_search_issues -- `is:open assignee:USERNAME` (assigned to user) - #tool:mcp_github_github_search_issues -- `is:open mentions:USERNAME` (user was @mentioned) - #tool:mcp_github_github_search_issues -- `is:open author:USERNAME` with recent comments from others For each issue, note: last commenter, whether user has responded, labels, age, **reactions summary**, **milestone/release context**. #### 2b: Pull Requests - #tool:mcp_github_github_search_pull_requests -- `review-requested:USERNAME state:open` (PRs awaiting your review) - #tool:mcp_github_github_search_pull_requests -- `author:USERNAME state:open` (your open PRs -- check for reviews, CI status, merge conflicts) - #tool:mcp_github_github_search_pull_requests -- `assignee:USERNAME state:open` (assigned PRs) - #tool:mcp_github_github_search_pull_requests -- `reviewed-by:USERNAME state:open` (PRs you already reviewed -- check for updates) For each PR, note: review status, CI status, merge state, days open, new comments, **reactions on PR description**, **release branch targeting**. #### 2c: Releases & Deployments - #tool:mcp_github_github_list_releases for each active repo -- check for recent releases, draft releases, and prereleases. - Note which of the user's merged PRs are included in the latest release vs. unreleased. - Flag any issues in milestones tied to upcoming releases. #### 2d: GitHub Discussions - Search for discussions where the user is mentioned or is a participant. - Flag discussions with high activity (10+ comments) or that have been converted to issues. - Note discussions linked to issues or PRs the user owns. #### 2e: Accessibility Updates Load `accessibility_tracking` from preferences. If not configured, use the defaults (track `microsoft/vscode` with `accessibility` + `insiders-released` labels). For **each tracked repo** in `accessibility_tracking.repos`: 1. Read the repo's configured labels (`accessibility`, `insiders`) and channels (`insiders`, `stable`). 2. Construct the search query using the repo's label names: - **Insiders channel** (if enabled): `repo:{REPO} is:closed label:{a11y_label} label:{insiders_label}` with the current milestone (if `use_milestones: true`) or date range. - **Stable channel** (if enabled): `repo:{REPO} is:closed label:{a11y_label}` with milestone or date range, excluding the insiders label. 3. Search with #tool:mcp_github_github_search_issues for each query. Default behavior (no preferences configured): - #tool:mcp_github_github_search_issues -- `repo:microsoft/vscode is:closed label:accessibility label:insiders-released` with the current month's milestone - #tool:mcp_github_github_search_issues -- `repo:microsoft/vscode is:closed label:accessibility` with recent closed date for stable releases Also search across ALL repos the user has access to for accessibility-labeled issues: - #tool:mcp_github_github_search_issues -- `user:USERNAME is:closed label:accessibility` to discover a11y work in the user's own repos. Collect up to `accessibility_tracking.briefing_limit` items (default: 10). **CI Scanner Findings:** After collecting human-filed accessibility issues, also check for issues created by CI accessibility scanners: - #tool:mcp_github_github_search_issues -- `author:app/github-actions label:accessibility` across monitored repos to find issues created by the GitHub Accessibility Scanner. - #tool:mcp_github_github_search_issues -- `"lighthouse" label:accessibility` across monitored repos to find Lighthouse CI regressions. - For scanner-created issues, note whether Copilot has been assigned and whether a fix PR exists. - Tag scanner findings with `[CI Scanner]` or `[Lighthouse]` in the report to distinguish them from human-filed issues. #### 2f: CI/CD Health Check workflow status across active repos: - Look for recent workflow runs -- identify failing workflows, long-running jobs, and flaky tests. - For each failing workflow, note: repo, workflow name, branch, failure reason, and link to the run. - Check if any of the user's open PRs have failing CI. - Read CI preferences (the `ci` section) from the preferences file loaded in Step 1, if available (monitored workflows, thresholds). #### 2g: Security Alerts Surface security-relevant items: - Check for Dependabot alerts (critical and high severity) across monitored repos. - Look for security advisories affecting dependencies. - Identify pending dependency update PRs (from `dependabot[bot]` or `renovate[bot]`). - Read security preferences (the `security` section) from the preferences file loaded in Step 1, if available. #### 2h: Project Board Status If project preferences are configured: - Fetch items from active GitHub Projects. - Show items in the current sprint/iteration. - Flag items that are blocked or stale in their column. - Note items that need to move forward (e.g., PR merged but board not updated). #### 2i: Recently Closed / Merged (Your Work) - #tool:mcp_github_github_search_issues -- `author:USERNAME is:closed` recently closed issues you authored - #tool:mcp_github_github_search_pull_requests -- `author:USERNAME is:merged` recently merged PRs - Check if merged PRs are included in any release yet. ### Step 3: Score & Prioritize Apply priority scoring to every item: **Issues:** - +5: You were @mentioned and haven't responded - +3: `P0`, `P1`, `critical`, `urgent`, `blocker` label - +3: Tied to an upcoming release milestone - +2: New comments from others since your last activity - +2: High community interest (5+ positive reactions) - +1: `bug` label - +1: Assigned to you - +1: Active related discussion thread - -1: `wontfix`, `duplicate`, `question` label - -2: No activity >14 days **PRs:** - +5: Your review is requested and you haven't reviewed - +4: Your PR has "changes requested" -- you need to update - +3: Your PR has been approved -- ready to merge - +3: PR targets a release branch with an upcoming release - +2: CI failed on your PR - +2: Merge conflicts on your PR - +2: High community interest (5+ positive reactions) - +1: New comments on your PR - +1: Active discussion thread linked to this PR - -1: Draft PR - -2: No activity >7 days **Discussions:** - +3: You were @mentioned - +2: High activity (10+ comments in 24h) - +1: Linked to an issue/PR you own - -1: No activity >7 days Sort everything by score descending within each section. ### Step 4: Generate Briefing Documents Create BOTH files: - **Markdown:** `.github/reviews/briefings/briefing-{YYYY-MM-DD}.md` - **HTML:** `.github/reviews/briefings/briefing-{YYYY-MM-DD}.html` If a briefing for today already exists, **update it** instead of creating a new one - add an "Updated at {time}" note and mark new items with "NEW" (in markdown: **NEW**, in HTML: `NEW`). #### Markdown Template ````markdown # Daily Briefing -- {Day of Week}, {Month} {Day}, {Year} > Generated at {time} by Daily Briefing Agent > Covering: {scope description, e.g., "Last 24 hours, all repos"} > Status: {X items need action} | {Y items to monitor} | {Z completed} --- ## Needs Your Action Now ({count} items) Items where someone is specifically waiting on you. ### Issues Awaiting Your Response ({count} items) | Priority | Issue | Repo | From | Waiting | Reactions | Summary | |----------|-------|------|------|---------|-----------|---------| | 1 | [Issue #N: Title](url) | repo | @user | 2 days | +1: 3 | They asked about X | ### PRs Awaiting Your Review ({count} items) | Priority | PR | Repo | Author | Files | Changes | Waiting | Release | |----------|-----|------|--------|-------|---------|---------|---------| | 1 | [PR #N: Title](url) | repo | @author | 5 | +120/-30 | 3 days | v2.1 milestone | ### Your PRs Needing Updates ({count} items) | Priority | PR | Repo | Status | Action Needed | |----------|-----|------|--------|---------------| | 1 | [PR #N: Title](url) | repo | Changes requested | Address @reviewer's feedback on auth logic | | 2 | [PR #N: Title](url) | repo | CI failed | Fix failing test in user-service.test.ts | ### Action Checklist - [ ] Respond to @{user} on [Issue #N: {title}]({url}) -- asked: "{summary}" - [ ] Review [PR #N: {title}]({url}) -- {files} files, {changes} changes, targets {release} - [ ] Update [PR #N: {title}]({url}) -- {action needed} --- ## Releases & Deployments ({count} items) Recent and upcoming releases across your active repos. | Repo | Latest Release | Date | Your PRs Included | Next Release | |------|---------------|------|--------------------|-------------| | repo | [v1.2.3](release-url) | Feb 10 | 2 PRs | v1.3.0 (3 PRs pending) |
Your unreleased merged PRs ({count} items) | PR | Repo | Merged | Status | |-----|------|--------|--------| | [PR #N: Title](url) | repo | Feb 8 | Unreleased -- awaiting v1.3.0 |
--- ## Active Discussions ({count} items) GitHub Discussions where you're mentioned or participating. | Discussion | Repo | Activity | Your Role | Summary | |-----------|------|----------|-----------|---------| | [Title](url) | repo | 12 comments, 3 new today | Mentioned | Team discussing new API design | --- ## CI/CD Health ({count} items) Workflow status across your active repos. ### Failing Workflows ({count} items) | Repo | Workflow | Branch | Failed | Duration | Link | |------|----------|--------|--------|----------|------| | repo | Build and Test | main | 2 hours ago | 5m 30s | [View run](url) | ### Your PRs with Failing CI ({count} items) | PR | Repo | Failing Check | Summary | |-----|------|--------------|---------| | [PR #N: Title](url) | repo | Lint | 2 ESLint errors in auth.ts | ### Flaky Tests ({count} items) | Test | Repo | Failures (7 days) | Last Failed | |------|------|-------------------|-------------| | `test_auth_timeout` | repo | 4 times | 6 hours ago | --- ## Security Alerts ({count} items) Open security issues across your repos. ### Critical & High Vulnerabilities ({count} items) | Severity | Package | Repo | Advisory | Fix Available | |----------|---------|------|----------|--------------| | Critical | lodash | repo | [CVE-2024-XXXX](url) | Yes -- upgrade to 4.17.21 | ### Dependency Update PRs Pending ({count} items) | PR | Repo | Package | From | To | Age | |-----|------|---------|------|-----|-----| | [PR #N: Bump lodash](url) | repo | lodash | 4.17.20 | 4.17.21 | 3 days | --- ## Project Board ({count} items) Current sprint/iteration status from GitHub Projects. ### Sprint Progress | Column | Items | Change | |--------|-------|--------| | To Do | {count} | {+/-N from yesterday} | | In Progress | {count} | {+/-N} | | In Review | {count} | {+/-N} | | Done | {count} | {+/-N} | ### Your Items in Sprint ({count} items) | Item | Type | Column | Days in Column | Signal | |------|------|--------|---------------|--------| | [Issue #N: Title](url) | Issue | In Progress | 3 | On track | | [PR #N: Title](url) | PR | In Review | 5 | Stale -- needs reviewer | --- ## Monitor & Follow Up ({count} items) Items with activity you should be aware of but don't require immediate action. ### Active Issues with New Comments ({count} items) | Issue | Repo | New Comments | Latest From | Reactions | Summary | |-------|------|-------------|-------------|-----------|---------| | [Issue #N: Title](url) | repo | 3 new | @user | +1: 5, Popular | Discussion about X | ### Your Open PRs -- Status Check ({count} items) | PR | Repo | Reviews | CI | Merge State | Age | Reactions | |-----|------|---------|-----|-------------|-----|-----------| | [PR #N: Title](url) | repo | 2 approved | Pass | Clean | 1 day | +1: 2 | | [PR #N: Title](url) | repo | Pending | Fail | Conflicts | 3 days | -- | ### PRs You Reviewed -- Updates Since Your Review ({count} items) | PR | Repo | Author | What Changed | |-----|------|--------|-------------| | [PR #N: Title](url) | repo | @author | 2 new commits pushed after your review | --- ## Accessibility Updates ### Insiders -- Released to Insiders Builds ({count} items) Recent accessibility improvements released to VS Code Insiders: - **{Issue title}** ([Issue #{number}: {short description}]({url})) -- {one-line user impact} - Category: {Screen Reader / Keyboard / Visual / Audio / Cognitive} - Milestone: {milestone} | Closed: {date} ### Stable -- Released in Latest Stable ({count} items) - **{Issue title}** ([Issue #{number}: {short description}]({url})) -- {one-line user impact} > For a full accessibility deep dive, use: `@insiders-a11y-tracker show me all accessibility changes this month` ### CI Scanner -- Automated Findings ({count} items) Accessibility issues detected by CI scanners: | Issue | Repo | Scanner | Severity | Copilot Fix | Status | |-------|------|---------|----------|-------------|--------| | [Issue #N: Title](url) | repo | GitHub Scanner | Serious | [PR #N](url) | Open | | [Issue #N: Title](url) | repo | Lighthouse CI | Moderate | Not assigned | New | --- ## Recently Completed ({count} items) Your accomplishments since the last briefing. ### Merged PRs ({count} items) | PR | Repo | Merged | Impact | Release | |-----|------|--------|--------|---------| | [PR #N: Title](url) | repo | {date} | +{additions}/-{deletions} | Included in v1.2.3 | ### Closed Issues ({count} items) | Issue | Repo | Closed | Resolution | |-------|------|--------|-----------| | [Issue #N: Title](url) | repo | {date} | Fixed in [PR #N: Title](pr-url) | --- ## Dashboard Summary | Metric | Count | |--------|-------| | Action needed -- needs your action | {count} | | Monitor -- watch these items | {count} | | Accessibility updates -- a11y changes | {count} | | Completed -- since last briefing | {count} | | Open issues -- yours | {count} | | Open PRs -- yours | {count} | | Reviews pending -- from you | {count} | | Active discussions -- your threads | {count} | | Upcoming releases -- across repos | {count} | | CI/CD -- failing workflows | {count} | | Security -- open alerts | {count} | | CI scanner issues -- automated a11y findings | {count} | | Sprint items -- yours | {count} | --- ## Guidance & Patterns ### Today's Focus Recommendation Based on what I found, here's a suggested priority order: 1. **{Highest priority item}** -- {why it's urgent} 2. **{Second priority}** -- {why} 3. **{Third priority}** -- {why} ### Patterns Noticed - {e.g., "3 of your PRs have been open >5 days without review -- consider pinging reviewers"} - {e.g., "Issue #42 has had 12 comments in 2 days and 8 thumbs-up reactions -- high community interest"} - {e.g., "v2.0.0 release has 3 of your PRs pending -- review deadline may be approaching"} - {e.g., "Discussion #18 has 20+ comments -- might need a decision or sync meeting"} ### Community Pulse - **Most reacted item this period:** [Issue #N: Title](url) -- {reaction count} reactions - **Fastest growing discussion:** [Discussion: Title](url) -- {N} new comments today - **Your impact:** {N} of your issues/PRs received positive reactions this period ### Suggested Next Commands - `@issue-tracker deep dive into {repo}#{number}` -- review the highest priority issue - `@pr-review review {repo}#{number}` -- start reviewing the most urgent PR - "triage my open issues" -- generate a full triage dashboard for your open issues - `@daily-briefing what changed since this morning` -- for an afternoon update - `@github-hub show today's audit log` -- review all GitHub actions taken this session --- ## My Notes ```` #### HTML Template Generate the HTML version following the shared HTML standards from shared-instructions.md. The HTML template MUST include: ```html Daily Briefing -- {Day of Week}, {Month} {Day}, {Year} -- GitHub Agents

Daily Briefing -- {Day of Week}, {Month} {Day}, {Year}

Generated at {time} by Daily Briefing Agent

Covering: {scope description}

{X} need action {Y} to monitor {Z} completed

Needs Your Action Now {count} items

Items where someone is specifically waiting on you.

Issues Awaiting Your Response {count}

Issues where someone is waiting for your response, sorted by priority
Priority Issue Repository From Waiting Reactions Summary
1 Issue #{N}: {Title} {repo} @{user} {duration} {count} thumbs up {summary}

Action Checklist

Actions to complete today

Releases & Deployments {count}

Active Discussions {count}

CI/CD Health {count}

Failing Workflows {count}

Workflows with recent failures across monitored repos
Repository Workflow Branch Failed Duration Link
{repo} {workflow} {branch} {time ago} {duration} View run

Security Alerts {count}

Open security vulnerabilities requiring attention
Severity Package Repository Advisory Fix Available
Critical {package} {repo} {CVE} {yes/no}

Project Board {count}

Current sprint/iteration progress
ColumnItemsChange
To Do{count}{+/-N}
In Progress{count}{+/-N}
In Review{count}{+/-N}
Done{count}{+/-N}

Monitor & Follow Up {count} items

Accessibility Updates {count}

Recently Completed {count} items

Dashboard Summary

Overview metrics for this briefing period
MetricCount
Action needed{count}
Monitor{count}

Guidance & Patterns

My Notes

``` ### Step 5: Present & Offer Next Steps After generating both documents: 1. Show a **compact summary in chat** (not the full document): ```text Daily Briefing saved: - Markdown: .github/reviews/briefings/briefing-{date}.md - HTML: .github/reviews/briefings/briefing-{date}.html Quick stats: {X} need action | {Y} to monitor | {Z} a11y updates | {W} completed Top priorities: 1. Respond to @user on repo#42 (waiting 2 days, 5 reactions) 2. Review PR repo#15 (5 files, +120/-30, targets v2.0 release) 3. Fix CI on your PR repo#23 Open the briefing to see the full report and check off items as you go. ``` 2. Offer immediate actions: _"Want to start with the top priority? I can deep dive into that issue, start the PR review, or run any other command."_ ### Step 6: Incremental Updates When called again the same day: 1. Check for the existing briefing files (both .md and .html). 2. Compare current GitHub state against what's in the files. 3. Add an **update section** at the top of both files: Markdown: ```markdown ## Update at {time} **Since the morning briefing:** - **NEW:** New PR review requested: [PR #N: Title](url) from @author - Done: Completed: Responded to issue #42 - Changed: PR #23 CI now passing - **NEW:** Release v1.2.4 published for repo - includes your PR #20 ``` HTML: Use `NEW` badges. 4. Update the dashboard counts. 5. Mark newly completed items in the action list. ---