pr-review
/pr-review
Review PRs against the Intent Layer. Use for reviewing AI-generated PRs or having AI review human PRs. Provides risk scoring, checklists, and contract verification.
- Author
- orban ↗
- Repository
- intent-layer ↗
- Licence
- MIT
- Last repository change
- 16.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 16.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Review PRs against the Intent Layer. Use for reviewing AI-generated PRs or having AI review human PRs. Provides risk scoring, checklists, and contract verification.
Arguments
/pr-review [BASE_REF] [HEAD_REF] [--pr NUMBER] [--ai-generated]
Original author description
Review PRs against the Intent Layer. Use for reviewing AI-generated PRs or having AI review human PRs. Provides risk scoring, checklists, and contract verification.
How it works
- Quick Start
- Interactive Review Workflow
- CI Integration
- Output Modes
- When to Use
- Related
SKILL.md preview
---
name: pr-review
description: >
Review PRs against the Intent Layer. Use for reviewing AI-generated PRs
or having AI review human PRs. Provides risk scoring, checklists, and
contract verification.
argument-hint: "[BASE_REF] [HEAD_REF] [--pr NUMBER] [--ai-generated]"
---
# PR Review
Review a PR against the Intent Layer for contract compliance, pitfall awareness, and risk assessment.
## Quick Start
```bash
# Basic review
scripts/review_pr.sh main HEAD
# Review AI-generated PR
scripts/review_pr.sh main HEAD --ai-generated
# Review with GitHub PR context
scripts/review_pr.sh main HEAD --pr 123 --ai-generated
```
## Interactive Review Workflow
### Step 1: Run Initial Analysis
```bash
scripts/review_pr.sh main HEAD --ai-generated
```
Review the output:
1. **Risk Score** - Is this Low/Medium/High?
2. **Critical Items** - These MUST be verified
3. **AI Checks** - Any drift or over-engineering warnings?
### Step 2: Walk Through Critical Items
For each critical item in the checklist:
1. Read the contract/invariant
2. Find the relevant code in the diff
3. Verify the code respects the constraint
4. Mark checked: `- [x]` or flag concern
### Step 3: Check AI-Specific Warnings
If `--ai-generated` was used:
**Over-engineering flags:**
- New abstractions: Are they necessary?
- Excessive try/catch: Does error handling add value?
- New interfaces: Premature abstraction?
**Pitfall proximity:**
- For each alert, verify the AI handled the edge case
- If not, flag for fix before merge
**Intent drift:**
- If PR approach conflicts with documented architecture, escalate
### Step 4: Surface Findings
Use the agent-feedback-protocol format for any discoveries:
```markdown
### Intent Layer Feedback
| Type | Location | Finding |
|------|----------|---------|
| Missing pitfall | `src/api/AGENTS.md` | [description] |
| Stale contract | `CLAUDE.md` | [description] |
```
### Step 5: Generate Review Summary
Output a structured review comment:
```markdown
## PR Review Summary
**Risk: [Score] ([Level])**
### Verified
- [x] Auth tokens validated before DB write
- [x] Rate limiting uses Redis
### Concerns
- [ ] New abstraction in `utils/helper.ts` may be unnecessary
### Intent Layer Feedback
[Any findings to update nodes]
```
## CI Integration
```yaml
- name: PR Review Check
run: |
./intent-layer/scripts/review_pr.sh origin/main HEAD --exit-code --ai-generated
# Exit 0 = low risk, 1 = medium, 2 = high
```
## Output Modes
| Flag | Output |
|------|--------|
| `--summary` | Risk score only |
| `--checklist` | Score + checklist |
| `--full` | All layers (default) |
## When to Use
- **Before merging AI-generated PRs** - Verify contracts respected
- **AI reviewing human PRs** - Systematic contract checking
- **CI gate** - Block high-risk PRs for manual review
## Related
- `detect_changes.sh` - Foundation for affected node discovery
- `agent-feedback-protocol.md` - Format for surfacing findings
- `validate_node.sh` - Validate node updates after review
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · orban/intent-layer | 100 | MIT |
| rjmurillo/ai-agents | 100 | MIT |
| rjmurillo/ai-agents | 100 | MIT |
| rjmurillo/ai-agents | 100 | MIT |
| PerilloAI/flowtrace-plugin | 100 | Apache-2.0 |
| pytorch/pytorch | 100 | BSD-3-Clause |
| pytorch/executorch | 100 | BSD-3-Clause |
| 8thlight-daveloper/threnos | 100 | GPL-3.0 |
| zahidakhyar/skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version 5bdf4bec5ce5 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100review-prs
Use when the user asks to review one or more GitHub pull requests — "review PR #12", "review the open PRs", "check the PRs the agents opened" — in Claude Code, Codex, or any other agent. Not for reviewing uncommitted local changes. - 100code-reviewer
General-purpose code review skill. Provides checklists for security, code quality, performance, and best practices. Use when reviewing code changes, PRs, or performing quality audits. - 100code-review-playbook
Structured review processes, conventional comments, language-specific checklists, and feedback templates. Use when reviewing PRs, conducting code review, or standardizing review practice. - 100review-prs
Review PRs in the configured PR repository for best practices violations. Supports single PR (#12345), state filter (open/closed/all), and auto mode for cron. Triggers on: review prs, review recent prs, /review-prs, check prs for best practices. - 100code-review
Review C code changes for correctness, safety, and style. Use this when you want to review C code changes or PRs. - 95intent-layer-onboarding
Get oriented in an unfamiliar codebase using its Intent Layer. Use when joining a new project, exploring a codebase for the first time, or helping someone understand "where do I start?" questions.