agent-architecture-audit
Что он делает
Этот инструмент помогает найти и исправить проблемы в ИИ-системах, которые работают некорректно. Он проверяет разные части системы, чтобы определить, где возникает ошибка.
Когда использовать
- ✓Когда ИИ-функция начинает работать с ошибками после обновлений.
- ✓Когда ИИ дает неверные или противоречивые ответы.
- ✓Когда вы подозреваете, что что-то внутри системы ломает ответ еще до того, как он попадает к пользователю.
Ссылка на скилл
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-architecture-audit/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проведи аудит моего ИИ-агента, после того как я добавил новые инструменты, он начал странно отвечать.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Инструмент анализирует ИИ-систему по нескольким уровням: от исходных инструкций до того, как ответ выводится на экран. Он ищет такие проблемы, как использование устаревшей информации, неправильный вызов инструментов или искажение ответа по дороге.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
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-revieworsecurity-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?
…
Частые вопросы
Что такое «уровни» в ИИ-системе?
Представьте уровни как этапы, через которые ИИ проходит, обрабатывая вопрос. На каждом этапе (например, понимание вопроса, использование инструмента, запоминание прошлых диалогов) может возникнуть проблема.
Почему ИИ может со временем работать хуже?
Так бывает, если новые части системы (например, дополнительные инструкции или память) мешают старым или если ИИ начинает использовать устаревшие данные.
Что означает «сбой дисциплины использования инструментов»?
Это значит, что ИИ не следует правилам о том, когда и как использовать доступные ему инструменты. Он может проигнорировать нужный инструмент или выбрать не тот.
Подробности
Оригинальное описание автора
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 misbehave
repo: affaan-m/ECC
Популярность
- Звёзды на GitHub
- 280k
- Место в рейтинге
- #127
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
accessibility
280kПомогает агенту создавать интерфейсы, которыми может пользоваться каждый. Следит, чтобы сайты и приложения работали для людей с нарушениями зрения или моторики.
agent-eval
280kПомогает агенту сравнивать ИИ-инструменты для программирования. Измеряет, какой быстрее, дешевле и надёжнее для конкретных задач.
agent-harness-construction
280kПомогает агенту лучше понимать, как выполнять задачи. Оптимизирует инструменты и инструкции агента, чтобы повысить шансы на успех.
agent-introspection-debugging
280kПомогает агенту исправлять себя, когда что-то идёт не так. Разбирает сбой, чтобы понять причину и найти решение, а не просто пробовать снова.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.