integrity

integrity is a command for coding agents from rana/skills. It costs 0 tokens per session (778 once invoked), scanned A, original, MIT.

A consistency checker for a collection of thinking tools and their stored knowledge. It checks whether the toolkit’s documents agree with the files and references that actually exist.

In plain words
What is it for?
It helps audit skill and command inventories, verify skill document structure, check cross-references, and review the toolkit’s own documentation.
Why use it?
It finds stale counts, missing references, incomplete stage maps, and inaccurate memory before they cause agents to follow instructions that no longer match the toolkit.

Command

Part of the y plugin — 36 skills, 14 commands, 8 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/rana/skills/integrity
Clone the repo
git clone --depth 1 https://github.com/rana/skills

Or install y, the plugin that ships this one along with the rest of its 36 skills, 14 commands, 8 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 integrity

README.md
[![agentmods](https://agentmods.dev/badge/commands/rana/skills/integrity.svg)](https://agentmods.dev/commands/rana/skills/integrity)
Your own site
<a href="https://agentmods.dev/commands/rana/skills/integrity"><img src="https://agentmods.dev/badge/commands/rana/skills/integrity.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 778 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.00778
Opus 5 $0.00000 $0.00389
Sonnet 5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

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

Security

Grade A, and why

integrity 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 4d 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/integrity.md · 71 lines

How it starts

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

Verify the cognitive toolkit's internal consistency and memory accuracy. The toolkit makes claims about its own structure, and memory makes claims about the world. This command checks both.

$ARGUMENTS

Test Suite

1. Structural Integrity

Run /catalog to build the full skill inventory. Then verify:

  • Skill count in CLAUDE.md, SYSTEM.md, and plugin.json matches actual skills/*/SKILL.md count
  • Command count matches actual commands/*.md count
  • Every skill referenced in SYSTEM.md selection matrix exists
  • Every skill referenced in composition examples exists
  • Stage map covers all skills (no orphans)
  • Finding Shape Convention in CLAUDE.md lists the correct skills

2. Skill Anatomy Compliance

For each skills/*/SKILL.md:

  • Frontmatter has name, description, argument-hint
  • name in frontmatter matches directory name
  • Output section exists with skill-specific guidance
  • Skills claiming to produce standard finding shape actually instruct that format
  • Cognitive/creative skills that shouldn't produce finding shape don't claim to

3. Cross-Reference Integrity

Run /doc-health scoped to the toolkit's own documents (CLAUDE.md, SYSTEM.md, plugin.json):

  • Every skill name in SYSTEM.md maps to a skills/<name>/ directory
  • Composition topology (affinities, terminal skills, dead zones) references only existing skills
  • Quick reference section references only existing skills
  • No stale references to deleted skills

4. Composition Coherence

For each composition example in SYSTEM.md:

  • All named skills exist
  • Ordering follows stated principles (perception-expanding before analytical, simplification last)
  • No examples violate stated dead zones
  • Terminal skills appear only at chain end

5. Document Consistency

  • CLAUDE.md and SYSTEM.md agree on: skill counts, command counts, skill classification (analytical vs mission vs cognitive)
  • Plugin.json description matches CLAUDE.md opening paragraph
  • Calibrate parameters documented in SYSTEM.md match commands/calibrate.md
  • Environment contract tables are consistent between CLAUDE.md and SYSTEM.md

Read the full file on GitHub · 71 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. 4d ago First seen · 71 lines · 0 tokens per session scan A 01a5bd5f554d

Subscribe to this mod's changes

integrity is a command published in the GitHub repository rana/skills (1 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 778 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-31.