pr-precheck

Solid

Use when the user invokes `/pr-precheck <repo> <topic>` or — implicitly, before any other skill opens a pull request — to check the target repo's merged and closed PR history for prior attempts at the same fix, so the agent doesn't open the Nth duplicate of an already-rejected approach. Wraps the `vouch pr-cache` CLI (build / check / show) and turns its verdict into a clear stop / ask / proceed signal.

AI & Automation 122 stars 64 forks Updated today MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
70
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# PR Precheck **Goal:** before you raise a PR, find out whether someone already tried this fix — especially whether anyone tried and got *rejected*. The cost of asking is seconds; the cost of a duplicate PR is reviewer attention, contributor reputation, and (on Bittensor-style mining repos) wasted scoring weight. This skill is a thin orchestration layer over the `vouch pr-cache` CLI shipped in vouch ≥ this PR. It's safe to invoke directly **and** to chain ahead of `pr-fix` / `prs-auto`. ## Invocation Direct: ``` /pr-precheck <repo> <topic-summary> /pr-precheck <repo> <topic-summary> --files a.py,b.py ``` Implicit (auto-fires inside `pr-fix` / `prs-auto` before the "open PR" step): ``` /pr-fix https://github.com/owner/repo/issues/N └─ before pushing the branch, run pr-precheck on the planned PR title + files ``` `<repo>` may be: - `https://github.com/<owner>/<name>` - `git@github.com:<owner>/<name>.git` - `<owner>/<name>` (shorthand) `<topic-summary>` is the title-like phrase that describes the PR you're about to raise. Be specific — short generic strings ("fix bug") will match too many cached PRs. ## Prerequisites - **`vouch` CLI** on `PATH` (`pip install vouch-kb` ≥ the version that ships `pr-cache`). - **`gh` CLI** authenticated for the target repo's read scope (`gh auth status` returns a session). - *Optional:* `claude` CLI on `PATH` **or** `ANTHROPIC_API_KEY` in env — only needed if you pass `--analyze-closed` and want LLM-summarised "why was this closed" n...

Details

Author
vouchdev
Repository
vouchdev/vouch
Created
2 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category