elliotjlt/claude-skill-potions/elliotjlt-agent-audit
Claude Code and agent skill by elliotjlt/claude-skill-potions
- community
Checking that the SKILL.md file is still in the repository.
When reviewing, optimizing, or inheriting an LLM agent, systematically identify what's actually load-bearing vs. cruft. Instruments usage, ablates components, and strips the agent to minimum viable form. Answers: "What can we remove without degrading quality?" The goal is the leanest agent that still works.
Install
npx vskill@latest install elliotjlt/claude-skill-potions/elliotjlt-agent-auditSKILL.md
Agent Audit
<purpose> Most agents are over-engineered. Built for edge cases that never happen. Stuffed with tools that never get called. System prompts bloated with instructions that don't affect behavior. Running on expensive models for tasks that don't need them.
This skill treats agent optimization like dead code elimination: instrument, measure, identify what's actually used, strip the rest. The goal isn't "what could be useful" but "what's actually necessary." </purpose>
When To Activate
Trigger when:
- Inheriting or reviewing an existing agent
- Agent costs are higher than expected
- Agent is slower than it should be
- "Can we make this cheaper/faster without breaking it?"
- Preparing for production deployment
- Refactoring agent architecture
The Audit Framework
<framework>
</framework>
Instructions
Step 1: Instrument the Agent
Before optimizing, understand current behavior. Add logging for:
Step 2: Measure Baseline
Run representative workload and capture metrics:
Step 3: Identify Audit Targets
Look for waste in these categories:
<audit-targets> Unused Tools
Question: Is the 0.3% use case worth the context cost of having the tool?
Bloated System Prompt
Over-Tiered Models
Potential savings: 85% of tasks could use cheaper model.
Unnecessary Context
Defensive Code That Never Fires
</audit-targets>
Step 4: Ablation Testing
For each removal candidate, test impact:
Step 5: Strip and Verify
Apply removals incrementally:
Output Format
After audit, produce:
The Minimum Viable Agent Test
<mva-test> Ask these questions:
- Tools: If this tool was never called in 1000 tasks, why is it here?
- System prompt: If I delete this paragraph, does output quality change?
- Model tier: Could a dumber model handle this specific subtask?
- Context: Is this information actually used, or just "might be useful"?
- Error handling: Has this error path ever fired in production?
- Features: Is this solving a real problem or an imagined one?
The MVA is the agent where every component has earned its place through demonstrated necessity, not speculative usefulness. </mva-test>
NEVER
- Remove components without ablation testing
- Optimize based on intuition instead of measurement
- Strip in production without staged rollout
- Assume "might need it" justifies the cost
- Ignore the eval suite - it's your safety net
- Conflate "used rarely" with "not needed" (some rare cases are critical)
ALWAYS
- Instrument before optimizing
- Measure baseline before changes
- Ablate one component at a time
- Verify with eval suite after each removal
- Document what was removed and why
- Keep the "before" config for rollback
- Consider: is the rare case worth the constant cost?
Examples
Example 1: Tool Audit
Example 2: Model Tiering
Example 3: System Prompt Trim
<failed-attempts> What DOESN'T work:
- Removing without measuring: "We probably don't need this" → broke critical edge case
- Optimizing the wrong thing: Spent days on prompt when model tier was the cost driver
- Over-trimming system prompt: Removed "obvious" instructions, quality tanked
- Ignoring rare but critical paths: 0.1% of tasks were high-value, removed their tool
- A/B testing in production without eval suite: No way to detect regression
- Assuming all tasks are equal: Optimized for volume, degraded high-value tasks
- One big strip: Changed 10 things, something broke, couldn't identify what
- Trusting intuition over data: "This tool seems important" - it wasn't called once
</failed-attempts>
Why This Skill Exists
Every agent accumulates cruft. Features added "just in case." Tools for use cases that never materialized. System prompt sections copy-pasted from templates. Models chosen for capability ceiling, not actual need.
The result: agents that cost 3x what they should, run 2x slower than they could, and carry context debt that crowds out actual useful information.
This skill is the discipline of asking "prove it's necessary" instead of "prove we can remove it." The minimum viable agent isn't the starting point - it's the goal you iterate toward by removing everything that doesn't earn its place.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 40 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-audit/SKILL.md
Popularity
- Repository stars
- 54
- Repository forks
- 2
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 8 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/elliotjlt/claude-skill-potions/elliotjlt-agent-audit)