pre-pr-review

pre-pr-review is a skill for Claude Code, Codex from telus-labs/stagecraft. It costs 124 tokens per session (1,123 once invoked), scanned A, original, MIT.

A skill for reviewing the current Git branch before creating a pull request, a request to merge code into another branch.

In plain words
What is it for?
Inspecting branch commits and diffs, loading repository guidelines, checking conflicts, and reporting problems before a pull request.
Why use it?
It checks the actual changes, project standards, and possible merge conflicts so issues can be found before human review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Inspecting branch commits and diffs, loading repository guidelines, checking conflicts, and reporting problems before a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/telus-labs/stagecraft/pre-pr-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add telus-labs/stagecraft --skill pre-pr-review
Clone the repo
git clone --depth 1 https://github.com/telus-labs/stagecraft

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pre-pr-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/telus-labs/stagecraft/pre-pr-review/github.svg)](https://agentmods.dev/skills/telus-labs/stagecraft/pre-pr-review)
Your own site
<a href="https://agentmods.dev/skills/telus-labs/stagecraft/pre-pr-review"><img src="https://agentmods.dev/badge/skills/telus-labs/stagecraft/pre-pr-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pre-pr-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/telus-labs/stagecraft/pre-pr-review"><img src="https://agentmods.dev/badge/skills/telus-labs/stagecraft/pre-pr-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,123 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 25
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 75
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00124 $0.01123
Opus 5 $0.00062 $0.00562
Sonnet 5 $0.00025 $0.00225
Haiku 4.5 $0.00012 $0.00112

Measured 10d ago against content hash 5cfd173a61a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

pre-pr-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pre-pr-review/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pre-PR Review

Review the current branch as a thorough, senior code reviewer. The goal is to catch issues before they reach human reviewers — saving review cycles and preventing convention drift.

This skill is for changes made outside the pipeline. If you just ran /pipeline, Stage 5 already reviewed the code — you don't need this skill.

Setup

  1. Detect the base branch — do not assume main:

    BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
    if [ -z "$BASE" ]; then
      git show-ref --verify --quiet refs/heads/main && BASE=main || BASE=master
    fi
    echo "Base branch: $BASE"
    
  2. Load the project's standards (read whichever exist):

    • AGENTS.md (coding standards, platform rules)
    • skills/code-conventions/SKILL.md (project coding conventions)
    • docs/audit/03-compliance.md (known conventions and anti-patterns from audit)
    • docs/audit/00-project-context.md (project context, commands)
    • CONTRIBUTING.md
  3. Get the scope of changes:

    git rev-parse --abbrev-ref HEAD
    git log --oneline $BASE..HEAD
    git diff --name-only $BASE...HEAD
    git diff $BASE...HEAD
    
  4. Check for merge conflicts with the base branch:

    git merge-tree $(git merge-base HEAD $BASE) $BASE HEAD | head -20
    

    If there are conflicts, flag them immediately — they must be resolved before any review makes sense.

  5. Read each changed file in full (not just the diff). A change that looks correct in isolation may be wrong in context — duplicate of something nearby, inconsistent with an adjacent function, or breaking a pattern in the same file.

If the diff is very large (20+ files), ask the user: "This is a large diff. Should I review everything, or focus on specific areas?"

Review Checklist

Work through each area. For each issue found, report: the file and line, what's wrong, why it matters, and the suggested fix.

Correctness

  • Does the logic do what it's supposed to? Trace the main code paths.
  • Are edge cases handled (empty inputs, nulls, error conditions)?
  • Are there off-by-one errors, wrong comparisons, or missed conditions?

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 103 lines · 124 tokens per session scan A 5cfd173a61a7

Subscribe to this mod's changes

pre-pr-review is a skill published in the GitHub repository telus-labs/stagecraft (6 stars, last pushed 4d ago), licensed MIT. It adds 124 tokens to every session and 1,123 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.