crombieman/undercurrent-cortex/pre-commit-checklist
Claude Code and agent skill by crombieman/undercurrent-cortex
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-checklistSemi-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)
git ls-files --others --exclude-standard— any untracked file imported by committed code? Stage it first. (Untracked files = Vercel "Module not found".)npm run lint— must pass. No--max-warningsflag (matches CI).npx tsc --noEmit— zero type errors.- If
src/lib/pipeline/,src/lib/scoring/, or DB code touched →npm test -- --run. - 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. - 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.mdsrc/lib/pipeline/→references/pipeline.mdsrc/lib/signals/→references/signals.mdsrc/app/api/→references/api-routes.md.github/workflows/→references/github-actions.mdsupabase/migrations/→references/database.mdsrc/app/,src/components/→references/frontend.mdsrc/lib/data-sources/→references/data-sources.mdsrc/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
- SKILL.md in the repositoryCheckingskills/pre-commit-checklist/SKILL.md
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
[](https://verified-skill.com/skills/crombieman/undercurrent-cortex/pre-commit-checklist)