Ship & operateMIT

Set up pre-commit

by Matt Pocock (opens in a new tab) mattpocock/skills

Adds Husky, lint-staged, type checks and tests as a pre-commit hook.

Installation

Automated scan recorded

  • Automated scan: Checked 16 Nov 2026. Checks SKILL.md patterns and frontmatter; does not run the skill.
  • Source revision: 5863806dd4e1 (opens in a new tab). The install command targets this commit. Only SKILL.md was scanned.
  • Human reading: No full human-reading date recorded.
  • Runtime evidence: No runtime-test evidence recorded here.

A review is not a security audit or a guarantee.

Commands target the repository commits recorded with the automated scans. Scans cover only SKILL.md, not referenced files or runtime behavior. What the review covers.

Skills CLI

Skills CLI command
npx skills@latest add https://github.com/mattpocock/skills/tree/5863806dd4e15c63174bee4e7515a4256792ecfa --skill setup-pre-commit

Requires Node.js and npm. Choose your agents in the installer; add -g for a global installation.

Fieldbook review

Reviewed 16 Nov 2026

Installs dev dependencies and makes a commit at the end. JavaScript and TypeScript projects only.

  • LicenceMIT
  • FrontmatterValid name and description
  • Risky patternsNone found
  • Size92 lines
  • Last checked16 Nov 2026 · c9819d7f1e3b

What it can touch

  • Edits code

    Changes files in your project.

  • Runs commands

    Runs shell commands such as tests, builds or installs.

  • Uses git

    Reads history or makes commits, branches or worktrees.

Read the source

This link opens the exact SKILL.md scanned at the recorded repository commit. Read it and its referenced files before installing. The automated scan does not review those other files or run the skill.

skills/misc/setup-pre-commit/SKILL.md on GitHub (opens in a new tab)