pre-commit
Run code quality checks and tests before committing
git clone --depth 1 https://github.com/undeadlist/claude-code-agents /tmp/pre-commit && cp -r /tmp/pre-commit/skills/pre-commit ~/.claude/skills/pre-commitSKILL.md
# Pre-Commit Workflow Run before every commit to catch issues early. ## Execution (Sequential) ### Step 1: Code Audit Spawn `code-auditor` on staged/changed files: - Check for `any` types, empty catch blocks, console.logs, obvious bugs - Focus only on files being committed ### Step 2: Test Run Spawn `test-runner`: - Run the full test suite - Report any failures ### Step 3: Decision - **All pass** -> "Ready to commit" - **Any fail** -> "Fix before committing" with specific issues listed ## Expected Output ```markdown # Pre-Commit Check ## Status: PASS / FAIL ### Code Quality - [x] No new `any` types - [x] No empty catch blocks - [x] No console.logs in production code ### Tests - [x] All tests pass - [x] No regressions ## Verdict Ready to commit / Fix issues first ```
API endpoint testing. Discovery, validation, auth flows, error handling.
Supervisor agent. Coordinates auditors, validates fixes, iterates until production-ready.
Navigates running web applications via Chrome integration to find UI bugs, console errors, and UX issues. Uses /chrome tools to interact with localhost or deployed apps.
Runtime bug scanner. Finds error handling gaps, race conditions, memory leaks, null refs.
Code quality auditor. Reviews patterns, maintainability, complexity, consistency.
Implements fixes from FIXES.md. Production-quality code following project patterns.
Real-time console monitoring during browser sessions. Watches for errors, warnings, and logs as you test.
Database auditor. Schema design, N+1 queries, indexes, connection pooling.