agentsclimarketplace

Setup pre commit

Skill OutlineDriven/odin-claude-plugin/skills/setup-pre-commit

Outline-Driven Development for Claude Code - 46 agents, 25+ skills, diagram-first methodology, AST-based editing, atomic commits.

Install
npx -y skills add OutlineDriven/odin-claude-plugin --skill setup-pre-commit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Use when the user wants commit-time checks, or says "install husky/pre-commit/lefthook".

SKILL.md

1.9 KB, as published. Nobody here has run it

Detect the ecosystem, pick the right hook tool, install with formatter + type-check + test gates.

Detection (run first)

Dispatch Explore agent, or for a single-language repo, probe directly via fd for lockfile / manifest signature. Map the first manifest hit to an ecosystem. Multi-language repos: ask the maintainer which surface to gate, or apply both.

Ecosystem → hook tool

EcosystemHook toolInstall command
npm / yarn / pnpm / bunhusky + lint-staged<pm> add -D husky lint-staged prettier && npx husky init
Python (poetry/pip)pre-commit (framework)pipx install pre-commit && pre-commit install
Golefthook (or pre-commit)go install github.com/evilmartians/lefthook@latest && lefthook install
Rust (cargo)cargo-husky (or pre-commit)add cargo-husky as [dev-dependencies]; runs on cargo test
OCaml (dune)pre-commit + dune hookspipx install pre-commit && pre-commit install

Per-ecosystem hook contents

The exact file to write (Node/Python/Go/Rust/OCaml) lives in references/hook-recipes.md — read the block matching the ecosystem you detected above; a single-language repo never needs the other four.

Verify

  • fd -d 2 -t f '\.husky|\.pre-commit-config\.yaml|lefthook\.yml' shows the expected file.
  • The hook is executable.
  • Run a no-op commit (git commit --allow-empty -m "chore: verify hooks"). Every gate must run and pass.

Commit

chore: install pre-commit hooks (<tool>). The commit itself trips the new hook, a first-class smoke test.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.