用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mkaraivanov/invoice-processor --skill verify命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | verify |
| description | Final pre-commit check: run type-check (npx tsc --noEmit), lint (npm run lint), and tests (npm test) |
Run the full pre-commit verification suite. Do not skip steps even if earlier ones pass.
npx tsc --noEmit
Fix all type errors before proceeding. Do not use @ts-ignore or as any without inline documentation.
Common causes in this project:
@prisma/client → @/app/generated/prisma/client)prisma generate not run after schema change (run /db-migrate)cookies() callawait on Server Component paramsnpm run lint
Fix all errors. Warnings are acceptable.
npm test
Runs all three Vitest projects (unit, integration, components) with pool: 'forks' and maxWorkers: 1. Do not change these settings.
To debug a single failing file:
npx vitest run tests/unit/services/invoice.service.spec.ts
If a test fails: determine whether the test is wrong (implementation changed) or the code is wrong (regression). Fix the root cause — do not delete failing tests.
grep -rn "from '@prisma/client'" src/ tests/
grep -rn 'from "@prisma/client"' src/ tests/
Fix any hits before committing.
Verify complete:
✓ TypeScript: no errors
✓ ESLint: no errors
✓ Vitest: X passed (Y unit, Z integration, W component)
✓ Import paths: clean
Ready to commit.
List any fixes made during this run.
Note on E2E: Playwright tests are NOT included here — they require a running dev server. Run separately:
npx playwright test
E2E tests are a CI gate on PRs, not a local pre-commit requirement.
Implement a numbered testing strategy phase from docs/testing_strategy_phases/phase_$ARGUMENTS_*.md step by step
Implement a numbered phase from docs/phases/phase-$ARGUMENTS.md step by step
Review changed code for correctness, security, and project conventions. Invoke this skill automatically whenever a complete unit of work is done — a full implementation phase, a complete feature (repository + service + route + component all connected), or just before creating a PR. Do NOT invoke after editing a single file or mid-way through a feature. If the user says "done", "finished", "phase complete", "ready to commit", or similar, trigger this review immediately.
基于 SOC 职业分类