
lefthook
Lefthook (高速並列 Git hooks マネージャー) リファレンス。 lefthook.yml 設定、pre-commit / pre-push / commit-msg 等のフック、 parallel / piped 実行、glob / run / tags フィルタ、stagedfiles、 lefthook の ai 設定 (beta)、JSON schema、Composer / npm / pip 等インストール、 保護ブランチ、CI スキップ、Husky からの移行。
- Installs
- 1.1K
- Last 24h
- +12
- Trending rank
- #7795
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill lefthook- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads lefthook automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Lefthook リファレンス
Lefthook(lefthook.dev)の全ドキュメントを網羅したスキル。 ユーザーのタスクに応じて適切な README.md を読み、そこから個別ファイルへ辿ること。
対象 Lefthook v2.2.2(2026-10 時点、GitHub タグ v2.2.2 の docs/ が原本)。
ディレクトリ構成
skills/lefthook/
SKILL.md
references/
installation/
README.md
overview.md
node.md
ruby.md
go.md
python.md
php.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
ai.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
protect-branch.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
探索手順
タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:
- 下記マッピング表でタスクに対応するカテゴリを探す
- そのカテゴリの
references/{category}/README.mdを参照して目的のページを特定する - 該当ページの
.mdを Read して詳細を確認する
タスク → カテゴリ マッピング
| タスク | カテゴリ | 参照 README |
|---|---|---|
| Lefthook のインストール・セットアップ | installation | references/installation/README.md |
| npm / yarn / pnpm / pip / gem / composer でのインストール | installation | references/installation/README.md |
| Homebrew / Scoop / Winget / APK / AUR でのインストール | installation | references/installation/README.md |
| バイナリ手動インストール・mise / devbox 対応 | installation | references/installation/README.md |
| lefthook.yml のグローバル設定 | configuration | references/configuration/README.md |
| Hook 設定(parallel, piped, follow, skip) | configuration | references/configuration/README.md |
| Command 設定(run, glob, files, stage_fixed) | configuration | references/configuration/README.md |
| Script 設定・source_dir の変更 | configuration | references/configuration/README.md |
| remotes による設定共有 | configuration | references/configuration/README.md |
| AI エージェント hooks(ai: claude / codex / cursor / copilot の hooks 設定ファイル生成) | configuration | references/configuration/README.md |
| エディタ補完・JSON schema(lefthook.dev/schema.json) | configuration | references/configuration/README.md |
| lefthook install / run / add / validate / dump | usage | references/usage/README.md |
| 環境変数(LEFTHOOK, LEFTHOOK_VERBOSE 等)による制御 | usage | references/usage/README.md |
| commitlint / Commitizen 統合 | examples | references/examples/README.md |
| ファイルフィルタリング(glob / staged_files / tags) | examples | references/examples/README.md |
| lefthook-local.yml でのローカルオーバーライド | examples | references/examples/README.md |
| 条件付きスキップ・ブランチ制限 | examples | references/examples/README.md |
| 現在のブランチが main / master のときの push を pre-push でブロック(push 先 ref は判定しない) | examples | references/examples/README.md |
| 典型的な使い方を知りたい | samples | samples/README.md |
| インストール・CLI コマンドを知りたい | scripts | scripts/README.md |
FAQ
What does the lefthook skill do?
Lefthook (高速並列 Git hooks マネージャー) リファレンス。 lefthook.yml 設定、pre-commit / pre-push / commit-msg 等のフック、 parallel / piped 実行、glob / run / tags フィルタ、stagedfiles、 lefthook の ai 設定 (beta)、JSON schema、Composer / npm / pip 等インストール、 保護ブランチ、CI スキップ、Husky からの移行。
How do I install lefthook?
Run npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill lefthook in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/lefthook/ (personal) or .claude/skills/lefthook/ (project).
Which AI agents can use lefthook?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is lefthook safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains lefthook?
It is published by fandhe-ai in fandhe-ai/agent-reference-skills. It has 1,123 recorded installs.
More from fandhe-ai/agent-reference-skills
github-docs
fandhe-ai/agent-reference-skills
GitHub 公式ドキュメント (docs.github.com)。REST API, GraphQL, Webhooks, GitHub Apps, OAuth Apps, gh CLI, PAT / GITHUBTOKEN, Actions (jobs, steps, expressions, workflow commands, concurrency, OIDC, artifact attestations, lockfile), pull requests, issues, Projects v2, immutable releases, Codespaces, Packages, Copilot API / cloud agent, code scanning, secret scanning, Dependabot, Dependency graph / SBOM, Teams, Billing, activity (events / notifications)。
commitlint
fandhe-ai/agent-reference-skills
commitlint (Conventional Commits メッセージ検証ツール) リファレンス。 rules 設定、plugins、shareable-config、@commitlint/config-conventional、 Husky / lefthook / simple-git-hooks 連携、CI 統合、custom rules。
editorconfig
fandhe-ai/agent-reference-skills
EditorConfig (エディタ設定統一フォーマット) リファレンス。 .editorconfig ファイル、glob パターン、root、 indentstyle / indentsize / tabwidth、endofline, charset、 trimtrailingwhitespace, insertfinalnewline, maxlinelength, spellinglanguage。
rust
fandhe-ai/agent-reference-skills
Rust 言語リファレンス。 別名: rustlang, rs (拡張子)、Rust-lang。 TRPL (The Rust Programming Language)、Rust by Example、Reference、 Cargo Book、rustc Book、rustdoc Book、Rustonomicon (Unsafe Rust)、 Edition Guide、Standard Library、Error Index。 所有権、ライフタイム、トレイト、async / await、エラーハンドリング、マクロ。
anthropic-claude-code
fandhe-ai/agent-reference-skills
Claude Code (code.claude.com) の CLI 本体リファレンス。 CLAUDE.md memory, settings.json (All settings, settings precedence, managed-settings.json), env-vars, model config, keybindings, statusline, terminal config, cli-reference (-p / --continue / --resume), sessions, checkpointing, worktrees, remote control, channels, deep links, troubleshooting。
make
fandhe-ai/agent-reference-skills
GNU Make / Makefile リファレンス。 ターゲット、prerequisite、order-only、変数展開、自動変数、pattern rule、.PHONY、-j 並列・再帰 make、増分ビルド。 Rust / Cargo / xtask、Node.js / pnpm / Turborepo、Git hooks / CI との責務分離と開発コマンド共通化。 Makefile 設計・レビュー、Bash サンプル、診断スクリプト。
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.