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
Check an agent manifest for over-broad permissions and fix it so every grant is specific, declared and used. This skill is defensive and applies only to manifests the user owns or is authorised to review.
Locate the manifest. Ask for the path of the JSON manifest. It must follow the format in references/manifest-format.md. If the user's file uses another format, map it to this one first and say so.
Lint. Run the bundled script from this skill folder (Python 3.10+, standard library only, no network):
python3 scripts/lint_manifest.py <manifest.json> --format jsonEach finding has rule, severity, pointer (RFC 6901 JSON Pointer) and message. Exit code 0 means no errors (warnings allowed), 1 means at least one error, 2 means a usage, file or JSON problem.
Explain. Group the findings by rule. For each one say what the grant allows today and why it is risky, using references/rules.md.
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. Never invent hosts, paths or commands: ask the user which ones the tool really needs.
Re-lint. Run the script again and repeat until exit code 0. Warnings (AM004 unused grant, AM009 short description) can stay only if the user decides so.
Report. List the findings before and after, the changes made and anything left for a human decision.
fs:read:/ or fs:write:/, no write access to system paths or .ssh (AM002, AM008).env holds variable names only. If a value was pasted into the manifest (AM006), tell the user to rotate that secret and never repeat it.Reference implementation and tests: https://github.com/Trysac/u224-agent-manifest-lint