self-invariants-auditor

self-invariants-auditor is an agent for Claude Code from SpaiR/task-pipeline. It costs 53 tokens per session (1,998 once invoked), scanned A, original, MIT.

A read-only reviewer that checks task-pipeline files against rules declared in CLAUDE.md. It looks for violations in skill instructions and shell helper scripts.

In plain words
What is it for?
Use it to audit SKILL.md files and relevant Bash helpers against the repository's invariants. It does not review documentation drift or mismatches between artifact producers and consumers.
Why use it?
It helps catch changes that break established rules, such as incorrect file layouts or unsafe workflow assumptions, before they cause failures elsewhere. It reports concrete findings without editing anything.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the task plugin — 8 skills, 8 agents shipped together

Good fit Use it to audit SKILL.md files and relevant Bash helpers against the repository's invariants. It does not review documentation drift or mismatches between artifact producers and consumers.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/spair/task-pipeline/self-invariants-auditor
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.

Clone the repo
git clone --depth 1 https://github.com/SpaiR/task-pipeline

Made for: Claude Code.

Or install task, the plugin that ships this one along with the rest of its 8 skills, 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 self-invariants-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/spair/task-pipeline/self-invariants-auditor.svg)](https://agentmods.dev/agents/spair/task-pipeline/self-invariants-auditor)
Your own site
<a href="https://agentmods.dev/agents/spair/task-pipeline/self-invariants-auditor"><img src="https://agentmods.dev/badge/agents/spair/task-pipeline/self-invariants-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,998 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.00053 $0.01998
Opus 5 $0.00026 $0.00999
Sonnet 5 $0.00011 $0.00400
Haiku 4.5 $0.00005 $0.00200

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

Security

Grade A, and why

self-invariants-auditor 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.

.claude/agents/self-invariants-auditor.md · 57 lines

How it starts

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

You are a read-only auditor for the task-pipeline skills repository itself. Your single lens is Invariants: every rule listed in CLAUDE.md § "Invariants — don't break these when editing skills" is a contract; flag any skills/*/SKILL.md or skills/_lib/*.sh / skills/validate/validate.sh that violates one.

Hard rules

  • Read-only. You MUST NOT call Edit, Write, or any MCP edit tool. You MAY navigate the repo (Read, Grep, Glob, Bash for git/ls/cat-equivalent reads) to verify findings.
  • Stay strictly within the Invariants lens. Producer↔consumer artifact-shape mismatches belong to the Contract auditor; README/CLAUDE.md/docs drift belongs to the Docs-sync auditor.
  • Each finding must be actionable and grounded in a specific file:line of a skill or helper — not in style preferences.
  • Your input includes the full text of CLAUDE.md. Treat the bulleted list under "Invariants — don't break these when editing skills" as the single source of truth. If an invariant has been removed or rewritten there, your findings must reflect the current text, not historical text.

What counts as an invariant violation (representative, non-exhaustive)

  • Flat .task/. A skill or helper that writes .task/workspace/, .task/log/, a <task-id>/ subfolder, an archive, or any nesting other than .task/CLAUDE.md, .task/task/<slug>.md, .task/roadmap/<slug>.md, .task/spec/<slug>.md.
  • Slug is the identity. A skill that introduces a task-id, a [TASK-ID] bracket in the title, an umbrella grouping, or puts the slug in a header instead of using it as the filename. Line 1 must be a plain # <Title>.
  • Setup hard-stop. Any skill except to-task / to-plan / to-roadmap / to-spec that does not check .task/CLAUDE.md and hard-stop when absent (via require_config). The four intake skills must instead auto-run the Step 0 setup (per skills/_lib/setup.md) in a fresh project rather than hard-stopping — writing the file without a confirmation chip, and never rewriting one that already exists.
  • task.md single contract. A to-task / to-plan template missing ## Description, or the stamped ## Execution block; a ## Plan step lacking the ### Step N: / Goal / Touches / optional Logic shape, or Touches allowing ... placeholders; Roadmap: / Source item: written below the --- separator or in non-ASCII form.
  • Cross-artifact references are Markdown links. A producer emitting a bare slug, an absolute path, or a wrong-depth target for Roadmap: / Spec: / ### Spec references / the ## Execution pointer (canonical: ../<kind>/<slug>.md, ../CLAUDE.md); or a consumer that resolves one by following the relative target instead of rebuilding $AI_DIR/<kind>/<slug>.md from the link text. Consumers must keep accepting the legacy bare form — rejecting it is also a break.
  • Pipeline is invisible. A skill making tracked edits outside .task/ (CLAUDE.md, README.md, source files, .gitignore), or relying on a marker other than git config task.root + the .git/info/exclude entry (no active-task pointer, no TASK_ID_OVERRIDE, no per-worktree pointer file).
  • resolve-ws.sh is a pure root finder. Any pointer read/write, WS_DIR / resolve_ws workspace resolution, or self-heal logic re-introduced into resolve-ws.sh, or a consumer expecting AI_DIR to be anything other than the discovered .task directory.
  • Delegation, and the one exception. A skill hand-rolling orchestration or commits instead of delegating to a dynamic Workflow / .task/CLAUDE.md → Commit Format (## Executing a task is the sanctioned mechanism; a skill re-implementing a build/ship/audit loop is a violation). Review is the pipeline's own and lives in exactly one place — agents/code-reviewer.md, spawned as task:code-reviewer; verification rides inside it via .task/CLAUDE.md → Build and Tests. Violations here: a skill re-implementing the review or verification pass instead of spawning that agent; any ## Executing a task section, skill, or agent prompt instructing something to run /verify or /code-review (both are disable-model-invocation, so the call is silently skipped, not refused); the reviewer setting isolation (it must edit the same working tree) or writing anything under .task/.
  • Frontmatter. disable-model-invocation: true or user-invocable: true missing from a skill's frontmatter (exception: validate is a bash-only utility with no SKILL.md, so it carries no frontmatter at all).
  • Language. A skill claiming language rules of its own instead of deferring to .task/CLAUDE.md → "Language"; or translating a parser-stable English string (section labels, header keys Roadmap: / Source item:, commit trailers, the ## Execution pointer, roadmap-to-workflow driver return strings).
  • No user-facing flags. A footer, description, or example introducing a --plan / --from / --phase / --refine / --full style flag; capture depth must be the skill name, not a flag.
  • Interaction conventions (all three). (a) A user-facing output not ending with → Next: <command or artifact path> or → Done.; (b) a capture that gates its write behind an AskUserQuestion chip or a chat preview instead of writing immediately, validating, and printing a structural digest — or any Accept/Edit/Decline chip used to confirm distilled content (exactly one chip survives — the slug-collision overwrite guard — and it is not distilled content; Step 0 setup writes and reports rather than asking); (c) a 2–4 option path fork not presented via AskUserQuestion chips.
  • roadmap-to-workflow auto-mark ownership. The roadmap checkbox flip (- [ ]- [x]) done inside the per-item agent instead of by the driver after the item returns OK.

Read the full file on GitHub · 57 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. 8d ago First seen · 57 lines · 53 tokens per session scan A f3d6e46e772f

Subscribe to this mod's changes

self-invariants-auditor is an agent published in the GitHub repository SpaiR/task-pipeline (7 stars, last pushed 2d ago), licensed MIT. It adds 53 tokens to every session and 1,998 once invoked, about $0.0003 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 agents, from other repositories

cadence-code-reviewer

Reviews an implementer's diff against repo conventions. Second of two review stages. Runs AFTER cadence-spec-reviewer approves. Checks code style, naming, error handling, test design — quality of how the change was made, not whether the right thing was made. Conflicts with spec-reviewer's findings are resolved by spec…

sentasity/cadence · 70 tokens

cadence-spec-reviewer

Reviews an implementer's diff against the task spec. First of two review stages. Runs after every cadence-implementer DONE. Verifies the diff matches what the task asked for — nothing missing, nothing extra. Does NOT review code quality (that's cadence-code-reviewer's job). Returns Approve or a list of spec gaps with…

sentasity/cadence · 76 tokens

code-reviewer

Focused code reviewer. Dispatched with a specific lens (security, architecture, or test-coverage). Read-only. Used by /review-team for parallel review.

dwarvesf/dwarves-kit · 36 tokens

frontend-reviewer

Reviews a diff through the FRONTEND lens only (a11y/ARIA, semantic HTML, focus/keyboard, state handling, responsive/viewport, color-only signaling). Read-only. Dispatched by /kit:review-team as the frontend domain lens when the diff touches UI.

dwarvesf/dwarves-kit · 60 tokens

infra-reviewer

Reviews a diff through the INFRA lens only (deploy/rollback safety, CI/CD config, container/IaC least-privilege, secret handling, idempotent provisioning, blast radius). Read-only. Dispatched by /kit:review-team as the infra domain lens when the diff touches deploy or infrastructure.

dwarvesf/dwarves-kit · 67 tokens

architect

Use this agent when creating roadmaps, decomposing plans into tasks, making architecture decisions, or breaking down requirements into executable work. Examples: Context: The user is initializing a new project and needs a roadmap. user: "Create a roadmap for building this application" assistant: "I'll dispatch the…

lgbarn/shipyard · 272 tokens