agent-architecture-audit
Full-stack diagnostic that audits the 12-layer agent stack for wrapper regression, memory pollution, tool-discipline failures, hidden repair loops, and…
Skill by Sheshiyer
Chalk Labs
Need help deploying agent-architecture-audit?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sheshiyer-agent-architecture-audit
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, security, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agent-architecture-audit
What's inside
- Skill name
agent-architecture-audit- Description
- Full-stack diagnostic that audits the 12-layer agent stack for wrapper regression, memory pollution, tool-discipline failures, hidden repair loops, and rendering corruption, producing severity-ranked code-first fixes. USE WHEN debugging or reviewing agent, autonomous-loop, or LLM-powered apps.
- License
- MIT
- Instructions
- 251 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Agent Architecture Audit A diagnostic workflow for agent systems that hide failures behind wrapper layers, stale memory, retry loops, or transport/rendering mutations. ## When to Activate **MANDATORY for:** - Releasing any agent or LLM-powered application to production - Shipping features with tool calling, memory, or multi-step workflows - Agent behavior degrades after adding wrapper layers - User reports "the agent is getting worse" or "tools are flaky" - Same model works in playground but breaks inside your wrapper - Debugging agent behavior for more than 15 minutes without finding root cause **Especially critical when:** - You've added new prompt layers, tool definitions, or memory systems - Different agents in your system behave inconsistently - The model was fine yesterday but is hallucinating today - You suspect hidden repair/retry loops silently mutating responses **Do not use for:** - General code debugging — use `agent-introspection-debugging` - Code review — use language-specific reviewer agents - Security scanning — use `security-review` or `security-review/scan` - Agent performance benchmarking — use `agent-eval` - Writing new features — use the appropriate workflow skill ## The 12-Layer Stack Every agent system has these layers. Any of them can corrupt the answer: | # | Layer | What Goes Wrong | |---|-------|----------------| | 1 | System prompt | Conflicting instructions, instruction bloat | | 2 | Session history | Stale context injection from previous turns | | 3 | Long-term memory | Pollution across sessions, old topics in new conversations | | 4 | Distillation | Compressed artifacts re-entering as pseudo-facts | | 5 | Active recall | Redundant re-summary layers wasting context | | 6 | Tool selection | Wrong tool routing, model skips required tools | | 7 | Tool execution | Hallucinated execution — claims to call but doesn't | | 8 | Tool interpretation | Misread or ignored tool output | | 9 | Answer shaping | Format corruption in final response | | 10 | Platform rendering | Transport-layer mutation (UI, API, CLI mutates valid answers) | | 11 | Hidden repair loops | Silent fallback/retry agents running second LLM pass | | 12 | Persistence | Expired state or cached artifacts reused as live evidence | ## Common Failure Patterns ### 1. Wrapper Regression The base model produces correct answers, but the wrapper layers make it worse. **Symptoms:** - Model works fine in playground or direct API call, breaks in your agent - Added a new prompt layer, existing behavior degraded - Agent sounds confident but is confidently wrong - "It was working before the last update" ### 2. Memory Contamination Old topics leak into new conversations through history, memory retrieval, or distillation. **Symptoms:** - Agent brings up unrelated past topics - User corrections don't stick (old memory overwrites new) - Same-session artifacts re-enter as pseudo-facts - Memory grows without bound, degrading response quality over time ### 3. Tool Discipline Failure Tools are declared in the prompt but not enforced in code. The model skips them or hallucinates execution. **Symptoms:** - "Must use tool X" in prompt, but model answers without calling it - Tool results look correct but were never actually executed - Different tools fight over the same responsibility - Model uses tool when it shouldn't, or skips it when it must ### 4. Rendering/Transport Corruption The agent's internal answer is correct, but the platform layer mutates it during delivery. **Symptoms:** - Logs show correct answer, user sees broken output - Markdown rendering, JSON parsing, or streaming fragments corrupt valid responses - Hidden fallback agent quietly replaces the answer before delivery - Output differs between terminal and UI ### 5. Hidden Agent Layers Silent repair, retry, summarization, or recall agents run without explicit contracts. **Symptoms:** - Output changes between internal generation and user delivery - "Auto-fix" loops run a second LLM pass the user doesn't know about - Multiple agents modify the same output without coordination - Answers get "smoothed" or "corrected" by invisible layers ## Audit Workflow ### Phase 1: Scope Define what you're auditing: - **Target system** — what agent application? - **Entrypoints** — how do users interact with it? - **Model stack** — which LLM(s) and providers? - **Symptoms** — what does the user report? - **Time window** — when did it start? - **Layers to audit** — which of the 12 layers apply? ### Phase 2: Evidence Collection Gather evidence from the codebase: - **Source code** — agent loop, tool router, memory admission, prompt assembly - **Logs** — historical session traces, tool call records - **Config** — prompt templates, tool schemas, provider settings - **Memory files** — SOPs, knowledge bases, session archives
From Sheshiyer/skill-clusters, MIT.
More from Sheshiyer/skill-clusters
- 0.474score
agentic-os
Sheshiyer
Build persistent multi-agent operating systems on Claude Code, covering kernel architecture, specialist agents, slash commands, file-based memory, scheduled…
SkillCFreshness: CClaude Code +9 - 0.474score
adding-tauri-splashscreen
Sheshiyer
Add a Tauri splashscreen, loading screen, or startup screen to an app, covering configuration, custom splash HTML, styling, and closing the splash when ready.
SkillCFreshness: CClaude Code +9 - 0.474score
adaptability-coach
Sheshiyer
Develop adaptability in changing environments through scenario planning, fast feedback, and flexible execution.
SkillCFreshness: CClaude Code +9 - 0.474score
adding-tauri-system-tray
Sheshiyer
Implement Tauri system tray functionality including tray icon setup, tray menu creation, event handling, and runtime updates in the notification area.
SkillCFreshness: CClaude Code +9 - 0.474score
agent-eval
Sheshiyer
Run head-to-head comparisons of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks, reporting pass rate, cost, time, and consistency metrics.
SkillCFreshness: CClaude Code +9 - 0.474score
agentic-ops-orchestrator
Sheshiyer
Route a real-world operations task to the right skill among 16 agentic-ops specialists — email, messages, GitHub, Jira, Google Workspace, project flow…
SkillCFreshness: CClaude Code +9 - 0.474score
accesslint-scan
Sheshiyer
Audit a live page for accessibility issues, locate each WCAG violation precisely, and return a selector-grounded fix worklist without editing.
SkillCFreshness: CClaude Code +9 - 0.474score
agentic-ops-core
Sheshiyer
Shared reference for the agentic-ops cluster: the evidence-first operator loop (resolve surface → read live state → smallest reversible action → prove it →…
SkillCFreshness: CClaude Code +9 - 0.474score
3d-web-experience
Sheshiyer
Build 3D experiences for the web with Three.js, React Three Fiber, Spline, WebGL, and GLSL — product configurators, immersive sites, interactive scenes.
SkillCFreshness: CClaude Code +9 - 0.474score
accessibility
Sheshiyer
Design, implement, and audit inclusive digital products against WCAG 2.2 Level AA, generating semantic ARIA for Web and accessibility traits for iOS/Android.
SkillCFreshness: CClaude Code +9 - 0.474score
accesslint-audit
Sheshiyer
Find and fix WCAG 2.2 accessibility issues in code or live pages, in report mode (prioritized written audit, no edits) or fix mode (audit->edit->verify)…
SkillCFreshness: CClaude Code +9 - 0.474score
accesslint-diff
Sheshiyer
Diff a live page's accessibility violations against a baseline — by default compares uncommitted changes (stash-based), or pass --branch [<name>] to diff…
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 78
- Last commit (this folder)
- Jun 5, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Sheshiyer/skill-clusters
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Sheshiyer
- 0.474score
accessibility
Sheshiyer
Design, implement, and audit inclusive digital products against WCAG 2.2 Level AA, generating semantic ARIA for Web and accessibility traits for iOS/Android.
SkillCFreshness: CClaude Code +9 - 0.474score
accesslint-scan
Sheshiyer
Audit a live page for accessibility issues, locate each WCAG violation precisely, and return a selector-grounded fix worklist without editing.
SkillCFreshness: CClaude Code +9 - 0.474score
adding-tauri-splashscreen
Sheshiyer
Add a Tauri splashscreen, loading screen, or startup screen to an app, covering configuration, custom splash HTML, styling, and closing the splash when ready.
SkillCFreshness: CClaude Code +9 - 0.474score
agentic-ops-core
Sheshiyer
Shared reference for the agentic-ops cluster: the evidence-first operator loop (resolve surface → read live state → smallest reversible action → prove it →…
SkillCFreshness: CClaude Code +9 - 0.474score
3d-web-experience
Sheshiyer
Build 3D experiences for the web with Three.js, React Three Fiber, Spline, WebGL, and GLSL — product configurators, immersive sites, interactive scenes.
SkillCFreshness: CClaude Code +9 - 0.474score
accesslint-audit
Sheshiyer
Find and fix WCAG 2.2 accessibility issues in code or live pages, in report mode (prioritized written audit, no edits) or fix mode (audit->edit->verify)…
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get agent-architecture-audit running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
agent-architecture-audit skill. Agent Mart. https://agentmart.dev/skills/sheshiyer-agent-architecture-audit (last updated 2026-10-24)