Aller au contenu
Skillpedia
Agents280k · #127

agent-architecture-audit

Ce qu’il fait

Cet outil vous aide à trouver et à corriger les problèmes des systèmes d'IA qui semblent mal fonctionner. Il examine les différentes parties du système pour identifier où se produit l'erreur.

Quand l’utiliser

  • ✓Lorsqu'une fonctionnalité d'IA commence à échouer après des mises à jour.
  • ✓Lorsque l'IA donne des réponses fausses ou incohérentes.
  • ✓Lorsque vous soupçonnez qu'un élément interne altère la réponse avant qu'elle n'arrive à l'utilisateur.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-architecture-audit/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Audite mon agent IA, il répond bizarrement depuis que j'ai ajouté de nouveaux outils.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Il analyse le système d'IA à plusieurs niveaux, depuis les instructions initiales jusqu'à l'affichage de la réponse. Il recherche des problèmes comme l'utilisation d'informations périmées, des outils appelés de façon incorrecte ou une réponse modifiée en cours de route.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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?

…

Questions fréquentes

Que sont les « niveaux » d'un système d'IA ?

Imaginez les niveaux comme les différentes étapes du traitement d'une question par l'IA. Chaque étape (comprendre la question, utiliser un outil, se souvenir des conversations passées) peut présenter un problème.

Pourquoi une IA peut-elle « se dégrader » avec le temps ?

Cela peut arriver si de nouveaux éléments du système (davantage d'instructions ou de mémoire) perturbent les anciens, ou si l'IA se met à utiliser des informations dépassées.

Que signifie « défaillance de discipline d'outils » ?

Cela signifie que l'IA ne respecte pas les règles sur le moment et la manière d'utiliser les outils qui lui ont été donnés. Elle peut ignorer un outil nécessaire ou utiliser le mauvais.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
280k
Position au classement
#127
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires