---
id: 01-husky-install
epic: pre-commit-hooks-v1
title: Install husky + lint-staged
type: technical-story
status: done
feature: tooling
depends-on: []
blocks: [02-pre-commit-hook]
---

## Goal

husky + lint-staged are dependencies of the root workspace and the
`prepare` script wires the hooks on `pnpm install`.

## In scope

- Add husky + lint-staged to root devDependencies
- Add `prepare` script that runs `husky` (initialises `.husky/`)
- Create `.husky/` directory + the husky shim
- Add `lint-staged` config to root package.json

## Tasks

- [x] Story scaffold
- [x] Install husky + lint-staged + add scripts/config
- [x] Verify `pnpm install` initialises `.husky/`
