AI & Agents
Skill
/pre-commit
Run code quality checks and tests before committing
Install
$ npx -y skills add undeadlist/claude-code-agents --skill pre-commit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/pre-commit
Context preview
The summary Claude sees to decide when to auto-load this skill.
Run code quality checks and tests before committing
SKILL.md
pre-commit.SKILL.mdname: pre-commit description: Run code quality checks and tests before committing
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
# 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
Ships withclaude-code-agents
Claude Code Agents Prompt templates for Claude Code's subagent system. Run parallel code audits, automate fix cycles, get stuff reviewed. Built for the Claude Code Task tool. Not a framework. Just prompts that work. What This Does Claude Code can spawn subagents via Task(). These are the prompts those agents receive.
Get the whole plugin
Stats
149
Stars
15
Forks
Maintained
Maintenance
Shell
Language
MIT
License
3mo ago
Last commit
10mo ago
Created
4h ago
Added
Other skills on claude-code-agents.
Skill
Skill
full-audit
Run all 11 audit agents in parallel, then consolidate findings with fix-planner
Skill
Skill
Skill

