Skip to content
InfratoApp
InfratoApp / Resources / Agent skills / setup-pre-commit

setup-pre-commit

Top repos#5 this week by stars gained (+6,526) · best daily #1, 54 days in a daily top 10

setup-pre-commit is an agent skill published by mattpocock. It lives in the mattpocock/skills repository, which has 303,549 GitHub stars and is licensed under MIT; we last read it on 2026-09-16.

Configures Husky pre-commit hooks for linting with Prettier, type checking, and running tests. Requires no specific credentials.

Install

skills is a generic installer for any repository of Claude agent skills -- it reads mattpocock/skills’s own structure rather than assuming one, the same way this page reads the skill’s own SKILL.md rather than assuming a format.

npx skills add mattpocock/skills

Maintenance

Stars
303549
State
listed
Licence
MIT
From the repository

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.

Common questions about setup-pre-commit

What does setup-pre-commit do?
Configures Husky pre-commit hooks for linting with Prettier, type checking, and running tests. Requires no specific credentials.
How do I install setup-pre-commit?
Run npx skills add mattpocock/skills. The skills installer reads the repository’s own structure, so it works for any repository of agent skills.
Who publishes setup-pre-commit?
mattpocock.
Is setup-pre-commit maintained, and what licence does it use?
Its repository has 303,549 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-10-22. The repository declares the MIT licence.

Learn this on Infrato