---
title: "Setup Pre-Commit Hooks - Air Market"
description: "You keep spotting formatting slips and type mistakes after you have already committed them, when they are annoying to untangle. This sets up your current project so those checks happen at commit time…"
canonical: "https://airmarket.ai/app/setup-pre-commit"
---

[Air Market](/) / [Developer Tools](/category/devtools) / Setup Pre-Commit Hooks

Skill by [Matt Pocock](/@mattpocock)

# Setup Pre-Commit Hooks

Catch formatting, type and test slip-ups before the commit lands

## What this does

You keep spotting formatting slips and type mistakes after you have already committed them, when they are annoying to untangle. This sets up your current project so those checks happen at commit time instead: files get formatted, types get checked, and tests run. Reach for it when you want pre-commit hooks added to a project and would rather not piece the configuration together yourself.

### Top 3 things it does for you

- Set up pre-commit hooks in this project
- Add commit-time formatting, type checks and tests
- Configure lint-staged with Prettier

## Information

**Setup Pre-Commit Hooks at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [Matt Pocock](/@mattpocock) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Languages | en |
| Size | 2 KB |
| Licence | MIT |
| Repository | [mattpocock/skills](https://github.com/mattpocock/skills/tree/885e2ca4d842d139e9aef4e48d366c63cb1b8013/skills/misc/setup-pre-commit) |
| GitHub stars | 319,153 (as of Nov 2026) |
| Installs | 541,297, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Setup Pre-Commit Hooks and recorded 0 findings and 2 flagged items. AIR's verdict: **safe**.

**What Setup Pre-Commit Hooks's check was run against**

|  |  |
| --- | --- |
| Commit | 885e2ca4d842d139e9aef4e48d366c63cb1b8013 |
| Content hash | 8c3e6e408065fa5e503d334f0a71848b00703dfc8c4f2284ca47bd3129eceb14 |
| Files read | [Browse the files at this exact commit](https://github.com/mattpocock/skills/blob/885e2ca4d842d139e9aef4e48d366c63cb1b8013/skills/misc/setup-pre-commit/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Setup Pre-Commit Hooks](/security/setup-pre-commit)

## About Setup Pre-Commit Hooks

Adds Husky pre-commit hooks to the repository you are working in, so checks run at commit time.

Formatting goes through lint-staged with Prettier, and type checking and tests run at commit time too, so one step covers formatting, types and tests before a commit goes in.

Use it when you want pre-commit hooks added, Husky set up, lint-staged configured, or formatting, type checking and testing wired into the commit itself.

## What's inside

- SKILL.md - instructions
- agents/openai.yaml - data

## Questions

### Is Setup Pre-Commit Hooks safe to install?

AIR scanned this exact version of Setup Pre-Commit Hooks and recorded 0 findings and 2 flagged items. AIR's verdict: safe. The verdict is named by the content that was read, at commit 885e2ca4d842, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/setup-pre-commit.

### How do I install Setup Pre-Commit Hooks?

Open https://airmarket.ai/app/setup-pre-commit on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/mattpocock/skills/tree/885e2ca4d842d139e9aef4e48d366c63cb1b8013/skills/misc/setup-pre-commit. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by Matt Pocock](/@mattpocock)

---

Canonical URL: <https://airmarket.ai/app/setup-pre-commit>
