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 | $0.00034 | $0.01059 |
| Sonnet 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 10d 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 — 14 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.
- 10d 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 today), licensed MIT. It adds 67 tokens to every session and 2,118 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to prek, differing in 14 lines, and is treated as a copy.
Other skills, from other repositories
pdf-processing
Extract text from PDFs, fill forms, and merge documents.
authoring-issues-prs
Use when filing a bug, opening or creating a GitHub issue, drafting an epic or ticket, writing up a finding or review observation worth tracking, or opening a pull request for this repository. Routes the change to the right repo first (library / template / domain), picks the right issue form, links epic children as…
releasing
Use before any release work: the trunk release model, the unstable edge channel, the prepare/release/promotion machinery, release-notes pages, the pre-release artifact smoke test, and, when the plugin channel is enabled, the Claude Code plugin channel.
applying-template-updates
Use when asked to work through, apply, resolve or review a template update pull request (the weekly copier/update branch opened by the copier-update workflow), or after running copier update --trust by hand: applies the upgrade notes, resolves conflict markers by the resolution policy, checks the seeded-once files the…
repository-protection
Use when changing branch or tag rulesets, required checks, or the bootstrap workflow: how repository protection is applied and kept in sync.
conventional-commits
Write clear, conventional git commit messages — type(scope): summary, imperative mood, a body that explains the why.