Lint an AI agent manifest (JSON) for least privilege. Flags wildcard or root permissions, undeclared or unused tool grants, sensitive write paths and inline secrets. Use when the user asks to review, harden or fix agent or tool permissions.
97%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
The skill handles credentials insecurely by requiring the agent to include secret values verbatim in its generated output. This exposes credentials in the agent’s context and conversation history, creating a risk of data exfiltration.
The main path runs a standard-library script that reads the manifest and returns findings without echoing `env` values, but the fix branch, which edits the manifest only if the user asks, would bring the whole file, including any pasted secret, into the model's context.
[REDACTED]
secret · 2 sites
Locations are real and the described behaviour (fix branch edits the manifest only if the user asks) does occur at SKILL.md:22 and references/rules.md:24, but nothing there makes the agent EMIT a secret to visible output, so it is not a W007 site.
SKILL.md
22
4. **Fix.** Propose the narrowest change for each finding, for example replace `net:*` with the real host, replace `fs:write:/` with one project folder, declare a missing grant or delete an unused one. Edit the manifest only if the user asks, and change one thing at a time.
references/rules.md
24
- **AM006.** Keep only the variable name. Rotate the exposed secret and inject the value at run time outside the manifest.