What does this skill do?

The Skill AI Agent Architecture Audit performs a comprehensive diagnosis of agent-based and LLM applications, inspecting a 12-layer stack to detect regressions, memory corruption, hidden repair loops, and tooling discipline failures. It generates a structured report with findings prioritized by severity and an actionable remediation plan focused on the code, not on prompts.

Pre-production launch
Audit any application that uses LLMs, tools, or multi-step workflows before deploying it to production.
Degradation of the agent
Determine why the agent's performance deteriorates after adding new layers of prompts or memory systems.
Error in production wrapper
Investigate why the model works in the playground but fails inside the production wrapper.
Hidden Repair Loops
Detects additional LLM passes or silent mutations that alter responses without an explicit contract.

Usage examples

🔍 Search for anti-patterns
Search my code for calls to tools that are only defined in the prompt but not enforced in the code.
🧠 Memory Assessment
The agent's performance deteriorates after several shifts: content from old conversations appears in new responses. Audit the memory system.
🔧 Production Failure
The model works in the playground but fails inside the production wrapper. Diagnose the agent architecture.
🕵️ Hidden repair loop
I suspect there's a second pass by the LLM that modifies the responses before they're returned. It detects fallback or re-prompt loops in the code.

Features

12-layer stack Audit every layer of the agent architecture, from the agent loop to prompt assembly and memory allocation.
Antipattern Detection Use searches with `rg` to find tool discipline violations, retry loops, and hidden fixes.
Findings with Confidence Each finding documents the symptom, failure mechanism, layer of origin, root cause, and confidence level (0.0 to 1.0).
Code-Centric Review Prioritize code-based solutions over prompt tweaks: push tools to their limits, eliminate hidden fixes, and reduce context duplication.
Structured Report Generate a JSON schema with an executive summary, findings prioritized by severity, and a step-by-step remediation plan.

Frequently asked questions

Access to the agent system's source code (agent loop, tool router, prompt assembly), logs, and configurations. Claude will use `rg` searches to detect anti-patterns.
No. The skill generates a diagnosis and a prioritized corrective action plan. You or your team decide how to implement the changes.
This is the skill's reference model for classifying the source of each error: it ranges from the agent loop and the tool router to prompt assembly, memory, and final rendering.
Yes, as long as the system uses LLMs, tools, or multi-step workflows. The skill is framework-agnostic and focuses on detectable code patterns.
AI Agent Architecture Audit — LLM System Diagnosis with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.