CLI Reference
Yomi's CLI is built with Crust.
During local development, run commands through:
npm run yomi -- <command>Without a global install:
npx @isamisushi/yomi@latest <command>After global or project-local package installation, the intended command is:
yomi <command>Output Contract
Commands should return JSON that is easy for coding agents to consume.
Successful commands:
{ "ok": true, "data": {} }Failed commands:
{ "ok": false, "error": { "name": "Error", "message": "..." } }Agents should not need to scrape stack traces or prose.
Core Commands
index
Build a source-linked frontend graph.
yomi index
yomi index --force
yomi index --project fixtures/react-repair-benchmark --force
yomi index --demo --output .yomi/demo-graph.jsonrepair
Return an agent-facing repair contract from a visible UI label or graph node id.
yomi repair "Customer search"
yomi repair "Customer search" --project fixtures/react-repair-benchmarkWith a browser scenario:
yomi repair "Customer search" \
--scenarioFile fixtures/scenarios/customer-search-consistency-graph.json \
--url http://127.0.0.1:5173plan-trace
Return a repair-oriented instrumentation plan from a visible UI label or graph node id.
yomi plan-trace "Customer search"
yomi plan-trace "Customer search" --project fixtures/react-repair-benchmarkUse this between repair and instrument when the agent needs runtime state, effect, cache, form, store, or render history before editing. The output includes bugType, recommendedTraceTargets, and a ready instrumentCommand.
query
Run lower-level graph queries.
yomi query find-ui-node Search
yomi query component-owner search-input-node
yomi query action-path edit-query-action
yomi query data-path edit-query-action
yomi query state-owners customer-search-panel
yomi query hook-dependencies customer-search-panel
yomi query source-locations customer-search-effect
yomi query brief-from-ui "Customer search"
yomi query runtime-trace stale-responseverify
Run deterministic verifier scenarios.
yomi verify stale-response
yomi verify stale-response-fixed
yomi verify missing-effect-cleanup
yomi verify missing-effect-cleanup-fixed
yomi verify double-submit
yomi verify double-submit-fixed
yomi verify ui-validation-enforcement
yomi verify ui-validation-enforcement-fixed
yomi verify key-remount-state-loss
yomi verify key-remount-state-loss-fixed
yomi verify shared-hook-regression
yomi verify shared-hook-regression-fixed
yomi verify prop-rename-impact
yomi verify prop-rename-impact-fixedRun a browser scenario:
yomi verify browser-scenario \
--scenarioFile fixtures/scenarios/customer-search-consistency.json \
--url http://127.0.0.1:5173instrument
Propose or apply source instrumentation for a graph node.
yomi instrument <graph-node-id>
yomi instrument <graph-node-id> --applyBy default this returns a proposed patch. Use --apply only when the agent has confirmed the target.
doctor
Check whether the indexed project satisfies Yomi's minimum agent-facing repair contract.
yomi doctor
yomi doctor "Customer search"benchmark
Run the bundled React repair benchmark.
yomi benchmark react-repairexamples
List synchronized repair examples from the benchmark cases.
yomi examples react-repairexplain
Return the latest known verifier failure in repair-plan shape.
yomi explainskill
Install generated Yomi command guidance into project-local agent skill directories.
yomi skill --all --scope project
yomi skill update --all --scope projectyomi is the generated command-reference skill. yomi-react-repair and yomi-react-instrumentation are bundled workflow skills.
Package Verification Commands
npm run build:cli
npm run build:cli:package
npm run package:cli
npm run publish:npm:dry-runpackage:cli and publish:npm:dry-run build the staged npm packages, verify the installed binary and subpath exports, then run a dry-run publish. publish:npm performs the same checks before publishing.