Setup Pre Commit
Setup Pre Commit is an agent skill (a SKILL.md file) from mattpocock/skills. Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. It works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode and has 325,506 GitHub stars across a repository of 15 listed skills.
github.com/mattpocock/skills/skills/misc/setup-pre-commit (opens in a new tab)
Data as of from the GitHub API and skills.sh; description from the skill's SKILL.md. Report an error
- Multi-skill repo
- Plugin marketplace
- Testing & QA
- Active
Add this skill
Claude
This repository is a Claude Code plugin marketplace. In Claude Code:
/plugin marketplace add mattpocock/skills
/plugin install mattpocock-skills@mattpocockIn the Claude apps, zip the setup-pre-commit folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).
ChatGPT / Codex
Codex reads skills from .agents/skills/ in a repo or ~/.agents/skills/ for every project:
git clone --depth 1 https://github.com/mattpocock/skills.git
cp -r skills/skills/misc/setup-pre-commit .agents/skills/setup-pre-commit # repo; ~/.agents/skills for all projectsStandalone skills also load in the ChatGPT desktop app.
Cursor
Cursor loads skills from .cursor/skills/ (or ~/.cursor/skills/) and also reads .claude/skills/:
git clone --depth 1 https://github.com/mattpocock/skills.git
cp -r skills/skills/misc/setup-pre-commit .cursor/skills/setup-pre-commit # project; ~/.cursor/skills for all projectsSource (checked Oct 7, 2026): code.claude.com/docs/en/skills (opens in a new tab), code.claude.com/docs/en/plugin-marketplaces (opens in a new tab), support.claude.com/en/articles/12512180-using-skills-in-claude (opens in a new tab), learn.chatgpt.com/docs/build-skills (opens in a new tab), cursor.com/docs/context/skills (opens in a new tab)
What this skill does
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing. Check for package-lock.json (npm), pnpm-lock.yaml (pnpm), yarn.lock (yarn), bun.lockb (bun). Use whichever is present. Default to npm if unclear.
When it triggers
- Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
More skills in mattpocock/skills
15 skills are listed from this repository.
Improve Codebase Architecturemattpocock/skills
TDDmattpocock/skills
Setup Matt Pocock Skillsmattpocock/skills
Prototypemattpocock/skills
Codebase Designmattpocock/skills
Diagnosing Bugsmattpocock/skills
Code Reviewmattpocock/skills
Wizardmattpocock/skills
Writing Beatsmattpocock/skills
Writing Shapemattpocock/skills
Scaffold Exercisesmattpocock/skills
Migrate To Shoehornmattpocock/skills
Similar skills
More testing & qa skills
Mode Creator
thedotmack/claude-mem
Interactively create, install, activate, and verify custom claude-mem modes, including domain-specific observation types, concept tags, optional Telegram alerts, bot setup, worker restart, and…
Active · last commit Nov 16, 2026
Testing & QATypeScriptVerification Before Completion
obra/superpowers
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims…
Active · last commit Nov 3, 2026
Testing & QAShellQA
browser-use/browser-use
QA-test a website or web app and return a 1-5 quality score (5 = flawless, 1 = broken) with evidence.
Active · last commit Nov 16, 2026
OfficialTesting & QAPythonAgent Browser
paperclipai/paperclip
Drive a real browser to inspect or interact with a web page or app — navigate, take screenshots, read console and network, fill simple forms — for verification tasks, not unattended automation.
Active · last commit Nov 16, 2026
Testing & QATypeScriptOrca Per Workspace Env
stablyai/orca
Set up, review, debug, or validate an Orca per-workspace environment recipe: the on-demand, disposable runtime (cloud sandbox, VM, SSH host, or local container) Orca creates fresh for each workspace.
Active · last commit Nov 16, 2026
OfficialTesting & QATypeScriptTest Driven Development
addyosmani/agent-skills
Drives development with tests using the red-green-refactor loop.
Active · last commit Nov 14, 2026
Testing & QAJavaScript
How do I install the Setup Pre Commit skill?
In Claude Code, run /plugin marketplace add mattpocock/skills and then /plugin install mattpocock-skills@mattpocock. For Codex or Cursor, copy the setup-pre-commit folder into .agents/skills/ or .cursor/skills/.
Is the Setup Pre Commit skill free?
Yes. The repository is open source under the MIT license.
Is Setup Pre Commit maintained?
The repository's most recent commit was on Nov 12, 2026. Its latest release is v1.3.2. appsgit only lists skills from repositories with a commit in the last six months.