bloat-detector
Detect the 7 types of agentic bloat in a codebase or system design
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Detect the 7 types of agentic bloat in a codebase or system design
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Estimate the carbon footprint of an agentic AI system based on its LLM usage
Generate a lean cost analysis report with model right-sizing recommendations and savings estimates
Recommend the right model tier for each LLM task type
One-line description of what this skill does and when to invoke it
Estimate token usage for LLM API calls found in code
| name | bloat-detector |
| description | Detect the 7 types of agentic bloat in a codebase or system design |
| user-invocable | true |
| argument-hint | ["file-or-directory-path"] |
| allowed-tools | Read, Grep, Glob, Write |
| model | sonnet |
Scan a codebase or system description for the 7 types of agentic bloat and produce a scored audit.
Use Grep and Read to look for evidence of these 7 bloat patterns:
1. Model Bloat — Look for hardcoded frontier model names (gpt-4, claude-opus, gemini-ultra) used for simple tasks (classification, extraction, formatting).
2. Orchestration Bloat — Count distinct agent definitions, multi-agent chains, sequential agent invocations. Flag if more than 3 agents are chained sequentially.
3. Reflection Bloat — Look for self-critique patterns: "review your output", "improve your answer", retry loops, while loops around LLM calls without exit conditions.
4. Context Bloat — Look for large system prompts (>2000 chars), full document injection, unbounded conversation history loading, many tool descriptions.
5. Tool Bloat — Count tool/function definitions per agent. Flag agents with more than 5 tools.
6. Memory Bloat — Look for unbounded storage: missing TTLs, "store everything", no cleanup/expiry logic, full transcript storage.
7. Retrieval Bloat — Look for RAG pipelines that run on every query without gating: always-on vector search, no relevance thresholds, no caching of retrieval results.
Score each bloat type 0-3:
Write a report to reports/bloat-audit.md with:
Report saved to reports/bloat-audit.md
Input: A project with 5 chained agents all using GPT-4, no caching, 10 tools per agent. Output:
Model Bloat: 3/3 — All 5 agents use frontier model for mixed tasks
Orchestration Bloat: 2/3 — 5 agents chained, 2 could be merged
Tool Bloat: 3/3 — 10 tools per agent, most unused
Total: 15/21 — SEVERE bloat. Start with model routing and tool pruning.