Check a change against adopted rules
archprint_checkChecks the current change, including uncommitted edits, against adopted repository architecture rules and reports only violations it introduces or fixes, plus exceptions and context-file rule gaps.
Instructions
Check the current change, including uncommitted edits, against the rules this repo adopted with archprint init or generate, and report only the violations the change introduces (file, line, rule, and the evidence for the rule), plus those it fixed and any exceptions allowed with a reason in .archprint/config.json. It also lists the sentences the change adds to context files (CLAUDE.md, AGENTS.md, .cursor/rules, ...) that apply to the app and that no adopted rule quotes, marking the ones that read like rules, and the adopted rules whose sentence is no longer in its file. Use it before finishing a change. Compares with base (a branch or commit, default origin/HEAD). Read-only: the files of the base commit are copied to a temporary folder outside the repo and deleted afterwards; it runs no git hooks and changes nothing in the repo. Returns status "skipped" with the reason when the repo has not adopted rules.
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": "archprint_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | branch or commit to compare against (default origin/HEAD) | |
| path | No | repository directory where archprint was set up, on this machine (default ".") |