ng-self-check

ng-self-check is a command for coding agents from FlyFission/nuclear-grade-context-engineering. It costs 0 tokens per session (556 once invoked), scanned A, original, MIT.

A pre- and post-action checking prompt for confirming an important command or edit’s exact target, expected result, and stop condition.

In plain words
What is it for?
Use it before and after critical commands, broad edits, migrations, public claims, permission changes, or other actions outside a small reversible change.
Why use it?
It reduces the chance of deleting, publishing, migrating, credential-related, dependency, or release actions affecting the wrong target.

Command

Part of the nuclear-grade plugin — 24 skills, 28 commands, 5 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/flyfission/nuclear-grade-context-engineering/ng-self-check
Clone the repo
git clone --depth 1 https://github.com/FlyFission/nuclear-grade-context-engineering

Or install nuclear-grade, the plugin that ships this one along with the rest of its 24 skills, 28 commands, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ng-self-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/flyfission/nuclear-grade-context-engineering/ng-self-check.svg)](https://agentmods.dev/commands/flyfission/nuclear-grade-context-engineering/ng-self-check)
Your own site
<a href="https://agentmods.dev/commands/flyfission/nuclear-grade-context-engineering/ng-self-check"><img src="https://agentmods.dev/badge/commands/flyfission/nuclear-grade-context-engineering/ng-self-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 556 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00556
Opus 5 $0.00000 $0.00278
Sonnet 5 $0.00000 $0.00111
Haiku 4.5 $0.00000 $0.00056

Measured 5d ago against content hash 8f94dbaa710b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ng-self-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/ng-self-check.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ng-self-check

Portable command prompt generated from skills/double-checking-before-acting/SKILL.md. Edit the skill, then run python tools/ng.py gen-commands; do not edit this file by hand.

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.

Use when

  • 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.

Do not use when

  • 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.

Prompt text

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.

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.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 60 lines · 0 tokens per session scan A 8f94dbaa710b

Subscribe to this mod's changes

ng-self-check is a command published in the GitHub repository FlyFission/nuclear-grade-context-engineering (33 stars, last pushed 26d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 556 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.