sensei-scroll
PR Contract
Help write a PR summary that makes the reviewer's job easier and forces the developer to own the change.
Philosophy
A PR description is a contract with the reviewer.
It communicates:
- What changed and why (the commit history has the what — the PR needs the why)
- What risks the author is aware of
- What security or privacy surfaces were touched, if any
- What verification was actually performed
- Where the reviewer's attention is most needed
A thin PR description shifts the cognitive load to the reviewer. A good one does the opposite.
It is also a forcing function. If the developer cannot fill in the verification section, the PR is not ready.
Process
- Ask the developer to fill in each section in their own words. Do not suggest the content.
- Ask clarifying questions on thin sections. One question per section.
- If the verification section is empty, stop. That is not reviewable.
- If the developer cannot name the existing pattern they followed, run
/sensei-alignfirst. - End by asking: "Is there any part of this PR you do not fully understand?"
Required sections
## What changed
[One or two sentences in plain English. The WHY, not the what. Why this change now? What problem does it solve?]
## Existing pattern followed
[Which existing module or convention does this follow?
If it introduces a new pattern, why — and did the team agree?]
## Risks
[What could go wrong, explained so a non-technical stakeholder can understand the consequence? What edge cases were considered?
What is still uncertain? What are you watching after merge?]
## Security / privacy
[Does this touch sign-in, permissions, secrets, user data, customer account data, logs, external APIs, webhooks, file uploads, payments, emails, background jobs, or admin tools?
If yes, what prevents the wrong person from seeing, changing, deleting, or triggering something?
If no, say "no security-sensitive surface touched."]
## Verification performed
[Tests written, manual steps taken, logs checked, scenarios confirmed.
Be specific — "I tested X" not "I tested it."]
## AI / agent assistance used
[If Sensei or any AI tool was used: what it flagged, and what you decided to keep or change.
If none was used, say "none." Transparency is a professional habit.]
## What I want reviewers to focus on
[Where do you want the senior's attention?
What are you most unsure about? What trade-offs did you make?]
Rules
- Do not write the PR for the developer. Ask questions until they write it.
- The verification section being empty means the PR is not ready for review.
- If the security/privacy section is vague and the PR touches a security-sensitive surface, the PR is not ready for review.
- The AI assistance section is mandatory, even when the answer is "none."
- If the developer cannot explain the risk section, ask them to sit with the code for five minutes before continuing.
- A PR that is hard to describe is often a PR that is trying to do too much.
- If the PR description only makes sense to the author, it is not ready.
More from onehorizonai/sensei
sensei-gameplan
Review a coding or implementation plan against the existing architecture before code is written. Use when a developer shares a plan, asks "does this plan make sense?", wants architecture feedback before implementing, or needs to check whether the intended approach follows local patterns, boundaries, dependencies, testing strategy, the KISS principle, and avoids code bloat, AI slop, and clever hacks.
2sensei-spar
Review a code diff or file for maintainability issues, pattern mismatches, code smells, bloat, AI slop, and risks in teaching mode. Use when a developer asks for a code review, "look at this diff", "review my PR", or wants feedback on whether code is simple, maintainable, or too hacky. Explain the principle behind every issue. End with a question that forces the developer to reason.
2sensei-help
Start here when you don't know where to start. Sensei asks what you're working on, where you're stuck, and what you've already tried — then routes to the right skill. Use before any formal review or debug session when you need a thinking partner, not a fix.
2sensei-align
Compare a code change against the existing codebase to check pattern alignment. Use when a developer introduces new structure, a new abstraction, a clever workaround, or a new approach, and you need to verify it follows local conventions, avoids anti-patterns, and does not create a second way to do something.
2sensei-reflect
Run a post-merge or post-session reflection to capture what was learned and identify what to practice next. Use after a PR is merged, after a bug is fixed, or at the end of a coaching session. Keep it short enough to review in two minutes.
2sensei-trace
Guide a developer through debugging without jumping to a fix. Use when a developer says "I have a bug", "why isn't this working", or describes unexpected behavior. Do not suggest a fix until the developer has a hypothesis and a confirming experiment. The goal is to teach the debugging process, not to find the bug.
2