live-preview
Skill1 starsChanged 8 months agoMITView on GitHub
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.
- Installs packages
5 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- SethGammon/Citadeledited, first seen Nov 4, 2026
- vicoa-ai/vicoatheir own version, first seen Oct 31, 2026
- mayankjain1815-commits/CITADELedited, first seen Oct 13, 2026
- SethGammon/Armoryword for word, first seen Mar 26, 2026
- vicoa-ai/agent-skillstheir own version, first seen Mar 6, 2026
Other versions5 projects use a version of this.
Word for word · 1
- SethGammon/Armory★ 19100% same
Edited · 2
- SethGammon/Citadel★ 92787% same
- mayankjain1815-commits/CITADEL★ 487% same
Wrote their own version · 2
- vicoa-ai/vicoa★ 531same name
- vicoa-ai/agent-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- ascii-diagramSkill
- doc-genSkill
- experimentSkill
- qaSkill
- refactorSkill
- research-fleetSkill
- researchSkill
- reviewSkill
- scaffoldSkill
- session-handoffSkill
- systematic-debuggingSkill
- test-genSkill
- triageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 15 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
If no screenshot tool is available, this skill will tell you what to install and exit.
- Distinctive: line 35
After component creation or replacement
- Distinctive: line 37
When Archon or Marshal delegate UI work
- Distinctive: line 45
Check which files were modified in the current session/phase
- Distinctive: line 51
If the project has a route manifest or sitemap, use it
- Distinctive: line 52
If the project has a dev server, identify which routes render the modified components
- Distinctive: line 53
If you can't determine the route, ask the user
- Distinctive: line 59
Ensure the dev server is running (start it if not)
- Distinctive: line 64
If Playwright isn't available, try:
- Distinctive: line 76
Read the screenshot (vision).
- Distinctive: line 101
Write a verification summary:
- Distinctive: line 114
When Archon delegates a build phase that modifies view files:
- Distinctive: line 116
After the sub-agent completes, Archon invokes /live-preview on the modified routes
- Distinctive: line 117
If any route is BLANK or FAIL, the phase is NOT marked complete
- Very specific: line 131
Port is not 3000: Check common alternatives (3001, 5173, 4173, 8080) before asking.
- Very specific: line 133
.planning/screenshots/does not exist: Create the directory before writing artifacts. - Distinctive: line 138
Every modified view file must have a corresponding screenshot
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/live-preview — Build-Verify-Fix Loop
Identity
/live-preview catches the gap between "compiles" and "works visually." It takes screenshots during construction so you don't ship invisible features or broken layouts.
This exists because of a real failure: an agent completed a multi-phase campaign, passed every typecheck, and shipped a feature where 37 of 38 entities were invisible. Exit code 0 is not quality.
Prerequisites
This skill requires a screenshot tool. Supported:
- Playwright (recommended):
npx playwright screenshot [url] [output.png] - Puppeteer: via a small script
- Any tool that takes a URL and produces a screenshot
If no screenshot tool is available, this skill will tell you what to install and exit.
When to Use
- Any time .tsx, .jsx, .vue, .svelte, or .html files are modified
- After component creation or replacement
- During visual redesign campaigns
- When Archon or Marshal delegate UI work
Protocol
Step 1: DETECT
Determine what needs visual verification:
- Check which files were modified in the current session/phase
- Filter to view-layer files (.tsx, .jsx, .vue, .svelte, .html, .css)
- If no view-layer files found: exit early with message "No view-layer files modified. Nothing to preview." Skip Steps 2-5. This is expected for non-UI repos (CLI tools, libraries, agent harnesses).
- Map each modified file to a route or URL where it renders:
- If the project has a route manifest or sitemap, use it
- If the project has a dev server, identify which routes render the modified components
- If you can't determine the route, ask the user
Step 2: CAPTURE
For each route/URL that needs verification:
- Ensure the dev server is running (start it if not)
- Take a screenshot:
npx playwright screenshot http://localhost:{port}/{route} .planning/screenshots/{route-slug}.png --full-page - If Playwright isn't available, try:
# 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"
Step 3: VERIFY
For each screenshot:
- Read the screenshot (vision). Check:
- Does the component render? (not blank, not invisible)
- Does it show real data or placeholder/empty states?
- Are there obvious layout breaks (overlapping elements, overflow, missing sections)?
- Does it match the intended design direction?
- Record the result:
- PASS: renders correctly, matches expectations
- FAIL: describe what's wrong
- BLANK: nothing rendered (critical failure)
Step 4: FIX (if failures found)
For each FAIL or BLANK:
- Diagnose: is it a data issue, a rendering issue, or a missing import?
- Fix the root cause (not a band-aid)
- Re-capture and re-verify
- Maximum 2 fix attempts per component. If still failing, log it and move on.
Step 5: ARTIFACT
Save verification artifacts:
- Screenshots go to
.planning/screenshots/{campaign-slug}/(if in a campaign) or.planning/screenshots/(if standalone) - Write a verification summary:
## 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 |
Integration with Archon
When Archon delegates a build phase that modifies view files:
- After the sub-agent completes, Archon invokes /live-preview on the modified routes
- If any route is BLANK or FAIL, the phase is NOT marked complete
- The fix cycle runs before proceeding to the next phase
- This is part of Archon's Step 4 (Self-Correction) quality spot-check
What This Prevents
- Invisible features (postmortem #17) — compiles but renders nothing
- Layout regressions — change in one component breaks another's layout
- Empty states shipped as features — data not connected, UI renders skeleton
- "Works on my machine" — screenshots are artifacts anyone can review
Fringe Cases
- Dev server is not running: Offer to start it. Output: "Dev server not detected on localhost:{port}. Start it with
npm run devor equivalent, then re-run /live-preview." Do not attempt screenshots against a dead server. - Port is not 3000: Check common alternatives (3001, 5173, 4173, 8080) before asking. Read
package.jsonscripts for a--portflag orPORTenv variable. - Screenshot tool unavailable (Playwright not installed): Output what to check manually — list the modified routes, describe what each should render, and suggest installing Playwright:
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.- No view-layer files modified: Exit immediately with "No view-layer files modified. Nothing to preview." This is expected and correct for non-UI repos.
Quality Gates
- Every modified view file must have a corresponding screenshot
- BLANK results are critical failures (never acceptable)
- Screenshots must be saved as artifacts (not just checked and discarded)
- Fix attempts capped at 2 per component (prevent infinite loops)
Exit Protocol
---HANDOFF---
- Live Preview: {N} routes verified
- Results: {pass}/{total} passed
- Failures: {list of routes that failed and what was wrong}
- Screenshots: .planning/screenshots/{path}
---Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

