Skip to content

Running the review

The ingrain-security plugin enforces nothing. Nothing in it blocks a write, interrupts a session, or fails a command — if nobody invokes it, no review happens and nothing objects.

So something has to invoke it. This page is the three ways.

Add this to your project’s CLAUDE.md (Claude Code) or AGENTS.md (Codex and others). It puts the instruction in the agent’s context at the moment it is deciding what to do next, which makes it the mechanism that covers the most ground.

## Security review
This project treats security analysis as the final step of PLANNING, not a review after the
fact. Run the `ingrain-security` skill via the Skill tool at whichever of these two moments
comes FIRST:
1. **A plan is finished** — worked out in plan mode or ad-hoc in the conversation — and you
are about to present it. Run the skill on that plan BEFORE you present it or write any
code, and fold its results back into it.
2. **You are about to edit code** and no review has run for this change yet. You have
gathered enough to know what you are going to change, and the next step is a write. Run
the skill BEFORE that first edit, not after it.
Then run the same skill **again once the code is written** — its Testing verification — to
check that the selected threats were closed and the accepted org rules followed, before you
present or commit the change.
The skill works out which phase to run from repo state, and its FIRST act is to ask whether
this change warrants a review at all — so running it on something harmless costs one question.

Nothing writes this for you and no command edits your instruction files on your behalf. Copy it in, commit it, and it applies to everyone working in the repository.

The block routes every plausibly security-relevant change into the skill. The skill’s first act is to ask whether the change warrants a review at all, and answering No records a minor verdict and ends the run — so a wrong guess costs one question. The block is written to over-trigger for that reason.

The question belongs to this path, where the agent reached the skill without you choosing it. A review you asked for yourself does not ask — see below.

You can always run it yourself, at either moment:

/ingrain-security

The skill resolves which phase applies from the state of the repository: a finished plan with no code yet routes to the plan review, code on the branch with selected threats routes to verification.

A review you asked for skips the opening question — asking for it is the answer, so the run goes straight into the review. Asking in words does the same: “threat-model this before I build it.”

CI needs none of this. The workflow’s entrypoint issues the instruction itself, so the opt-in step has already been taken by whoever wrote the workflow. The block above is for interactive sessions on a developer’s machine.

The review runs on the ingrain binary — assessment mint resolves where the analysis lives and which phase this run is in, and delta resolves what the branch changed. A plugin install alone is not enough.

If the binary is missing, the review stops at its first step with a message naming the remedy. See Install.

The reason the plugin leaves the invoking to this page rather than enforcing a review itself: it is markdown your agent reads, so it has no authority to block anything — which is why making the review happen is a line in your instruction files, and why nothing covers you on a machine that never got one.