/dejavu:dejavu-error-triagefrom dejavu
Diagnoses DejaVu UnexpectedRecompositionsError, missing tag mappings, and suspicious recomposition counts in Compose UI tests. Helps explain failures or apply bounded fixes.
Ships in dejavu. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Explain when asked for diagnosis; make a bounded fix when authorized. Determine whether this is an unexpected failure or an intentionally failing budget in a tracer accuracy test. Preserve deliberately inefficient fixtures and expected errors.
Read the available error and source: expected/actual, failed tag and location, other counts, timeline and possible-cause hints. Retrieve missing context locally when possible. Truncated logs can support a provisional diagnosis; identify the missing evidence instead of blocking all work.
Separate observations from hypotheses. Equal parent/child counts suggest a cascade but do not establish causality. Dirty bits do not prove a type is unstable or one parameter is responsible; interpret them with compiler/source context. Same-value writes can be deliberate under a mutation policy.
| Observation | Investigate before changing code |
|---|---|
| Count exceeds budget | Interaction, scheduling, parent reads, parameter identity, mutation policy and budget intent |
| Equal-looking values written again | Equality and snapshot policy; structural equality cannot repair reference-only equality by itself |
| Parent and siblings have equal counts | Where state is read and which child inputs change |
| Zero or unmapped count | Node existence, lazy visibility, source information, tag mapping and lifecycle |
| Changed UI with zero tracked updates | Disabled/lost tracing, including mixed Android-rule/KMP-helper lifetime; stable is not proof |
| Only Wasm misses the failure | Returned TestResult, assertions inside helper body and awaited cleanup |
| Invalid assertion arguments | Mutually exclusive or negative bounds in the test |
Do not prescribe @Stable or @Immutable from a hint. They are contracts: mutable
fields or collections can make the promise false and hide UI updates. List keys
and CompositionLocal are not universal count fixes. Confirm the mechanism.
Change the smallest demonstrated cause of a real regression. Preserve UI behavior
and existing assertions. For accuracy tests, compare DejaVu with a separate
unkeyed SideEffect counter; the high count may be correct. Don't raise a budget
or optimize the fixture to hide a tracer defect.
Re-run the failing actual UI test after a fix. For review-only work, explain the proposed verification without editing or claiming a run. Report evidence, confidence, change (if any), and result. Companions are optional, not mandatory handoffs.
More detail: error anatomy and causality limits.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mttmcknn/dejavu --plugin dejavu4 skills in this plugin
/dejavu-onboardingInstall DejaVu and prove recomposition tracking in an Android or Compose Multiplatform project that does not have it yet. Use for dependency, compatibility, compiler source information, test host, or first-test setup. For an already configured project, use test writing or failure triage instead./dejavu-perf-loopMeasure and reduce unnecessary recompositions in application code using DejaVu tests, preserving UI behavior and an agreed performance budget. Use when asked to optimize or iteratively tighten a recomposition budget. Do not optimize deliberate tracer accuracy fixtures or turn a diagnosis-only request into edits./dejavu-test-writerWrite or extend DejaVu recomposition assertions in an existing Compose UI test setup, including Android instrumentation and KMP common tests. Use for regression coverage, independent counter accuracy tests, and Compose-version behavior tests. A request only to explain a failure belongs to triage; installing missing dependencies belongs to onboarding.Other plugins' skills for the same job