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
name:
agent-manifest-lint
description:
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.
license:
MIT

Agent manifest least-privilege lint

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.

Workflow

  1. 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.

  2. 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 json

    Each 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.

  3. Explain. Group the findings by rule. For each one say what the grant allows today and why it is risky, using references/rules.md.

  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. Never invent hosts, paths or commands: ask the user which ones the tool really needs.

  5. 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.

  6. Report. List the findings before and after, the changes made and anything left for a human decision.

Rules

  • Every tool permission must equal a permission declared at manifest level (AM003); every manifest permission should be used by a tool (AM004).
  • No wildcards, no root 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.
  • The linter checks structure and least privilege. It does not prove that a tool behaves safely and it does not run the agent.

Reference implementation and tests: https://github.com/Trysac/u224-agent-manifest-lint

Workspace
trysac
Visibility
Public
Created
Last updated
Source
CLI
Repository
No repository linked. Set repository in the plugin manifest, or publish from a GitHub Action to verify it.
Badge
trysac/agent-manifest-lint badge