Skip to main content

pre-pr

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.

跳到安装

来源信息

仓库
hoangsonww/WealthWise-Finance-Tracker
最近来源活动
2026年3月3日 20:48
检测到的 SKILL.md 语言
英语
星标
24
分支
12

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
pre-pr
description
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.
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 ```bash npm run format:check ``` If it fails, run `npm run format` to fix, then re-check. ### Gate 2 — Type checking ```bash npm run lint ``` Runs `tsc --noEmit` across all three packages via Turbo. All must pass. ### Gate 3 — Tests ```bash npm run test ``` All 330 tests must pass (138 API + 41 web + 151 shared-types). ### Gate 4 — Build ```bash npm run build ``` Production build must compile without errors. Validates Next.js output and API TypeScript. ### Gate 5 — Dependency audit ```bash npm audit --audit-level=high ``` High or critical vulnerabilities block the PR. Low/moderate are informational. ### Gate 6 — Branch safety ```bash git status && git diff --stat HEAD git branch --show-current ``` Verify: - No uncommitted changes to `.env` files - Current branch is not `main` or `master` - No secrets in staged files (scan for: `sk-`, `ghp_`, `mongodb+srv://`, `Bearer `) ## 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.
在 GitHub 查看