一键导入
yomi-react-instrumentation
Add focused Yomi trace points so AI coding agents can inspect React action, state, effect, render, cache, and lifecycle history.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add focused Yomi trace points so AI coding agents can inspect React action, state, effect, render, cache, and lifecycle history.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | yomi-react-instrumentation |
| description | Add focused Yomi trace points so AI coding agents can inspect React action, state, effect, render, cache, and lifecycle history. |
| allowed-tools | Bash(yomi *) Read Grep Glob |
Use this skill when a React bug depends on event ordering or runtime history and the existing Yomi graph, repair brief, browser observation, or verifier trace is not enough to prove the cause.
This skill should usually be used after yomi-react-repair identifies a likely behavior owner. Instrumentation is evidence gathering, not the default first step for every UI bug.
yomi index --force.yomi repair "<visible UI label>" and identify the smallest behavior path.yomi plan-trace "<visible UI label>" when the minimum trace targets are not obvious.instrumentCommand when it fits the repair evidence.yomi instrument <graph-node-id> before hand-editing adapter calls.yomi instrument <first-id> --targets id-a,id-b,id-c when adding multiple trace points in one source snapshot.--apply.yomi plan-trace "<visible UI label>" over manually choosing graph ids when the repair path includes multiple actions, state owners, effects, cache operations, forms, stores, or render boundaries.yomi instrument before manually editing adapter calls.Instrument the visible action, request/effect owner, and state commit owner. The useful trace should show action requested, request started, response resolved, state update requested, and state committed in order.
Instrument the parent render path, suspicious key or identity owner, child component mount/unmount, and child local state. The useful trace should show whether the same logical record received a new runtime instance id.
Instrument the effect owner and the rendered component. The useful trace should show effect-ran, cleanup-ran, mount, unmount, and render commits.
Instrument the action and cache operation when static data-path evidence is not enough. For TanStack Query operations, prefer the Yomi query adapter path instead of hand-written generic trace calls.
Use the @isamisushi/yomi/react adapter for React behavior:
createYomiAction(...)useYomiTraceEffect(...)useYomiRenderTrace(...)useYomiTracedState(...)useYomiExternalStoreTrace(...)traceYomiReduxAction(...)useYomiReduxSelectorTrace(...)useYomiFormFieldTrace(...)recordRuntimeTrace(...)Use the @isamisushi/yomi/tanstack-query adapter for TanStack Query cache operations:
createYomiTanStackQueryClient(...)traceTanStackQueryOperation(...)Use the generated command-reference skill for exact flags and command syntax.
Use Yomi instrumentation to collect the smallest source-linked runtime trace for this React bug. Start from the current Yomi repair brief, run yomi plan-trace "<visible UI label>" if the target set is not obvious, instrument only the behavior path needed to prove action/effect/state/render ordering, run the reproducing scenario, and inspect the trace before patching behavior.