Review a site against the whole rulebook
review_siteScans every page and stylesheet in a folder, then returns an annotated critique ranked by visitor impact, with evidence, sources, and a better alternative for each finding.
Instructions
Read every page and stylesheet in a folder and return an annotated critique.
Each finding carries: WHAT was found with the evidence, WHY it matters, what it is teaching, WHO says so with a confidence tag and that source's caveat, WHERE the line is drawn, and the better MOVE. Findings are ordered by how fast a visitor would notice them and annotated the way a chess game is: ?? clocked in five seconds, ? felt but not named, ?! a habit worth dropping.
Rules that could not run are listed as prominently as the ones that failed, with the reason each one could not run. They are never counted as passes.
Use explain_rule with any rule id from the output to read the full teaching note, every source, every caveat, and what that rule measured across the corpus it was built from.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | Rule ids to leave out of this run. | |
| tier | No | Only one tier: 1, 2, 3, "floor", "honesty", "structure", "craft", "trap" or "ledger". | |
| focus | No | Only run these rule ids. Leave empty to run the whole rulebook. | |
| ignore | No | Folder or file names to skip. Defaults cover node_modules, .git, dist, build and friends. | |
| directory | Yes | Full path to the site folder, for example /Users/brian/Sites/chess-lessons. | |
| concept_site | No | Declare this an unsolicited concept page rather than a live site. A few rules are right on a real site and wrong on a concept one; they suppress themselves rather than firing wrongly. | |
| max_per_rule | No | How many times one rule may report before the rest are summarised. Default 4. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | ||
| why | No | ||
| tool | Yes | Which tool produced this. | |
| clean | No | ||
| pages | No | ||
| counts | No | ||
| status | Yes | pass = checked and clean. fail = checked and found problems. skipped = nothing was measured. error = the tool could not run. | |
| problem | No | ||
| findings | No | ||
| headline | Yes | One sentence verdict, safe to show a non-technical user. | |
| directory | No | ||
| rules_run | No | ||
| error_code | No | Set only when status is "error". | |
| files_read | No | ||
| not_checked | No | ||
| stylesheets | No | ||
| rules_available | No | ||
| missing_stylesheets | No |