Verify the rules in CLAUDE.md or AGENTS.md
archprint_gap_reportVerifies rules stated in context files (CLAUDE.md, AGENTS.md, .cursor/rules) against repository code, maps each rule to a template, and returns a gap report showing what is already enforced or broken.
Instructions
Verify the rules a repo states in its context files (CLAUDE.md, AGENTS.md, .cursor/rules, ...) against its code. Read those files, then map each rule-like sentence to one template, quoting it exactly. archprint checks the quote is in the file and the mapping matches real files, measures how many files follow or break it, and returns a gap report: enforce now, enforce with a baseline (broken today, with the files), already an archprint rule, check the mapping, or guidance only. Show the report to the user: adopting a rule is their decision. Templates, with globs relative to path in ESLint syntax: "forbid-import" (files must not import targets, path globs matched on the file an import resolves to, or packages, specifier globs, each optionally limited to named imports such as {"name": "next/cache", "imports": ["unstable_cache"]}); "forbid-usage" (files must not use a global named in usage, such as "fetch", "window" or "process.env"); "forbid-file" (no new file may match files); "inferred" (the sentence is a rule archprint_scan lists; rule is its id); "none" (no template fits; give the reason, e.g. a style rule a standard linter covers). Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mapping": "<mapping>"
},
"name": "archprint_gap_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | repository root on this machine, where the context files are (default "."), not a URL | |
| mapping | Yes | one entry per rule-like sentence |