Borrowing it
Nothing to install: this file belongs to briandconnelly/codex-in-claude. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/briandconnelly/codex-in-claude/main/.agents/skills/prek/SKILL.mdgit clone --depth 1 https://github.com/briandconnelly/codex-in-claudeWrote 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.
[](https://agentmods.dev/skills/briandconnelly/codex-in-claude/prek)<a href="https://agentmods.dev/skills/briandconnelly/codex-in-claude/prek"><img src="https://agentmods.dev/badge/skills/briandconnelly/codex-in-claude/prek/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.
<a href="https://agentmods.dev/skills/briandconnelly/codex-in-claude/prek"><img src="https://agentmods.dev/badge/skills/briandconnelly/codex-in-claude/prek.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00067 | $0.02118 |
| Opus 5.5 | $0.00027 | $0.00847 |
| Sonnet 5.5 | $0.00013 | $0.00424 |
| Haiku 4.5 | $0.00007 | $0.00212 |
Grade A, and why
prek 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 2mo 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.
This is a copy
91% identical to prek — 26 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.
prek
Use this skill when the user wants to set up or run Git hooks with prek.
prek is a Rust reimplementation of pre-commit. Its main job is to run hooks that check code and repository files before commit or on demand: formatters, linters, validators, security checks, and custom project checks.
Start with the public docs
Use the LLM-oriented index first:
Per that file, prefer explicit markdown docs when you need details:
- Introduction
- Installation
- Quickstart
- Common Workflows
- Cookbook
- Configuration
- Workspace Mode
- Language Support
- Built-in Hooks
- CLI Reference
- Configuration Reference
- Environment Variable Reference
- Differences from pre-commit
- Benchmark
What prek is for
Use prek to:
- run hooks that check source code and repo contents
- install Git hook shims such as
pre-commit,pre-push, andcommit-msg - run the same hook ecosystem used by
pre-commit - manage hook runtimes and toolchains for supported languages
- validate configs, update pinned hook revisions, and inspect configured hooks
Typical jobs for hooks run by prek:
- formatting and linting code
- validating YAML, JSON, TOML, XML, and similar files
- preventing merge-conflict markers, private keys, oversized files, and bad line endings
Authoring configs
For new configs, prefer prek.toml.
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.
- 2mo ago First seen · 220 lines · 67 tokens per session scan A ea649de91ba7
prek is a skill published in the GitHub repository briandconnelly/codex-in-claude (3 stars, last pushed 1mo ago), licensed MIT. It adds 67 tokens to every session and 2,118 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to prek, differing in 26 lines, and is treated as a copy.
prek compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prekbriandconnelly/codex-in-claude | Skill | 3 | 1mo ago | MIT | A | 67 | Claude Code |
| pdf-processingPrefectHQ/fastmcp | Skill | 28k | today | Apache-2.0 | A | 14 | Claude Code, Codex |
| conventional-commitsIkarusMK/AIcortex | Skill | 11 | today | Apache-2.0 | A | 0 | Claude Code, Codex |
| gitee-expertsandraschi/gitee-mcp | Skill | 2 | 20d ago | MIT | A | 0 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | today | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.6k | today | MIT | A | 20 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | today | MIT | A | 51 | Claude Code |