Skip to content

Add deterministic skill selection to Impeccable reviewer - #54575

Merged
pelikhan merged 2 commits into
mainfrom
copilot/add-skill-selection-table
Aug 21, 2026
Merged

Add deterministic skill selection to Impeccable reviewer#54575
pelikhan merged 2 commits into
mainfrom
copilot/add-skill-selection-table

Conversation

Copilot AI commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

The Impeccable reviewer lacked concrete skill-selection guidance, leading to generic reviews and fewer actionable comments than comparable workflows.

  • Deterministic selection

    • Maps six PR change types to 1–2 Impeccable review modes.
    • Applies the first matching rule and prioritizes high-impact files.
  • Reliable skill guidance

    • Pins the official Impeccable skill.
    • Documents review-relevant modes inline.
    • Falls back to inline guidance when the installed skill is unavailable.
  • Regression coverage

    • Adds a prompt contract test for the pinned skill, change-type table, selection limit, and fallback behavior.
    • Regenerates the compiled workflow.

@github-actions

Copy link
Copy Markdown
Contributor

PR Triage: category=docs · risk=low · priority=low · score=9/100

  • Impact 3 + Urgency 2 + Quality 4 (WIP draft, no diff yet)
  • Recommended action: defer

Generated by 🔧 PR Triage Agent · auto · 78.9 AIC · ⌖ 6.57 AIC · ⊞ 8.3K ·

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add concrete skill-selection table to improve output density Add deterministic skill selection to Impeccable reviewer Aug 21, 2026
Copilot AI requested a review from pelikhan August 21, 2026 18:39
@pelikhan
pelikhan marked this pull request as ready for review August 21, 2026 18:44
Copilot AI balanced review requested due to automatic review settings August 21, 2026 18:44
@pelikhan
pelikhan merged commit 8b223bf into main Aug 21, 2026
@pelikhan
pelikhan deleted the copilot/add-skill-selection-table branch August 21, 2026 18:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds deterministic Impeccable skill selection to produce more targeted PR reviews.

Changes:

  • Pins the official Impeccable skill and adds selection guidance.
  • Adds fallback behavior and contract coverage.
  • Regenerates the compiled workflow.
Show a summary per file
File Description
.github/workflows/impeccable-skills-reviewer.md Adds skill installation and deterministic review selection.
.github/workflows/impeccable-skills-reviewer.lock.yml Regenerates the compiled workflow.
pkg/cli/pr_prefetch_cache_contract_test.go Adds prompt contract assertions.

Review details

Suppressed comments (2)

.github/workflows/impeccable-skills-reviewer.md:130

  • This tests-only signal omits Go's standard *_test.go naming convention, even though this repository is predominantly Go and the sibling reviewer handles that pattern (.github/workflows/mattpocock-skills-reviewer.md:144). A Go test-only PR will therefore fall through to a keyword or catch-all classification instead of tests_only.
   | Only test files (`*.test.*`, `*.spec.*`, `test/**`, `tests/**`) | `tests_only` | `audit` |

.github/workflows/impeccable-skills-reviewer.md:134

  • Because rows are evaluated top-down, this copy-only rule loses to the broad keyword rules above it. For example, a PR that only fixes a button-label typo and has “fix” in its title is classified as bug_fix and gets harden/audit rather than clarify. Evaluate the exclusive documentation/copy rule before the keyword-based rows, or explicitly exclude copy-only changes from those rows.
   | Only documentation or copy changes | `documentation` | `clarify` |
  • Files reviewed: 3/3 changed files
  • Comments generated: 4
  • Review effort level: Balanced

4. Select the most relevant skills for the detected change type and risk areas.
Use the inline mode guidance above by default. Read the installed `SKILL.md` only when that guidance is insufficient.

4. Select 1–2 Impeccable modes using the first matching row:
Comment on lines +65 to +72
assert.Contains(t, text, "using the first matching row", "Impeccable reviewer should select modes deterministically")
assert.Contains(t, text, "`tests_only`")
assert.Contains(t, text, "`bug_fix`")
assert.Contains(t, text, "`new_feature`")
assert.Contains(t, text, "`refactor_cleanup`")
assert.Contains(t, text, "`documentation`")
assert.Contains(t, text, "`mixed_unclear`")
assert.Contains(t, text, "Select 1–2 Impeccable modes", "Impeccable reviewer should limit selected modes")
Comment on lines +89 to +91
## Available Impeccable Review Modes

The installed `/impeccable` skill provides these review-relevant modes:
assert.Contains(t, text, "Test Quality Sentinel skipped because pre-fetch PR data was unavailable", "Test Quality Sentinel prompt should instruct the agent to noop with the fallback reason")
}

func TestImpeccableSkillsReviewerHasDeterministicSkillSelectionGuidance(t *testing.T) {
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Impeccable Skills Reviewer: add concrete skill-selection table to fix generic task framing

3 participants