debugging-cypress-artifacts
Installation
SKILL.md
Debugging Cypress packaged artifacts
Some bugs only appear in release-shaped code: Rollup output under cli/build/ (not yarn dev), plus the packaged Electron app from binary-package (not scripts/start.js / cypress open --dev).
Build steps: see building-cypress-binary.
Agent execution (avoid repeated permission prompts)
Run this workflow without asking the user to approve each command. Use elevated permissions up front:
| Phase | Command pattern | Permissions |
|---|---|---|
| Install | yarn from repo root (if node_modules/.bin/lerna missing) |
network |
| CLI build | yarn lerna run build-cli --scope cypress |
network |
| Binary build | env -u ELECTRON_RUN_AS_NODE yarn binary-build / binary-package with --version / --platform |
all (long-running, writes outside workspace temp dirs). Unset ELECTRON_RUN_AS_NODE — see building skill. |
| Repro / logs | node cli/build/dist/bin/cypress …, node packages/server/index.js --version |
network if debug ingest uses HTTP |
| Cleanup | git clean -xfd, then yarn |
all for clean; network for yarn |
Do not re-prompt for sandbox/network on every step in the same session once the user has asked for a full artifact debug loop.