Pre pr

From hoangsonww/WealthWise-Finance-Tracker · View interactive version

Pre pr is an AI agent skill from the GitHub repository hoangsonww/WealthWise-Finance-Tracker. Run the full WealthWise pre-PR checklist and report a pass/fail for each gate. Triggers when asked to "run pre-PR checks", "check if this is ready to merge", "validate before opening a PR", or "run the full check". Does NOT trigger implicitly.

How to use this skill

Skill file

Run the full pre-PR checklist for WealthWise. Report pass/fail for each gate.

Gates (run in sequence; stop on first failure unless `--all` is specified)

Gate 1 — Format

npm run format:check

If it fails, run npm run format to fix, then re-check.

Gate 2 — Type checking

npm run lint

Runs tsc --noEmit across all three packages via Turbo. All must pass.

Gate 3 — Tests

npm run test

All 330 tests must pass (138 API + 41 web + 151 shared-types).

Gate 4 — Build

npm run build

Production build must compile without errors. Validates Next.js output and API TypeScript.

Gate 5 — Dependency audit

npm audit --audit-level=high

High or critical vulnerabilities block the PR. Low/moderate are informational.

Gate 6 — Branch safety

git status && git diff --stat HEAD
git branch --show-current

Verify:

Final report

Present results as a table:

| Gate | Status | Notes |

|------|--------|-------|

| Format | ✓/✗ | |

| Type check | ✓/✗ | |

| Tests | ✓/✗ | X/330 passed |

| Build | ✓/✗ | |

| Audit | ✓/✗ | |

| Branch | ✓/✗ | Branch: <name> |

If all gates pass: "Ready to open PR."

If any gate fails: list exactly what must be fixed before the PR can be opened.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.