pete

Previews the CI test-coverage verdict for the current git branch locally.

4.2k|179|Updated May 24, 2022
One-click install
npx skills add https://github.com/posit-dev/positron --skill pete
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pete
Source: https://github.com/posit-dev/positron/tree/main/.claude/skills/pete-local
Command: npx skills add https://github.com/posit-dev/positron --skill pete

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Before opening a pull request, developers cannot know whether PETE (Positron's CI PR Test Checker) will judge their changes as having adequate test coverage. This Skill replays the same grading rubric locally against the working tree so you can anticipate the verdict without pushing code or creating a PR.

Core Features & Use Cases

  • Local verdict preview: Grades committed, uncommitted, and untracked changes against the merge-base with the default branch using the same rubric and file classification as the CI workflow.
  • Skip pre-filter handling: Detects changes that CI would mark as not applicable and renders the same static verdict comment.
  • No network or GitHub CLI required: Runs entirely in-session via a deterministic context-gathering script, posting nothing to any PR.
  • Use Case: You have finished a feature branch with new source files and want to check whether PETE will flag missing tests before you push. Run the local preview to see the graded verdict and add tests if needed.

Quick Start

Ask the assistant to run PETE locally to preview the test-coverage verdict for the current branch before opening a PR.

Frequently Asked Questions about pete

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check test coverage before opening a pull request?

Run the PETE local preview, which grades your working tree against the merge-base with the default branch using the same rubric as CI. It reports whether your source changes include adequate tests before you push anything.

What is PETE in the Positron repository?

PETE is Positron's CI PR Test Checker, a workflow that grades whether a pull request adds adequate tests for its source changes and posts a verdict comment. The local skill replays that same rubric in-session without posting anything.

Does the local PETE preview require GitHub CLI or network access?

No. The context-gathering script reads the working tree directly against the merge-base with the default branch, requiring no gh CLI, no network, and no API keys. It posts nothing to any PR.

Do uncommitted changes count in the PETE local preview?

Yes. The preview includes committed, uncommitted, and untracked changes in the working tree, so a brand-new test file you have not committed yet still counts toward coverage. The eventual PR diff may differ slightly after you commit and push.

Why might the local PETE verdict differ from the CI verdict?

The CI grader runs on an Opus model, so a borderline verdict can shift if the local preview runs on a different model. The local preview is not authoritative; the PR Test Checker workflow remains the official grader.