mcpField
P
pre-pr

pre-pr

github.com/plastic-labsDevelopment7.8k106 installsUpdated today
Repository

About pre-pr

pre-pr is a checklist skill for maintainers preparing a GitHub PR after a change works. It classifies the diff, identifies required tests and documentation, and fills the repository’s PR template with evidence without creating the PR.

Key features

  1. 01Classifies changes from the diff
  2. 02Maps changes to tests and docs
  3. 03Runs lint, type checks, and tests
  4. 04Collects evidence for the PR
  5. 05Fills the PR description template

Use cases

  1. 01Preparing a GitHub PR
  2. 02Checking which test layers a change requires
  3. 03Organizing command results and behavior evidence

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/plastic-labs/honcho --skill pre-pr

After installing, type/pre-prin Claude Code to confirm it loaded.

Details

From the project README

Pre-PR checklist

Do this after the change works, before anyone opens the GitHub PR. Output is a filled template body — do not create the PR.

The template lives at .github/pull_request_template.md. Do not add extra sections.

1. Classify the diff

git diff main...HEAD --stat

Pick one primary kind: bug, feature, docs. Then decide layers:

Surface touchedRequired
src/ (non-prompt)unit tests under the matching tests/ tree
deriver / dialectic / dreamer / LLM pathunit + consider live-llm (tests/live_llm)
queue, config hierarchy, multi-turn, SDK contractunified (uv run python -m tests.unified.run)
/v3 HTTP or deriver queue behavior/verify skill (runtime, not just pytest)
public API, SDK exports, config.toml / settings, mintlify docs/documentation in the matching file

Skip a layer only with a one-line reason (e.g. "docs-only", "comment-only"). "When appropriate" is not a skip.

Invoke /verify when the runtime surface moved. Do not restate that skill here.

Lint/type before claiming tests are green: uv run ruff check src/ → uv run basedpyright → the pytest command for the layer.

2. Proofs

Collect evidence that belongs in the PR, not in the commit:

  • command + pass/fail for what you ran
  • a log snippet, screenshot, or file path that shows the new behavior
  • for bugs: the failing case before vs after, if you have it

If /verify ran, the proofs are that session's output. Do not invent green runs.

3. Write the body

Fill the description and proofs portion of the pull request description template. If there is a related GitHub issue, link it with Fixes #<N>.

Comments

Markdown supported