본문으로 건너뛰기
Skillpedia
에이전트280k · #127

agent-architecture-audit

하는 일

이 도구는 제대로 작동하지 않는 것처럼 보이는 AI 시스템의 문제를 찾아 고치는 데 도움을 줍니다. 시스템의 여러 부분을 살펴 오류가 어디서 생기는지 찾아냅니다.

사용하는 경우

  • ✓업데이트 후 AI 기능이 실패하기 시작할 때.
  • ✓AI가 잘못되었거나 일관성 없는 답을 할 때.
  • ✓사용자에게 답이 전달되기 전에 내부에서 무언가가 답을 망치고 있다고 의심될 때.

스킬 링크

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-architecture-audit/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-architecture-audit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“새 도구를 추가한 뒤 제 AI 에이전트가 이상하게 답하고 있어요. 점검해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 처음 지시문부터 답이 표시되는 방식까지 여러 계층에 걸쳐 AI 시스템을 분석합니다. 오래된 정보가 쓰이거나, 도구가 잘못 호출되거나, 중간에 답이 바뀌는 문제를 찾습니다.

기술 내용 (원본 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-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?

…

자주 묻는 질문

AI 시스템의 ‘계층’은 무엇인가요?

AI가 질문을 처리하는 단계를 말합니다. 질문을 이해하는 단계, 도구를 사용하는 단계, 대화를 기억하는 단계처럼 각 단계에 문제가 있을 수 있습니다.

AI가 시간이 지나며 왜 더 나빠질 수 있나요?

시스템의 새 부분, 예를 들어 지시문이나 메모리가 늘어나면서 기존 부분과 간섭하거나, AI가 오래된 정보를 쓰기 시작할 때 생길 수 있습니다.

‘도구 사용 규율 실패’는 무엇인가요?

AI가 주어진 도구를 언제, 어떻게 쓸지에 대한 규칙을 따르지 않는다는 뜻입니다. 필요한 도구를 무시하거나 잘못된 도구를 쓸 수 있습니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬