ui-clone/SKILL.md
Clone any app UI from PageFlows. WAT framework: capture screenshots → analyze+build with visual diff → package as reusable skill. Works for any app.
npx skillsauth add clownnvd/claude-code-skills ui-cloneInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Clone any app's UI from PageFlows screenshots into Next.js (Tailwind v4). WAT = Workflows + Agent + Tools.
# 1. Capture all screens
python scripts/pageflows_capture.py --app [app-name]
# 2. Find shared components
python scripts/find_shared_components.py --manifest .tmp/[app]/manifest.json
# 3. Extract design tokens
python scripts/analyze_screen.py --image screenshots/[app]/[flow]/01-[name].png
# 4. Visual diff (after building a screen)
python scripts/visual_diff.py \
--original screenshots/[app]/[flow]/01.png \
--url http://localhost:3000/[route]
# 5. Generate skill scaffold
python scripts/generate_skill_refs.py --app [app] --component-map .tmp/[app]/component-map.json
Install deps: pip install -r scripts/requirements.txt
| Phase | Goal | Reference |
|-------|------|-----------|
| 01 Capture | Get all screenshots from PageFlows | references/capture.md |
| 02 Build | Analyze + implement with visual diff loop | references/build.md |
| 03 Package | Create reusable skill for future sessions | references/package-skill.md |
| Script | Purpose | Key Args |
|--------|---------|----------|
| pageflows_capture.py | Capture all flows/screens from PageFlows | --app [name] |
| find_shared_components.py | Detect shared UI regions via perceptual hash | --manifest [path] |
| analyze_screen.py | Extract dominant colors → design tokens | --image [path] |
| visual_diff.py | Compare original vs implementation screenshot | --original [path] --url [url] |
| generate_skill_refs.py | Generate skeleton skill reference files | --app [name] --component-map [path] |
screenshots/[app]/
[flow]/
01-[screen].png
02-[screen].png
.tmp/[app]/
manifest.json ← All flows + screen metadata
component-map.json ← Shared vs unique regions (build order)
diffs/ ← Visual diff outputs (review these)
src/
app/
globals.css ← Design tokens
(clone)/
layout.tsx ← App shell
[flow]/page.tsx ← Each screen
components/
[app]/
sidebar.tsx
topbar.tsx
diff shows 65% match
→ Read both images (original + diff output) with Read tool
→ Identify the specific region that differs
→ Fix the CSS/layout
→ Re-run visual_diff
→ Pass at ≥80%
→ Document fix in component ref
# First time (manual login):
agent-browser --headed open https://pageflows.com
# After login:
agent-browser state save pageflows-auth.json
Pro account: [email protected] — saved in pageflows-auth.json.
| Rule | Detail |
|------|--------|
| Run find_shared_components BEFORE building | Avoids reimplementing the same sidebar 10 times |
| Build shared components FIRST | They appear on every screen |
| Visual diff target: ≥80% | Use --threshold 70 for font-heavy screens |
| Auth expires ~1 day | Re-auth if screenshots look like login page |
| Never close browser mid-capture | agent-browser close loses session |
| Use eval + data-url for screen URLs | PageFlows click interactions reliably timeout |
tools
Zustand v5 state management for Next.js 16. Store patterns, middleware (persist/immer/devtools), SSR hydration, CV editor multi-step wizard, 20 documented errors. Triggers: zustand, store, state management, useState replacement, global state, persist, immer.
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Ultimate UI/UX design intelligence with real app flow knowledge. 93 styles, 121 palettes, 81 font pairings, 35 charts, 79 components, 62 animations, 65 WCAG criteria, 46 responsive patterns, 46 dark mode rules, 60 design tokens, 13 stacks. PLUS: Claude.ai full UI blueprint (19 flows, all screens), PageFlows app patterns. Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check, clone, recreate, rebuild. Styles: glassmorphism, brutalism, neumorphism, bento, dark mode, view transitions, scroll-driven, container queries, AI-native, liquid glass, neo-minimalism, mesh gradient, geometric abstraction. Topics: color, accessibility, animation, layout, typography, spacing, shadow, gradient, responsive, dark mode, WCAG 2.2, design tokens, components, spring physics, kinetic typography, container queries, popover API, semantic tokens. Apps: claude.ai, ChatGPT-style, AI chat UI, SaaS dashboard.
development
--- name: ui description: UI quality system. 4 modes: research (design brief), score (10-category audit), fix (auto-fix from scorecard), pipeline (end-to-end chain). license: Complete terms in LICENSE.txt --- # UI Quality System One skill, 4 modes. Research real products, score UI quality, fix issues, or run the full pipeline. ## Modes | Mode | Use When | Workflow | |------|----------|---------| | **research** | Before building any page | Extract tokens → Search → Fetch → Design Brief | | **