crombieman/undercurrent-cortex/pre-commit-checklist

Claude Code and agent skill by crombieman/undercurrent-cortex

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

This skill should be used before any git commit or PR — runs automated checks and institutional quality gates.

Install

npx vskill@latest install crombieman/undercurrent-cortex/pre-commit-checklist

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as crombieman/undercurrent-cortex/pre-commit-checklist.

Pre-Commit Checklist

TL;DR: Untracked files → lint → tsc → tests if pipeline/DB touched → institutional bar.

Automated gates (all must pass)

  1. git ls-files --others --exclude-standard — any untracked file imported by committed code? Stage it first. (Untracked files = Vercel "Module not found".)
  2. npm run lint — must pass. No --max-warnings flag (matches CI).
  3. npx tsc --noEmit — zero type errors.
  4. If src/lib/pipeline/, src/lib/scoring/, or DB code touched → npm test -- --run.
  5. If migration files staged: check for now() in WHERE (IMMUTABLE violation, 3x repeat offender), verify constraint names match production schema, use IF NOT EXISTS patterns.
  6. For every new import path in staged files, verify the target file is tracked: git ls-files <path>. Untracked imports = Vercel build failure.

See scripts/pre-commit-gates.sh for an automated runner covering gates 1-6.

Manual review gates (answer before committing)

  • Does this diff touch only files within scope of the task? (scope creep check)
  • If new page route under (dashboard)/, is middleware matcher updated?
  • If new env var, is it in env.ts + Vercel + GitHub Secrets + workflow YAML?
  • If new utility in src/lib/, does it have tests?
  • Are all untracked files imported by committed code staged?

Institutional-grade gate (all must be yes before committing)

  • Sub-second loads / no perceptible lag
  • All states handled: loading, empty, error
  • Every number traceable to its source
  • Works at 3am unattended
  • Information density over whitespace
  • No half-built sections

Reference file staleness check (warning, not block)

If commits touch domain code, check if the corresponding reference file needs updating:

  • src/lib/scoring/ → references/scoring.md
  • src/lib/pipeline/ → references/pipeline.md
  • src/lib/signals/ → references/signals.md
  • src/app/api/ → references/api-routes.md
  • .github/workflows/ → references/github-actions.md
  • supabase/migrations/ → references/database.md
  • src/app/, src/components/ → references/frontend.md
  • src/lib/data-sources/ → references/data-sources.md
  • src/middleware.ts, src/lib/supabase/ → references/auth.md

This is a warning — don't block the commit, but flag if a reference file may be stale after this change.

All checks are gates, not warnings — except the reference staleness check above. Fix gates before committing.


See Also

  • deploy-readiness — Per-commit gates feed into per-deploy verification in the release pipeline [workflow]
  • plan-audit — Plan audit validates design; pre-commit checklist validates each commit [workflow]
  • tdd-enforcement — TDD ensures tests exist; pre-commit gates ensure they pass [enforcement]

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/crombieman/undercurrent-cortex/pre-commit-checklist/badge)](https://verified-skill.com/skills/crombieman/undercurrent-cortex/pre-commit-checklist)

Something wrong with this skill or its page? Tell us.