/pwdev-uiux:scan [optional URL or route, e.g.: http://localhost:3000/dashboard]from PWDEV UI/UX — Stack-Agnostic UI Engineering
Scans the existing UI of the project and generates a contextual skill in .planning/ui/project-ui-skill.md. Use before starting development on an existing project to ensure new components are consistent.
Ships in PWDEV UI/UX — Stack-Agnostic UI Engineering. Installing the plugin adds it to Claude Code.
Optional argument: $ARGUMENTS
Activates the ui-scanner agent to analyze the current project and generate
.planning/ui/project-ui-skill.md — a contextual skill that serves
as a reference for the ui-builder to build components consistent
with what already exists in the project.
Follow ${CLAUDE_PLUGIN_ROOT}/references/language.md (resolve lang from
.planning/config.json; ask only if unset).
# Read stack config to determine expected framework
cat .planning/ui/stack.json 2>/dev/null || echo "NO_STACK"
# Confirm this is a frontend project with a package.json
ls package.json && cat package.json | python3 -c "
import json, sys
p = json.load(sys.stdin)
deps = {**p.get('dependencies',{}), **p.get('devDependencies',{})}
frameworks = ['vue', 'nuxt', 'react', 'next', 'svelte', '@angular/core']
found = [f for f in frameworks if f in deps]
print('Frontend project:', bool(found), '— frameworks:', ', '.join(found) if found else 'none detected')
"
If no frontend framework detected and no stack.json: inform and suggest running /pwdev-uiux:stack first.
If argument contains URL (http://localhost or https://): → Visual + code analysis
If argument is --visual-only:
→ Visual analysis only via browser
If argument is --code-only or no argument:
→ Code analysis only
If no argument (default mode): → Code analysis + browser attempt on localhost:3000 and localhost:5173
Resolve subagent models per ${CLAUDE_PLUGIN_ROOT}/references/model-profiles.md
(override keys uiux-<agent>); pass via the Task tool model parameter.
subagent_type: pwdev-uiux:ui-scannermodel: per model-profiles.md (override key uiux-ui-scanner)TASK: analyze the current project's UI and generate .planning/ui/project-ui-skill.md
Mode: [determined above]
Analysis URL: [ARGUMENTS or default localhost]
STACK: {from .planning/ui/stack.json — component library comes from here,
never assume one}
SKILLS — read these files BEFORE scanning:
${CLAUDE_PLUGIN_ROOT}/skills/ux-tokens/SKILL.md
${CLAUDE_PLUGIN_ROOT}/skills/component-audit/SKILL.md
${CLAUDE_PLUGIN_ROOT}/skills/ui-best-practices/SKILL.md
${CLAUDE_PLUGIN_ROOT}/skills/ui-theme-reference/SKILL.md
LANGUAGE: {lang}
Execute all protocol analysis steps:
1. Structure and stack inventory
2. Component analysis (library + product components)
3. CSS token and tailwind.config extraction
4. Visual analysis (if URL available)
5. Best practices compliance check
6. Generate project-ui-skill.md (including the compliance report section)
Prioritize: most recurring patterns, most used tokens, most complex
components. Document inconsistencies as observations — not judgments.
Flag P0 violations as issues and P1 as recommendations.
Reply with AT MOST 10 status lines.
After ui-scanner completion, present summary:
✅ /pwdev-uiux:scan completed
📦 Stack
[Framework] x.x | [Component Library] | Tailwind x.x
Forms: [library] | TypeScript: [yes/no]
📁 Components
Library components installed: N
Product components: N files
Composables/hooks: N files
🎨 Tokens
Custom CSS tokens: N found
Additional colors: [short list]
⚙️ Identified patterns
Component style: [SFC script setup / TSX / Options API / etc.]
Forms: [vee-validate / react-hook-form / manual / etc.]
Organization: [by feature / by type]
📋 Best Practices Compliance
P0 rules: N/N passed [✅ / ⚠️ N violations]
P1 rules: N/N passed
Top issues: [brief list of most impactful violations]
⚠️ Inconsistencies
[list of divergences found]
📄 Skill saved at: .planning/ui/project-ui-skill.md
Valid for this project. Update with /pwdev-uiux:scan after significant changes.
→ Next step: /pwdev-uiux:start "task description"
[If P0 violations found] → Fix P0 issues first, then /pwdev-uiux:scan again
/pwdev-uiux:scan whenever the project has significant structural changes.planning/ui/ and is automatically read by the ui-builder.planning/ui/project-ui-skill.md to .gitignore or commit as living documentationFiles this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
13 commands in this plugin
/analyze/pwdev-uiux:analyzeQuick UX + Figma analysis without starting a full flow. Activates ux-analyst and optionally design-bridge. Useful for exploration before committing to an implementation./audit/pwdev-uiux:audit — Audit Trail QueryQuery the audit trail database for events, decisions, artifacts, and statistics. Export full PDF report./build/pwdev-uiux:build — Implement Componentnpx claudepluginhub pwdev-solucoes/pwdev-claude-marketplace --plugin pwdev-uiuxOther plugins' commands for the same job