verify-after-each-step
Per-file verification checklist — lint-staged and package.json scripts after each milestone.
- License 许可
- MIT
- 最近更新
- 2026-11-01
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- verify-after-each-step
- description
- Per-file verification checklist — lint-staged and package.json scripts after each milestone.
- disable-model-invocation
- true
03 SKILL.md 正文
Verify after each step (full checklist)
Always-on priming: .agents/rules/verify-after-each-step.md.
Run matching checks on every file touched before moving to the next milestone. Pre-commit is the safety net, not the first line of defense.
Discover project scripts
- Read
package.jsonscriptsat the start of a task. - Read
lint-staged.config.js— which checks apply to which patterns (staged-onlytsgo, paired co-located tests, DOM-suite split). - Never assume script names — verify they exist in
package.jsonbefore running.
Per-file check table (this repo)
| Touched file | Run |
|---|---|
src/**/*.ts (non-test) |
bun run lint <file> · bun run format:check <file> · bun run typecheck · bun test <paired test> |
src/**/*.test.ts |
bun test <file> |
tests-dom/**/*.test.tsx |
bun run test:dom (vitest) · bun run lint <file> · bun run format:check <file> |
vitest.config.ts |
bun run format:check <file> · bun run test:dom |
tsdown.config.ts / tsconfig*.json |
bun run format:check <file> · bun run build · bun run typecheck |
package.json |
bun run format:check · bun install (if deps changed) · bun run check |
docs/** / *.md / .agents/** |
bun run format:check <file> |
.github/** / *.yml |
bun run format:check <file> |
Co-located pair: foo.ts → foo.test.ts (lint-staged runs the pair when only the source is staged — mirror that here).
Build config / entry points: if tsdown.config.ts, package.json exports, or an entry module changed, add bun run build and bun run docs:api (TypeDoc treatWarningsAsErrors catches broken {@link}).
Full gate before commit/push: bun run typecheck && bun test ./src && bun run test:dom && bun run lint && bun run format:check (and bun run build if entry points / build config changed). .agents/ / docs/ / .github/ only need bun run format:check.
Reference
Tier-1 priming: .agents/rules/verify-after-each-step.md · tracer-bullets · no-bypass-hooks · harden-pr
04 同仓库更多 Skills
vue-persist
Gate Vue 3 UI on Persist hydration with useHydrated (shallowRef). Use in setup/effectScope when avoiding flash of default state on async backends.
svelte-store-persist
Gate Svelte store-based UI on Persist hydration with hydratedStore (Readable). Use for Svelte 3–4 or Svelte 5 apps that still use stores; runes UI → svelte-persist.
svelte-persist
Gate Svelte 5 runes UI on Persist hydration with hydratedRune (.current). Use for Svelte 5; for stores / Svelte 3–4 use svelte-store-persist.
solid-persist
Gate Solid UI on Persist hydration with useHydrated (Accessor). Use when avoiding flash of default state on async backends; read hydrated() in reactive scopes.
react-persist
Gate React UI on Persist hydration with useHydrated + toHydrationSignal. Use when avoiding flash of default state on async backends (IndexedDB), SSR snapshot true, or wiring HydrationSignal into React 18/19.
preact-persist
Gate Preact UI on Persist hydration with useHydrated (preact/compat useSyncExternalStore). Use when avoiding flash of default state on async backends or wiring HydrationSignal into Preact.