AI Structure Audit — Security skill for Claude Code
Evidence-driven audit of AI systems across prompt, context, harness, loop, and graph layers.
How to install AI Structure Audit
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open templetongroup/ai-structure-audit and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Structure Audit does
Evidence-driven audit of AI systems across prompt, context, harness, loop, and graph layers.
Alternatives in Security
- Octoboss Reorganize Tentacles — You are the Octoboss — a cross-tentacle orchestrator 1.4k ★
- Imcodes — The IM for agents 960 ★
- Maestro Knowledge — Intent-driven knowledge-store and Run knowledge lifecycle management — audit/prune, stage candidates (with sig 530 ★
README
AI Structure Audit
AI Structure Audit is an evidence-driven skill for reviewing AI assistants, agents, RAG systems, tool-using workflows, and multi-agent architectures.
It audits five nested layers:
- Prompt
- Context
- Harness
- Loop
- Graph
The skill diagnoses from the bottom up, identifies the lowest failing layer, recommends the smallest effective fixes, and offers to implement those fixes only after approval.
What it checks
- prompt clarity, constraints, examples, output contracts, and evaluations
- context visibility, retrieval, memory, provenance, freshness, and token discipline
- tool schemas, permissions, sandboxing, retries, idempotency, verification, and observability
- verifier quality, stop conditions, no-progress detection, budgets, and convergence
- node responsibilities, routing, state flow, parallelism, aggregation, and graph justification
- common cross-layer misdiagnoses, such as adding agents to compensate for a weak verifier
Install
Clone the repository into your agent's skills directory:
git clone https://github.com/templetongroup/ai-structure-audit.git ~/.codex/skills/ai-structure-audit
For OpenClaw, install it through your normal reviewed skill-install process and verify visibility with `openclaw skills check`.
Use
Examples:
Use $ai-structure-audit to review this agent system.
Audit this RAG workflow and tell me which structural layer is actually failing.
Review this multi-agent architecture before we add another node.
Run an AI Structure Audit, suggest fixes, and offer to implement them.
Audit mode is read-only. Implementation requires explicit approval after the report identifies the proposed scope, affected systems, validation plan, risk, and rollback.
Repository structure
SKILL.md: audit and implementation workflowtemplates/audit-report.md: reusable report skeletonreferences/source-map.md: provenance and interpretation notes
Provenance
The five-layer model was a
Related Skills
Audit Ur Harness
An Agent Skill that audits a project's AI harness — guardrails, memory, verification, observability, tool desi
Cross-Pollinate Hex MCP Servers
Diff-driven audit: find real transferable changes across hex-line-mcp, hex-ssh-mcp, hex-graph-mcp. Each delta
Twin Sparrow Oppus Reasoning Contract
Enforce disciplined reasoning structure for research, architecture, audit, spec review, implementation plannin
Audit Claude Components
Comprehensive audit of .claude folder. Checks structure, quality, cross-references, antipatterns, resource usa
Audit Flow
Claude Code skill for interactive system flow tracing across CODE, API, AUTH, DATA, NETWORK layers. SQLite per
Claude Doctor Skill
46 automated checks across 6 layers. Project health audit skill for Claude Code. Security first. Zero dependen
Related Agents
Copyeditor
Sole owner of deterministic quantitative checks across all Layers. Runs the 10 tools/lint.py groups (graph·hub
Systems Engineer
Systems engineering and event-driven architecture expert. When to use: EventBus design, tick loop performance,
Agent Tuner
Reflexion-style agent tuner. Given evidence of a recurring failure by a specific agent, proposes the smallest