| name | bt-deep-review |
| description | Comprehensive pre-push review combining automated checks, a security audit, AI code analysis, and a PR-ready summary. Use before pushing significant changes or opening a pull request. |
Deep Review
Comprehensive code review that combines automated checks, AI-powered analysis, and security auditing. Use this before
pushing significant changes or creating pull requests.
Usage
/bt-deep-review
Steps
- Security MCP preflight (when security tooling is in scope)
- Run
/bt-security-run or pnpm run security:mcp-preflight with the session MCP descriptor path and
--allow-fallback
- See docs/security/security-runbook.md
- Do not skip scans when Opsera/JFrog/Semgrep MCP is degraded; use documented fallbacks
- Run preflight checks
- Execute
pnpm run preflight (format, lint, typecheck, spellcheck, knip, docs:links, sync:doc-banners:check,
api:since:check, api:history:check, test:unit, test:declarations)
- If any check fails, report issues and stop
- All automated checks must pass before AI review
- Run security audit
- Execute
pnpm run security:audit (pnpm audit)
- Report any vulnerabilities found (moderate and above)
- Gather change context
- Run
git diff origin/main...HEAD to see all changes vs. main
- Run
git log origin/main..HEAD --oneline to see commit history
- Identify which files changed and their purpose
- Perform comprehensive code review
- Analyze the diff for:
- Bugs and logic errors
- Security vulnerabilities
- Performance issues
- Error handling gaps
- Code quality issues
- Adherence to project conventions
- Focus only on high-confidence, high-priority issues
- Verify each issue by reading the actual file contents
- Check project-specific rules
- No emoji anywhere (code, comments, docs, commits)
- Integer coordinates (Vector2i, Rect2i) for all rendering
- TypeScript strict types (no
any)
- Type imports use
import type syntax
- Internal scoped naming: private/protected/module-local names must not repeat class or file; public
BT.* and exports
unchanged (CLAUDE.md Internal scoped naming)
- Generate PR-ready summary
- Create a summary suitable for PR description
Output Format
## Pre-Push Review Summary
### Changes Overview
- [Brief description of what changed]
- Files modified: X
- Lines added: +Y, removed: -Z
### Automated Checks
- [PASS/FAIL] Format check
- [PASS/FAIL] Lint check
- [PASS/FAIL] Type check
- [PASS/FAIL] Spell check
- [PASS/FAIL] Unused exports (knip)
- [PASS/FAIL] Markdown links (docs:links)
- [PASS/FAIL] Doc banners (sync:doc-banners:check)
- [PASS/FAIL] API @since coverage (api:since:check)
- [PASS/FAIL] API history manifest (api:history:check)
- [PASS/FAIL] Unit tests (test:unit)
- [PASS/FAIL] Declaration tooling (test:declarations)
- [PASS/FAIL] Security audit
### Code Review Findings
#### Critical Issues
- [File:Line] Description (must fix before the merge)
#### Warnings
- [File:Line] Description (should address)
#### Suggestions
- Description (nice to have)
### Verdict
[READY TO PUSH / NEEDS FIXES / NEEDS DISCUSSION]