Agent skill

Prek

by bastani-inc in bastani-inc/atomic

A skill your agent uses when setting up or running hooks with prek in any repository.

Custom licenceAuto-check passedDevelopment

Install Prek

skills CLI
$ npx skills add bastani-inc/atomic --skill prek -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bastani-inc/atomic prek --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bastani-inc/atomic.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/prek .claude/skills/prek && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
prek
GitHub stars
850
Token cost
~2.1k tokens
SKILL.md length
820 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
Custom licence

At a glance

A skill your agent uses when setting up or running hooks with prek in any repository.

  • Works in 9 steps: Check whether the repo already has… → If it does, usually keep that config and… → If migrating from pre-commit, reinstall… → …
  • Running hooks with prek in any repository
  • SKILL.md covers Start with the public docs, What prek is for, Authoring configs and Default workflow, plus 3 more sections
  • Calls cargo, uv and brew; reaches github.com

What it does

Prek is an agent skill from bastani-inc/atomic. Use when setting up or running hooks with prek in any repository. prek is a Rust drop-in alternative to pre-commit for running Git hooks that check, format, lint, and validate code and repository files. Prefer it when speed, workspace mode, built-in hooks, shared toolchains, or native TOML configuration matter.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Linting and formatting. It works with Git and Rust. The repository describes itself as: The verifiable coding agent runtime. Define your coding agent's process in natural language with stages, checks, and approval gates instead of hoping it follows your…

When your agent uses it

  • Running hooks with prek in any repository
  • Tasks that involve Linting and formatting

Example prompts

  • “/prek”

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Check whether the repo already has .pre-commit-config.yaml or .pre-commit-config.yml.
  2. If it does, usually keep that config and switch the commands from pre-commit to prek.
  3. If migrating from pre-commit, reinstall the Git shims with prek install -f.
  4. If it does not, prefer creating prek.toml for a fresh setup.
  5. Install prek.
  6. Validate the config with prek validate-config.
  7. Install the Git shims and prepare hook environments with prek install --prepare-hooks.
  8. Run everything once with prek run --all-files.
  9. For monorepos, consider nested configs, .prekignore, and orphan: true.

What it can do on your machine

Read from SKILL.md and the folder at commit ad79904. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo
    • uv
    • brew
    • mise

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    Also links to:

    • prek.j178.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Prek loads about 2.1k tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 820 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 820 words (~2,072 tokens).

“Use this skill when the user wants to set up or run Git hooks with prek.”

— opening of SKILL.md by bastani-inc, Custom licence
name
prek
metadata.github-path
skills/prek
metadata.github-ref
refs/tags/v0.3.13
metadata.github-repo
https://github.com/j178/prek
metadata.github-tree-sha
63e8d158f48892cd9555eb59bf4045db4c463c2c
metadata.internal
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/prek of bastani-inc/atomic.

Open the folder on GitHubat commit ad79904

Compare with similar skills

Prek next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Prek compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prek this skillbastani-inc/atomic850—~2.1kAutomated safety check: PassCustom licence
Releasexin2017338/lynx-proxy502—~1.1kAutomated safety check: PassMIT
Release Procedurexberg-io/alef100—~3kAutomated safety check: PassMIT
Precheckayutaz/piper-plus230—~647Automated safety check: PassMIT
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
Worktrunk Tend CI Guidancemax-sixty/worktrunk9.1k—~6.4kAutomated safety check: PassCustom licence

Similar skills

  • Release

    xin2017338/lynx-proxy

    Publish a new release version of Lynx Proxy. An agent skill from xin2017338/lynx-proxy.

    502 GitHub stars~1.1k tokensUpdated 25 days ago
    DevelopmentAuto-check passed
  • Release Procedure

    xberg-io/alef

    Cut, tag, and publish an alef release end-to-end. An agent skill from xberg-io/alef.

    100 GitHub stars~3k tokensUpdated today
    DevelopmentAuto-check passed
  • Precheck

    ayutaz/piper-plus

    PR 作成前の lint + format + test 一括実行。引数で scope (python/rust/cs/go/js/cpp/all) を指定可能。未指定なら git diff から自動判定。

    230 GitHub stars~647 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Worktrunk Tend CI Guidance

    max-sixty/worktrunk

    Adds Worktrunk-specific rules to the tend CI workflows: Codecov polling, Rust test commands, labels and review criteria for pull requests handled in CI.

    9.1k GitHub stars~6.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Commits changes in the Saleor codebase and works through pre-commit hook failures from ruff, mypy, the GraphQL schema check and the migrations check.

    23k GitHub stars~575 tokensUpdated today
    DevelopmentAuto-check passed

More from bastani-inc/atomic

All 15 skills in this repo
  • How

    bastani-inc/atomic

    A skill your agent uses for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which package owns this", "is…

    850 GitHub starsUsed in 3 repos~2.3k tokens
    Auto-check passed
  • Liteparse

    bastani-inc/atomic

    A skill your agent uses whenever a task involves a document file (PDF, DOCX, PPTX, XLSX, or image) and you need to read it or pull text, tables, or specific values out of it — to answer a question…

    850 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Bun

    bastani-inc/atomic

    A skill your agent uses when building, testing, and deploying JavaScript/TypeScript applications.

    850 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Feedback

    bastani-inc/atomic

    Draft, revise and post privacy-scrubbed Atomic bug reports or enhancements through ordinary conversation.

    850 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • TDD

    bastani-inc/atomic

    Test-driven development with red-green-refactor loop, plus a value gate and audit workflow for tests.

    850 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Tmux

    bastani-inc/atomic

    Control tmux-compatible sessions/windows/panes for interactive CLIs: list, capture output, send keys, paste text, monitor prompts.

    850 GitHub stars~1.6k tokensUpdated today
    Auto-check: notes

Works with

Categories

Questions about Prek

What does Prek do?

A skill your agent uses when setting up or running hooks with prek in any repository. Prek is an agent skill from bastani-inc/atomic. Use when setting up or running hooks with prek in any repository.

When should I use Prek?

Prek fits situations like: running hooks with prek in any repository; tasks that involve Linting and formatting.

How do I install Prek in Claude Code?

Run `npx skills add bastani-inc/atomic --skill prek -a claude-code`. Or copy the skill folder (.agents/skills/prek in bastani-inc/atomic) into .claude/skills/prek in your project. Claude Code loads it when a task matches its description.

How do I install Prek in Codex?

Run `npx skills add bastani-inc/atomic --skill prek -a codex`. Or copy the skill folder (.agents/skills/prek in bastani-inc/atomic) into .agents/skills/prek in your project. Codex loads it when a task matches its description.

Can I use Prek in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bastani-inc/atomic --skill prek -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/prek, .gemini/skills/prek, .github/skills/prek and .opencode/skills/prek in your project.

What does Prek need to run?

Going by SKILL.md and its folder, Prek needs the command-line tools its instructions call (cargo, uv, brew and mise).

Does Prek access the network?

SKILL.md names 2 domains. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. As links in the text: prek.j178.dev. This is read from the text; nothing was executed.

Is Prek safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Prek use?

Prek has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Prek use?

About 2.1k tokens (SKILL.md is roughly 8.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Prek?

Skills that share tags, products or a category with Prek: Release (xin2017338/lynx-proxy, 502 stars), Release Procedure (xberg-io/alef, 100 stars), Precheck (ayutaz/piper-plus, 230 stars) and Rust Best Practices (farm-fe/farm, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Prek?

bastani-inc (a GitHub organization) maintains it in bastani-inc/atomic, which has 850 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 9, 2026.

Source: bastani-inc/atomic on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.