---
name: pr-ship-check
description: Run a deterministic pre-merge security, reliability, and code-hygiene audit on changed Python files before opening a pull request or shipping code. Use when the user asks to review changes, check a PR, or verify code before shipping. Do NOT use for general architecture questions or writing new features from scratch.
---
# PR Ship Check
Never rely on prose-only LLM eyeballing for mechanical safety checks. Run the deterministic scanner first, then reason only over flagged findings.
## Workflow
1. Run the bundled deterministic scanner once as a trusted black-box CLI tool:
```bash
python3 scripts/pr_scan.py <target_path>
```
2. Do NOT inspect `scripts/pr_scan.py` source code or run duplicate repo-wide `Grep` sweeps for the 5 rules it already checks (`hardcoded-secret`, `subprocess-shell-true`, `unsafe-yaml-load`, `bare-except`, `unsafe-eval`/`unsafe-exec`).
3. If any `HIGH` severity findings appear, read `references/severity_rules.md` for remediation guidance, open ONLY the flagged `file:line` snippets to verify them, and report the confirmed fixes.
## Rules
- Do not fabricate findings not present in the source code.
- Only load `references/severity_rules.md` when `HIGH` findings are reported.
— ‹guest · 2026-12-02› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.