From shipshitdev-library
Audits agent systems layer by layer for wrapper regressions, prompt/memory contamination, tool discipline failures, hidden repair loops, and output rendering corruption.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shipshitdev-library:agent-architecture-auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Diagnose failures in agent systems by inspecting each layer between the raw model call and the user-visible output.
Diagnose failures in agent systems by inspecting each layer between the raw model call and the user-visible output.
Inputs:
Outputs:
Creates/Modifies:
External Side Effects:
Confirmation Required:
Delegates To:
debug for ordinary software defectsevaluation or advanced-evaluation for benchmark designsecurity-audit for prompt injection, secrets, auth, or privileged tool riskDo not use for general code review — only when the failure is likely in the agent stack.
Audit the stack from source instructions to delivered output:
| Layer | What Can Fail |
|---|---|
| System prompt | Conflicts, bloat, stale rules, unclear priorities |
| Session history | Old turns dominate or contradict the current task |
| Long-term memory | Cross-project leakage, stale preferences, agent-written facts |
| Distillation | Compaction turns guesses into pseudo-facts |
| Active recall | Redundant summaries waste context or revive old context |
| Tool selection | Required tools are optional in code, not enforced |
| Tool execution | Missing calls, failed calls, unvalidated arguments |
| Tool interpretation | Output is ignored, overtrusted, or read backward |
| Answer shaping | Format, schema, markdown, or JSON is changed after reasoning |
| Transport/rendering | Streaming, API, CLI, or UI mutates valid content |
| Hidden repair loops | A second model pass silently rewrites the answer |
| Persistence | Cached artifacts or expired state are reused as live evidence |
Identify:
Search for:
Prefer file and line evidence. Compare raw model output, post-processed output, transported output, and rendered output when logs are available.
For each suspected issue, record:
Prefer fixes in this order:
Do not solve tool discipline, memory safety, or transport corruption only by adding stronger prompt wording.
| Severity | Meaning |
|---|---|
| Critical | The system can confidently perform wrong or unsafe operational behavior |
| High | Correctness or stability degrades frequently under normal use |
| Medium | The agent usually works, but the stack is fragile, wasteful, or hard to debug |
| Low | Maintainability, observability, or cosmetic output issues |
Lead with findings:
## Findings
| Severity | Layer | Finding | Evidence | Fix |
| --- | --- | --- | --- | --- |
| High | Tool selection | Required retrieval is prompt-only and can be skipped | `src/agent/router.ts:42` | Gate final answer on retrieval result |
## Diagnosis
[Explain which layer corrupts the behavior and why.]
## Fix Plan
1. [Code-first fix]
2. [Validation]
3. [Follow-up hardening]
If no issues are found, say so and list the evidence checked plus remaining blind spots.
npx claudepluginhub shipshitdev/skillsRoutes gstack requests to the correct skill (planning, review, QA, shipping, debugging, docs, security, design). Invokes when user types /gstack or asks which skill to use.
Provides UI/UX design intelligence with 50+ styles, 161 color palettes, 57 font pairings, 99 UX guidelines, and 25 chart types across 10 stacks. Use for designing pages, components, or reviewing visual quality.