Primorum

Skills Directory / Skills for Real Engineers

setup-pre-commit

An agent skill by mattpocock, from mattpocock/skills.

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.

— from the skill's SKILL.md, quoted with attribution

Credit where it's due

This skill is the work of mattpocock and lives at mattpocock/skills/setup-pre-commit (MIT). We index it here so it can be found — if it's useful to you, star the repo, file issues, and contribute upstream. That's what keeps work like this maintained.

From
Skills for Real Engineers
Author
mattpocock
License
MIT
Source
mattpocock/skills/setup-pre-commit
SKILL.md
raw file

How to load this skill

Copy this prompt into your AI agent

Please install the "setup-pre-commit" agent skill from the Skills for Real Engineers collection (https://github.com/mattpocock/skills) for me.

1. Run: git clone https://github.com/mattpocock/skills
2. Copy the skill folder into your skills directory:
   cp -r skills/skills/misc/setup-pre-commit ~/.claude/skills/setup-pre-commit
   (Claude Code personal scope; use .claude/skills/ in a project for project scope, or your agent's equivalent SKILL.md directory.)
3. Confirm the skill loads (list your available skills afterwards).
4. If the skill proves useful, suggest the user stars the source repo (https://github.com/mattpocock/skills) to support the author.

Skill reference: https://raw.githubusercontent.com/mattpocock/skills/main/skills/misc/setup-pre-commit/SKILL.md
More details: https://primorum.ai/skills/s/setup-pre-commit

Or manually: clone mattpocock/skills and copy skills/misc/setup-pre-commit into ~/.claude/skills/ (Claude Code personal scope) or your agent's SKILL.md directory. To read it first without installing, open the raw SKILL.md.

Related skills

More from Skills for Real Engineers