Show HN: PR Nutrition, a local rule-based CLI for pull request triage PR Nutrition, a new local-first CLI tool for pull request triage, assigns deterministic review-readiness labels based on Git metadata and file paths, with risk scores capped at 100 and built-in eval passing 16/16 false-positive and 7/7 true-positive guards. The tool, available via npx pr-nutrition@latest, aims to help reviewers quickly identify risky areas and low-value files in AI-assisted code changes. PR Nutrition is a local-first PR triage CLI. It gives every pull request a simple review-readiness label. AI coding tools are making it easier than ever to generate code, open PRs, and ship changes quickly. That is useful, but it also creates a new problem: reviewers now have to read through more changes, more often, with less context. PR Nutrition helps with that. It does not review your code for you. It does not guess whether the code is correct. It gives you a fast, deterministic label that answers: - What changed? - What looks risky? - What can probably be skimmed? - Where should a reviewer focus first? npx pr-nutrition@latest That is it. You get a Markdown or JSON report you can read locally, save in CI, or attach to a read-only pull request workflow. PR Nutrition Risk: Medium 40/100 Scope - Total changes: 17 files - Reviewable: 15 files, 320 lines - Base: main - Head: HEAD Review focus - Review dependency or package metadata changes. - Review configuration and environment-sensitive paths. - Docs changed; verify examples match current behavior. Low review-value files - pnpm-lock.yaml - generated/client.ts See the full examples: Modern development is changing. A lot of code is now written with AI assistance. Teams can generate features, refactors, tests, and boilerplate much faster than before. But reviewers still need to understand what actually changed. That is where PRs start becoming painful: - Large PRs hide the important files. - Generated files make diffs noisy. - Lockfiles and build outputs distract from real logic. - Risky areas like auth, migrations, workflows, and APIs need attention first. - AI-generated changes can look polished while still being hard to trust. PR Nutrition is built for that moment before review starts. It gives reviewers a small “nutrition label” for the PR so they can quickly decide: - Is this low-risk and easy to skim? - Is this touching sensitive areas? - Are tests or docs included? - Are there files that should not consume review time? - Where should I look first? The goal is not to replace review. The goal is to make review less exhausting. The built-in eval corpus currently passes 16/16 false-positive guards and 7/7 true-positive guards. These are curated regression cases, not statistical precision or recall on real-world pull requests. Run pnpm eval to regenerate the guard-case summary locally. See eval/README.md /Param-10/pr-nutrition/blob/main/eval/README.md . PR Nutrition uses Git metadata and file paths to classify changes. It detects: - PR size - migrations - auth and security paths - CI and workflow changes - API and public contract files - dependency manifests and lockfiles - configuration and environment-sensitive paths - generated files - low-review-value files - renamed and binary files - changed tests and docs - repository evidence like package manager, test scripts, typecheck scripts, and CI workflow presence - an explicit Coverage section for what was checked and what was not Risk scores are deterministic and capped at 100 . Low: 0–19 Medium: 20–49 High: 50–100 An area contributes points once, no matter how many files matched it. API, dependency, and configuration points scale with how much changed in that area, so a one-line lockfile bump does not score like a dependency overhaul. Migrations, authentication, and CI always score their full value, because a single line in any of those can drop a table, invert a permission check, or weaken a required gate. Area scaling uses reviewable lines, so generated files and lockfiles do not inflate an area regardless of how large their diff looks. Overall size risk uses production files and lines: tests and docs still affect review guidance, but they do not make a documentation- or test-only PR risky. A production change at 10 files or 200 lines adds 20 points; at 30 files or 800 lines it adds 50 points. Tests and docs never subtract points from an independently risky change. Use it directly with npx : npx pr-nutrition npx pr-nutrition --output pr-nutrition.md Or install globally: npm install -g pr-nutrition pr-nutrition Current stable npm release: pr-nutrition@0.4.0 . Previous release: pr-nutrition@0.3.0 . npx pr-nutrition@0.4.0 npx pr-nutrition@0.4.0 --help npx pr-nutrition@0.4.0 doctor pr-nutrition pr-nutrition --json pr-nutrition --format json pr-nutrition --output pr-nutrition.md pr-nutrition --base origin/main --head HEAD pr-nutrition --config .pr-nutrition.json pr-nutrition --no-config pr-nutrition --explain pr-nutrition --json --explain pr-nutrition --focus-files pr-nutrition --json --focus-files pr-nutrition --fail-on medium pr-nutrition check pr-nutrition check --base main pr-nutrition check --fail-on high pr-nutrition doctor pr-nutrition doctor --json pr-nutrition doctor --base main --head HEAD pr-nutrition doctor --config .pr-nutrition.json pr-nutrition doctor --no-config Full contract: pr-nutrition --repo