Review CausalPy pull requests end-to-end by classifying PR type, checking branch freshness, mergeability, remote CI, correctness, security, tests, docs, and maintainer concerns. Use when asked to review a PR, assess a branch before merge, summarize PR risks, or request changes.
67
80%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/review-pr/SKILL.mdUse this skill to evaluate whether a PR is correct, safe, understandable, and merge-ready. This is a review workflow, not primarily a fix workflow.
pr-to-green for CausalPy-specific greening work.prek rules.A review must actively try to falsify the PR's claims; passing CI is evidence, not the conclusion. Before reading the whole diff, state a private review brief with:
For every changed production behavior, trace both directions across its seam: its inputs/producers and its outputs/consumers. Compare old and new behavior at the most fragile boundary (multi-output, empty or degenerate data, optional backend, custom subclass, serialization, or backwards-compatible call) rather than only the happy path. Read existing PR comments as review leads, not as conclusions. Do not report “no findings” until these probes have either found a concrete issue or produced evidence that the concern is handled.
Follow resources/workflow.md for the full workflow. At a glance:
pr-to-green when needed.gh pr checks or the equivalent GitHub command. Distinguish failed, pending, skipped, and missing required checks.Classify the PR by its dominant risk profile, then read the matching resource file. For mixed PRs, read every relevant resource before reviewing.
resources/pr-type-features.md.resources/pr-type-bug-fixes.md.resources/pr-type-refactors.md.resources/pr-type-docs-notebooks.md.resources/pr-type-data-datasets.md.resources/pr-type-tests-ci-infra.md.When classification is unclear, state the likely categories and review against the stricter applicable checklist.
Read these when the PR touches the relevant surface:
resources/code-patterns.md.resources/docs-patterns.md.resources/review-patterns.md.resources/review-comments.md.resources/maintenance.md.causalpy/tests/; PyMC-heavy tests use runtime-controlled sample_kwargs; no throwaway verification scripts are added.AGENTS.md (workflow) and ARCHITECTURE.md (design) for core changes. For docs-heavy PRs, also inspect docs/source/notebooks/index.md; for process-sensitive PRs, inspect CONTRIBUTING.md when present.$CONDA_EXE run -n CausalPy <command> for commands that import project code, run tests, build docs, or invoke repo tooling. AGENTS.md defines how to detect or set CONDA_EXE; if it is unset, inspect that environment guidance before running project commands.prek run during iteration and prek run --all-files before handoff unless the user explicitly says not to.Lead with an executive summary. Explain the PR's user-facing value and the strongest evidence it delivers that value, then surface findings in severity order. If there are no findings, say which concrete probes were performed and what residual risk remains; never substitute generic praise for an evidence-backed win.
Use this structure:
## Executive Summary
Recommendation: approve / request changes / blocked / needs maintainer decision.
Value delivered:
- [Concrete user or maintainer win, tied to an implementation detail.]
- [Second concrete win when applicable.]
Review focus:
- [Highest-risk assumption and the evidence that supports or challenges it.]
## Findings
- [severity] `path`: issue, why it matters, and what should change.
## Merge Readiness
Verdict: approve / request changes / blocked / needs maintainer decision.
Branch status: up to date or behind base; conflicts if any.
CI status: green, failing, pending, skipped, or unavailable.
## PR Summary
One short paragraph describing the implementation, why it was needed, and its most important trade-off or compatibility impact.
## Test Evidence
List local and remote checks observed. Include commands only when they were actually run.
## Open Questions
Only include questions that affect merge readiness or review confidence.When drafting comments for posting, show the draft to the user first and wait for approval. Preserve the distinction between the human maintainer's voice and any agent-authored review text.
f94d7af
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.