Skip to content

Chrome DevTools for coding agents

docs(skills): remove invalid outputDir flag from lighthouse_audit calls (#3013) (#3130)

Yuri (IURII) Trukhin7754226cda15
diff --git a/skills/a11y-debugging/SKILL.md b/skills/a11y-debugging/SKILL.md
index 324c81c2..4f6354ca 100644
--- a/skills/a11y-debugging/SKILL.md
+++ b/skills/a11y-debugging/SKILL.md
@@ -19,15 +19,15 @@ Start by running a Lighthouse accessibility audit to get a comprehensive baselin
1. Run the audit:
- Set `mode` to `"navigation"` to refresh the page and capture load issues.
- - Set `outputDirPath` (e.g., `/tmp/lh-report`) to save the full JSON report.
+ - Omit `outputDirPath` to save reports to the default temporary directory (the exact path to `report.json` is returned under `Reports`), or set `outputDirPath` to a directory within the workspace.
2. **Analyze the Summary**:
- Check `scores` (0-1 scale). A score < 1 indicates violations.
- Review `audits.failed` count.
3. **Review the Report (CRITICAL)**:
- - **Parsing**: Do not read the entire file line-by-line. Use a CLI tool like `jq` or a Node.js one-liner to filter for failures:
+ - **Parsing**: Do not read the entire file line-by-line. Use a CLI tool like `jq` or a Node.js one-liner to filter for failures from the report path returned by `lighthouse_audit`:
```bash
- # Extract failing audits with their details
- node -e "const r=require('./report.json'); Object.values(r.audits).filter(a=>a.score!==null && a.score<1).forEach(a=>console.log(JSON.stringify({id:a.id, title:a.title, items:a.details?.items})))"
+ # Extract failing audits with their details (replace with report.json path from tool response)
+ node -e "const r=require('<path/to/report.json>'); Object.values(r.audits).filter(a=>a.score!==null && a.score<1).forEach(a=>console.log(JSON.stringify({id:a.id, title:a.title, items:a.details?.items})))"
```
- This efficiently extracts the `selector` and `snippet` of failing elements without loading the full report into context.
diff --git a/skills/cookie-debugging/SKILL.md b/skills/cookie-debugging/SKILL.md
index 806bd704..2a0d5663 100644
--- a/skills/cookie-debugging/SKILL.md
+++ b/skills/cookie-debugging/SKILL.md
@@ -104,10 +104,10 @@ To verify that no non-essential or tracking cookies are set before consent or wh
- `SchemefulSameSite`: Cross-scheme cookie issues.
- `PartitionedCookies`: Invalid CHIPS partitioning attributes.
2. **Deep Audit: Lighthouse Third-Party Cookies**:
- - Run `lighthouse_audit` with `mode: "navigation"` and `outputDirPath: "/tmp/lh-report"`.
- - **Extract the specific cookie audit** without loading the full report into context:
+ - Run `lighthouse_audit` with `mode: "navigation"` (omit `outputDirPath` to use the default temporary files, or specify a directory within the workspace).
+ - **Extract the specific cookie audit** from the returned `report.json` path without loading the full report into context:
```bash
- node -e "const r=require('/tmp/lh-report/report.json'); const a=r.audits['third-party-cookies']; console.log(JSON.stringify({score: a?.score, displayValue: a?.displayValue, items: a?.details?.items}))"
+ node -e "const r=require('<path/to/report.json>'); const a=r.audits['third-party-cookies']; console.log(JSON.stringify({score: a?.score, displayValue: a?.displayValue, items: a?.details?.items}))"
```
### 4. Client-Side Cookie Inspection & Manipulation