test-driven-development
OBobra/superpowers298k近 7 天新增 2,631 个 star
Mid-build visual verification loop. Takes screenshots of components during construction, not just after. Catches visual regressions and invisible features before they compound. Requires Playwright or similar screenshot tool.
This skill requires a screenshot tool. Supported:
npx playwright screenshot [url] [output.png]If no screenshot tool is available, this skill will tell you what to install and exit.
Determine what needs visual verification:
For each route/URL that needs verification:
npx playwright screenshot http://localhost:{port}/{route} .planning/screenshots/{route-slug}.png --full-page
# Check for playwright
npx playwright --version 2>/dev/null
# If not found, inform the user:
# "live-preview needs Playwright for screenshots. Install with: npm i -D playwright"
For each screenshot:
For each FAIL or BLANK:
Save verification artifacts:
.planning/screenshots/{campaign-slug}/ (if in a campaign)
or .planning/screenshots/ (if standalone)node scripts/codex-app-artifacts.js record --workflow live-preview --kind screenshot --path ".planning/screenshots/{route-slug}.png" --status pass
node scripts/codex-app-artifacts.js verify --require-artifacts
## Visual Verification: {date}
| Route | File Modified | Result | Notes |
|-------|--------------|--------|-------|
| /dashboard | Dashboard.tsx | PASS | Renders correctly |
| /settings | SettingsPanel.tsx | FAIL → PASS | Fixed missing import, re-verified |
| /profile | ProfileCard.tsx | BLANK → PASS | Component wasn't mounted, fixed export |
When Archon delegates a build phase that modifies view files:
npm run dev or equivalent, then re-run /live-preview." Do not attempt screenshots against a dead server.package.json scripts for a --port flag or PORT env variable.npm i -D playwright. Exit gracefully without crashing..planning/screenshots/ does not exist: Create the directory before writing artifacts. Never error on a missing output directory.Disclosure: "Taking screenshots for visual verification. Images saved to .planning/screenshots/."
Reversibility: green — screenshots only; saves to .planning/screenshots/. No source files modified.
Trust gates:
---HANDOFF---
- Live Preview: {N} routes verified
- Results: {pass}/{total} passed
- Failures: {list of routes that failed and what was wrong}
- Screenshots: .planning/screenshots/{path}
- Reversibility: green — delete .planning/screenshots/ to remove artifacts; no source files modified
---
OBobra/superpowers298k近 7 天新增 2,631 个 star
MAmattpocock/skills288k近 7 天新增 10,178 个 star
AFaffaan-m/ECC278k近 7 天新增 4,046 个 star
AFaffaan-m/ECC278k近 7 天新增 4,046 个 star
FIfirecrawl/firecrawl191k近 7 天新增 2,010 个 star