CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/agent-manifest-lint

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.

Quality

97%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

rules.mdreferences/

Rules AM001 to AM009

Findings are sorted by pointer in document order, then by rule. A pointer escapes ~ as ~0 and / as ~1.

RuleSeverityMeaning
AM001errorA required field is missing or invalid, tools is empty or has more than 128 entries, or a tool object is invalid.
AM002errorA manifest-level permission has * in its value, or is fs:read:/ or fs:write:/.
AM003errorA tool permission is not exactly equal to a manifest-level permission.
AM004warningA manifest-level permission is not used by any tool.
AM005errorA tool name is duplicated; the pointer is the later occurrence.
AM006errorAn env entry is not a valid variable name. An entry with = means a value was pasted; it is never echoed.
AM007errorA permission is not a string or has invalid syntax (the message quotes at most 64 characters).
AM008errorAn fs:write permission targets /, /etc, /usr, /bin, /sbin, /boot, /sys, /proc, /root, anything under them, a path with a .. segment, or a path containing /.ssh. Paths are normalised first, so //etc/passwd and /./etc/passwd are caught.
AM009warningA tool description is shorter than 10 characters.

How to fix each rule

  • AM001. Add or correct the field. A manifest without tools is invalid; remove the agent instead of leaving an empty list.
  • AM002. Replace the wildcard with the exact host, command or folder the tool needs, for example net:* becomes net:api.example.com and fs:read:/ becomes fs:read:/workspace/docs. Ask the user for the real value.
  • AM003. Either declare the grant at manifest level (if the tool really needs it) or remove it from the tool. Never widen a grant just to silence the error.
  • AM004. Remove the unused grant. Unused grants are standing access that nothing needs.
  • AM005. Rename one tool or merge the two; names must be unique so each grant maps to one tool.
  • AM006. Keep only the variable name. Rotate the exposed secret and inject the value at run time outside the manifest.
  • AM007. Rewrite the string in one of the four documented forms.
  • AM008. Point the write permission to one folder owned by the agent, such as fs:write:/workspace/out; never to system folders, .. paths or .ssh.
  • AM009. Describe what the tool does and what it touches in at least one clear sentence; the description is what a reviewer reads.

Least-privilege habits the rules enforce

  1. Grant per tool, and only declare at agent level what some tool uses.
  2. Name exact hosts, commands and folders; no wildcards.
  3. Prefer read over write, and a narrow folder over a parent folder.
  4. Keep secrets out of the manifest; list variable names only.

SKILL.md

tile.json