← ClaudeAtlas

agent-auditlisted

Audits an AI agent definition (a Claude Code subagent, a plugin's agents, or another framework's agent prompt and config) against the seven layers a production agent needs: model, instructions, tools, memory, loop, guardrails and human approval. A script lints Claude Code agent files for misspelled or ignored fields, no loop cap, no tool boundary and no approval rule; the rest is judged from the file with quoted evidence. Returns one finding per gap with the smallest fix, applies the fixes on request (editing the generator's sources when the agent is generated), and writes delegation test cases. Use when someone asks to review, audit, harden or improve their agents or subagents, asks why an agent misbehaves in production, loops, acts without asking or never gets picked, or wants an agent made production-ready, even if they never say "audit". Not for SKILL.md files (use tune-skill), designing a new agent team (use ai-team-blueprint), building a new skill from an idea (use skill-builder), reviewing ordinary cod
arm-pz/caffeinity-skills · ★ 0 · AI & Automation · score 68
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