setup-pre-commit

setup-pre-commit is a skill for Claude Code from jrjsmrtn/project-orchestration-skills. It costs 62 tokens per session (475 once invoked), scanned A, original, MIT.

A deprecated setup guide that now points to the renamed setup-git-hooks skill. Git hooks are automatic checks that run when developers commit or push code.

In plain words
What is it for?
Use it only to redirect an old request to setup-git-hooks, which covers checks before commits and pushes with supported hook managers.
Why use it?
It prevents users of the old name from silently missing the current guide.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the project-orchestration-skills plugin — 13 skills shipped together

Good fit Use it only to redirect an old request to setup-git-hooks, which covers checks before commits and pushes with supported hook managers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jrjsmrtn/project-orchestration-skills/setup-pre-commit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jrjsmrtn/project-orchestration-skills --skill setup-pre-commit
Clone the repo
git clone --depth 1 https://github.com/jrjsmrtn/project-orchestration-skills

Made for: Claude Code.

Or install project-orchestration-skills, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-pre-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/jrjsmrtn/project-orchestration-skills/setup-pre-commit/github.svg)](https://agentmods.dev/skills/jrjsmrtn/project-orchestration-skills/setup-pre-commit)
Your own site
<a href="https://agentmods.dev/skills/jrjsmrtn/project-orchestration-skills/setup-pre-commit"><img src="https://agentmods.dev/badge/skills/jrjsmrtn/project-orchestration-skills/setup-pre-commit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-pre-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/jrjsmrtn/project-orchestration-skills/setup-pre-commit"><img src="https://agentmods.dev/badge/skills/jrjsmrtn/project-orchestration-skills/setup-pre-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 475 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00475
Opus 5.5 $0.00025 $0.00190
Sonnet 5.5 $0.00012 $0.00095
Haiku 4.5 $0.00006 $0.00047

Measured 3d ago against content hash 4be65111b1ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup-pre-commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/setup-pre-commit/SKILL.md · 45 lines

What it actually says

Setup Pre-commit Hooks (deprecated)

This skill was renamed to setup-git-hooks in 0.1.29. Invoke that instead.

Do not follow any procedure from this file. It retains no content — it exists solely so that an invocation of the old name yields a pointer rather than silence.

Why it was renamed

The old name was wrong on two axes at once:

  • It named one of the two stages. The skill's thesis is the two-stage split — fast checks on commit, thorough checks on push. The pre-push stage is roughly a third of the content and carries the checks that catch the expensive defects.
  • It named one of the two supported hook managers. The skill documents both pre-commit and lefthook; its "Install Hook Framework" step mentions lefthook more often than pre-commit, and roughly half the skill (.editorconfig, secret-detection architecture, .gitignore hardening, multi-remote protection) involves no hook manager at all.

The practical effect was that maintainers on Elixir, Go or Rust projects read "pre-commit", correctly inferred "that is the Python hook framework", and never reached the content that had nothing to do with it.

See workspace ADR-0013.

Migration

Replace any invocation of setup-pre-commit with setup-git-hooks. There is no behavioural change — same workflow, same steps, same outputs.

Removal

This stub will be removed at 0.2.0. It exists only for the deprecation window, because the skill, plugin and marketplace manifests provide no rename, alias or redirect mechanism — content-level deprecation is the only graceful path the format offers.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed 4be65111b1ea
  2. 1mo ago Changed 68fec1b85ce5
  3. 2mo ago First seen · 45 lines · 62 tokens per session scan A 0ff666d686e0

Subscribe to this mod's changes

setup-pre-commit is a skill published in the GitHub repository jrjsmrtn/project-orchestration-skills (17 stars, last pushed 3d ago), licensed MIT. It adds 62 tokens to every session and 475 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

setup-pre-commit compared with skills from other repositories

setup-pre-commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
setup-pre-commitjrjsmrtn/project-orchestration-skillsSkill173d agoMITA62Claude Code
re0-gitLilMGenius/paperthinSkill1.4k4d agoMITA46Claude Code
change-boottikalk/adlc-team-skillsSkill144yesterdayMITA113Claude Code, Codex
maestro-improveReinaMacCredy/maestroSkill23520d agoMITA54Claude Code, Codex
factory-runbooktikalk/adlc-team-skillsSkill144yesterdayMITA70Claude Code, Codex
pr-attachmentsmarcusrbrown/systematicSkill28yesterdayMITA60Claude Code
git-commit-push-prmarcusrbrown/systematicSkill28yesterdayMITA130Claude Code