You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**If specific interaction type is slow (e.g., keyboard)** → Focus analysis on that interaction type
165
+
-**After INP data is collected** → call `getINPDetails()` for the full sorted interaction list (useful for identifying patterns across multiple slow interactions)
166
+
167
+
### Error Recovery
168
+
169
+
-**If any script returns `status: "error"`** → Check if the page has finished loading:
170
+
- If early in load: wait and re-run the script
171
+
- If page is an SPA: user may need to navigate to the target route first
172
+
-**If LCP.js / LCP-Sub-Parts.js returns `status: "error"`** → Tell the user: "LCP data is not available yet. Please ensure the page has fully loaded, then run the analysis again."
173
+
-**If INP.js `getINP()` returns `status: "error"`** → The `getDataFn: "getINP"` field signals the agent can retry after user interaction. Prompt the user to click, type, or scroll, then call `getINP()` again.
166
174
167
175
### Cross-Skill Triggers
168
176
177
+
> **Context fork note:** This skill runs with `context: fork`. Cross-skill triggers below are **recommendations to report back to the parent agent**, not direct calls this subagent can execute. When a cross-skill trigger fires, tell the user which skill and script to run next. Scripts marked _(pending)_ are not yet available — skip them and note the limitation.
178
+
169
179
These triggers recommend using snippets from other skills:
170
180
171
181
#### From LCP to Loading Skill
@@ -223,6 +233,4 @@ When multiple CWV metrics are poor, prioritize investigation:
223
233
## References
224
234
225
235
-`references/snippets.md` — Descriptions and thresholds for each script
226
-
-`references/schema.md` — Return value schema for interpreting script output
227
-
228
-
> Execute via `mcp__chrome-devtools__evaluate_script` → read with `mcp__chrome-devtools__get_console_message`.
236
+
-`references/schema.md` — Return value schema for interpreting script output
"message":"CLS tracking active. Call getCLS() for updated value after page interactions.",
200
+
"getDataFn":"getCLS"
198
201
}
199
202
```
203
+
`getCLS()` returns the same shape with the latest accumulated value.
200
204
201
205
#### INP (tracking)
202
206
```json
@@ -224,6 +228,15 @@ Keep the existing `async () => {}` wrapper. Add a `return` statement with struct
224
228
}
225
229
}
226
230
```
231
+
If no interactions yet, `getINP()` returns `status:"error"` with `getDataFn:"getINP"` — retry after user interaction.
232
+
233
+
`getINPDetails()` returns the full sorted interaction list (array of up to 15 entries). Use when `getINP()` shows poor INP and you need to identify patterns across multiple slow interactions:
0 commit comments