PwrSnap: Skill for Codex

.agents/skills/e2e-docker-repro/SKILL.md

e2e-docker-repro is a skill for Codex from pwrdrvr/PwrSnap. It costs 84 tokens per session (1,122 once invoked), scanned A, original, MIT.

A procedure for reproducing PwrSnap desktop end-to-end test failures in Docker, a tool for running software in an isolated environment, with a virtual display for graphical tests.

In plain words
What is it for?
Use it to rerun a focused failing test, stress-test flaky tests, investigate teardown hangs, or run the full desktop test job locally.
Why use it?
It helps investigate failures that only appear in Linux, GitHub Actions, Electron, or Playwright test runs.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is pwrdrvr/PwrSnap's own configuration. It tells Codex how to work on PwrSnap itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything PwrSnap configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/e2e/run-docker.sh \.

Reuse

Borrowing it

Nothing to install: this file belongs to pwrdrvr/PwrSnap. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/pwrdrvr/PwrSnap/main/.agents/skills/e2e-docker-repro/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pwrdrvr/PwrSnap

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for e2e-docker-repro

README.md
[![agentmods](https://agentmods.dev/badge/skills/pwrdrvr/pwrsnap/e2e-docker-repro/github.svg)](https://agentmods.dev/skills/pwrdrvr/pwrsnap/e2e-docker-repro)
Your own site
<a href="https://agentmods.dev/skills/pwrdrvr/pwrsnap/e2e-docker-repro"><img src="https://agentmods.dev/badge/skills/pwrdrvr/pwrsnap/e2e-docker-repro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for e2e-docker-repro

Your own site · 80×15
<a href="https://agentmods.dev/skills/pwrdrvr/pwrsnap/e2e-docker-repro"><img src="https://agentmods.dev/badge/skills/pwrdrvr/pwrsnap/e2e-docker-repro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,122 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01122
Opus 5 $0.00042 $0.00561
Sonnet 5 $0.00017 $0.00224
Haiku 4.5 $0.00008 $0.00112

Measured 10d ago against content hash 8b43614a3599, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

e2e-docker-repro scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/e2e-docker-repro/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

E2E Docker Repro

Use this skill to reproduce PwrSnap Desktop E2E failures locally in the Linux Docker harness under scripts/e2e.

Start Here

  1. Read the reported CI failure first: failing job URL, test name, timeout, stack trace, and whether Playwright marked it flaky.

  2. Check the local branch and diff before running anything:

    git status --short --branch
    git log --oneline -3 --decorate
    
  3. Prefer a focused repro before a full-suite run. Use the exact Playwright title substring from CI when possible.

  4. Start on Docker's native Linux platform. Use --platform linux/amd64 only when the failure looks architecture-specific or you need exact GHA x86 parity; it is much slower on Apple Silicon.

Commands

Run from the repository root.

Focused stress run against the current worktree:

PWRSNAP_E2E_STAGE=/tmp/pwrsnap-e2e-stage \
  ./scripts/e2e/run-docker.sh \
  --test '<Playwright title or grep pattern>' \
  --iterations 30 \
  --keep-stage

Full GHA-style Desktop E2E job:

PWRSNAP_E2E_STAGE=/tmp/pwrsnap-e2e-stage \
  ./scripts/e2e/run-docker.sh --keep-stage

Equivalent root pnpm entrypoint:

pnpm test:desktop-e2e:docker --keep-stage

Run a different ref without switching the worktree:

git fetch origin
PWRSNAP_E2E_STAGE=/tmp/pwrsnap-e2e-stage \
  ./scripts/e2e/run-docker.sh \
  --ref origin/<branch-or-ref> \
  --test '<pattern>' \
  --iterations 30 \
  --keep-stage

Drop into the staged container for ad-hoc inspection:

PWRSNAP_E2E_STAGE=/tmp/pwrsnap-e2e-stage \
  ./scripts/e2e/run-docker.sh --shell

Workflow

  1. Reproduce the failure with a focused --test pattern and --iterations. The wrapper runs Playwright with --retries 0 in iteration mode, so every failure is a real first-attempt failure.
  2. If the failure only appears in CI mode, run the full suite. Full-suite mode executes the root pnpm run test:desktop-e2e under xvfb-run, matching GHA.
  3. Preserve evidence while investigating:
    • Use --keep-stage so /tmp/pwrsnap-e2e-stage remains inspectable.
    • Read apps/desktop/test-results/.../error-context.md and traces from the staged tree when Playwright emits them.
    • Capture the pass/fail rate and exact command in the final report.
  4. Instrument narrowly when needed, then remove temporary logging before the final fix. Prefer fixture/test-level logging first for Electron lifecycle failures, then app-level logging only after the failing boundary is known.
  5. Verify fixes with both a focused stress run and a full-suite run when the original failure came from CI.

Read the full file on GitHub · 119 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 119 lines · 84 tokens per session scan A 8b43614a3599

Subscribe to this mod's changes

e2e-docker-repro is a skill published in the GitHub repository pwrdrvr/PwrSnap (5 stars, last pushed today), licensed MIT. It adds 84 tokens to every session and 1,122 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories