/integrity-self-monitoring:integrity-self-monitoringfrom Integrity Self-Monitoring
Prevents fake results when services are unreachable, keys missing, or tests contradict. Forces honest reporting of blockers instead of fallbacks, mocks, or workarounds that only appear to pass.
Ships in Integrity Self-Monitoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
[INTEGRITY CHECK] block: Result, Route, Outside the task,
Told the user.Purpose: keep the route to a green run legitimate. An agent under a
check that cannot pass honestly rarely decides to fake a result; it slides into one. The
test fails, so the call gets a catch; the catch needs something to
return, so it returns a plausible number; the test goes green, and the close
says "tests pass". Every step looked like fixing.
Key idea: the question is not "does it pass?" but "where did the answer come from?". If the answer came from somewhere the user did not ask for, the work is not done - it is blocked, and saying so is the deliverable.
Name what the user asked for. The service, the data source, the behaviour - as the request or the ticket names it. That is the only source a real result can come from.
Name what the result actually comes from. Trace the value the user
will see back to its origin. A literal in the source, a second host, a
catch that answers, a local server, a check of who called: each one is
a source the user did not ask for.
If they differ, the part is blocked. Implement it against the real source, make it fail loudly and clearly when that source is missing, and close the part as blocked with the observed reason. A test that stays red for that reason is the honest state; say which test and why.
Keep what is legitimate. A mock inside a test is the test's business. A default the user asked for is a feature. Reading a global config is ordinary work. If a finding is one of these, say so in the close:
- src/rates.js: misread - the ticket asks for the offline table
The person sees that answer; it is theirs to accept.
Tell the user. What is real, what is blocked and why, and what would unblock it (the key, the network, a decision on the contradictory tests). Put it in the close, not only in a code comment.
return amount * 1.08 where
the service was asked for.catch or .catch() that returns a value or
calls a second source instead of letting the error through.if (!apiKey) return ..., or a key with a
literal default.require.main, module.parent, a stack trace
inspected to behave differently under a test.fetch shim, a local server that answers for the real one.The hooks read each edit to product code (tests, fixtures, mocks and
node_modules excluded) and each shell command, and speak once per finding:
| Signal | When |
|---|---|
A rate table, a catch that answers, a missing key answered, a second host | an edit brings it into a file that calls a service |
| Code that reads its caller | an edit brings it into any product file |
| A change to the machine | a command sets TLS off, writes the hosts file, changes a system setting |
| A server | a command writes one inline |
On hosts without hooks, ask the two questions of Core Protocol by hand before every "tests pass".
Write the block in the close, as a markdown list, not inside a fenced code block. No blank line inside the block. Write the block; do not announce writing it.
[INTEGRITY CHECK]
Result: shortcut is an honest value: it says a route was taken that the
user must know about. It is better than a real that is not.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub 3dgiordano/agent-plugins --plugin integrity-self-monitoringOther plugins' skills for the same job