Security
review-pr
Review a pull request or local diff against the repository's shared Review Protocol (correctness, regression, stability, contract, architecture, security, governance).
Mr-DooSun · Static checks on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add Mr-DooSun/fastapi-agent-blueprint --skill review-prAbout this skill
name: review-pr description: Review a pull request or local diff against the repository's shared Review Protocol (correctness, regression, stability, contract, architecture, security, governance). metadata: short-description: Review PR or local diff
Review PR
Default Flow Position
- Step:
completion gate(final review at end of work) - Routes after:
/sync-guidelinesif drift detected - Recursion guard: do not invoke
/review-prrecursively, do not invoke/plan-featurefrom inside
Procedure
- Read
AGENTS.md,docs/ai/shared/review-protocol.md, anddocs/ai/shared/skills/review-pr.mdfor the full procedure. - Read
docs/ai/shared/architecture-review-checklist.md(ARCH),docs/ai/shared/security-checklist.md(SEC), anddocs/ai/shared/project-dna.mdas the shared rule sources the protocol references. - Resolve the review target, collect the diff + intent, and load the rule sources; on a
re-review round, also extract prior rounds'
Summary Finding Ledgerand diff every key against the new head (Phase 0). - Review changed files against the protocol dimensions —
CORR / REG / STAB / CONTRACT / ARCH / SEC / GOV; each finding carries a dimension ID + a basis (Phase 1). - Determine
Drift Candidatesand whetherSync Requiredistrueorfalse(Phase 2). - Report using the protocol output contract:
Scope,Effect Answer,Sources Loaded,Findings(open only),Coverage(OK/SKIP),Drift Candidates,Verdict,Next Actions,Completion State,Sync Required(Phase 3).Effect Answeris mandatory — seedocs/ai/shared/review-protocol.md§3 for the contract and Guard H context. - Optionally post the final review per protocol §5 after user confirmation (Phase 4).
For cross-tool review prompts, use the Cross-Tool Review Prompt Template
section in docs/ai/shared/skills/review-pr.md; do not duplicate it here.