PMA Code Review
Use this skill to review changed code with a high-signal, low-noise process.
This skill is designed for:
- local diff review before commit or merge
- pull request review for changed lines and surrounding context
- repository-wide audit of an existing codebase
- PMA-managed repositories that want stack-aware review, not generic checklist spam
Scope
The skill has one entry point and multiple internal review packs:
- shared review policy
- TypeScript frontend review
- TypeScript backend / Bun review
- Go review
- Rust review
- Python review
Keep the entry skill lean. Load only the reference files needed for the detected stack.
Quick Start
Local review:
/pma-cr
PR review:
/pma-cr <PR-number-or-URL>
Repository audit:
/pma-cr audit
/pma-cr repo
/pma-cr --repo
Workflow
- Detect review mode:
- no argument: local diff review
- PR number or URL: PR review
audit, repo, or --repo: repository audit
- Read
references/core-review-policy.md.
- For repository audit, also read
references/repository-audit.md.
- Detect stack from changed files and project manifests.
- Read only the matching stack packs:
references/typescript-frontend.md
references/typescript-backend.md
references/go.md
references/rust.md
references/python.md
- Review changed code plus the minimal surrounding context required to verify behavior.
- Report only issues that are likely real and introduced by the change, or for repository audit, issues that are evidenced by current repository code.
Stack Selection
Use these heuristics:
- TypeScript frontend:
tsx, React, Next.js, Vite, routing, UI components, browser state, client forms
- TypeScript backend / Bun: Hono, Express, Fastify, Nest, Bun server code, API routes, DB access, workers
- Go:
go.mod, *.go
- Rust:
Cargo.toml, *.rs
- Python:
pyproject.toml, setup.py, requirements.txt, *.py
If the change spans multiple stacks, load all relevant packs and review each changed area against the correct pack.
Review Priorities
Always review in this order:
- Correctness and regressions
- Security and trust boundaries
- Data integrity and error handling
- Concurrency, cancellation, and resource lifetime
- Performance and scalability
- Maintainability and tests
Do not spend review budget on stylistic nits unless they violate an explicit project rule.
Local Review Mode
Use local mode for uncommitted or staged changes.
- inspect staged and unstaged diffs
- read enough surrounding code to validate behavior
- produce a findings-first report ordered by severity
- block approval for critical issues
PR Review Mode
Use PR mode for GitHub pull requests.
- inspect PR metadata and diff with
gh
- skip ineligible PRs such as closed or draft PRs
- gather relevant
CLAUDE.md / AGENTS.md guidance
- review only changed behavior and nearby context, not unrelated legacy code
- when useful, split the audit by concern or stack, then merge only high-confidence findings
- post review to GitHub via
gh pr review — request changes when issues found, approve when clean
Repository Audit Mode
Use repository audit mode when the goal is to assess the current repository, not a diff.
- inventory manifests, entry points, CI, tests, and stack markers
- identify hotspot areas such as auth, API edges, DB access, jobs, filesystem, external calls, config loading, and isolated dead code
- inspect the highest-risk modules first
- deduplicate findings by root cause, not by file count
- separate confirmed findings from coverage gaps and suggested next actions
Output Rules
Report findings only when they are strong enough to matter:
- prioritize issues that can break behavior, security, correctness, or operations
- skip issues that linters, compilers, or typecheckers already guarantee
- skip unchanged legacy problems unless the change makes them worse or exposes them
- consolidate repeated instances into one finding when the root cause is shared
For local mode, output:
- severity
- file and line
- issue
- fix direction
For PR mode, output concise review comments that can be posted directly.
For repository audit mode, output:
- findings grouped by
P0 to P3
- affected areas
- issue and impact
- dead-code findings
- dead-code removal candidates
- needs runtime verification
- coverage gaps
- recommended next actions
Reference Packs
references/core-review-policy.md: confidence filter, severity policy, shared review heuristics
references/repository-audit.md: repository-wide audit workflow, hotspot selection, and report structure
references/typescript-frontend.md: React / Next.js / Vite / browser UI review rules
references/typescript-backend.md: Node / Bun / API / validation / DB / async review rules
references/go.md: Go review rules around context, errors, concurrency, HTTP, and resource safety
references/rust.md: Rust review rules around panic boundaries, async blocking, unsafe, docs, and API contracts
references/python.md: Python review rules around validation, deserialization, async, type safety, and command injection
These packs intentionally hold the detailed rules so this file stays small and cheap to load.
Source: ZonEaseTech/aiworker — distributed by TomeVault.
1---2name: pma-cr3description: Stack-aware review for local diffs, pull requests, and repository-wide audits. Routes review across shared policy plus language packs for TypeScript frontend, TypeScript backend/Bun, Go, Rust, and Python. Use after implementation, before merge, or when auditing an existing codebase. Use when this capability is needed.4---56# PMA Code Review78Use this skill to review changed code with a high-signal, low-noise process.910This skill is designed for:1112- local diff review before commit or merge13- pull request review for changed lines and surrounding context14- repository-wide audit of an existing codebase15- PMA-managed repositories that want stack-aware review, not generic checklist spam1617## Scope1819The skill has one entry point and multiple internal review packs:2021- shared review policy22- TypeScript frontend review23- TypeScript backend / Bun review24- Go review25- Rust review26- Python review2728Keep the entry skill lean. Load only the reference files needed for the detected stack.2930## Quick Start3132Local review:3334```text35/pma-cr36```3738PR review:3940```text41/pma-cr <PR-number-or-URL>42```4344Repository audit:4546```text47/pma-cr audit48/pma-cr repo49/pma-cr --repo50```5152## Workflow53541. Detect review mode:55 - no argument: local diff review56 - PR number or URL: PR review57 - `audit`, `repo`, or `--repo`: repository audit582. Read `references/core-review-policy.md`.593. For repository audit, also read `references/repository-audit.md`.604. Detect stack from changed files and project manifests.615. Read only the matching stack packs:62 - `references/typescript-frontend.md`63 - `references/typescript-backend.md`64 - `references/go.md`65 - `references/rust.md`66 - `references/python.md`676. Review changed code plus the minimal surrounding context required to verify behavior.687. Report only issues that are likely real and introduced by the change, or for repository audit, issues that are evidenced by current repository code.6970## Stack Selection7172Use these heuristics:7374- **TypeScript frontend**: `tsx`, React, Next.js, Vite, routing, UI components, browser state, client forms75- **TypeScript backend / Bun**: Hono, Express, Fastify, Nest, Bun server code, API routes, DB access, workers76- **Go**: `go.mod`, `*.go`77- **Rust**: `Cargo.toml`, `*.rs`78- **Python**: `pyproject.toml`, `setup.py`, `requirements.txt`, `*.py`7980If the change spans multiple stacks, load all relevant packs and review each changed area against the correct pack.8182## Review Priorities8384Always review in this order:85861. Correctness and regressions872. Security and trust boundaries883. Data integrity and error handling894. Concurrency, cancellation, and resource lifetime905. Performance and scalability916. Maintainability and tests9293Do not spend review budget on stylistic nits unless they violate an explicit project rule.9495## Local Review Mode9697Use local mode for uncommitted or staged changes.9899- inspect staged and unstaged diffs100- read enough surrounding code to validate behavior101- produce a findings-first report ordered by severity102- block approval for critical issues103104## PR Review Mode105106Use PR mode for GitHub pull requests.107108- inspect PR metadata and diff with `gh`109- skip ineligible PRs such as closed or draft PRs110- gather relevant `CLAUDE.md` / `AGENTS.md` guidance111- review only changed behavior and nearby context, not unrelated legacy code112- when useful, split the audit by concern or stack, then merge only high-confidence findings113- post review to GitHub via `gh pr review` — request changes when issues found, approve when clean114115## Repository Audit Mode116117Use repository audit mode when the goal is to assess the current repository, not a diff.118119- inventory manifests, entry points, CI, tests, and stack markers120- identify hotspot areas such as auth, API edges, DB access, jobs, filesystem, external calls, config loading, and isolated dead code121- inspect the highest-risk modules first122- deduplicate findings by root cause, not by file count123- separate confirmed findings from coverage gaps and suggested next actions124125## Output Rules126127Report findings only when they are strong enough to matter:128129- prioritize issues that can break behavior, security, correctness, or operations130- skip issues that linters, compilers, or typecheckers already guarantee131- skip unchanged legacy problems unless the change makes them worse or exposes them132- consolidate repeated instances into one finding when the root cause is shared133134For local mode, output:135136- severity137- file and line138- issue139- fix direction140141For PR mode, output concise review comments that can be posted directly.142143For repository audit mode, output:144145- findings grouped by `P0` to `P3`146- affected areas147- issue and impact148- dead-code findings149- dead-code removal candidates150- needs runtime verification151- coverage gaps152- recommended next actions153154## Reference Packs155156- `references/core-review-policy.md`: confidence filter, severity policy, shared review heuristics157- `references/repository-audit.md`: repository-wide audit workflow, hotspot selection, and report structure158- `references/typescript-frontend.md`: React / Next.js / Vite / browser UI review rules159- `references/typescript-backend.md`: Node / Bun / API / validation / DB / async review rules160- `references/go.md`: Go review rules around context, errors, concurrency, HTTP, and resource safety161- `references/rust.md`: Rust review rules around panic boundaries, async blocking, unsafe, docs, and API contracts162- `references/python.md`: Python review rules around validation, deserialization, async, type safety, and command injection163164These packs intentionally hold the detailed rules so this file stays small and cheap to load.165166---167> Source: [ZonEaseTech/aiworker](https://github.com/ZonEaseTech/aiworker) — distributed by [TomeVault](https://tomevault.io).168<!-- tomevault:4.0:skill_md:2026-05-22 -->