agent-architecture-audit
Full-stack diagnostic for agent and LLM applications.
Skill by leecyno1
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/leecyno1-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: not checked yet.
What's inside
- Skill name
agent-architecture-audit- Description
- 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.
- License
- MIT
- Metadata
- origin: oh-my-agent-check
- Instructions
- 251 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- SOURCE.txt
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 leecyno1/boutique-skills, MIT.
More from leecyno1/boutique-skills
- 0.587score
agent-reach
leecyno1
MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g.
SkillBFreshness: B★ 6Claude Code +9 - 0.573score
a-stock-data
leecyno1
当任务需要写代码实际获取A股数据时使用——拉取行情/K线(mootdx+腾讯+百度)、研报(东财+同花顺+iwencai)、信号(热点/北向/龙虎榜/解禁/行业)、资金面(融资融券/大宗/股东户数/分红/资金流)、新闻、财务三表/F10、公告(巨潮)、打板(涨停池/连板/炸板率/重点监控池/日内异动)、ETF期权(T…
SkillBFreshness: B★ 6Claude Code +9 - 0.537score
agentmail
leecyno1
Give AI agents their own email inboxes using the AgentMail API.
SkillCFreshness: C★ 6Claude Code +9 - 0.537score
agent-browser
leecyno1
Headless browser automation CLI for AI agents.
SkillCFreshness: C★ 6Claude Code +9 - 0.537score
agent-builder
leecyno1
Build high-performing OpenClaw agents end-to-end.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
agentmail-mcp
leecyno1
AgentMail MCP server for email tools in AI assistants.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
agentmail-toolkit
leecyno1
Add email capabilities to AI agents using popular frameworks.
SkillCFreshness: C★ 6Claude Code +9 - 0.527score
agentmail
leecyno1
Send and receive emails programmatically using the AgentMail API via CLI
SkillCFreshness: C★ 6Claude Code +9
Signals
- Stars
- 6
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 19, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/leecyno1/boutique-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.603score
agent-architecture-audit
nguyentrunghieutcu
Full-stack diagnostic for agent and LLM applications.
SkillBFreshness: B★ 19Claude Code +9 - 0.356score
agent-architecture-audit
unrealandychan
Full-stack diagnostic for agent and LLM applications.
SkillBFreshness: B★ 12Claude Code +9 - 0.352score
agent-architecture-audit
wasdqwerty81972
Full-stack diagnostic for agent and LLM applications.
SkillAFreshness: A★ 1Claude Code +9 - 0.339score
agent-architecture-audit
mdnaimul22
Full-stack diagnostic for agent and LLM applications.
SkillBFreshness: B★ 3Claude Code +9 - 0.336score
agent-architecture-audit
devadathdev
Full-stack diagnostic for agent and LLM applications.
SkillAFreshness: AClaude Code +9 - 0.336score
agent-architecture-audit
albertstarfield
Full-stack diagnostic for agent and LLM applications.
SkillAFreshness: AClaude Code +9 - 0.331score
agent-architecture-audit
JunMystery
Full-stack diagnostic for agent and LLM applications.
SkillAFreshness: AClaude Code +9
More from leecyno1
- 0.587score
agent-reach
leecyno1
MUST USE when user wants to 调研/research/搜索/search/查/找/look up anything on the internet — e.g.
SkillBFreshness: B★ 6Claude Code +9 - 0.584score
dasheng-stage-publish-video
leecyno1
Use when entering publish stage and needing the mandatory pre-publish video supplement, including interactive chart videos and motion narrative videos with…
SkillBFreshness: B★ 5Claude Code +9 - 0.584score
dasheng-sop-orchestrator
leecyno1
Use when running, resuming, or auditing the full Dasheng 8-stage media workflow with strict stage contracts and delivery outputs.
SkillBFreshness: B★ 5Claude Code +9 - 0.584score
dasheng-account-illustrations
leecyno1
Use when a WeChat article or video needs account-bound concept illustrations.
SkillBFreshness: B★ 5Claude Code +9 - 0.584score
dasheng-stage-distribute
leecyno1
Use when entering the distribute stage to publish rewritten content and videos across WeChat, Xiaohongshu, Douyin, Weibo, and X platforms using existing…
SkillBFreshness: B★ 5Claude Code +9 - 0.584score
dasheng-stage-rewrite
leecyno1
Use when generating the 4-variant rewrite set per topic with hard word-count validation, final-structure inheritance, and optional personal style DNA injection.
SkillBFreshness: B★ 5Claude 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/leecyno1-agent-architecture-audit (last updated 2026-10-24)