agent-auditlisted
Install: claude install-skill arm-pz/caffeinity-skills
# agent-audit
An agent is a model using tools in a loop. When one fails in production, the model is rarely
the cause; usually a layer around it is missing: nothing caps the loop, every tool is granted,
nothing is remembered between runs, and "be careful" stands in for an approval step. This skill
checks an agent for each layer and writes down what is missing, with evidence from the file.
## Intake
Find the agent files before asking anything:
- Claude Code: `.claude/agents/*.md`, `~/.claude/agents/*.md`, and `agents/*.md` inside any
folder that has `.claude-plugin/plugin.json` (a plugin agent).
- Other frameworks: the system prompt plus the code that sets tools, turn limits and approvals
(`Agent(...)` in the OpenAI Agents SDK, a LangGraph graph, an n8n workflow).
Then ask in one message, only for what the files cannot tell you: what the agent is for, who
runs it, and which of its actions reach outside (send, publish, delete, spend). If the user
gives no answer, say what you assumed.
If a file says it is generated ("Generated by ...", "do not edit"), find the generator and its
sources now. Every fix goes there, never into the generated file.
## Workflow
1. **Lint.** For Claude Code agent files run:
python scripts/check_agent.py <agent files or folders>
It fails on what Claude Code would misread (an unknown or misspelled field is silently
ignored, an invalid model, color, memory or maxTurns value) and warns on missing layers: no
tool boundary, no `m