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…

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.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.svg" alt="Measured on agentmods" 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 $0.00031 $0.00237
Sonnet 5 $0.00012 $0.00095
Haiku 4.5 $0.00006 $0.00047

Measured 7d ago against content hash 0ff666d686e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 7d 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. 7d 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 (15 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 475 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

maestro-improve

Turn filed lessons into the smallest doctrine edit. Use when a Lead assigns improvement work for one target: group pending lessons, make one evidence-linked commit per target, return it for independent challenge, and process each accepted or rejected lesson without deleting history.

ReinaMacCredy/maestro · 0 tokens

re0-git

Rewrite a finished commit's message into a clean, handoff-ready form in your own log style, so git log alone tells the story. User-invoked: run it after a commit.

LilMGenius/paperthin · 46 tokens

levelup-publish

Compile accepted Context Directive Records (CDRs) into team-ai-directives artifacts and create a draft PR. Builds context modules, evals goldensets, and/or skills based on CDR context types.

tikalk/adlc-team-skills · 46 tokens

git-commit-push-pr

Commit, push, and open a PR with an adaptive, value-first description. Use when the user says "commit and PR", "push and open a PR", "ship this", "create a PR", "open a pull request", "commit push PR", or wants to go from working changes to an open pull request in one step. Also use when the user says "update the PR…

marcusrbrown/systematic · 130 tokens

git-commit

Create a git commit with a clear, value-communicating message. Use when the user says "commit", "commit this", "save my changes", "create a commit", or wants to commit staged or unstaged work. Produces well-structured commit messages that follow repo conventions when they exist, and defaults to conventional commit…

marcusrbrown/systematic · 73 tokens

git-commit-validator

MUST be used for ANY git workflow that involves committing code. This includes explicit commit requests AND implicit ones like 'ship it', 'wrap it up', or finishing implementation work. Handles staging, message generation, validation, and commit execution with conventional commit format.

TechDufus/oh-my-claude · 57 tokens