agentleFS
wellwelwelwellwelwel/poku/.claude/skills/pre-commit/SKILL.md

pre-commit

Skill1.2k starsChanged 5 months agoMITView on GitHub

Run the mandatory pre-commit checks for the poku repository before staging a commit. Use this whenever the user asks to commit, prepare a commit, push, open a PR, or verify a change is ready. Runs typecheck, lint:fix, build, and the local test suite in order, plus runtime-sensitive suites when the change touches runtime detection, isolation, child-process spawning, environment-variable plumbing, or any Bun or Deno specific code path.

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run in this exact order. Any non-zero exit blocks the commit.

    line 18
  2. Distinctive:

    Run additionally when the change touches runtime detection, isolation, child-process spawning, environment-variable plumbing, or any Bun or …

    line 27
  3. Distinctive:

    All four mandatory steps exit with code 0.

    line 48

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pre-commit

Guarantee that every commit lands with passing type checks, formatted code, a successful build, and a green local test suite, so no regression in correctness, style, or distributable output reaches the upstream history.

Preconditions

  • On a fork, read CONTRIBUTING.md first.
  • Working tree reflects the change under review (no unrelated edits staged).

Recommended steps

Run in this exact order. Any non-zero exit blocks the commit.

  1. npm run typecheck: TypeScript type check across the project.
  2. npm run lint:fix: auto-fixes Biome and Prettier. May modify files, which must be restaged.
  3. npm run build: produces lib/ from src/.
  4. npm test: full local Node.js suite.

Runtime-sensitive checks (conditional)

Run additionally when the change touches runtime detection, isolation, child-process spawning, environment-variable plumbing, or any Bun or Deno specific code path.

  • bun run test:bun: full local Bun suite.
  • deno task test:deno: full local Deno suite.

Running a subset

Direct execution of a single test file:

  • npx tsx <path> or npx tsx src/bin/index.ts <path>
  • bun --bun <path> or bun --bun src/bin/index.ts <path>
  • deno run -A <path> or deno run -A src/bin/index.ts --denoAllow=all <path>

Filter the suite by path:

  • npm test -- --filter=<path>
  • bun run test:bun -- --filter=<path>
  • deno task test:deno -- --filter=<path>

Acceptance criteria

  • All four mandatory steps exit with code 0.
  • Runtime-sensitive suites exit 0 when applicable.
  • Any files rewritten by lint:fix are restaged before commit, so no unstaged formatting deltas remain.

Failure modes

  • typecheck fails: fix the type error at its source. Do not relax tsconfig or add any to silence it.
  • lint:fix rewrites files: restage them and re-run from step 1. If a rule needs to be disabled, justify it in code review, not by skipping the step.
  • build fails: fix the underlying TypeScript or bundler error. The build catches issues npm test does not.
  • npm test fails: fix the test or the code under test. Never bypass with --no-verify or by skipping the test. Treat a modified existing test as a possible regression and prefer adding new tests.
  • Runtime-sensitive suite fails: reproduce locally with the failing runtime before pushing. A Node-only green run does not clear a runtime-sensitive change.

Download now (ZIP)

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 4 mentionsApr 2026: 7 mentionsMay 2026: 5 mentionsJun 2026: 4 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the wellwelwel/poku repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about wellwelwel/poku

The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 53

Talked about on GitHub, Bluesky and Hacker News (53 times).

On GitHub · 50

45 more on GitHub

On Hacker News · 1

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.