Skip to content
Back to skills

Pre Commit

ASecurity

Run code quality checks and tests before committing

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 25, 2026
ai-agents

Security analysis

A100/100

Scanned September 25, 2026

npx -y skills add Najeebullah3124/awesome-claude-universe --skill pre-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pre Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pre Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/najeebullah3124-pre-commit/badge)](https://www.skillsdirectory.com/skills/najeebullah3124-pre-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 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

```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
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…