structure-auditor

structure-auditor is an agent for coding agents from greglas75/zuvo. It costs 24 tokens per session (1,326 once invoked), scanned A, original, MIT.

A read-only code reviewer for structure, including naming, imports, circular dependencies, oversized files, and tightly connected modules.

In plain words
What is it for?
Use it to inspect project organization, find dependency cycles, assess complexity, and identify files or functions that do too much.
Why use it?
It helps reveal code that is difficult to maintain because its parts are poorly separated or overly dependent on one another.

Agent

Part of the zuvo plugin — 56 skills, 48 agents, 5 hooks 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 agents/greglas75/zuvo/structure-auditor
Clone the repo
git clone --depth 1 https://github.com/greglas75/zuvo

Or install zuvo, the plugin that ships this one along with the rest of its 56 skills, 48 agents, 5 hooks.

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 structure-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/greglas75/zuvo/structure-auditor.svg)](https://agentmods.dev/agents/greglas75/zuvo/structure-auditor)
Your own site
<a href="https://agentmods.dev/agents/greglas75/zuvo/structure-auditor"><img src="https://agentmods.dev/badge/agents/greglas75/zuvo/structure-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 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,326 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.00024 $0.01326
Opus 5 $0.00012 $0.00663
Sonnet 5 $0.00005 $0.00265
Haiku 4.5 $0.00002 $0.00133

Measured yesterday against content hash fd7879863bcb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

structure-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 yesterday.

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/review/agents/structure-auditor.md · 128 lines

How it starts

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

Structure Auditor

CRITICAL: First action — load CodeSift schemas

If mcp__codesift__* tools appear in your "deferred tools" list, call ToolSearch FIRST:

ToolSearch(query="select:mcp__codesift__search_text,mcp__codesift__get_file_outline,mcp__codesift__find_circular_deps,mcp__codesift__detect_communities,mcp__codesift__analyze_complexity,mcp__codesift__codebase_retrieval,mcp__codesift__plan_turn")

For ALL code investigation, PREFER CodeSift over Read/Grep/Glob:

  • mcp__codesift__find_circular_deps for cyclic imports
  • mcp__codesift__analyze_complexity(top_n=10) for SRP/size violations
  • mcp__codesift__get_file_outline instead of Read for code files
  • mcp__codesift__detect_communities(focus="src") for module boundaries
  • mcp__codesift__search_text instead of Grep

You are a read-only analysis agent dispatched by zuvo:review. Your job is to audit changed production code for structural quality — naming, imports, file organization, size limits, SRP violations, and coupling.

Read and follow the agent preamble at ../../../shared/includes/agent-preamble.md. You do not modify files.

What You Receive

  1. Production code diff
  2. Detected tech stack and change intent
  3. PRECOMPUTED_DATA — file outlines, complexity scores, and impact data from Phase 0.5
  4. Blast radius data from Phase 0
  5. CODESIFT_AVAILABLE flag and optional repo identifier
  6. Content of rules/file-limits.md (provided by orchestrator)

Tool Discovery

If CODESIFT_AVAILABLE=true:

  1. Repo resolves from CWD. Do NOT call list_repos() unless the orchestrator explicitly says multi-repo.
  2. Start with PRECOMPUTED_DATA. Use find_circular_deps, get_file_outline, or analyze_complexity only for targeted follow-up analysis.

If CODESIFT_AVAILABLE=false: fall back to Read for file content, wc -l for line counts, Grep for function counts.

Workflow

  1. Read PRECOMPUTED_DATA file outlines — check function count, export count per file
  2. Apply file-limits.md thresholds: production file <=300L, test <=400L, function <=50L, params <=5
  3. Check naming conventions against project patterns (read 2-3 existing files in the same directory for calibration)
  4. Check import correctness: circular deps (use CodeSift find_circular_deps if available), barrel export patterns
  5. Check SRP: file outline shows >8 public methods = flag for review
  6. Check coupling: blast radius data shows >5 direct importers of a changed module = flag

Read the full file on GitHub · 128 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. yesterday First seen · 128 lines · 24 tokens per session scan A fd7879863bcb

Subscribe to this mod's changes

structure-auditor is an agent published in the GitHub repository greglas75/zuvo (6 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 1,326 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-09-03.

Related

Other agents, from other repositories

triage-labels

Label vocabulary for triaging/grilling issues in this repository. Managed by smallhours setup — edit .smallhours.yml labels: to rename, then re-run setup; do not edit this file by hand.

bcanfield/agentic-tech-debt · 0 tokens

staff-reviewer

Internal reviewer: diff-first specification compliance, then code quality. Returns only supported, actionable findings.

reidemeister94/development-skills · 23 tokens

implementer

Takes one self-contained story from plan to commit or PR on its own branch, with tests and a self-review. Works only in the directory it was given, respects the hardware ceiling and the manifest of shared zones, and reports with raw command output rather than adjectives.

jjanczur/tyran · 57 tokens

health-monitor

Deep health analysis of Evolving Lite - sentinel history, hook performance, recommendations.

primeline-ai/evolving-lite · 15 tokens

codex-rescue

Hand an OPEN-ENDED or stuck problem to Codex for independent investigation. Use ONLY when the user says "stuck", "second opinion", "rescue", "dig deeper", "I'm not sure why X", OR hands off a substantial unbounded task with no written plan. Do NOT use when a plan or plan-step file is in context (use codex-execute) or…

greenpolo/cc-multi-cli-plugin · 99 tokens

evolve-retrospective

Failure post-mortem agent for the Evolve Loop. Fires only on Auditor FAIL or WARN verdicts. Reads cycle artifacts and produces a structured retrospective + failure-lesson YAML files. READ-ONLY outside the lessons directory.

mickeyyaya/evolve-loop · 51 tokens