AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Lefthook

skill-aaronflorey-agent-skills-lefthook · by aaronflorey

Write, debug, and explain Lefthook configuration for Git hooks. Use this skill when the user mentions `lefthook`, `lefthook.yml`, `lefthook install`, `pre-commit`, `pre-push`, staged-file or push-file filtering, `jobs`, `commands`, `scripts`, local overrides, or troubleshooting hook execution and recursive hook behavior.

No reviews yet
0 installs
33 views
0.0% view→install

Install

$ agentstack add skill-aaronflorey-agent-skills-lefthook

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aaronflorey-agent-skills-lefthook)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Lefthook? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Lefthook

Use this skill to configure fast, maintainable Git hooks with Lefthook.

Start Here

  • Match install instructions to the project ecosystem: npm, Go, Ruby, Python, Homebrew, or standalone binary.
  • Prefer jobs for new configs; commands and scripts are still valid and common.
  • Keep hooks fast and file-scoped with {staged_files}, {push_files}, glob, file_types, and root.
  • Run lefthook validate for syntax checks and lefthook dump when debugging merged config.
  • Remember: lefthook install is usually one-time setup; config changes are read on each hook execution.

Fast Routing

| Need | Read | |---|---| | Install and official docs map | references/official-docs.md | | CLI, config model, templates, merge order | references/api-surface.md | | Common real-world patterns | references/common-use-cases.md | | Why a hook is skipped or behaving oddly | references/troubleshooting-workarounds.md | | Ready-to-copy configs | examples/basic-lefthook.yml, examples/monorepo-jobs.yml, examples/commit-message.yml, examples/lefthook-local.yml | | Bad patterns and fixes | examples/anti-patterns.md |

Recommended Workflow

  1. Inspect existing package scripts, linters, test commands, and current Git hook tooling.
  2. Choose the smallest useful hook surface: usually pre-commit, commit-msg, and pre-push.
  3. Pick jobs, commands, or scripts based on whether you need grouping, named merges, or external executables.
  4. Scope work to changed files unless the check truly needs the whole repository.
  5. Add lefthook-local.yml, extends, or remotes only when you need local overrides or shared policy.

Core Rules

  • Prefer deterministic, non-interactive hooks unless the workflow explicitly requires prompts.
  • Use stage_fixed: true only for pre-commit fixers that modify staged files.
  • Remember that glob is evaluated from the Git repo root, even when root changes the working directory.
  • Use LEFTHOOK=0 for tools that would otherwise recurse back into Git hooks.
  • Use lefthook run to debug a hook directly before testing the full Git flow.

External Docs

  • Docs: https://lefthook.dev/
  • GitHub: https://github.com/evilmartians/lefthook

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.