.agents/skills/pre-pr/SKILL.md
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.
npx skillsauth add hoangsonww/WealthWise-Finance-Tracker pre-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run the full pre-PR checklist for WealthWise. Report pass/fail for each gate.
--all is specified)npm run format:check
If it fails, run npm run format to fix, then re-check.
npm run lint
Runs tsc --noEmit across all three packages via Turbo. All must pass.
npm run test
All 330 tests must pass (138 API + 41 web + 151 shared-types).
npm run build
Production build must compile without errors. Validates Next.js output and API TypeScript.
npm audit --audit-level=high
High or critical vulnerabilities block the PR. Low/moderate are informational.
git status && git diff --stat HEAD
git branch --show-current
Verify:
.env filesmain or mastersk-, ghp_, mongodb+srv://, Bearer )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.
development
Run the WealthWise test suite with coverage reporting and summarize the results. Triggers when asked to "run tests with coverage", "check test coverage", "show coverage report", or "how many tests pass". Can be scoped to api, web, or types.
development
Scaffold a complete new Next.js dashboard page for the WealthWise web app. Triggers when asked to "add a page", "create a dashboard screen", "build a UI for <feature>", or scaffold any new frontend feature end-to-end. Does not trigger for API-only or backend tasks.
development
Scaffold a new Mongoose model and its CRUD service for the WealthWise API. Triggers when asked to "create a model", "add a Mongoose schema", or add the data layer for a new entity without a full endpoint. Does NOT scaffold routes, controllers, or frontend code. Use $api-endpoint for the full stack.
development
Check the health of the running WealthWise API, web app, and MongoDB services. Triggers when asked to "check if the app is running", "verify the API is up", "is the server healthy", or "show service status".