Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .claude/skills/git-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Git Commit Skill

Before making any commit, ensure the following steps are completed:

## 1. Install dependencies

Dependencies must be installed so that husky and all dev tools are available:

```bash
npm install --legacy-peer-deps
```

## 2. Set up husky git hooks

The `prepare` script initialises husky (sets `core.hooksPath` to `.husky/_`).
Run it explicitly if hooks are not yet installed:

```bash
npm run prepare
```

You can verify that the hook chain is in place:

```bash
git config core.hooksPath # should print: .husky/_
ls .husky/_/pre-commit # the hook entry-point
ls .husky/pre-commit # the actual script that runs
```

## 3. Never bypass hooks

Do **not** use `git commit --no-verify` or `HUSKY=0` to skip hooks.
The pre-commit hook (`npx nx format:write --uncommitted && git update-index --again`) must run on every commit to keep formatting consistent.
135 changes: 69 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.