integrity-scan

integrity-scan is a skill for Claude Code, Codex from ovidiu-eremia/mind-mem. It costs 0 tokens per session (345 once invoked), scanned A, a copy of integrity-scan, MIT.

A scanner for a workspace that stores decisions, notes, and tasks. It looks for contradictions, outdated information, unrecorded decisions, broken task references, and missing links.

In plain words
What is it for?
Use it after major decisions, during maintenance, or before architecture work. It helps check decision consistency, task references, workspace coverage, and downstream effects.
Why use it?
A growing memory workspace can gradually become inconsistent or lose important connections. The scan shows these problems and records the findings, metrics, snapshots, and weekly briefing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 maintenance/intel_scan.py "${MIND_MEM_WORKSPACE:-.}".

Good fit Use it after major decisions, during maintenance, or before architecture work. It helps check decision consistency, task references, workspace coverage, and downstream effects.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ovidiu-eremia/mind-mem
agentmods
npx agentmods add skills/ovidiu-eremia/mind-mem/integrity-scan

Made for: Claude Code, Codex.

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-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/ovidiu-eremia/mind-mem/integrity-scan/github.svg)](https://agentmods.dev/skills/ovidiu-eremia/mind-mem/integrity-scan)
Your own site
<a href="https://agentmods.dev/skills/ovidiu-eremia/mind-mem/integrity-scan"><img src="https://agentmods.dev/badge/skills/ovidiu-eremia/mind-mem/integrity-scan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for integrity-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/ovidiu-eremia/mind-mem/integrity-scan"><img src="https://agentmods.dev/badge/skills/ovidiu-eremia/mind-mem/integrity-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 345 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 100% copy Near-identical to another mod 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.00000 $0.00345
Opus 5 $0.00000 $0.00172
Sonnet 5 $0.00000 $0.00069
Haiku 4.5 $0.00000 $0.00034

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

Security

Grade A, and why

integrity-scan 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 9d 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.

Origin

This is a copy

100% identical to integrity-scan — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/integrity-scan/SKILL.md · 36 lines

What it actually says

/scan — Memory Integrity Scan

Run the intelligence scanner to detect contradictions, drift, dead decisions, and missing cross-references across the entire memory workspace.

When to Use

  • After a session with significant decisions or changes
  • During weekly maintenance
  • When something "feels wrong" about the memory state
  • Before making architectural decisions (verify no contradictions)

How to Run

python3 maintenance/intel_scan.py "${MIND_MEM_WORKSPACE:-.}"

What It Checks

  1. Contradictions — Decisions that conflict with each other (via ConstraintSignatures)
  2. Drift — Decisions referenced in daily logs but never formalized
  3. Dead decisions — Active decisions with no recent references
  4. Orphan tasks — Tasks referencing non-existent decisions
  5. Impact graph — Downstream effects of each decision
  6. Coverage — How many files are monitored vs total

Output

  • Updates intelligence/CONTRADICTIONS.md, intelligence/DRIFT.md, intelligence/IMPACT.md
  • Updates memory/intel-state.json with latest metrics and counters
  • Saves state snapshot in intelligence/state/snapshots/
  • Generates intelligence/BRIEFINGS.md weekly briefing

Modes

  • detect_only — Report issues, never propose changes (default)
  • propose — Report issues AND generate fix proposals in intelligence/proposed/

Check current mode: cat memory/intel-state.json | python3 -c "import json,sys;print(json.load(sys.stdin)['governance_mode'])"

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. 9d ago First seen · 36 lines · 0 tokens per session scan A e077911a3fdb

Subscribe to this mod's changes

integrity-scan is a skill published in the GitHub repository ovidiu-eremia/mind-mem (0 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 345 tokens. A static security scan graded it A with 0 findings. It is 100% identical to integrity-scan, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

shellm

Reference for the shellm system — recursive LLM shell, identity management, memory, skills, trajectory, and all CLI tools. Use when working on shellm itself, debugging agent behavior, or understanding how the pieces fit together.

laude-institute/headlong · 49 tokens