A skill covering all the documentation of Lefthook (lefthook.dev). Depending on the user's task, read the appropriate README.md and follow it to the individual files.
Directory structure
skills/lefthook/
SKILL.md
references/
installation/
README.md
overview.md
node.md
ruby.md
go.md
python.md
swift.md
homebrew.md
winget.md
scoop.md
deb.md
rpm.md
alpine.md
arch.md
snap.md
devbox.md
mise.md
manual.md
configuration/
README.md
global-settings.md
hook-settings.md
command-settings.md
script-settings.md
source-dir.md
remotes.md
usage/
README.md
commands.md
environment-variables.md
examples/
README.md
commitlint.md
filters.md
lefthook-local.md
remotes.md
skip.md
stage-fixed.md
wrap-commands.md
samples/
README.md
basic-setup.md
parallel-execution.md
auto-fix-and-stage.md
commitlint-integration.md
local-override.md
conditional-skip.md
monorepo-setup.md
shared-config-via-remotes.md
scripts/
README.md
cli.md
install.md
run-with-env.md
Exploration procedure
Derive the category from the task, and identify the target page in the category's README.md:
- Find the category corresponding to the task in the mapping table below
- そのカテゴリの
references/{category}/README.mdto identify the target page - The target page's
.mdto check the details
タスク → カテゴリ マッピング
| タスク | カテゴリ | Reference README |
|---|---|---|
| Lefthook のインストール・セットアップ | installation | references/installation/README.md |
| npm / yarn / pnpm / pip / gem でのインストール | installation | references/installation/README.md |
| Homebrew / Scoop / Winget / APK / AUR でのインストール | installation | references/installation/README.md |
| Manual binary installation, mise / devbox support | installation | references/installation/README.md |
| Global settings for lefthook.yml | configuration | references/configuration/README.md |
| Hook settings (parallel, piped, follow, skip) | configuration | references/configuration/README.md |
| Command settings (run, glob, files, stage_fixed) | configuration | references/configuration/README.md |
| Script settings, changing source_dir | configuration | references/configuration/README.md |
| Sharing configuration via remotes | configuration | references/configuration/README.md |
| lefthook install / run / add / validate / dump | usage | references/usage/README.md |
| Control via environment variables (LEFTHOOK, LEFTHOOK_VERBOSE, etc.) | usage | references/usage/README.md |
| commitlint / Commitizen integration | examples | references/examples/README.md |
| ファイルフィルタリング(glob / staged_files / tags) | examples | references/examples/README.md |
| lefthook-local.yml でのローカルオーバーライド | examples | references/examples/README.md |
| Conditional skip / branch restrictions | examples | references/examples/README.md |
| I want to know typical usage | samples | samples/README.md |
| I want to know about installation and CLI commands | scripts | scripts/README.md |