Askr projects ship with one recovery loop for humans, CI, and AI agents:
askr doctor
askr repair
askr checkdoctor performs a read-only health inspection. It checks:
- the active Node version against the CLI support range;
- package-manager declaration and lockfile consistency;
@askrjs/askrdeclarations in source workspaces;- presence and byte-level freshness of project-local Askr agent skills;
- all
askr analyze --checkdiagnostics.
Warnings are advisory. Environment, package-manager, framework dependency, and
analysis errors make the command exit 1.
askr doctor
askr doctor --cwd ./apps/web
askr doctor --jsonrepair applies the analyzer's explicitly safe fixes as one transaction, runs
analysis again, and reports semantic findings that still require judgment.
askr repair
askr repair --workspace "@example/web"
askr repair --jsonRoute-parameter conversion and plain-JSON JSX runtime configuration are safe
fixes today. Moving lifecycle calls, changing collection keys, and other
semantic rewrites remain report-only. Run repair again after manual edits; a
clean second run applies no changes.
check is the default completion gate in generated projects. It first runs
read-only static analysis. Blocking findings skip later work so the fastest,
most actionable failure is reported first. Once analysis is clean, it runs each
declared root script in this order:
linttypechecktestbuild
Missing scripts are ignored. The command uses the declared package manager or
the single detected lockfile and never invokes the project's check script,
which prevents recursion.
askr check
askr check --workspace "@example/web"
askr check --jsonHuman output includes child-script output and a pass/fail summary. JSON output
uses schema version 1 and contains the full analyzer report plus deterministic
script results.
When a first implementation is wrong:
askr doctor
askr repair
# review any remaining semantic diagnostics
askr checkGenerated projects expose the same loop through npm run check. Their
project-local AGENTS.md files direct agents to use askr repair and
askr check before declaring work complete.