ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
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.
Claude Code
$ npx -y skills add mattpocock/skills --skill setup-pre-commit --agent claude-code
Codex
$ npx skills add mattpocock/skills --skill setup-pre-commit -a codex -y
Cursor
$ npx skills add mattpocock/skills --skill setup-pre-commit -a cursor -y
Gemini CLI
$ npx skills add mattpocock/skills --skill setup-pre-commit -a gemini-cli -y
GitHub Copilot
$ npx skills add mattpocock/skills --skill setup-pre-commit -a github-copilot -y
OpenCode
$ npx skills add mattpocock/skills --skill setup-pre-commit -a opencode -y
Windsurf
$ npx skills add mattpocock/skills --skill setup-pre-commit -a windsurf -y
name: setup-pre-commit description: 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.
Install as devDependencies:
husky lint-staged prettier
npx husky init
This creates `.husky/` dir and adds `prepare: "husky"` to package.json.
Write this file (no shebang needed for Husky v9+):
npx lint-staged npm run typecheck npm run test
**Adapt**: Replace `npm` with detected package manager. If repo has no `typecheck` or `test` script in package.json, omit those lines and tell the user.
{
"*": "prettier --ignore-unknown --write"
}Only create if no Prettier config exists. Use these defaults:
{
"useTabs": false,
"tabWidth": 2,
"printWidth": 80,
"singleQuote": false,
"trailingComma": "es5",
"semi": true,
"arrowParens": "always"
}Stage all changed/created files and commit with message: `Add pre-commit hooks (husky + lint-staged + prettier)`
This will run through the new pre-commit hooks: a good smoke test that everything works.
My agent skills that I use every day to do real engineering - not vibe coding. Developing real applications is hard. Approaches like GSD, BMAD, and Spec-Kit try to help by owning the process.
Ask which skill or flow fits your situation. A router over the skills in this repo.
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this…
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening…
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something…
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or…
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit…