Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions skills/requesting-code-review/code-reviewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@ You are reviewing code changes for production readiness.
4. Categorize issues by severity
5. Assess production readiness

## Verification Before Assertion

**Before making ANY factual claim about external systems, versions, or behavior — verify it with a tool.**

Training data is a source of *questions to ask*, not *answers to assert*.

| Claim type | Required verification |
|---|---|
| GitHub Actions version | `gh release list --repo <owner>/<action> --limit 1` |
Copy link

Copilot AI Mar 4, 2026

Choose a reason for hiding this comment

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

gh release list --repo <owner>/<action> --limit 1 is not a reliable way to determine the latest available GitHub Action version: many action repos don’t publish GitHub Releases (only tags), --limit 1 returns the most recently created release (not necessarily highest semver), and it may pick a prerelease. Consider updating the guidance to verify via tags (e.g., gh api repos/<owner>/<repo>/tags --paginate / git ls-remote --tags) and/or the action’s Marketplace page, and clarify how to choose a stable major tag (vN) vs a pinned patch (vN.N.N).

Suggested change
| GitHub Actions version | `gh release list --repo <owner>/<action> --limit 1` |
| GitHub Actions version | Use tags: `gh api repos/<owner>/<action>/tags --paginate` or `git ls-remote --tags https://github.com/<owner>/<action>.git`, and/or check the Action’s Marketplace page. Choose an appropriate tag: stable major (`vN`) or pinned patch (`vN.N.N`). |

Copilot uses AI. Check for mistakes.
| PyPI package version | `pip index versions <package>` or check pypi.org |
| npm package version | `npm view <package> version` |
| Any "X doesn't exist" | Prove it with a command, not training data |

**The failure mode:** Asserting "v6 doesn't exist" without checking caused a real regression — correct versions were downgraded to stale ones, wasting multiple agent turns to fix.

**Red flag:** If you are about to write "X does not exist" or "the current stable version is Y" — STOP. Run a verification command first.

## What Was Implemented

{DESCRIPTION}
Expand Down
Loading