/senior-dev:blackbox-testerfrom senior-dev
Executes black-box browser verification using Playwright to validate real user flows, GUI forms, console/network errors, and visual layouts across 4 viewports with screenshot evidence.
Ships in senior-dev. 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.
Read when SKILL.md points to them; scripts run unread.
This skill provides deterministic, fail-honest black-box browser verification from the perspective of an actual end user. Operating as a Senior Black-Box QA Engineer, it executes real Chromium browser journeys via Playwright (Bash / Bash), exercises interactive GUI forms, attaches console and network error listeners, captures physical .png screenshots across 4 responsive viewports in docs/<feature-name>/evidence/, and returns a concise Zero-Fluff report (<= 50 lines) in its final message.
Return Contract: Return the review in your final message (<= 50 lines: verdict, findings with file:line, required fixes); do NOT write a report file.
It enforces a strict Fail-Honest Anti-Hallucination Protocol: if no web UI exists in scope it immediately returns SKIPPED, and if the dev server or Chromium binary cannot run it immediately stops and returns BLOCKED with the exact terminal error—never substituting curl, TestClient, jsdom, or static code inspection for a real browser.
0 unhandled JavaScript runtime crashes (pageerror / console.error) and 0 unexpected HTTP 4xx/5xx responses..png evidence across Mobile (375x812), Tablet (768x1024), Desktop (1280x800), and Widescreen (1920x1080) viewports in docs/<feature-name>/evidence/.<= 50 lines, no report file) during State 3/4 verification.SKIPPED: No web UI in scope; route headless API tests to qa-tester.test-driven-development or code-implementer.code-critic.adversarial-challenger.SKIPPED: mobile target, not in scope. Flutter web is in scope: follow references/flutter-web-playwright.md.The black-box verification lifecycle enforces a mandatory 2-step Pre-Flight before executing real Chromium suites:
flowchart TD
START["Incoming Verification Request"] --> PF1{"Pre-Flight 1:<br/>Web UI Exists?"}
PF1 -->|"No Web UI"| SKIP["Return SKIPPED:<br/>No web UI in scope"]
PF1 -->|"Yes"| PF2{"Pre-Flight 2:<br/>URL 200 OK & Chromium Launches?"}
PF2 -->|"Server Down / Install Blocked"| BLOCK["STOP & Return BLOCKED:<br/>Exact command & terminal error"]
PF2 -->|"200 OK & Chromium Ready"| EXEC["Run Playwright Suite in tests/e2e/<br/>DOM Flows + Console/Net Listeners"]
EXEC --> SHOTS["Save 4-Viewport .png Evidence<br/>docs/<feature-name>/evidence/"]
SHOTS --> REPORT["Return Zero-Fluff Report (<= 50 lines)<br/>in final message"]
200 OK Check:
SKIPPED: No web UI in scope without creating fake E2E tests.AGENTS.md, then the project's scripts. Never skip because the app is not already running.200 OK.Bash / Bash:
pyproject.toml / uv):
uv add --dev playwright pytest-playwright && uv run playwright install chromium
# Fallback when uv is unavailable:
.venv/bin/pip install playwright pytest-playwright && .venv/bin/playwright install chromium
package.json):
npm install -D @playwright/test && npx playwright install chromium
# Respect lockfiles: pnpm add -D @playwright/test && pnpm exec playwright install chromium
# yarn add -D @playwright/test && yarn playwright install chromium
playwright + chromium launches cleanly.BLOCKED: Not executed — <exact command & terminal error>tests/e2e/)Write and execute real Playwright E2E tests in tests/e2e/ running Chromium (headless by default for speed, or --headed when live visual observation is requested):
page.on("console"), page.on("pageerror"), and page.on("response") listeners asserting 0 unhandled JS errors and 0 unexpected HTTP 4xx/5xx responses.Use the real backend. A green run against mock data proves nothing.
page.route, route.fulfill, routeFromHAR or MSW. check_evidence.py fails on them.scripts/e2e_recorder.mjs or scripts/e2e_recorder.py to tests/e2e/. It writes a run-*.json manifest of pages and network requests to the evidence directory.source-on-screen: Read a value directly from the source, assert it appears on screen, and record the check.persisted-after-reload: After any write, reload and assert the data is still there, then record the check.noDataSource: '<reason>' to the recorder. The plan must hold data-source: none.demo: true. The plan must hold demo-data: approved.REJECTED.docs/<feature-name>/evidence/)Capture real, non-empty .png screenshots saved to docs/<feature-name>/evidence/ across all 4 viewports and assert zero horizontal overflow (document.documentElement.scrollWidth <= window.innerWidth):
375x812): Fluid single-column layout, drawer navigation, touch targets $\ge 44 \times 44$ px (mobile-375x812.png).768x1024): Adaptive grid spacing (tablet-768x1024.png).1280x800): Full navigation bar, modals, and hover/focus states (desktop-1280x800.png).1920x1080): Max-width container alignment (widescreen-1920x1080.png).<= 50 lines)Verify that Playwright exited 0 AND that python3 scripts/check_evidence.py docs/<feature-name>/evidence (from this skill's directory) exits 0 — it rejects fake or stale PNGs and missing viewports — then return the report in your final message — do NOT write a report file (<= 50 lines max, <= 20 lines on clean pass) using references/blackbox-report-template.md:
# Black-Box Browser Verification Report
- **Feature**: `<feature-name>` | **Date**: `YYYY-MM-DD` | **Target URL**: `http://localhost:3000`
- **Runner**: `Playwright Chromium` | **Verdict**: `[PASSED | REJECTED | BLOCKED | SKIPPED]`
- **Journeys**: `[X/Y Passed]` | **Unhandled JS Errors**: `0` | **Unexpected HTTP 4xx/5xx**: `0`
## 1. Viewport & Journey Metrics
| Viewport | Dimensions | Evidence (`docs/<feature-name>/evidence/`) | Overflow-X | Forms & Flows | JS / HTTP Errors | Status |
| :--- | :---: | :--- | :---: | :---: | :---: | :---: |
| **Mobile** | `375x812` | `mobile-375x812.png` | `0px` | `PASS` | `0 / 0` | `PASS` |
| **Tablet** | `768x1024` | `tablet-768x1024.png` | `0px` | `PASS` | `0 / 0` | `PASS` |
| **Desktop** | `1280x800` | `desktop-1280x800.png` | `0px` | `PASS` | `0 / 0` | `PASS` |
| **Widescreen** | `1920x1080` | `widescreen-1920x1080.png` | `0px` | `PASS` | `0 / 0` | `PASS` |
## 2. Actionable Defects
None.
# Headless Chromium execution (default)
npx playwright test tests/e2e/
# Live visual observation when requested
npx playwright test tests/e2e/ --headed
# Headless Chromium execution (default)
uv run pytest tests/e2e/ --browser chromium
# Live visual observation when requested
uv run pytest tests/e2e/ --browser chromium --headed
http://localhost:3000/checkout across all 4 viewports and capture .png evidence.".png evidence paths."tests/e2e/ via Bash; author tests via Write/Edit; return the report in the final message; verify .png evidence via Glob.e2e-blackbox-tester; bootstrap and execute Playwright suites via Bash; verify physical .png files in docs/<feature-name>/evidence/ via Glob; return the concise report in the final message (no report file).SKIPPED because the app was not running, instead of starting it.curl, httpx, requests, FastAPI TestClient, jsdom, or static HTML/JSX code reading as a substitute for a real Chromium browser.PASSED without Playwright exit code 0 AND non-empty .png screenshots on disk in docs/<feature-name>/evidence/.SKIPPED (no web UI) or BLOCKED (unreachable server / blocked Chromium binary).console.error, pageerror, or unexpected HTTP 4xx/5xx responses.sleep() calls instead of Playwright auto-waiting locators.50 lines (<= 20 lines expected on clean passes).200 OK + Chromium launch), or honest SKIPPED / BLOCKED returned immediately.tests/e2e/ exited with code 0.console / pageerror) and HTTP response listeners verified 0 unhandled errors..png screenshots saved in docs/<feature-name>/evidence/ for 375x812, 768x1024, 1280x800, and 1920x1080, and scripts/check_evidence.py exited 0.<= 50 lines, <= 20 lines if clean) returned in the final message; no report file written.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jggomez/expert-ai-developer-skills --plugin senior-dev15 skills in this plugin
/adversarial-challengerAdversarial stress testing, fuzzing, worst-case inputs, failure-path probes, timeout/reconnection simulations, and concurrency/memory stress./code-criticIndependent code review inspecting cyclomatic complexity, DRY, SOLID, anti-patterns, maintainability, and interface robustness./code-implementerGuides the implementation of code using Test-Driven Development (TDD) and clean code principles. Trigger when implementing new features, fixing bugs, or refactoring existing code.Other plugins' skills for the same job