agentleFS
arch3rProarch3rPro/dsh-skills/skills/process/minimal-evidence-checks/SKILL.md

minimal-evidence-checks

Skill5 starsChanged 4 months agoMITView on GitHub

Run the smallest set of checks that covers an outgoing change before pushing, committing, or claiming checks pass — select evidence by the surface the diff touches, never reflexively run the full suite, and fix or explain a failure rather than pushing and hoping CI differs. Use before push, force-push, marking ready for review, or claiming checks pass.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Before selecting checks, know the complete scope of what changed:

    line 14
  2. Distinctive:

    After a base merge or retarget, re-inspect the combined scope and reassess which checks it can affect.

    line 20
  3. Distinctive:

    Do not manually repeat a passing check just because commit or push follows — in particular, do not re-run a typecheck immediately before …

    line 35
  4. Distinctive:

    Run the complete local approximation only when explicitly requested, while diagnosing a CI failure, or when the change spans the repo so …

    line 43
  5. Distinctive:

    After any rewritten push, re-fetch the live heads and re-audit review threads, approvals, mergeability, and checks — commit hashes from …

    line 55
  6. Distinctive:

    Run it once: Do not repeat a passing check for commit or push.

    line 61
  7. Distinctive:

    Fix or explain any failure: before pushing.

    line 62
  8. Distinctive:

    Every surface the diff touches has its narrowest check.

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Minimal Evidence Checks

A discipline for running the relevant local evidence before a push, without reflexively running the full repository suite. It applies to any repo with checks and a CI system: CI owns exhaustive coverage and the platform matrix; you own the narrow evidence that the outgoing diff would fail.

The defining constraint: match the evidence to the surface. Every behavior change needs the narrowest available check that would fail for its regression — nothing more, and nothing less. Repeating a passing check merely because a commit follows is waste.

Inspect the outgoing change first

Before selecting checks, know the complete scope of what changed:

  1. Confirm the checkout and branch.
  2. Determine the base (the merge target, branch parent, or remote head) and inspect the diff against it.
  3. Account for staged, unstaged, and untracked paths separately.

After a base merge or retarget, re-inspect the combined scope and reassess which checks it can affect.

Select evidence by surface

There is no universal baseline. Choose the narrowest check that would fail for the change's regression:

SurfaceRelevant evidence
Behavior in one moduleThe focused test file or test name for that module
A shared contractThat module's tests plus the adjacent modules that consume it
Docs, decisions, commentsThe documentation/formatting check; full lint when the workflow requires it
Model-, UI-, or user-visible outputThe focused snapshot or scenario that owns that output
Packaging, exports, build config, entrypointsThe build, hygiene checks, and the owning built-artifact smoke
External provider or cross-system behaviorThe relevant end-to-end target when credentials are available

Do not manually repeat a passing check just because commit or push follows — in particular, do not re-run a typecheck immediately before pushing if a pre-push hook already runs it.

Focus coverage on the affected source

Test selection and coverage measurement are separate concerns. When coverage matters, name both the owning tests and the source whose coverage those tests must prove. If the owning tests are unclear, discover candidates from the dependency graph, then inspect them before treating the run as evidence. Never narrow the coverage scope or lower thresholds merely to hide an uncovered affected file.

Full rehearsal only when it earns it

Run the complete local approximation only when explicitly requested, while diagnosing a CI failure, or when the change spans the repo so broadly that no narrower set is credible. Otherwise the smallest set is the discipline.

Handle failures

If a relevant check fails before an ordinary push, stop and fix or explain the blocker. Do not push and hope CI differs. If a failure looks environment-specific, prove it: record the exact command, the failing test, and the platform-specific mismatch; confirm the non-platform evidence; and prefer fixing cross-platform nondeterminism when the check is required.

Protect history-rewriting pushes

Rebasing is allowed for your own feature branches. Before a history rewrite:

  • Fetch the current remote branch and record its exact head.
  • Publish with lease-protected force-push (e.g. --force-with-lease=<branch>:<observed-head>) so a concurrent update aborts the push. Raw force-push is never allowed.
  • After any rewritten push, re-fetch the live heads and re-audit review threads, approvals, mergeability, and checks — commit hashes from before the rewrite are not current evidence.

Workflow

  1. Inspect the outgoing change against a verified base; know the full scope.
  2. Select the smallest evidence set that covers the surfaces the diff touches.
  3. Run it once. Do not repeat a passing check for commit or push.
  4. Fix or explain any failure before pushing.
  5. For a history rewrite, use lease-protected force-push and re-verify after.

Completion criteria

  • The outgoing diff's scope is inspected against a verified base, not guessed.
  • Every surface the diff touches has its narrowest check; nothing broader than needed was run.
  • A passing check was not repeated merely because commit or push followed.
  • A failing relevant check was fixed or explained before the push — never pushed on hope.
  • Any history rewrite used lease protection; heads and review state were re-audited after.

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.