agentleFS
FlyFissionFlyFission/nuclear-grade-context-engineering/skills/double-checking-before-acting/SKILL.md

double-checking-before-acting

Skill33 starsChanged 16 days agoMITView on GitHub

Checks a critical agent action against its exact target, expected result, and stop condition before and after execution. Use when an agent is about to make a critical edit, run a command or migration, use a credential or tool, change a dependency or model, make a public claim, or affect a release. Do not use for low-stakes reversible edits.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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
  1. Distinctive:

    Stop at the key moment — the interval after you have chosen the action and before you commit it — and name the exact action and target.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Double-Checking Before Acting

Overview

A self-check turns a high-stakes action into a careful one. Before you claim success, name the target, the result you expect, when to stop, the action itself, and the check you will run afterward.

Decision contract

  • Claim checked: the target, expected result, and stop condition were named before the action, and the real result was compared against the expected one before claiming success.
  • Artifact observed: the proposed action, target, and authority -> a self-check.md note of action, target, expected/real result, stop condition, evidence, and any mismatch.
  • Decision affected: block -- whether to proceed with or abort the critical action: a big edit, command, public claim, trust change, or release.
  • Failure class: wrong-target-or-unverified-action (acting on an assumed target, or claiming success without comparing the result).
  • Next action: pause and escalate when authority, target, or evidence is unclear; a mismatch halts the action rather than triggering a retry.

When to Use

  • A command can delete, move, publish, release, migrate, or change something outside the repo.
  • An edit touches public claims, where ideas came from, permissions, credentials, dependencies, models, APIs, or the release.
  • An agent is about to make a wide or repeated change, where hitting the wrong target is easy.
  • A quick candidate is about to become a public claim, an accepted version, or a release action.

When Not to Use

  • The task is a tiny local edit with obvious proof.
  • The action only reads data and has no effect on any later decision.
  • The change record already requires a stronger human check before the action.

Inputs

  • The action you mean to take, the exact target, the current phase, and where your authority comes from.
  • The result you expect, the most likely wrong-target mistake, and when to stop.
  • The proof command, review check, or evidence link you will need after the action.

Process

  1. Stop at the key moment — the interval after you have chosen the action and before you commit it — and name the exact action and target.
  2. Think through the result you expect, the likely error, and what would make the action wrong.
  3. Act only inside the authority you were given.
  4. Compare the real result against the result you expected, before you make any claim.
  5. For trust-bearing actions, get a forceful backup — an independent person, or a different model or context — to check the action. A second pass by the same agent in the same context inherits the same blind spots and is not independent.
  6. Record any mismatch, gap, or escalation. Do not just retry blindly.

Outputs

  • A short self-check note, or a self-check.md file.
  • The action, target, expected result, stop condition, real result, and evidence.
  • An escalation note when the result does not match.

Verification

  • The target is exact enough to rule out work on the wrong file or the wrong environment.
  • The expected result is named before the action.
  • The after-action check compares the evidence against what you expected.

Escalation

  • Pause if the authority, the target, the expected result, or the evidence is unclear.
  • Halt the action if it is unsafe or unclear, regardless of seniority; surfacing the concern is protected, not punished.
  • Escalate when the action affects credentials, network effects, data, releases, public trust, or anything that cannot be undone.

Common Rationalizations

  • "It is only one command." A single command can do wide damage.
  • "The target is obvious." Wrong-target mistakes come from assumed targets.
  • "I can check after." Checking after only helps if you named the expected result first.

Red Flags

  • The action starts before the target is named.
  • The expected result is missing or vague.
  • A mismatch is treated as a reason to retry instead of a reason to pause.
  • Public wording claims safe, secure, approved, or compliant with no scoped evidence behind it.

Prompt

Self-check this Nuclear-grade agent action before it happens.

Inputs:
- packet:
- current phase:
- intended action:
- exact target:
- authority source:
- expected result:
- likely wrong-target or wrong-state error:
- stop condition:
- proof or after-action check:

Return:
- the risky point being checked;
- the action and the target;
- the expected result;
- the stop condition;
- the evidence to collect after the action;
- whether to go ahead, pause, or ask for help.

Source-lineage note

This skill is an original software-workflow translation of self-checking, pause when unsure, flagging, procedure adherence, and verification practices from DOE-HDBK-1028-2009 as public source lineage. It does not create DOE compliance, formal assurance, safety, security, certification, or regulatory adequacy.

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.