Skip to content
Skill

Agent architecture audit

Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity

Agent architecture audit is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
66
Last commit
License
MIT
Listing updated

Similar skills

About Agent architecture audit

This skill gives an AI coding agent a structured audit workflow for agent and LLM applications that misbehave in ways that are hard to trace. It walks through a 12-layer model of the stack, from system prompt and session history through memory, tool selection and execution, answer shaping, platform rendering, hidden repair loops and persistence, and checks each layer for the kinds of failures it can cause.

The workflow runs in phases: scoping the target and symptoms, collecting evidence from source, logs, config and memory files, mapping each finding to a source layer with a root cause and confidence, and then proposing a fix plan. The skill includes ripgrep search patterns for spotting tool requirements that exist only in prompt text, unvalidated tool calls, extra LLM calls outside the main loop, memory admission and fallback retries. Findings are graded on a four-level severity scale and the fixes favour code enforcement over prompt changes.

The skill expects access to the target codebase and its logs, and it is written to be used with the agent's file-reading and search tools. It also points to sibling skills for runtime debugging, benchmarking and security review, which it says are out of scope.

When your agent uses it

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (11 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath

Or copy only this skill to ~/.claude/skills/agent-architecture-audit:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-architecture-audit &&
cp -R "$tmp/.agents/skills/agent-architecture-audit" ~/.claude/skills/agent-architecture-audit &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/agent-architecture-audit inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/agent-architecture-audit to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-architecture-audit &&
cp -R "$tmp/.agents/skills/agent-architecture-audit" ~/.agents/skills/agent-architecture-audit &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/agent-architecture-audit inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/agent-architecture-audit to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-architecture-audit &&
cp -R "$tmp/.agents/skills/agent-architecture-audit" ~/.cursor/skills/agent-architecture-audit &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/agent-architecture-audit inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/agent-architecture-audit

Or copy the folder to ~/.gemini/skills/agent-architecture-audit yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/agent-architecture-audit:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-architecture-audit &&
cp -R "$tmp/.agents/skills/agent-architecture-audit" ~/.copilot/skills/agent-architecture-audit &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/agent-architecture-audit inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git

Then copy REA_Skill/.agents/skills/agent-architecture-audit into your agent's skills folder as agent-architecture-audit. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Twelve-layer stack model
Maps an agent system into twelve layers, from system prompt to persistence, with the failure mode each one can introduce.
Failure pattern catalogue
Describes five recurring problems: wrapper regression, memory contamination, tool discipline gaps, rendering corruption and hidden repair layers.
Evidence search patterns
Provides ripgrep queries for locating prompt-only tool rules, unvalidated tool calls and silent second LLM passes.
Severity-ranked findings
Grades each finding from critical to low and requires file or log references and a confidence score.
Code-first fix plan
Orders remediation steps so that tool requirements and hidden repair agents are fixed in code before prompt tweaks.
Quick diagnostic questions
Offers seven yes/no checks that point to the likely failure category for an agent system.

Good for

  • Find out why an agent's answers degrade after adding a new prompt layer
  • Check whether a tool the prompt says is mandatory is actually enforced in code
  • Audit an LLM feature for hidden retry or summarisation passes before release
  • Trace stale memory leaking into new conversations in an agent app
  • Produce a severity-ranked report on an autonomous agent loop

Agent architecture audit FAQ

When does Agent architecture audit activate?

It is meant for cases where an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

What should I use instead for general code debugging?

The skill says general code debugging belongs to agent-introspection-debugging, and security scanning to security-review.

What does the audit output look like?

It presents severity-ranked findings first, then an architecture diagnosis, then an ordered fix plan, and it can follow a structured JSON report schema.

Does Agent architecture audit include scripts?

No scripts are bundled. It relies on the agent's own read, search and edit tools and on ripgrep commands written into the instructions.

How do I install Agent architecture audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agent-architecture-audit to use it in all your projects, or to .claude/skills/agent-architecture-audit in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

Does Agent architecture audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Agent architecture audit?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Agent architecture audit?

The closest alternatives to Agent architecture audit are Agent architecture, Agent introspection debugging, Correct, Agent harness construction and Agentic engineering.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from smartworldarafath/REA_Skill

  1. Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android

    • Open source
    • 66 GitHub stars
    • Developer tools
  2. Compare coding agents head-to-head on your own tasks by pass rate, cost and time

    • Open source
    • 66 GitHub stars
    • Developer tools
  3. Guides an agent to design tool sets, observations and error recovery for better completion

    • Open source
    • 66 GitHub stars
    • Developer tools
  4. Lets an AI agent make x402 payments within per-task budgets and spending policies

    • Open source
    • 66 GitHub stars
    • Finance and payments
  5. Gives agents read-only access to social, video, code and web platforms via one CLI

    • Open source
    • 66 GitHub stars
    • Web search and scraping