AI & agents
Prompt and Agent Instruction Linter
Review AI prompts and agent instructions locally for vague goals, conflicting requirements, risky permissions, missing success criteria, and weak safety boundaries.
How to use this tool
Paste the prompt, system-style instruction, agent task, or coding-agent handoff you want to review.
Check warnings about unclear goals, missing acceptance criteria, broad tool permissions, risky production actions, and weak secret-handling rules.
Copy the safer instruction template and adapt it before giving the task to an AI assistant or autonomous agent.
What makes agent instructions fail
Agents tend to fail when the task is vague, the success criteria are missing, or the instruction gives broad tool access without safety boundaries.
Conflicting directions such as `be brief` and `be exhaustive` can also make the final output harder to evaluate.
A useful instruction names the goal, source of truth, allowed actions, forbidden actions, output format, and checks that prove completion.
Safety boundaries for coding agents
Coding agents should know when to ask before destructive commands, production deploys, credential rotation, database changes, or irreversible edits.
The prompt should also explain how to handle secrets, logs, tokens, private URLs, and user data.
A good boundary does not block useful work; it makes autonomous work easier to trust.
How to use the lint score
The score is a heuristic signal, not a universal prompt quality metric.
Use high-severity findings as blockers and medium findings as improvements before handing work to an agent.
After editing the prompt, rerun the linter and check that acceptance criteria, permissions, and output format are explicit.
Examples
Risky agent handoff
This mixes production authority, vague scope, and conflicting output expectations.
InputFix production. You can deploy. Be brief but explain everything.
Safer instruction pattern
OutputGoal: fix the failing login test. Context: use the attached repo and CI log. Boundaries: ask before production changes or destructive commands. Acceptance checks: tests pass and the final answer lists verification.
FAQ
Does this use an AI model to judge my prompt?
No. The linter runs deterministic checks locally in your browser and does not send the instruction to an external AI service.
Can this guarantee an agent will behave correctly?
No. It catches common instruction problems, but agent behavior still depends on the model, tools, environment, policies, and available context.
What should every agent instruction include?
At minimum: goal, context, allowed scope, forbidden actions, secret-handling rules, output format, and acceptance checks.
Why are destructive or production actions flagged?
Autonomous agents need explicit approval boundaries before irreversible operations, production deploys, data deletion, or credential changes.