integrity-check

integrity-check is a skill for Claude Code from supportersimulator/3-surgeons. It costs 20 tokens per session (351 once invoked), scanned A, original, MIT.

A structural integrity checker for counters, service health, and an evidence database. It detects counters that decrease, unavailable services, and evidence storage that cannot be queried.

In plain words
What is it for?
Use it after an unexpected restart, when state looks inconsistent, after manual state edits, or for periodic verification beyond ordinary health checks.
Why use it?
It can reveal state corruption, tampering, data loss, or service degradation after crashes, restarts, or manual changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 3-surgeons plugin — 23 skills, 7 commands, 1 agent, 3 hooks, 1 MCP server shipped together

Good fit Use it after an unexpected restart, when state looks inconsistent, after manual state edits, or for periodic verification beyond ordinary health checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/supportersimulator/3-surgeons/integrity-check
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.

Any agent
npx skills add supportersimulator/3-surgeons --skill integrity-check
Clone the repo
git clone --depth 1 https://github.com/supportersimulator/3-surgeons

Made for: Claude Code.

Or install 3-surgeons, the plugin that ships this one along with the rest of its 23 skills, 7 commands, 1 agent, 3 hooks, 1 MCP server.

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 integrity-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/supportersimulator/3-surgeons/integrity-check.svg)](https://agentmods.dev/skills/supportersimulator/3-surgeons/integrity-check)
Your own site
<a href="https://agentmods.dev/skills/supportersimulator/3-surgeons/integrity-check"><img src="https://agentmods.dev/badge/skills/supportersimulator/3-surgeons/integrity-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 351 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00020 $0.00351
Opus 5 $0.00010 $0.00176
Sonnet 5 $0.00004 $0.00070
Haiku 4.5 $0.00002 $0.00035

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

Security

Grade A, and why

integrity-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 8d 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.

skills/integrity-check/SKILL.md · 46 lines

What it actually says

Integrity Check

The CorrigibilityGate's integrity verification mode. Detects state corruption, counter tampering, and service degradation.

When to Use

  • After a crash or unexpected restart
  • When state values seem inconsistent
  • After manual state modifications
  • Periodic health verification (beyond what gains-gate checks)

What It Checks

  • Monotonic counters — event counts should only increase. A decrease signals data loss or tampering.
  • Service health — state backend is responding to pings.
  • Evidence operational — evidence store can be queried.

How It Works

The integrity check reads integrity:* keys from the state backend:

  • integrity:events_count vs integrity:events_count:prev
  • If current < previous → something decreased a counter → FAIL

Without a state backend, integrity checks are skipped (passes with "skipped" message).

Output

Standard GateResult:

  • passed — true if all checks pass
  • checks — individual check results with names and messages
  • duration_ms — how long the check took

Relationship to Other Gates

Gate Purpose When
GainsGate Infrastructure health Between phases
CardioGate Quality review + rate limit Automated quality checks
CorrigibilityGate.run() Text safety (regex) Before destructive ops
CorrigibilityGate.check_integrity() Structural integrity After crashes, periodic
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. 8d ago First seen · 46 lines · 20 tokens per session scan A f59e693019d2

Subscribe to this mod's changes

integrity-check is a skill published in the GitHub repository supportersimulator/3-surgeons (2 stars, last pushed 3mo ago), licensed MIT. It adds 20 tokens to every session and 351 once invoked, about $0.0001 per session on Opus 5. 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-31.

Related

Other skills, from other repositories

cherry-electron-dev

Develop, fix, and profile Cherry Studio in a tracked Electron instance. Use for everyday implementation, UI and interaction work, bug fixing, runtime debugging, DevTools inspection, lag or jank investigation, CPU and memory monitoring, leak checks, and startup-performance analysis; reuse a verified workspace instance…

CherryHQ/cherry-studio · 75 tokens

cherry-assistant-guide

A guide for looking up Cherry Studio's product details and diagnosing problems such as connection failures, setup errors, and runtime issues.

CherryHQ/cherry-studio · 68 tokens

cherry-studio-feedback

A guide for handling Cherry Studio bug reports, interface problems, user-experience issues, and feature suggestions.

CherryHQ/cherry-studio · 37 tokens

fastgpt-docker-deploy

FastGPT Docker Compose self-hosting deployment workflow. Use when a user asks an AI agent to deploy FastGPT with Docker by referencing /deploy/SKILL.md, including creating an empty fastgpt directory, running the install script in non-interactive mode, starting Docker Compose, monitoring service health, troubleshooting…

labring/FastGPT · 84 tokens

ai4j-app-builder

Use this skill when helping users build applications with AI4J in their own Java or Spring Boot projects, including first chat, streaming, tool/function calls, MCP, RAG, memory, Agent runtime, Coding Agent CLI embedding, FlowGram integration, provider configuration, dependency selection, and troubleshooting. It guides…

LnYo-Cly/ai4j · 120 tokens

superpowers-systematic-debugging

Any bug, failing or flaky test, or surprise behavior? Load BEFORE you investigate or guess.

christopherarter/superpowers-reasonix · 26 tokens