Langsung ke konten
Skillpedia
Agen280k Β· #127

agent-architecture-audit

Fungsinya

Alat ini membantu menemukan dan memperbaiki masalah pada sistem AI yang tampaknya tidak berfungsi dengan baik. Alat ini memeriksa setiap bagian sistem untuk mengidentifikasi di mana kesalahan terjadi.

Kapan dipakai

  • βœ“Saat fitur AI mulai gagal setelah pembaruan.
  • βœ“Saat AI memberikan jawaban yang salah atau tidak konsisten.
  • βœ“Saat Anda menduga ada sesuatu di dalam sistem yang merusak respons sebelum sampai ke pengguna.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-architecture-audit/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œAudit agent AI saya, responsnya jadi aneh setelah saya menambahkan tool baru.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini menganalisis sistem AI dari berbagai lapisan, mulai dari instruksi awal hingga cara respons ditampilkan. Alat ini mencari masalah seperti informasi lama yang digunakan, tool yang dipanggil secara keliru, atau respons yang berubah di tengah proses.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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?

…

Pertanyaan umum

Apa itu 'lapisan' dalam sistem AI?

Anggap lapisan sebagai tahapan berbeda dalam proses AI memahami sebuah pertanyaan. Setiap tahap (seperti memahami pertanyaan, menggunakan tool, atau mengingat percakapan sebelumnya) bisa mengalami masalah.

Mengapa AI bisa 'semakin buruk' seiring waktu?

Hal ini bisa terjadi jika bagian baru dalam sistem (seperti instruksi atau memori tambahan) mengganggu bagian lama, atau jika AI mulai menggunakan informasi yang sudah usang.

Apa arti 'tool discipline failure'?

Artinya AI tidak mengikuti aturan tentang kapan dan bagaimana menggunakan tool yang diberikan. Ia mungkin mengabaikan tool yang diperlukan atau menggunakan tool yang salah.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
280k
Peringkat
#127
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa