visual-debuging-skill
2
总安装量
2
周安装量
#64808
全站排名
安装命令
npx skills add https://github.com/samihalawa/visual-debuging-skill --skill visual-debuging-skill
Agent 安装分布
opencode
2
antigravity
2
claude-code
2
github-copilot
2
windsurf
2
goose
2
Skill 文档
Autonomous Fullpage UX Audit
Execute exhaustive visual verification across an app, then critique in batches after complete capture coverage. Store all outputs in .screenshots/YYYY-MM-DD_HH-MM/.
Prime Directives
- Execute without permission loops.
- Fix environment blockers instead of stopping at excuses.
- Attach evidence to every claim (commands, paths, output snippets).
- Capture full-height pages only.
- Capture all routes before critique.
- Critique in batches and compare Mobile/Tablet/Desktop.
- Include authenticated routes via cookie or login automation.
- Save all artifacts inside the repo under
.screenshots/{session}/. - Read required source files end-to-end.
- Never kill a running server.
Phase 1: Bootstrap
- Read, in order:
package.json.env*files- framework config (
vite.config.*,next.config.*, etc.) - route surface (
src/App.*,app/**,pages/**, router files) README.md,CLAUDE.md,AGENTS.mdtailwind.config.*.env.example*
- Resolve
BASE_URLwithout restarting healthy servers:- Probe likely ports (
3000,5173,8080,4173) withcurl. - Prefer configured script/port from source.
- Probe likely ports (
- Resolve authentication with this ladder:
- Existing cookie/session env values
- API login route discovered from code
- Seed/create audit user when supported
- UI login flow via Playwright and cookie export
- Console
document.cookieas last resort
- Verify auth by calling a session endpoint or loading a protected route with no redirect.
Phase 2: Route Inventory
- Extract routes using framework-native route discovery first.
- Expand coverage using code search (
href,to,path,navigate,router.push). - Add runtime-discovered routes from nav traversal.
- Write
.screenshots/{session}/route_inventory.jsonwith all internal routes plus external links marked asEXTERNAL. - Produce a route table with columns:
Route,Type,Auth,Priority,Notes.
Mark archetype flags where applicable:
CANVAS_OPAQUEIFRAME_BLOCKEDANIMATEDVIRTUALIZEDSW_CACHEDMEDIA_OPAQUE
Phase 3: Full-Page Capture
For each route and each breakpoint:
- Set viewport (
mobile,tablet,desktop). - Apply cache bypass when possible.
- Navigate with
networkidle. - Stabilize before capture:
- disable animations/transitions
- wait fixed settle delay
- close non-critical overlays if they obstruct content
- scroll to top
- Capture
fullPage: true. - If native full-page fails, stitch screenshots with overlap and record that method in MANIFEST.
Use consistent filenames:
{index}_{slug}__{breakpoint}.png
Always write/update:
.screenshots/{session}/MANIFEST.json
Phase 4: Batch Critique
Only start after capture completion for all reachable routes.
Use these batches by default (adapt to app routes):
A DiscoveryB ConversionC Authenticated UserD Merchant/BusinessE AdminF Auth + Edge StatesG CLS Two-Shot
Score each screen 0/1 against rubric dimensions in references/rubric-and-batches.md.
Phase 5: Deliverables
Write all files under .screenshots/{session}/:
MANIFEST.jsonISSUE_LOG.mdSOURCE_LEDGER.mdEXECUTIVE_SUMMARY.md
Use references/deliverables.md format.
Safety Systems
Anti-loop valve:
- After 3 repeated failures on one item, write root cause + attempts, mark
BLOCKED, continue.
Completion gate:
- Each route has Mobile/Tablet/Desktop capture or documented exception.
- Every batch has at least one finding or explicit
none. - Source ledger includes read sources and unreachable items.
- Auth method is documented and reproducible.
- Failed captures are documented, never omitted.
Scripts
scripts/init_audit_session.sh: create timestamped session folder and starter deliverables.scripts/check_completion_gate.sh: validate required files and basic gate conditions.
Execution Trigger
Begin immediately:
- Read sources.
- Validate server and auth.
- Extract routes.
- Capture all full-page screenshots.
- Run batched critique.
- Write deliverables.
- Verify completion gate.