agents_md_check
Lint agent instruction files to find non-binding, weak, duplicate, contradictory, or oversized rules, and run diff gates to flag weakened rules or missing Human-Reviewed-By trailers.
Instructions
Lint an agent instruction file (AGENTS.md, CLAUDE.md, .cursorrules, copilot-instructions.md) for rules that are not binding: missing normative keywords, weak wording, duplicated rules, contradictions, oversized files. With 'repo' + 'rev'/'base'/'staged' it runs the real diff gate instead and reports whether a commit weakens a rule or lacks the Human-Reviewed-By trailer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "agents_md_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | No | git range, e.g. HEAD~1..HEAD | |
| base | No | base ref, default origin/main | |
| path | No | instruction file to lint | |
| repo | No | repository for diff mode | |
| text | No | inline file content instead of a path | |
| staged | No | check staged changes only | |
| allow_unapproved | No | report but do not block |