Skip to content

docs: add copilot-pr-review-workflow skill#764

Closed
diberry wants to merge 1 commit intodevfrom
squad/skill-copilot-pr-review-workflow
Closed

docs: add copilot-pr-review-workflow skill#764
diberry wants to merge 1 commit intodevfrom
squad/skill-copilot-pr-review-workflow

Conversation

@diberry
Copy link
Copy Markdown
Collaborator

@diberry diberry commented Apr 2, 2026

Summary

Adds a new skill at .squad/skills/copilot-pr-review-workflow/SKILL.md\ capturing the complete Copilot PR reviewer comment pipeline.

What this skill teaches agents:

  1. Reading reviews — MCP \pull_request_read\ + GraphQL for thread state
  2. Critical evaluation — categorize comments (factual error / edge case / style / over-engineering)
  3. Lockout routing — original author cannot fix their own review comments; route to different agent
  4. Thread resolution — GraphQL mutations to resolve threads after fix + CI green
  5. CI verification — \gh pr checks\ before resolving
  6. Common patterns — what Copilot reviewer catches well
  7. PR hygiene — pre-review checks to reduce noise

Anti-patterns documented:

  • Don't auto-accept all suggestions
  • Don't let original author fix their own PR's review comments
  • Don't resolve threads before fix is pushed
  • Don't batch .squad cleanup with other PR work

Confidence: medium (confirmed across PRs #756, #760, #762)
Source: earned (real PR review cycles)

Working as Procedures (Prompt Engineer).

Adds the Copilot PR review workflow skill covering the full pipeline:
reading reviews, critical evaluation, lockout routing, thread
resolution via GraphQL, and CI verification.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@diberry diberry force-pushed the squad/skill-copilot-pr-review-workflow branch from 8a276da to 67c014d Compare April 3, 2026 04:52
@diberry diberry marked this pull request as ready for review April 3, 2026 04:52
Copilot AI review requested due to automatic review settings April 3, 2026 04:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Squad skill documenting an end-to-end workflow for handling Copilot PR review comments (read/triage/route fixes/verify CI/resolve threads), based on recent PR review cycles.

Changes:

  • Introduces a new skill document: .squad/skills/copilot-pr-review-workflow/SKILL.md
  • Documents review-thread reading (MCP + GraphQL), lockout routing, CI verification, and thread resolution steps
  • Captures common Copilot reviewer patterns and anti-patterns for PR hygiene

Comment on lines +2 to +4
name: "copilot-pr-review-workflow"
description: "Complete pipeline for handling Copilot PR reviewer bot comments ΓÇö from reading reviews to resolving threads"
domain: "pr-review"
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file contains mojibake characters (e.g., "ΓÇö") in the YAML frontmatter description, which indicates an encoding/charset issue and will render incorrectly in docs. Replace these with the intended characters (e.g., an em dash "—") and ensure the file is saved as UTF-8.

Copilot uses AI. Check for mistakes.
Comment on lines +7 to +11
tools:
- name: "pull_request_read"
description: "GitHub MCP tool to read PR review comments"
when: "Reading Copilot review threads with get_review_comments method"
- name: "gh api graphql"
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MCP tool name and invocation format here don’t match the established convention used in the existing PR review skills (e.g., .squad/skills/pr-review-response/SKILL.md uses github-mcp-server-pull_request_read with a YAML-style argument block). If agents copy/paste pull_request_read(...) it may not work in this repo’s tool environment; consider aligning the tool name and example call format with the existing skill to avoid broken instructions.

Copilot uses AI. Check for mistakes.
Comment on lines +20 to +31
## Scope

✅ THIS SKILL PRODUCES:
- A decision on which comments to fix vs push back on
- Correctly routed fix assignments (respecting lockout)
- Resolved review threads after verified fixes
- Green CI confirmation

❌ THIS SKILL DOES NOT PRODUCE:
- New tests (unless a comment specifically requests one)
- Refactors beyond what the comment identifies
- Changes to `.squad/` files (keep PR hygiene separate)
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More mojibake characters appear in the section headers (e.g., "Γ£à", "Γ¥î") where this likely intended to be "✅" / "❌" markers. This will render as garbage text; replace with the intended symbols (or ASCII equivalents like "+"/"-") and ensure UTF-8 encoding.

Copilot uses AI. Check for mistakes.
Comment on lines +81 to +83
Session examples:
- PR #760: **Network** authored → **FIDO** fixed Copilot comments
- PR #762: **EECOM** authored → **CONTROL** fixed Copilot comments
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The session example lines contain mojibake ("ΓåÆ") where an arrow ("→") is likely intended. Since this skill is meant to be copy/paste friendly, it’s worth fixing all such occurrences to avoid confusing or broken rendering.

Copilot uses AI. Check for mistakes.

Run these checks BEFORE submitting for review to reduce noise:

- No `.squad/` files in the diff
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This checklist item is written as an absolute ("No .squad/ files in the diff"), but this repo does have legitimate PRs that intentionally change .squad/ (like this one). Consider rewording to something like “No unrelated .squad/ changes” or “Avoid mixing .squad/ changes with product code” to keep the guidance accurate.

Suggested change
- No `.squad/` files in the diff
- No unrelated `.squad/` changes in the diff

Copilot uses AI. Check for mistakes.
Comment on lines +141 to +148
- No branch stacking (PR only contains its own commits)
- Changeset present if CLI/SDK source changed
- File count matches intent (Γëñ10 for most fixes)

## Agent Workflow

1. **READ** ΓÇö Fetch review threads using `pull_request_read` or GraphQL
2. **TRIAGE** ΓÇö Categorize each comment (factual error / edge case / style / over-engineering)
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file includes additional mojibake in numeric/comparison text (e.g., "Γëñ10") and several em-dash occurrences ("ΓÇö"). These should be replaced with the intended symbols (e.g., "≤10" and "—") and the file should be normalized to UTF-8 so future edits don’t reintroduce encoding corruption.

Copilot uses AI. Check for mistakes.
@diberry diberry closed this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants