agentleFS
bInference-LabbInference-Lab/bInference/.agents/skills/review-diff/SKILL.md

review-diff

Skill2 starsChanged 2 days agoMITView on GitHub

Reviews a change against the engineering rules that no tool checks. Use before opening a pull request, after clean-diff, and when asked to review a branch or a diff.

  • Reads credentials

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use grilling.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    grilling

    Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the issue or task the change serves.

    line 19
  2. Very specific:

    Use cases receive their ports through a factory.

    line 25
  3. Distinctive:

    Every queue, buffer, cache and map has a maximum size and a stated overflow policy.

    line 30
  4. Very specific:

    Every boundary input is parsed by zod at once.

    line 37
  5. Very specific:

    No secrets, .env files, keystores, local paths or internal notes in the diff.

    line 62

“Common” is measured: kept by at least 6 in 10 of the 25 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

Review the diff

pnpm check covers the rules a tool can judge. This review covers the rest. Run it after clean-diff and before the pull request opens.

1. Gather

git diff master...HEAD --stat
git diff master...HEAD
pnpm check

Read the issue or task the change serves. A red pnpm check comes first: fix it before reviewing.

2. Design

  • One owner per responsibility: one module decides and writes each piece of state.
  • The change moves every caller and deletes the old path, with its exports, tests and docs.
  • Use cases receive their ports through a factory. Only the composition root in cli builds adapters.
  • Core code never branches on a chain, venue, model provider or chat app; registries do.
  • A new port has a contract test suite, and every adapter passes it.
  • A new abstraction has a second implementation or a test fake that uses it.
  • Every queue, buffer, cache and map has a maximum size and a stated overflow policy.
  • Database work runs on worker threads.

3. Errors, data and config

  • Expected outcomes return Result; faults throw BinferenceError with a dotted code.
  • People see i18n text chosen by an error code, never error.message.
  • Every boundary input is parsed by zod at once. An exported shape has a declared type and a schema annotated with it (decision 0098); no z.infer in an exported position.
  • Data definitions use satisfies; exported data carries a type annotation instead, since isolatedDeclarations refuses satisfies on an exported value. Nothing mutates an input.
  • A config change ships its config migration. Every key has a .describe() text. A risky switch is named dangerously... and defaults to off.
  • Logs carry ids, never prompts, model output, chat text or secrets.

4. Names and words

  • Names come from docs/GLOSSARY.md; none is borrowed from another agent framework.
  • Functions are verbs, factories start with create, booleans read as questions, units sit in names. Abbreviations are limited to id, url, rpc, tx, abi and usd.
  • American English. Short, active, present-tense sentences.

5. Tests and evidence

  • Behavior is tested at the cheapest layer that proves it.
  • A regression test fails on the original defect; the failing run is in the PR evidence.
  • A change to engine, signer, chain, chain-evm, chains or protocol also runs review-money-path.
  • A load-bearing decision has its ADR (write-adr).

6. Hygiene

  • No secrets, .env files, keystores, local paths or internal notes in the diff.
  • The license stays MIT.

7. Report

List findings by severity, each with file:line, the rule and the fix. Say plainly when there is nothing to fix. Then run shape-commit.

Download now (ZIP)

Does it work?

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

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.