[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77BC9JJ701CK5WFZXY1AMKK":3,"skill-same:01M77BC9JJ701CK5WFZXY1AMKK":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":39,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M77BC9JJ701CK5WFZXY1AMKK","design-panel",null,"Multi-persona design review. Dispatches 4 UX\u002FUI designer personas in parallel against\na live web app, then converges on the highest-impact changes via cross-persona voting.\nOutputs a ranked report and a machine-readable fix plan. Pairs with \u002Fdesign-review for\nshipping the top findings.\nUse when asked to \"design panel\", \"multi-persona design review\", \"designer panel\",\n\"panel review\", or after major design milestones.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fd\u002Fdesign-panel\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: design-panel\ndescription: |\n  Multi-persona design review. Dispatches 4 UX\u002FUI designer personas in parallel against\n  a live web app, then converges on the highest-impact changes via cross-persona voting.\n  Outputs a ranked report and a machine-readable fix plan. Pairs with \u002Fdesign-review for\n  shipping the top findings.\n  Use when asked to \"design panel\", \"multi-persona design review\", \"designer panel\",\n  \"panel review\", or after major design milestones.\nallowed-tools:\n  - Bash\n  - Read\n  - Write\n  - Edit\n  - Glob\n  - Grep\n  - AskUserQuestion\n  - Agent\n---\n\n# \u002Fdesign-panel — Multi-Persona Design Review\n\n> Runs 4 UX\u002FUI designer personas in parallel against a live app, then ranks findings\n> via cross-persona voting. Outputs a report and a machine-readable fix plan.\n> Pairs with \u002Fdesign-review for shipping the ranked fixes.\n\n## ROLE\n\nYou are the **Panel Orchestrator**. You do not author findings yourself, do not score findings yourself, do not \"improve\" persona prompts on the fly. You:\n\n1. Run pre-flight + arg parsing (Phase 0)\n2. Detect app-type with a visible `DETECTED:` line (Phase 1)\n3. Capture an evidence pack (Phase 2)\n4. Select personas (Phase 3)\n5. Dispatch all persona reviews in a single parallel Agent call (Phase 4)\n6. Dispatch all voting subagents in a single parallel Agent call (Phase 5)\n7. Compute ranking, write `report.md` + `fix-plan.md` (Phase 6)\n8. Print artifact paths + an optional gstack hand-off tip (Phase 7)\n\nThe fix-plan is a data artifact. Anyone (including the user) can feed it to `\u002Fdesign-review` manually if they want to ship the fixes — this skill never invokes other skills automatically.\n\n## Base directory for this skill\n\nThe harness exposes the skill's install directory via the \"Base directory\" line at the top of the loaded skill content. Persona files live at `\u003Cbase-dir>\u002Fpersonas\u002F\u003Cid>.md`. Reference that path explicitly in Phase 4\u002F5 prompts — do not hardcode an absolute path.\n\n---\n\n## TELEMETRY PREAMBLE (run first)\n\n```bash\n# gstack-style telemetry preamble — inlined, not inherited.\n_TEL=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get telemetry 2>\u002Fdev\u002Fnull || echo \"off\")\n_TEL_START=$(date +%s)\n_SESSION_ID=\"$$-$(date +%s)\"\n_OUTCOME=\"success\"  # default; abort\u002Ferror gates override before epilogue\n_BRANCH=$(git branch --show-current 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"TELEMETRY: ${_TEL:-off}  SESSION: $_SESSION_ID  BRANCH: $_BRANCH\"\n\n# Pending marker — epilogue clears it; if the skill crashes the next gstack\n# skill to start finalizes it as outcome=unknown.\nmkdir -p ~\u002F.gstack\u002Fanalytics\necho '{\"skill\":\"design-panel\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"session_id\":\"'\"$_SESSION_ID\"'\"}' \\\n  > ~\u002F.gstack\u002Fanalytics\u002F.pending-\"$_SESSION_ID\" 2>\u002Fdev\u002Fnull || true\n\n# Local analytics start row (gated on gstack telemetry tier)\nif [ \"$_TEL\" != \"off\" ]; then\n  echo '{\"skill\":\"design-panel\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"repo\":\"'$(basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || echo unknown)'\"}' \\\n    >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\nfi\n\n# Timeline event for skill start. Best-effort; failures are silenced.\nif [ -x ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log ]; then\n  _TL_PAYLOAD=$(jq -nc --arg branch \"$_BRANCH\" --arg sid \"$_SESSION_ID\" \\\n    '{skill:\"design-panel\",event:\"started\",branch:$branch,session:$sid}' 2>\u002Fdev\u002Fnull || echo '{}')\n  ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log \"$_TL_PAYLOAD\" 2>\u002Fdev\u002Fnull &\nfi\n\n# Persist telemetry state to disk so the epilogue can recover it even after\n# the shell context is lost (each Bash tool call is a fresh shell).\nmkdir -p ~\u002F.gstack\u002Fanalytics\ncat > ~\u002F.gstack\u002Fanalytics\u002F.tel-design-panel-\"$_SESSION_ID\".sh \u003C\u003CEOF\nexport _TEL=\"$_TEL\"\nexport _TEL_START=\"$_TEL_START\"\nexport _SESSION_ID=\"$_SESSION_ID\"\nexport _OUTCOME=\"$_OUTCOME\"\nEOF\necho \"TEL_STATE: ~\u002F.gstack\u002Fanalytics\u002F.tel-design-panel-$_SESSION_ID.sh\"\n```\n\n**Note on gstack dependencies:** If `gstack-config` or `gstack-timeline-log` is missing, the bash blocks above silently fall through to `|| true` paths. The skill still runs, just without telemetry. That's intentional — gstack is recommended but not required.\n\n---\n\n## PHASE 0 — Pre-flight + arg parsing\n\n### 0.1 Parse arguments\n\nThe user invocation may include:\n- `\u003Curl>` — optional. If absent, attempt local dev server detection (see 0.2).\n- `--personas \u003Clist>` — explicit roster (e.g. `a11y,brand,mobile,conversion`), `+id` to add to defaults, `-id` to remove.\n- `--deep` — runs all 8 personas instead of the default 4.\n- `--report-only` — skip the Phase 7 \"next steps\" suggestion.\n- `--yes` — non-interactive. Auto-confirms the `--deep` cost prompt.\n\nCapture into shell variables: `URL`, `PERSONAS_OVERRIDE`, `DEEP`, `REPORT_ONLY`, `YES`.\n\n### 0.2 Detect project + dev server (only if no `\u003Curl>` given)\n\nRead the current working directory for stack indicators. Infer:\n\n1. The project framework (Next.js, Vite, Rails, Django, etc.)\n2. The expected dev URL for that framework's defaults\n3. The right command to start the dev server\n\nThen probe the inferred URL. If reachable → use it. If not → tell the user the exact command to start it. Do not port-scan a generic list; do not interrogate the user when the project file already tells us what to do.\n\n```bash\n_PROJECT_TYPE=\"unknown\"\n_EXPECTED_URL=\"\"\n_DEV_CMD=\"\"\n\nif [ -f package.json ]; then\n  # Package manager from lockfile\n  if   [ -f bun.lockb ] || [ -f bun.lock ]; then _PM=\"bun\"\n  elif [ -f pnpm-lock.yaml ];                  then _PM=\"pnpm\"\n  elif [ -f yarn.lock ];                       then _PM=\"yarn\"\n  else                                              _PM=\"npm\"; fi\n\n  # Framework from deps\n  if jq -e '(.dependencies \u002F\u002F {}).next \u002F\u002F (.devDependencies \u002F\u002F {}).next' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"next\";  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  elif jq -e '(.dependencies \u002F\u002F {}).nuxt \u002F\u002F (.devDependencies \u002F\u002F {}).nuxt' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"nuxt\";  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  elif jq -e '(.dependencies \u002F\u002F {}).astro \u002F\u002F (.devDependencies \u002F\u002F {}).astro' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"astro\"; _EXPECTED_URL=\"http:\u002F\u002Flocalhost:4321\"\n  elif jq -e '(.dependencies \u002F\u002F {}).vite \u002F\u002F (.devDependencies \u002F\u002F {}).vite' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"vite\";  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:5173\"\n  elif jq -e '(.dependencies \u002F\u002F {})[\"@remix-run\u002Fdev\"] \u002F\u002F (.devDependencies \u002F\u002F {})[\"@remix-run\u002Fdev\"]' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"remix\"; _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  elif jq -e '(.dependencies \u002F\u002F {})[\"@sveltejs\u002Fkit\"] \u002F\u002F (.devDependencies \u002F\u002F {})[\"@sveltejs\u002Fkit\"]' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"sveltekit\"; _EXPECTED_URL=\"http:\u002F\u002Flocalhost:5173\"\n  else\n    _PROJECT_TYPE=\"node\"; _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  fi\n\n  # Dev command — prefer scripts.dev, fall back to scripts.start\n  _SCRIPT_KEY=$(jq -r 'if .scripts.dev then \"dev\" elif .scripts.start then \"start\" else empty end' package.json 2>\u002Fdev\u002Fnull)\n  if [ -n \"$_SCRIPT_KEY\" ]; then\n    _DEV_CMD=\"$_PM run $_SCRIPT_KEY\"\n  else\n    _DEV_CMD=\"$_PM run dev   # (no scripts.dev defined — add one to package.json)\"\n  fi\n\nelif [ -f Gemfile ]; then\n  _PROJECT_TYPE=\"rails\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  _DEV_CMD=\"bundle exec rails server\"\n\nelif [ -f manage.py ]; then\n  _PROJECT_TYPE=\"django\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:8000\"\n  _DEV_CMD=\"python manage.py runserver\"\n\nelif [ -f pyproject.toml ] || [ -f requirements.txt ]; then\n  _PROJECT_TYPE=\"python\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:8000\"\n  if grep -qiE '^fastapi' pyproject.toml requirements.txt 2>\u002Fdev\u002Fnull; then\n    _DEV_CMD=\"uvicorn main:app --reload\"\n  elif grep -qiE '^flask' pyproject.toml requirements.txt 2>\u002Fdev\u002Fnull; then\n    _DEV_CMD=\"flask run\"\n  else\n    _DEV_CMD=\"python -m http.server 8000   # (adapt to your app's entry point)\"\n  fi\n\nelif [ -f Cargo.toml ]; then\n  _PROJECT_TYPE=\"rust\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:8080\"\n  _DEV_CMD=\"cargo run\"\n\nelif [ -f go.mod ]; then\n  _PROJECT_TYPE=\"go\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:8080\"\n  _DEV_CMD=\"go run .\"\n\nelif [ -f mix.exs ]; then\n  _PROJECT_TYPE=\"phoenix\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:4000\"\n  _DEV_CMD=\"mix phx.server\"\nfi\n\necho \"PROJECT: $_PROJECT_TYPE  EXPECTED: ${_EXPECTED_URL:-none}  DEV_CMD: ${_DEV_CMD:-none}\"\n\n# Probe the expected URL (2s timeout — local servers respond fast)\nURL_FOUND=\"\"\nif [ -n \"$_EXPECTED_URL\" ]; then\n  if curl -sf -m 2 -o \u002Fdev\u002Fnull \"$_EXPECTED_URL\" 2>\u002Fdev\u002Fnull; then\n    URL_FOUND=\"$_EXPECTED_URL\"\n  fi\nfi\necho \"URL_REACHABLE: ${URL_FOUND:-none}\"\n```\n\n### Decision tree\n\n1. **`URL` was passed explicitly** → use it. Skip the detection prints (already shown above; that's fine — they're informational, not an interaction).\n2. **`URL_FOUND` non-empty** → use it. Project detection confirmed and reachable.\n3. **`_EXPECTED_URL` known but unreachable**:\n   - Print:\n     ```\n     DETECTED: \u003Cproject_type> project. Expected URL: \u003C_EXPECTED_URL>\n     NOT_RUNNING: \u003C_EXPECTED_URL> is not reachable.\n     Start your dev server first:\n       \u003C_DEV_CMD>\n     Then re-run \u002Fdesign-panel.\n     ```\n   - With `--yes`: exit 2.\n   - Without `--yes`: AskUserQuestion with three options:\n     - A) I started it — re-probe and continue\n     - B) Use a different URL (then ask for URL)\n     - C) Cancel (exit 2)\n4. **`_PROJECT_TYPE` is `unknown`** (no recognized stack indicator in cwd):\n   - With `--yes`: print `ERROR: no \u003Curl> arg, no recognized project in cwd (looked for package.json, Gemfile, manage.py, pyproject.toml, Cargo.toml, go.mod, mix.exs). Re-run with an explicit URL.` exit 2.\n   - Without `--yes`: AskUserQuestion: \"No recognized project in cwd. Paste the URL you want me to review, or start your app and re-run.\"\n\n### Notes\n\n- Detection is heuristic. The `_DEV_CMD` printed in not-running messages is a best-guess for the framework's defaults. If the user has a custom port or non-standard launcher, they should pass `\u003Curl>` explicitly.\n- Monorepos: the skill reads the cwd's `package.json` only. If you're in a monorepo with workspace-relative apps, `cd` into the app's directory before invoking.\n- Remote URLs (deployed staging\u002Fprod): always pass `\u003Curl>` explicitly. Detection only helps with local dev.\n\n### 0.3 Print duration estimate\n\nBefore starting any expensive work, print one line so the user knows the time budget:\n\n```\nEXPECTED DURATION: ~90s (standard, 4 personas). Use --yes to skip --deep cost prompts.\n```\n\nIf `--deep` was passed without `--yes`, AskUserQuestion:\n\n> \"Run all 8 personas? Cost: ~16 subagent dispatches, expected 180–300s wall-clock.\n> A) Yes  B) Standard run (4 personas) instead  C) Cancel\"\n\nIf `--yes` and `--deep`, skip the confirmation; log \"--deep accepted via --yes\" to telemetry.\n\n### 0.4 Hard duration caps\n\n- Standard run: 300s ceiling. If exceeded, abort and write partial findings with `[aborted-at-cap]` tag.\n- `--deep` run: 600s ceiling. Same partial-write behavior.\n\nImplement via wall-clock checks at each phase boundary, not signal handlers.\n\n---\n\n## PHASE 1 — App-type detection (with visibility contract)\n\nFetch the URL via `$B navigate` (gstack browse binary) or `mcp__browse__*` if `$B` isn't on PATH. Pull the DOM via snapshot.\n\nClassify as one of:\n\n- **LANDING** — no auth UI detected, has hero+CTA pattern, `\u003Cmain>` content is marketing sections (testimonials, pricing, feature grids).\n- **APP_UI** — login\u002Fauth flow detected, OR sidebar\u002Ftopbar app chrome present, OR routes match patterns like `\u002Fdashboard`, `\u002Fsettings`, `\u002Fprojects\u002F...`.\n- **HYBRID** — marketing homepage with authenticated product behind a CTA.\n\nAmbiguous results default to HYBRID (most conservative roster). Log heuristic scores in the report header for transparency.\n\n### Visibility contract — Phase 1 ALWAYS prints one of:\n\n```\nDETECTED: http:\u002F\u002Flocalhost:3000  (APP_UI, confidence 0.82)\n```\n\n…or, if URL is missing:\n\n```\nNO_URL: no \u003Curl> arg and no local dev server found. Asking…\n```\n\nThis guarantees the user knows within a few seconds whether the skill is on the right target — no silent screenshot phase against the wrong URL.\n\n---\n\n## PHASE 2 — Evidence pack capture\n\n**Location:** `~\u002F.gstack\u002Fsessions\u002F$SESSION_ID\u002Fdesign-panel\u002Fevidence\u002F`\n\n```\nevidence\u002F\n├── manifest.json                  # routes, viewports, captures performed\n├── screenshots\u002F\n│   ├── home_desktop.png           # 1440×900\n│   ├── home_mobile.png            # 390×844\n│   ├── home_tablet.png            # 768×1024  (only with --deep)\n│   ├── \u003Croute>_desktop.png        # one set per significant route\n│   └── \u003Croute>_mobile.png\n├── interactions\u002F\n│   ├── hover_primary_cta.png      # key hover\u002Ffocus states\n│   ├── nav_open_mobile.png        # mobile nav opened\n│   └── form_filled.png            # form mid-state if present\n└── computed.json                  # CSS vars, font stacks, palette,\n                                   # breakpoints, motion durations\n```\n\n**Capture strategy:**\n\n- **Routes:** homepage always. Up to 4 additional routes auto-detected, in this priority order:\n  1. Routes listed in `\u002Fsitemap.xml` if present, capped at 4.\n  2. Otherwise, the first 4 unique same-origin `\u003Ca href>` targets in the primary `\u003Cnav>` element.\n  3. Otherwise, homepage only.\n- **Viewports:** desktop (1440) + mobile (390) always. Tablet (768) only with `--deep`.\n- **Interactions:** primary CTA hover, mobile nav open, first form's filled state — captured if present, silently skipped otherwise.\n- **`computed.json`:** small data file pulled from the live page (CSS custom properties, font-family stacks, used colors, defined breakpoints, transition durations).\n\n**Authenticated apps:** If the target redirects to `\u002Flogin`, halt with the auth failure path (see Failure modes).\n\n**Why disk, not inline:** subagent prompts pass file paths; same artifacts are read by all review and voting subagents; user can sanity-check what the panel saw.\n\n**Cleanup:** session dir is reaped by gstack's existing 120-minute mtime cleanup (or accumulates harmlessly if gstack isn't installed).\n\n---\n\n## PHASE 3 — Persona selection\n\n### Roster (8 personas, files at `\u003Cbase-dir>\u002Fpersonas\u002F\u003Cid>.md`)\n\n| ID | Name | Lens |\n|---|---|---|\n| `a11y` | Accessibility Auditor | Contrast, focus order, ARIA, keyboard, touch targets, landmarks |\n| `conversion` | Conversion Optimizer | CTA hierarchy, funnel friction, trust signals, form UX |\n| `brand` | Brand & Visual Director | Typography, color system, premium feel, AI-slop patterns |\n| `motion` | Motion & Interaction Designer | Microinteractions, perceived speed, feedback on action |\n| `mobile` | Mobile-First Designer | Thumb zones, viewport, tap targets, horizontal scroll |\n| `ia` | Information Architect | Wayfinding, breadcrumbs, page titles, content hierarchy |\n| `trust` | Trust & Credibility Reviewer | Social proof, copy honesty, dark patterns, error empathy |\n| `power` | Power-User Advocate | Keyboard shortcuts, density, bulk actions, efficiency |\n\n### Default selection (4 of 8, picked by app type)\n\n| App type | Default 4 |\n|---|---|\n| LANDING | `brand`, `conversion`, `trust`, `mobile` |\n| APP_UI | `ia`, `a11y`, `power`, `mobile` |\n| HYBRID | `brand`, `conversion`, `a11y`, `ia` |\n\nBumping from 3 to 4 personas-by-default exists for statistical reasons: at N=3 each finding has only 2 cross-voters; at N=4 it has 3, which gives meaningful agreement signal instead of coin-flip stdev. Cost trade: ~33% more subagent dispatches per run.\n\n### Override syntax\n\n- `--personas brand,a11y,motion,trust` — explicit list (skips auto-selection).\n- `--personas +motion` — add to defaults.\n- `--personas -trust` — remove from defaults.\n- `--deep` — run all 8 (confirmed via AskUserQuestion unless `--yes`).\n- Unknown persona ids hard-fail with exit code 3 and the valid id list.\n\n### Output\n\nLog the final persona list to the report header. Example:\n\n```\nPERSONAS: ia, a11y, power, mobile  (APP_UI default)\n```\n\n---\n\n## Shared schemas (used by Phase 4 and Phase 5 prompts)\n\n### Finding schema (Phase 4 output — one entry per finding)\n\n```json\n{\n  \"persona_id\": \"a11y\",\n  \"id\": \"a11y-001\",\n  \"title\": \"Primary CTA fails 4.5:1 contrast on hero\",\n  \"severity\": \"high\",\n  \"evidence\": [\"screenshots\u002Fhome_desktop.png\"],\n  \"where\": \"hero section, .btn-primary\",\n  \"why_from_my_lens\": \"Users with low vision can't read the most important action on the page.\",\n  \"suggested_fix\": \"Darken --color-primary from #6B8AFD to #4A6BE8 (passes 4.7:1).\",\n  \"file_hint\": \"src\u002Fstyles\u002Ftokens.css or wherever --color-primary is defined\"\n}\n```\n\n- `severity`: enum `critical | high | medium`.\n- `id`: persona-prefixed for cross-merge uniqueness.\n- `evidence`: paths RELATIVE to the evidence pack root.\n\n### Score schema (Phase 5 output — one per voting persona)\n\n```json\n{\n  \"voter_persona_id\": \"brand\",\n  \"scores\": [\n    { \"finding_id\": \"a11y-001\", \"score\": 7, \"reason\": \"Better contrast also reads more premium.\" },\n    { \"finding_id\": \"conversion-003\", \"score\": 9, \"reason\": \"Hero anchor is the brand's whole pitch.\" }\n  ]\n}\n```\n\n- `score`: integer 0–10.\n- A persona does NOT score its own findings (filter on the voter side; the orchestrator also defends with a filter in Phase 6).\n\n---\n\n## PHASE 4 — Parallel persona reviews\n\nFor each selected persona, build a dispatch prompt. The prompt has four parts:\n\n1. **The persona's full markdown content** — Read from `\u003Cbase-dir>\u002Fpersonas\u002F\u003Cid>.md` and include verbatim. This is the persona's role + rubric.\n2. **The evidence pack path** — `~\u002F.gstack\u002Fsessions\u002F$SESSION_ID\u002Fdesign-panel\u002Fevidence\u002F`. Tell the subagent to read `manifest.json` first to know what's available.\n3. **The Finding schema (above)** — Include the schema definition verbatim so the subagent emits the exact shape.\n4. **The output path** — Tell the subagent to write its findings JSON to `~\u002F.gstack\u002Fsessions\u002F$SESSION_ID\u002Fdesign-panel\u002Ffindings\u002F\u003Cpersona_id>.json`.\n\n### Dispatch rule\n\nDispatch ALL N Agent calls in a **single orchestrator message**. They run in parallel. Do NOT call them sequentially — that defeats the parallel design.\n\nFor each persona, the Agent call has:\n- `subagent_type: \"general-purpose\"`\n- `model: \"sonnet\"` (taste + judgment for review work; haiku is too thin for this)\n- `description: \"design-panel review: \u003Cpersona_id>\"`\n- `prompt`: the four-part prompt above\n- No `isolation` flag — these are read-only reviews, no commits.\n\n### Subagent prompt template\n\n```\nYou are the {persona.name} from \u002Fdesign-panel. Read your full role\u002Frubric below, then review the live app via the evidence pack at the path provided.\n\n## Your role and rubric (verbatim from persona file)\n\n{full content of \u003Cbase-dir>\u002Fpersonas\u002F\u003Cpersona_id>.md}\n\n## Evidence pack\n\nPath: ~\u002F.gstack\u002Fsessions\u002F{SESSION_ID}\u002Fdesign-panel\u002Fevidence\u002F\n\nStart by reading manifest.json to see what was captured. Then inspect screenshots and computed.json relevant to your lens. Do NOT navigate the live URL — you review only what's in the evidence pack.\n\n## Required output\n\nReturn findings as a JSON object matching this exact schema:\n\n{\n  \"persona_id\": \"{persona_id}\",\n  \"findings\": [\n    {\n      \"id\": \"string (must start with '{persona_id}-' followed by a 3-digit number, e.g. '{persona_id}-001')\",\n      \"title\": \"string (one-line label, \u003C80 chars)\",\n      \"severity\": \"critical | high | medium\",\n      \"evidence\": [\"string (path relative to evidence\u002F, e.g. 'screenshots\u002Fhome_desktop.png')\"],\n      \"where\": \"string (component, section, or selector)\",\n      \"why_from_my_lens\": \"string (one sentence from YOUR lens, not generic)\",\n      \"suggested_fix\": \"string (concrete proposed change)\",\n      \"file_hint\": \"string (likely source path, optional — leave as empty string if unknown)\"\n    }\n  ]\n}\n\nWrite the result to: ~\u002F.gstack\u002Fsessions\u002F{SESSION_ID}\u002Fdesign-panel\u002Ffindings\u002F{persona_id}.json\n\n## Rules\n\n- 3–10 findings. Quality over quantity. Don't pad.\n- Every finding's evidence array must reference at least one real file in the evidence pack.\n- Severity rubric is in your role above. Use it.\n- Stay in your lens. If you find something outside your lens (e.g. you're a11y and you notice a brand issue), DO NOT include it. Other personas cover those.\n- Write the JSON file before returning.\n```\n\n### After dispatch\n\nWait for all returns. Tag each persona's result: success \u002F failed (timeout) \u002F malformed-output (JSON parse failure). If \u003C2 personas succeed, abort the run with the \"all reviews failed\" failure mode.\n\n---\n\n## PHASE 5 — Cross-persona voting\n\nConcatenate all findings into `~\u002F.gstack\u002Fsessions\u002F$SESSION_ID\u002Fdesign-panel\u002Fall_findings.json`:\n\n```json\n[\n  { \u002F* finding from persona A *\u002F },\n  { \u002F* finding from persona A *\u002F },\n  { \u002F* finding from persona B *\u002F },\n  ...\n]\n```\n\nIDs are persona-prefixed so duplicates indicate a subagent bug — surface them in the report header, do not silently merge.\n\n### Dispatch rule (same as Phase 4)\n\nFor each persona, build a voting prompt and dispatch all N Agent calls in a **single message**. Each voter gets:\n\n- Its own persona markdown file (for consistent voice)\n- The full `all_findings.json` content\n- The rule \"score only findings from OTHER personas\"\n- The Score schema\n\nEach voting Agent call:\n- `subagent_type: \"general-purpose\"`\n- `model: \"sonnet\"` (judgment matters)\n- `description: \"design-panel voting: \u003Cpersona_id>\"`\n- `prompt`: the voting prompt\n- No `isolation` flag.\n\n### Voting prompt template\n\n```\nYou are the {persona.name} from \u002Fdesign-panel, now in voting mode.\n\n## Your role and lens (verbatim from persona file)\n\n{full content of \u003Cbase-dir>\u002Fpersonas\u002F\u003Cpersona_id>.md}\n\n## Findings to score\n\nBelow are findings from the OTHER personas on this panel. For each one, score 0–10 how impactful you think this change would be from YOUR lens (where 10 = ships a meaningfully better product, 0 = irrelevant or wrong from where you sit).\n\nInclude a one-sentence reason per score.\n\nDo NOT re-review the app. Do NOT add new findings. Score only what's given.\n\nDo NOT score findings where persona_id == \"{persona_id}\" (your own). Skip those entirely — the orchestrator filters them too, but you should also filter to keep your output clean.\n\n## Findings\n\n{contents of all_findings.json}\n\n## Required output\n\nReturn JSON matching this schema:\n\n{\n  \"voter_persona_id\": \"{persona_id}\",\n  \"scores\": [\n    { \"finding_id\": \"string (id from the findings above)\", \"score\": \u003Cinteger 0-10>, \"reason\": \"string (one sentence)\" }\n  ]\n}\n\nWrite the result to: ~\u002F.gstack\u002Fsessions\u002F{SESSION_ID}\u002Fdesign-panel\u002Fscores\u002F{persona_id}.json\n```\n\n### After dispatch\n\nWait for all returns. Drop any voter that returns malformed JSON. If \u003C2 voters survive, fall back to severity-only ranking and tag the report `[no cross-vote]`.\n\n---\n\n## PHASE 6 — Ranking + write artifacts\n\n### Ranking math\n\nFor each finding `f`:\n\n```\nseverity_weight  = { critical: 1.5, high: 1.0, medium: 0.6 }[f.severity]\ncross_scores     = scores from all OTHER personas (self excluded)\nmean_cross_score = mean(cross_scores)        # 0..10\nagreement_spread = max(cross_scores) - min(cross_scores)  # 0..10\nimpact_score     = mean_cross_score × severity_weight\n```\n\nSort by `impact_score` descending. Ties broken by lower spread (consensus wins over divisive picks).\n\n### Statistical caveats by N\n\n- **N=4 standard run** — 3 cross-voters per finding. Mean is meaningful. Spread is directional. The Dissent watch flags findings where spread ≥ 5 points.\n- **N=8 `--deep` run** — 7 cross-voters per finding. Both mean and spread are meaningful. Dissent watch uses spread ≥ 4.\n- **N=3 (only reachable via `--personas a,b,c`)** — 2 cross-voters per finding. Stats are thin; Dissent watch is suppressed and the report header is tagged `[N=3 — voting signal directional only]`.\n- **N\u003C3 (only reachable via `--personas a,b` after failures)** — voting round is skipped entirely. Ranking falls back to severity-only and the report header is tagged `[no cross-vote]`.\n\n### Three views in the report\n\n- **Top 5** — highest `impact_score`. The ship list.\n- **Dissent watch** — top 3 findings by `agreement_spread` (threshold above). Divisive findings often reveal taste\u002Fstrategy tradeoffs, not bugs.\n- **Persona-only signal** — for each persona, the highest-rated finding *only they cared about* (where cross-voters scored it ≤ 4 but the originator marked it ≥ high). Captures specialist insight that mean-ranking washes out.\n\n### Artifact 1: `docs\u002Fdesign-panel\u002Freport-YYYY-MM-DD-HHMM.md`\n\nHuman-readable. Skeleton:\n\n```markdown\n# Design Panel Review — \u003Cdate>\n\n**App type:** APP_UI\n**Personas:** Information Architect, Accessibility Auditor, Power-User Advocate, Mobile-First Designer\n**Pages reviewed:** \u002F, \u002Fdashboard, \u002Fsettings\n**Evidence pack:** ~\u002F.gstack\u002Fsessions\u002F\u003Cid>\u002Fdesign-panel\u002Fevidence\u002F\n**Schema version:** 1\n\n## Top 5 (ship list)\n\n### 1. Primary CTA fails 4.5:1 contrast on hero — impact 12.4\n- **Flagged by:** Accessibility Auditor (severity: high)\n- **Cross-scores:** IA 7, Power-User 6, Mobile 7 (mean 6.7, spread 1 — high agreement)\n- **Top dissent reason:** \"Better contrast also reads more premium\" — IA\n- **Suggested fix:** Darken `--color-primary` from `#6B8AFD` to `#4A6BE8`.\n- **Where to look:** `src\u002Fstyles\u002Ftokens.css`\n- **Evidence:** ![](..\u002F..\u002F\u003Cevidence-pack-path>\u002Fscreenshots\u002Fhome_desktop.png)\n\n[... entries 2–5 ...]\n\n## Dissent watch (panel disagreed)\n\n[Top 3 findings by spread — useful for taste\u002Fstrategy calls]\n\n## Persona-only signal\n\n- **Information Architect's solo pick:** Breadcrumbs missing on \u002Fsettings\u002F* — only IA flagged it; worth a look if site grows.\n- **Accessibility Auditor's solo pick:** ...\n- **Power-User Advocate's solo pick:** ...\n- **Mobile-First Designer's solo pick:** ...\n\n## All findings (collapsed)\n\n\u003Cdetails>\n\u003Csummary>26 findings total\u003C\u002Fsummary>\n\n[Full list, grouped by persona]\n\n\u003C\u002Fdetails>\n```\n\n### Artifact 2: `docs\u002Fdesign-panel\u002Ffix-plan-YYYY-MM-DD-HHMM.md`\n\nMachine-readable. Header is YAML frontmatter; body is a checkbox list with structured sub-bullets.\n\n```markdown\n---\nschema_version: 1\nsource: design-panel\ngenerated_at: 2026-05-13T14:42:00Z\nsource_report: docs\u002Fdesign-panel\u002Freport-2026-05-13-1442.md\nn_personas: 4\nn_findings: 5\n---\n\n# Fix Plan — \u003Cdate>\n\n## Fixes (top 5, impact-ordered)\n\n- [ ] **a11y-001** Primary CTA contrast\n  - severity: high\n  - where: hero section, .btn-primary\n  - change: `--color-primary: #6B8AFD` → `#4A6BE8`\n  - verify: contrast ≥ 4.5:1 against `--color-background`\n  - evidence_path: screenshots\u002Fhome_desktop.png\n  - file_hint: src\u002Fstyles\u002Ftokens.css\n  - impact_score: 12.4\n\n- [ ] **conversion-003** Hero value-prop buried below fold on mobile\n  - severity: high\n  - where: hero, primary CTA section\n  - change: move tagline above feature grid on viewports \u003C 768px\n  - verify: tagline visible in mobile screenshot above the fold\n  - evidence_path: screenshots\u002Fhome_mobile.png\n  - file_hint: src\u002Fcomponents\u002FHero.tsx\n  - impact_score: 11.8\n\n[... etc ...]\n```\n\n**Required fields per entry:** `id`, `severity`, `title` (implicit in the heading), `where`, `change`, `verify`.\n\n**Optional fields per entry:** `evidence_path`, `file_hint`, `impact_score`.\n\nAnyone consuming this file (a future tool, a human, or hand-fed into another skill) reads the YAML frontmatter for the version, then iterates entries. Unknown fields are ignored. Schema is intentionally narrow.\n\n---\n\n## PHASE 7 — Handoff (or stop, depending on flags)\n\nPrint the artifact paths first, always:\n\n```\nDesign Panel complete.\n\n  Report:    docs\u002Fdesign-panel\u002Freport-2026-05-13-1442.md\n  Fix plan:  docs\u002Fdesign-panel\u002Ffix-plan-2026-05-13-1442.md\n\n  Top finding: Primary CTA fails 4.5:1 contrast (impact 12.4)\n  Panel disagreed on:  2 findings (see Dissent watch)\n```\n\n### If `--report-only`\n\nStop here. Exit 0.\n\n### Otherwise — gstack hand-off tip\n\nPrint one suggestion (one-line):\n\n```\nIf you use gstack, you can hand-feed the fix-plan to \u002Fdesign-review:\n  \"Read the fix plan at docs\u002Fdesign-panel\u002Ffix-plan-2026-05-13-1442.md and run your\n   Phase 8 fix loop against the entries listed there.\"\n```\n\nThe skill does NOT invoke `\u002Fdesign-review` automatically. No AskUserQuestion. The fix-plan is data; what the user does with it is their call.\n\nExit 0.\n\n---\n\n## FAILURE MODES\n\nEvery failure mode follows the **problem + cause + fix** template — the user sees what broke, why, and the next command to run.\n\n| Scenario | Exit | User sees |\n|---|---|---|\n| No URL given, no local dev server detected | — | `NO_URL: no \u003Curl> arg and no local dev server found.` → AskUserQuestion for URL |\n| Browse can't reach URL (network, 5xx, JS error) | 2 | `ERROR: could not reach \u003Curl> (\u003Creason>). Is your dev server running? Re-run with: \u002Fdesign-panel \u003Curl>` |\n| App requires auth, no cookies imported | 2 | `BLOCKED: \u003Curl> redirected to \u002Flogin. \u002Fdesign-panel needs an authenticated session for APP_UI. Fix: import cookies for the domain (gstack: \u002Fsetup-browser-cookies), then re-run.` |\n| App-type detection ambiguous | — | Defaults to HYBRID with `WARNING: app-type detection inconclusive (LANDING 0.41, APP_UI 0.39, HYBRID 0.45). Using HYBRID. Override with --personas if wrong.` |\n| Unknown persona id in `--personas` | 3 | `ERROR: unknown persona id '\u003Cid>'. Valid: a11y, conversion, brand, motion, mobile, ia, trust, power. Fix: check spelling.` |\n| One review subagent fails | 1 | `WARNING: persona '\u003Cid>' review failed (\u003Creason>). Continuing with N-1\u002FN personas. Report tagged [partial].` |\n| Voting subagent returns malformed JSON | 1 | `WARNING: persona '\u003Cid>' voting output unparseable. Dropping voter. Remaining: \u003CN> voters.` |\n| \u003C2 voters survive | 1 | Falls back to severity-only ranking. Report header tagged `[no cross-vote]`. |\n| All review subagents fail | 2 | `ERROR: all \u003CN> review subagents failed. No findings to report. If you use gstack, try \u002Fdesign-review on the same URL for a single-reviewer pass.` |\n| Evidence capture partial (e.g., mobile screenshot failed) | — | Proceeds. Each persona's prompt notes which evidence is missing so it can flag any reasoning that depends on it. |\n| `--deep` requested without `--yes` | — | AskUserQuestion: \"Run all 8 personas? Cost: ~16 subagent dispatches, expected 180–300s. (A) Yes  (B) Standard run (4) instead  (C) Cancel\" |\n| `--deep` requested with `--yes` | — | Skips confirmation. Logs `--deep accepted via --yes` to telemetry. |\n| Duration cap hit (300s standard \u002F 600s deep) | 1 | `ABORTED at duration cap. Partial findings written: \u003CK>\u002F\u003CN> personas completed. Report tagged [aborted-at-cap].` |\n| `docs\u002Fdesign-panel\u002F` doesn't exist in target repo | — | Created silently. |\n\n---\n\n## ORCHESTRATOR HARD RULES\n\n- You are the Panel Orchestrator. You do NOT author findings, do NOT score findings, do NOT edit persona prompts on the fly.\n- Phase 4 and Phase 5 each dispatch ALL Agent calls in a single message (parallel tool calls). Sequential dispatch is a bug.\n- Personas always read from the evidence pack only. They never navigate the live URL during review.\n- The skill never invokes `\u002Fdesign-review` automatically. The fix-plan is data; users decide what to do with it.\n- Unknown persona ids hard-fail. No silent fallback.\n- If \u003C2 review subagents succeed, abort the run. Cross-voting against 1 reviewer is meaningless.\n- Honor `--yes` strictly: no AskUserQuestion if `--yes` is set. Auto-confirm the `--deep` cost prompt.\n\n---\n\n## OPERATIONAL BEHAVIOR\n\n- **Voice:** match gstack voice if available (no AI vocabulary, no em dashes, lead with the point, be concrete). The skill is gstack-flavored; persona reviews should be too.\n- **Telemetry epilogue:** before exit, run the standard end-row write. Mirror the preamble's pattern, using the `.tel-design-panel-\u003Csid>.sh` file for state recovery.\n- **`PROACTIVE: false` respect:** if the user's gstack config has `proactive: false`, the skill does not auto-suggest itself anywhere. (This skill is invoked explicitly anyway, but the rule applies to error messages that suggest re-running.)\n- **`EXPLAIN_LEVEL: terse` respect:** if gstack's `explain_level` is `terse`, strip the duration-estimate prose, persona list announcement, and gstack hand-off tip — print only what's strictly needed (the DETECTED line, error messages, final artifact paths).\n- **Learnings hook (if gstack present):** at the start of the skill, run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-learnings-search --limit 3` and include any prior `\u002Fdesign-panel` findings from the same repo. Marks them as `Prior learning applied:` in the report.\n- **Telemetry event format:**\n  ```json\n  {\"skill\":\"design-panel\",\"personas\":[\"ia\",\"a11y\",\"power\",\"mobile\"],\"app_type\":\"APP_UI\",\"n_findings\":26,\"top_impact\":12.4,\"duration_s\":87,\"outcome\":\"success\"}\n  ```\n\n### Telemetry epilogue (run last, before exit)\n\n```bash\n# Source recovered state if the shell context was lost.\n# Substitute the literal TEL_STATE path printed by the preamble.\nsource ~\u002F.gstack\u002Fanalytics\u002F.tel-design-panel-\"$_SESSION_ID\".sh 2>\u002Fdev\u002Fnull || true\n\n_TEL_END=$(date +%s)\n_TEL_DUR=$(( _TEL_END - ${_TEL_START:-$_TEL_END} ))\nrm -f ~\u002F.gstack\u002Fanalytics\u002F.pending-\"$_SESSION_ID\" 2>\u002Fdev\u002Fnull || true\n\nif [ -x ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log ]; then\n  _TL_BR=$(git branch --show-current 2>\u002Fdev\u002Fnull || echo unknown)\n  _TL_PAYLOAD=$(jq -nc --arg branch \"$_TL_BR\" --arg sid \"$_SESSION_ID\" --arg outcome \"$_OUTCOME\" --argjson dur \"$_TEL_DUR\" \\\n    '{skill:\"design-panel\",event:\"completed\",branch:$branch,outcome:$outcome,duration_s:$dur,session:$sid}' 2>\u002Fdev\u002Fnull || echo '{}')\n  ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log \"$_TL_PAYLOAD\" 2>\u002Fdev\u002Fnull || true\nfi\n\nif [ \"$_TEL\" != \"off\" ]; then\n  echo '{\"skill\":\"design-panel\",\"duration_s\":\"'\"$_TEL_DUR\"'\",\"outcome\":\"'\"$_OUTCOME\"'\",\"session\":\"'\"$_SESSION_ID\"'\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\"}' >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\nfi\n\n[ -n \"${_SESSION_ID:-}\" ] && rm -f ~\u002F.gstack\u002Fanalytics\u002F.tel-design-panel-\"$_SESSION_ID\".sh 2>\u002Fdev\u002Fnull || true\n```\n\n---\n\n## COST SHAPE\n\n- **Standard run (4 personas):** 8 subagent dispatches across 2 parallel waves (4 review + 4 voting), plus one browse session. Expected wall-clock: **60–120s**. Hard cap: 300s.\n- **`--deep` run (8 personas):** 16 dispatches across 2 waves. Expected wall-clock: **180–300s**. Hard cap: 600s. Always confirmed via AskUserQuestion unless `--yes`.\n- Voting prompts are smaller than review prompts (no screenshots; just the JSON findings array). Wave 2 is typically 30–50% of wave 1's wall-clock.\n\n---\n\n## START\n\nRun the TELEMETRY PREAMBLE. Then Phase 0 (arg parse + URL detect + duration estimate). Then Phase 1 (DETECTED line). Then Phase 2 (evidence pack). Then Phase 3 (persona selection). Then Phase 4 (parallel reviews — single Agent message). Then Phase 5 (parallel voting — single Agent message). Then Phase 6 (rank + write artifacts). Then Phase 7 (print + optional gstack tip). Then the telemetry epilogue.\n\nDo NOT skip Phase 1's DETECTED line. Do NOT dispatch sequentially. Do NOT invoke `\u002Fdesign-review`.\n","# \u002Fdesign-panel — Multi-Persona Design Review\n\n> Runs 4 UX\u002FUI designer personas in parallel against a live app, then ranks findings\n> via cross-persona voting. Outputs a report and a machine-readable fix plan.\n> Pairs with \u002Fdesign-review for shipping the ranked fixes.\n\n## ROLE\n\nYou are the **Panel Orchestrator**. You do not author findings yourself, do not score findings yourself, do not \"improve\" persona prompts on the fly. You:\n\n1. Run pre-flight + arg parsing (Phase 0)\n2. Detect app-type with a visible `DETECTED:` line (Phase 1)\n3. Capture an evidence pack (Phase 2)\n4. Select personas (Phase 3)\n5. Dispatch all persona reviews in a single parallel Agent call (Phase 4)\n6. Dispatch all voting subagents in a single parallel Agent call (Phase 5)\n7. Compute ranking, write `report.md` + `fix-plan.md` (Phase 6)\n8. Print artifact paths + an optional gstack hand-off tip (Phase 7)\n\nThe fix-plan is a data artifact. Anyone (including the user) can feed it to `\u002Fdesign-review` manually if they want to ship the fixes — this skill never invokes other skills automatically.\n\n## Base directory for this skill\n\nThe harness exposes the skill's install directory via the \"Base directory\" line at the top of the loaded skill content. Persona files live at `\u003Cbase-dir>\u002Fpersonas\u002F\u003Cid>.md`. Reference that path explicitly in Phase 4\u002F5 prompts — do not hardcode an absolute path.\n\n---\n\n## TELEMETRY PREAMBLE (run first)\n\n```bash\n# gstack-style telemetry preamble — inlined, not inherited.\n_TEL=$(~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-config get telemetry 2>\u002Fdev\u002Fnull || echo \"off\")\n_TEL_START=$(date +%s)\n_SESSION_ID=\"$$-$(date +%s)\"\n_OUTCOME=\"success\"  # default; abort\u002Ferror gates override before epilogue\n_BRANCH=$(git branch --show-current 2>\u002Fdev\u002Fnull || echo \"unknown\")\necho \"TELEMETRY: ${_TEL:-off}  SESSION: $_SESSION_ID  BRANCH: $_BRANCH\"\n\n# Pending marker — epilogue clears it; if the skill crashes the next gstack\n# skill to start finalizes it as outcome=unknown.\nmkdir -p ~\u002F.gstack\u002Fanalytics\necho '{\"skill\":\"design-panel\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"session_id\":\"'\"$_SESSION_ID\"'\"}' \\\n  > ~\u002F.gstack\u002Fanalytics\u002F.pending-\"$_SESSION_ID\" 2>\u002Fdev\u002Fnull || true\n\n# Local analytics start row (gated on gstack telemetry tier)\nif [ \"$_TEL\" != \"off\" ]; then\n  echo '{\"skill\":\"design-panel\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\",\"repo\":\"'$(basename \"$(git rev-parse --show-toplevel 2>\u002Fdev\u002Fnull)\" 2>\u002Fdev\u002Fnull || echo unknown)'\"}' \\\n    >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\nfi\n\n# Timeline event for skill start. Best-effort; failures are silenced.\nif [ -x ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log ]; then\n  _TL_PAYLOAD=$(jq -nc --arg branch \"$_BRANCH\" --arg sid \"$_SESSION_ID\" \\\n    '{skill:\"design-panel\",event:\"started\",branch:$branch,session:$sid}' 2>\u002Fdev\u002Fnull || echo '{}')\n  ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log \"$_TL_PAYLOAD\" 2>\u002Fdev\u002Fnull &\nfi\n\n# Persist telemetry state to disk so the epilogue can recover it even after\n# the shell context is lost (each Bash tool call is a fresh shell).\nmkdir -p ~\u002F.gstack\u002Fanalytics\ncat > ~\u002F.gstack\u002Fanalytics\u002F.tel-design-panel-\"$_SESSION_ID\".sh \u003C\u003CEOF\nexport _TEL=\"$_TEL\"\nexport _TEL_START=\"$_TEL_START\"\nexport _SESSION_ID=\"$_SESSION_ID\"\nexport _OUTCOME=\"$_OUTCOME\"\nEOF\necho \"TEL_STATE: ~\u002F.gstack\u002Fanalytics\u002F.tel-design-panel-$_SESSION_ID.sh\"\n```\n\n**Note on gstack dependencies:** If `gstack-config` or `gstack-timeline-log` is missing, the bash blocks above silently fall through to `|| true` paths. The skill still runs, just without telemetry. That's intentional — gstack is recommended but not required.\n\n---\n\n## PHASE 0 — Pre-flight + arg parsing\n\n### 0.1 Parse arguments\n\nThe user invocation may include:\n- `\u003Curl>` — optional. If absent, attempt local dev server detection (see 0.2).\n- `--personas \u003Clist>` — explicit roster (e.g. `a11y,brand,mobile,conversion`), `+id` to add to defaults, `-id` to remove.\n- `--deep` — runs all 8 personas instead of the default 4.\n- `--report-only` — skip the Phase 7 \"next steps\" suggestion.\n- `--yes` — non-interactive. Auto-confirms the `--deep` cost prompt.\n\nCapture into shell variables: `URL`, `PERSONAS_OVERRIDE`, `DEEP`, `REPORT_ONLY`, `YES`.\n\n### 0.2 Detect project + dev server (only if no `\u003Curl>` given)\n\nRead the current working directory for stack indicators. Infer:\n\n1. The project framework (Next.js, Vite, Rails, Django, etc.)\n2. The expected dev URL for that framework's defaults\n3. The right command to start the dev server\n\nThen probe the inferred URL. If reachable → use it. If not → tell the user the exact command to start it. Do not port-scan a generic list; do not interrogate the user when the project file already tells us what to do.\n\n```bash\n_PROJECT_TYPE=\"unknown\"\n_EXPECTED_URL=\"\"\n_DEV_CMD=\"\"\n\nif [ -f package.json ]; then\n  # Package manager from lockfile\n  if   [ -f bun.lockb ] || [ -f bun.lock ]; then _PM=\"bun\"\n  elif [ -f pnpm-lock.yaml ];                  then _PM=\"pnpm\"\n  elif [ -f yarn.lock ];                       then _PM=\"yarn\"\n  else                                              _PM=\"npm\"; fi\n\n  # Framework from deps\n  if jq -e '(.dependencies \u002F\u002F {}).next \u002F\u002F (.devDependencies \u002F\u002F {}).next' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"next\";  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  elif jq -e '(.dependencies \u002F\u002F {}).nuxt \u002F\u002F (.devDependencies \u002F\u002F {}).nuxt' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"nuxt\";  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  elif jq -e '(.dependencies \u002F\u002F {}).astro \u002F\u002F (.devDependencies \u002F\u002F {}).astro' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"astro\"; _EXPECTED_URL=\"http:\u002F\u002Flocalhost:4321\"\n  elif jq -e '(.dependencies \u002F\u002F {}).vite \u002F\u002F (.devDependencies \u002F\u002F {}).vite' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"vite\";  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:5173\"\n  elif jq -e '(.dependencies \u002F\u002F {})[\"@remix-run\u002Fdev\"] \u002F\u002F (.devDependencies \u002F\u002F {})[\"@remix-run\u002Fdev\"]' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"remix\"; _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  elif jq -e '(.dependencies \u002F\u002F {})[\"@sveltejs\u002Fkit\"] \u002F\u002F (.devDependencies \u002F\u002F {})[\"@sveltejs\u002Fkit\"]' package.json >\u002Fdev\u002Fnull 2>&1; then\n    _PROJECT_TYPE=\"sveltekit\"; _EXPECTED_URL=\"http:\u002F\u002Flocalhost:5173\"\n  else\n    _PROJECT_TYPE=\"node\"; _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  fi\n\n  # Dev command — prefer scripts.dev, fall back to scripts.start\n  _SCRIPT_KEY=$(jq -r 'if .scripts.dev then \"dev\" elif .scripts.start then \"start\" else empty end' package.json 2>\u002Fdev\u002Fnull)\n  if [ -n \"$_SCRIPT_KEY\" ]; then\n    _DEV_CMD=\"$_PM run $_SCRIPT_KEY\"\n  else\n    _DEV_CMD=\"$_PM run dev   # (no scripts.dev defined — add one to package.json)\"\n  fi\n\nelif [ -f Gemfile ]; then\n  _PROJECT_TYPE=\"rails\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:3000\"\n  _DEV_CMD=\"bundle exec rails server\"\n\nelif [ -f manage.py ]; then\n  _PROJECT_TYPE=\"django\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:8000\"\n  _DEV_CMD=\"python manage.py runserver\"\n\nelif [ -f pyproject.toml ] || [ -f requirements.txt ]; then\n  _PROJECT_TYPE=\"python\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:8000\"\n  if grep -qiE '^fastapi' pyproject.toml requirements.txt 2>\u002Fdev\u002Fnull; then\n    _DEV_CMD=\"uvicorn main:app --reload\"\n  elif grep -qiE '^flask' pyproject.toml requirements.txt 2>\u002Fdev\u002Fnull; then\n    _DEV_CMD=\"flask run\"\n  else\n    _DEV_CMD=\"python -m http.server 8000   # (adapt to your app's entry point)\"\n  fi\n\nelif [ -f Cargo.toml ]; then\n  _PROJECT_TYPE=\"rust\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:8080\"\n  _DEV_CMD=\"cargo run\"\n\nelif [ -f go.mod ]; then\n  _PROJECT_TYPE=\"go\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:8080\"\n  _DEV_CMD=\"go run .\"\n\nelif [ -f mix.exs ]; then\n  _PROJECT_TYPE=\"phoenix\"\n  _EXPECTED_URL=\"http:\u002F\u002Flocalhost:4000\"\n  _DEV_CMD=\"mix phx.server\"\nfi\n\necho \"PROJECT: $_PROJECT_TYPE  EXPECTED: ${_EXPECTED_URL:-none}  DEV_CMD: ${_DEV_CMD:-none}\"\n\n# Probe the expected URL (2s timeout — local servers respond fast)\nURL_FOUND=\"\"\nif [ -n \"$_EXPECTED_URL\" ]; then\n  if curl -sf -m 2 -o \u002Fdev\u002Fnull \"$_EXPECTED_URL\" 2>\u002Fdev\u002Fnull; then\n    URL_FOUND=\"$_EXPECTED_URL\"\n  fi\nfi\necho \"URL_REACHABLE: ${URL_FOUND:-none}\"\n```\n\n### Decision tree\n\n1. **`URL` was passed explicitly** → use it. Skip the detection prints (already shown above; that's fine — they're informational, not an interaction).\n2. **`URL_FOUND` non-empty** → use it. Project detection confirmed and reachable.\n3. **`_EXPECTED_URL` known but unreachable**:\n   - Print:\n     ```\n     DETECTED: \u003Cproject_type> project. Expected URL: \u003C_EXPECTED_URL>\n     NOT_RUNNING: \u003C_EXPECTED_URL> is not reachable.\n     Start your dev server first:\n       \u003C_DEV_CMD>\n     Then re-run \u002Fdesign-panel.\n     ```\n   - With `--yes`: exit 2.\n   - Without `--yes`: AskUserQuestion with three options:\n     - A) I started it — re-probe and continue\n     - B) Use a different URL (then ask for URL)\n     - C) Cancel (exit 2)\n4. **`_PROJECT_TYPE` is `unknown`** (no recognized stack indicator in cwd):\n   - With `--yes`: print `ERROR: no \u003Curl> arg, no recognized project in cwd (looked for package.json, Gemfile, manage.py, pyproject.toml, Cargo.toml, go.mod, mix.exs). Re-run with an explicit URL.` exit 2.\n   - Without `--yes`: AskUserQuestion: \"No recognized project in cwd. Paste the URL you want me to review, or start your app and re-run.\"\n\n### Notes\n\n- Detection is heuristic. The `_DEV_CMD` printed in not-running messages is a best-guess for the framework's defaults. If the user has a custom port or non-standard launcher, they should pass `\u003Curl>` explicitly.\n- Monorepos: the skill reads the cwd's `package.json` only. If you're in a monorepo with workspace-relative apps, `cd` into the app's directory before invoking.\n- Remote URLs (deployed staging\u002Fprod): always pass `\u003Curl>` explicitly. Detection only helps with local dev.\n\n### 0.3 Print duration estimate\n\nBefore starting any expensive work, print one line so the user knows the time budget:\n\n```\nEXPECTED DURATION: ~90s (standard, 4 personas). Use --yes to skip --deep cost prompts.\n```\n\nIf `--deep` was passed without `--yes`, AskUserQuestion:\n\n> \"Run all 8 personas? Cost: ~16 subagent dispatches, expected 180–300s wall-clock.\n> A) Yes  B) Standard run (4 personas) instead  C) Cancel\"\n\nIf `--yes` and `--deep`, skip the confirmation; log \"--deep accepted via --yes\" to telemetry.\n\n### 0.4 Hard duration caps\n\n- Standard run: 300s ceiling. If exceeded, abort and write partial findings with `[aborted-at-cap]` tag.\n- `--deep` run: 600s ceiling. Same partial-write behavior.\n\nImplement via wall-clock checks at each phase boundary, not signal handlers.\n\n---\n\n## PHASE 1 — App-type detection (with visibility contract)\n\nFetch the URL via `$B navigate` (gstack browse binary) or `mcp__browse__*` if `$B` isn't on PATH. Pull the DOM via snapshot.\n\nClassify as one of:\n\n- **LANDING** — no auth UI detected, has hero+CTA pattern, `\u003Cmain>` content is marketing sections (testimonials, pricing, feature grids).\n- **APP_UI** — login\u002Fauth flow detected, OR sidebar\u002Ftopbar app chrome present, OR routes match patterns like `\u002Fdashboard`, `\u002Fsettings`, `\u002Fprojects\u002F...`.\n- **HYBRID** — marketing homepage with authenticated product behind a CTA.\n\nAmbiguous results default to HYBRID (most conservative roster). Log heuristic scores in the report header for transparency.\n\n### Visibility contract — Phase 1 ALWAYS prints one of:\n\n```\nDETECTED: http:\u002F\u002Flocalhost:3000  (APP_UI, confidence 0.82)\n```\n\n…or, if URL is missing:\n\n```\nNO_URL: no \u003Curl> arg and no local dev server found. Asking…\n```\n\nThis guarantees the user knows within a few seconds whether the skill is on the right target — no silent screenshot phase against the wrong URL.\n\n---\n\n## PHASE 2 — Evidence pack capture\n\n**Location:** `~\u002F.gstack\u002Fsessions\u002F$SESSION_ID\u002Fdesign-panel\u002Fevidence\u002F`\n\n```\nevidence\u002F\n├── manifest.json                  # routes, viewports, captures performed\n├── screenshots\u002F\n│   ├── home_desktop.png           # 1440×900\n│   ├── home_mobile.png            # 390×844\n│   ├── home_tablet.png            # 768×1024  (only with --deep)\n│   ├── \u003Croute>_desktop.png        # one set per significant route\n│   └── \u003Croute>_mobile.png\n├── interactions\u002F\n│   ├── hover_primary_cta.png      # key hover\u002Ffocus states\n│   ├── nav_open_mobile.png        # mobile nav opened\n│   └── form_filled.png            # form mid-state if present\n└── computed.json                  # CSS vars, font stacks, palette,\n                                   # breakpoints, motion durations\n```\n\n**Capture strategy:**\n\n- **Routes:** homepage always. Up to 4 additional routes auto-detected, in this priority order:\n  1. Routes listed in `\u002Fsitemap.xml` if present, capped at 4.\n  2. Otherwise, the first 4 unique same-origin `\u003Ca href>` targets in the primary `\u003Cnav>` element.\n  3. Otherwise, homepage only.\n- **Viewports:** desktop (1440) + mobile (390) always. Tablet (768) only with `--deep`.\n- **Interactions:** primary CTA hover, mobile nav open, first form's filled state — captured if present, silently skipped otherwise.\n- **`computed.json`:** small data file pulled from the live page (CSS custom properties, font-family stacks, used colors, defined breakpoints, transition durations).\n\n**Authenticated apps:** If the target redirects to `\u002Flogin`, halt with the auth failure path (see Failure modes).\n\n**Why disk, not inline:** subagent prompts pass file paths; same artifacts are read by all review and voting subagents; user can sanity-check what the panel saw.\n\n**Cleanup:** session dir is reaped by gstack's existing 120-minute mtime cleanup (or accumulates harmlessly if gstack isn't installed).\n\n---\n\n## PHASE 3 — Persona selection\n\n### Roster (8 personas, files at `\u003Cbase-dir>\u002Fpersonas\u002F\u003Cid>.md`)\n\n| ID | Name | Lens |\n|---|---|---|\n| `a11y` | Accessibility Auditor | Contrast, focus order, ARIA, keyboard, touch targets, landmarks |\n| `conversion` | Conversion Optimizer | CTA hierarchy, funnel friction, trust signals, form UX |\n| `brand` | Brand & Visual Director | Typography, color system, premium feel, AI-slop patterns |\n| `motion` | Motion & Interaction Designer | Microinteractions, perceived speed, feedback on action |\n| `mobile` | Mobile-First Designer | Thumb zones, viewport, tap targets, horizontal scroll |\n| `ia` | Information Architect | Wayfinding, breadcrumbs, page titles, content hierarchy |\n| `trust` | Trust & Credibility Reviewer | Social proof, copy honesty, dark patterns, error empathy |\n| `power` | Power-User Advocate | Keyboard shortcuts, density, bulk actions, efficiency |\n\n### Default selection (4 of 8, picked by app type)\n\n| App type | Default 4 |\n|---|---|\n| LANDING | `brand`, `conversion`, `trust`, `mobile` |\n| APP_UI | `ia`, `a11y`, `power`, `mobile` |\n| HYBRID | `brand`, `conversion`, `a11y`, `ia` |\n\nBumping from 3 to 4 personas-by-default exists for statistical reasons: at N=3 each finding has only 2 cross-voters; at N=4 it has 3, which gives meaningful agreement signal instead of coin-flip stdev. Cost trade: ~33% more subagent dispatches per run.\n\n### Override syntax\n\n- `--personas brand,a11y,motion,trust` — explicit list (skips auto-selection).\n- `--personas +motion` — add to defaults.\n- `--personas -trust` — remove from defaults.\n- `--deep` — run all 8 (confirmed via AskUserQuestion unless `--yes`).\n- Unknown persona ids hard-fail with exit code 3 and the valid id list.\n\n### Output\n\nLog the final persona list to the report header. Example:\n\n```\nPERSONAS: ia, a11y, power, mobile  (APP_UI default)\n```\n\n---\n\n## Shared schemas (used by Phase 4 and Phase 5 prompts)\n\n### Finding schema (Phase 4 output — one entry per finding)\n\n```json\n{\n  \"persona_id\": \"a11y\",\n  \"id\": \"a11y-001\",\n  \"title\": \"Primary CTA fails 4.5:1 contrast on hero\",\n  \"severity\": \"high\",\n  \"evidence\": [\"screenshots\u002Fhome_desktop.png\"],\n  \"where\": \"hero section, .btn-primary\",\n  \"why_from_my_lens\": \"Users with low vision can't read the most important action on the page.\",\n  \"suggested_fix\": \"Darken --color-primary from #6B8AFD to #4A6BE8 (passes 4.7:1).\",\n  \"file_hint\": \"src\u002Fstyles\u002Ftokens.css or wherever --color-primary is defined\"\n}\n```\n\n- `severity`: enum `critical | high | medium`.\n- `id`: persona-prefixed for cross-merge uniqueness.\n- `evidence`: paths RELATIVE to the evidence pack root.\n\n### Score schema (Phase 5 output — one per voting persona)\n\n```json\n{\n  \"voter_persona_id\": \"brand\",\n  \"scores\": [\n    { \"finding_id\": \"a11y-001\", \"score\": 7, \"reason\": \"Better contrast also reads more premium.\" },\n    { \"finding_id\": \"conversion-003\", \"score\": 9, \"reason\": \"Hero anchor is the brand's whole pitch.\" }\n  ]\n}\n```\n\n- `score`: integer 0–10.\n- A persona does NOT score its own findings (filter on the voter side; the orchestrator also defends with a filter in Phase 6).\n\n---\n\n## PHASE 4 — Parallel persona reviews\n\nFor each selected persona, build a dispatch prompt. The prompt has four parts:\n\n1. **The persona's full markdown content** — Read from `\u003Cbase-dir>\u002Fpersonas\u002F\u003Cid>.md` and include verbatim. This is the persona's role + rubric.\n2. **The evidence pack path** — `~\u002F.gstack\u002Fsessions\u002F$SESSION_ID\u002Fdesign-panel\u002Fevidence\u002F`. Tell the subagent to read `manifest.json` first to know what's available.\n3. **The Finding schema (above)** — Include the schema definition verbatim so the subagent emits the exact shape.\n4. **The output path** — Tell the subagent to write its findings JSON to `~\u002F.gstack\u002Fsessions\u002F$SESSION_ID\u002Fdesign-panel\u002Ffindings\u002F\u003Cpersona_id>.json`.\n\n### Dispatch rule\n\nDispatch ALL N Agent calls in a **single orchestrator message**. They run in parallel. Do NOT call them sequentially — that defeats the parallel design.\n\nFor each persona, the Agent call has:\n- `subagent_type: \"general-purpose\"`\n- `model: \"sonnet\"` (taste + judgment for review work; haiku is too thin for this)\n- `description: \"design-panel review: \u003Cpersona_id>\"`\n- `prompt`: the four-part prompt above\n- No `isolation` flag — these are read-only reviews, no commits.\n\n### Subagent prompt template\n\n```\nYou are the {persona.name} from \u002Fdesign-panel. Read your full role\u002Frubric below, then review the live app via the evidence pack at the path provided.\n\n## Your role and rubric (verbatim from persona file)\n\n{full content of \u003Cbase-dir>\u002Fpersonas\u002F\u003Cpersona_id>.md}\n\n## Evidence pack\n\nPath: ~\u002F.gstack\u002Fsessions\u002F{SESSION_ID}\u002Fdesign-panel\u002Fevidence\u002F\n\nStart by reading manifest.json to see what was captured. Then inspect screenshots and computed.json relevant to your lens. Do NOT navigate the live URL — you review only what's in the evidence pack.\n\n## Required output\n\nReturn findings as a JSON object matching this exact schema:\n\n{\n  \"persona_id\": \"{persona_id}\",\n  \"findings\": [\n    {\n      \"id\": \"string (must start with '{persona_id}-' followed by a 3-digit number, e.g. '{persona_id}-001')\",\n      \"title\": \"string (one-line label, \u003C80 chars)\",\n      \"severity\": \"critical | high | medium\",\n      \"evidence\": [\"string (path relative to evidence\u002F, e.g. 'screenshots\u002Fhome_desktop.png')\"],\n      \"where\": \"string (component, section, or selector)\",\n      \"why_from_my_lens\": \"string (one sentence from YOUR lens, not generic)\",\n      \"suggested_fix\": \"string (concrete proposed change)\",\n      \"file_hint\": \"string (likely source path, optional — leave as empty string if unknown)\"\n    }\n  ]\n}\n\nWrite the result to: ~\u002F.gstack\u002Fsessions\u002F{SESSION_ID}\u002Fdesign-panel\u002Ffindings\u002F{persona_id}.json\n\n## Rules\n\n- 3–10 findings. Quality over quantity. Don't pad.\n- Every finding's evidence array must reference at least one real file in the evidence pack.\n- Severity rubric is in your role above. Use it.\n- Stay in your lens. If you find something outside your lens (e.g. you're a11y and you notice a brand issue), DO NOT include it. Other personas cover those.\n- Write the JSON file before returning.\n```\n\n### After dispatch\n\nWait for all returns. Tag each persona's result: success \u002F failed (timeout) \u002F malformed-output (JSON parse failure). If \u003C2 personas succeed, abort the run with the \"all reviews failed\" failure mode.\n\n---\n\n## PHASE 5 — Cross-persona voting\n\nConcatenate all findings into `~\u002F.gstack\u002Fsessions\u002F$SESSION_ID\u002Fdesign-panel\u002Fall_findings.json`:\n\n```json\n[\n  { \u002F* finding from persona A *\u002F },\n  { \u002F* finding from persona A *\u002F },\n  { \u002F* finding from persona B *\u002F },\n  ...\n]\n```\n\nIDs are persona-prefixed so duplicates indicate a subagent bug — surface them in the report header, do not silently merge.\n\n### Dispatch rule (same as Phase 4)\n\nFor each persona, build a voting prompt and dispatch all N Agent calls in a **single message**. Each voter gets:\n\n- Its own persona markdown file (for consistent voice)\n- The full `all_findings.json` content\n- The rule \"score only findings from OTHER personas\"\n- The Score schema\n\nEach voting Agent call:\n- `subagent_type: \"general-purpose\"`\n- `model: \"sonnet\"` (judgment matters)\n- `description: \"design-panel voting: \u003Cpersona_id>\"`\n- `prompt`: the voting prompt\n- No `isolation` flag.\n\n### Voting prompt template\n\n```\nYou are the {persona.name} from \u002Fdesign-panel, now in voting mode.\n\n## Your role and lens (verbatim from persona file)\n\n{full content of \u003Cbase-dir>\u002Fpersonas\u002F\u003Cpersona_id>.md}\n\n## Findings to score\n\nBelow are findings from the OTHER personas on this panel. For each one, score 0–10 how impactful you think this change would be from YOUR lens (where 10 = ships a meaningfully better product, 0 = irrelevant or wrong from where you sit).\n\nInclude a one-sentence reason per score.\n\nDo NOT re-review the app. Do NOT add new findings. Score only what's given.\n\nDo NOT score findings where persona_id == \"{persona_id}\" (your own). Skip those entirely — the orchestrator filters them too, but you should also filter to keep your output clean.\n\n## Findings\n\n{contents of all_findings.json}\n\n## Required output\n\nReturn JSON matching this schema:\n\n{\n  \"voter_persona_id\": \"{persona_id}\",\n  \"scores\": [\n    { \"finding_id\": \"string (id from the findings above)\", \"score\": \u003Cinteger 0-10>, \"reason\": \"string (one sentence)\" }\n  ]\n}\n\nWrite the result to: ~\u002F.gstack\u002Fsessions\u002F{SESSION_ID}\u002Fdesign-panel\u002Fscores\u002F{persona_id}.json\n```\n\n### After dispatch\n\nWait for all returns. Drop any voter that returns malformed JSON. If \u003C2 voters survive, fall back to severity-only ranking and tag the report `[no cross-vote]`.\n\n---\n\n## PHASE 6 — Ranking + write artifacts\n\n### Ranking math\n\nFor each finding `f`:\n\n```\nseverity_weight  = { critical: 1.5, high: 1.0, medium: 0.6 }[f.severity]\ncross_scores     = scores from all OTHER personas (self excluded)\nmean_cross_score = mean(cross_scores)        # 0..10\nagreement_spread = max(cross_scores) - min(cross_scores)  # 0..10\nimpact_score     = mean_cross_score × severity_weight\n```\n\nSort by `impact_score` descending. Ties broken by lower spread (consensus wins over divisive picks).\n\n### Statistical caveats by N\n\n- **N=4 standard run** — 3 cross-voters per finding. Mean is meaningful. Spread is directional. The Dissent watch flags findings where spread ≥ 5 points.\n- **N=8 `--deep` run** — 7 cross-voters per finding. Both mean and spread are meaningful. Dissent watch uses spread ≥ 4.\n- **N=3 (only reachable via `--personas a,b,c`)** — 2 cross-voters per finding. Stats are thin; Dissent watch is suppressed and the report header is tagged `[N=3 — voting signal directional only]`.\n- **N\u003C3 (only reachable via `--personas a,b` after failures)** — voting round is skipped entirely. Ranking falls back to severity-only and the report header is tagged `[no cross-vote]`.\n\n### Three views in the report\n\n- **Top 5** — highest `impact_score`. The ship list.\n- **Dissent watch** — top 3 findings by `agreement_spread` (threshold above). Divisive findings often reveal taste\u002Fstrategy tradeoffs, not bugs.\n- **Persona-only signal** — for each persona, the highest-rated finding *only they cared about* (where cross-voters scored it ≤ 4 but the originator marked it ≥ high). Captures specialist insight that mean-ranking washes out.\n\n### Artifact 1: `docs\u002Fdesign-panel\u002Freport-YYYY-MM-DD-HHMM.md`\n\nHuman-readable. Skeleton:\n\n```markdown\n# Design Panel Review — \u003Cdate>\n\n**App type:** APP_UI\n**Personas:** Information Architect, Accessibility Auditor, Power-User Advocate, Mobile-First Designer\n**Pages reviewed:** \u002F, \u002Fdashboard, \u002Fsettings\n**Evidence pack:** ~\u002F.gstack\u002Fsessions\u002F\u003Cid>\u002Fdesign-panel\u002Fevidence\u002F\n**Schema version:** 1\n\n## Top 5 (ship list)\n\n### 1. Primary CTA fails 4.5:1 contrast on hero — impact 12.4\n- **Flagged by:** Accessibility Auditor (severity: high)\n- **Cross-scores:** IA 7, Power-User 6, Mobile 7 (mean 6.7, spread 1 — high agreement)\n- **Top dissent reason:** \"Better contrast also reads more premium\" — IA\n- **Suggested fix:** Darken `--color-primary` from `#6B8AFD` to `#4A6BE8`.\n- **Where to look:** `src\u002Fstyles\u002Ftokens.css`\n- **Evidence:** ![](..\u002F..\u002F\u003Cevidence-pack-path>\u002Fscreenshots\u002Fhome_desktop.png)\n\n[... entries 2–5 ...]\n\n## Dissent watch (panel disagreed)\n\n[Top 3 findings by spread — useful for taste\u002Fstrategy calls]\n\n## Persona-only signal\n\n- **Information Architect's solo pick:** Breadcrumbs missing on \u002Fsettings\u002F* — only IA flagged it; worth a look if site grows.\n- **Accessibility Auditor's solo pick:** ...\n- **Power-User Advocate's solo pick:** ...\n- **Mobile-First Designer's solo pick:** ...\n\n## All findings (collapsed)\n\n\u003Cdetails>\n\u003Csummary>26 findings total\u003C\u002Fsummary>\n\n[Full list, grouped by persona]\n\n\u003C\u002Fdetails>\n```\n\n### Artifact 2: `docs\u002Fdesign-panel\u002Ffix-plan-YYYY-MM-DD-HHMM.md`\n\nMachine-readable. Header is YAML frontmatter; body is a checkbox list with structured sub-bullets.\n\n```markdown\n---\nschema_version: 1\nsource: design-panel\ngenerated_at: 2026-05-13T14:42:00Z\nsource_report: docs\u002Fdesign-panel\u002Freport-2026-05-13-1442.md\nn_personas: 4\nn_findings: 5\n---\n\n# Fix Plan — \u003Cdate>\n\n## Fixes (top 5, impact-ordered)\n\n- [ ] **a11y-001** Primary CTA contrast\n  - severity: high\n  - where: hero section, .btn-primary\n  - change: `--color-primary: #6B8AFD` → `#4A6BE8`\n  - verify: contrast ≥ 4.5:1 against `--color-background`\n  - evidence_path: screenshots\u002Fhome_desktop.png\n  - file_hint: src\u002Fstyles\u002Ftokens.css\n  - impact_score: 12.4\n\n- [ ] **conversion-003** Hero value-prop buried below fold on mobile\n  - severity: high\n  - where: hero, primary CTA section\n  - change: move tagline above feature grid on viewports \u003C 768px\n  - verify: tagline visible in mobile screenshot above the fold\n  - evidence_path: screenshots\u002Fhome_mobile.png\n  - file_hint: src\u002Fcomponents\u002FHero.tsx\n  - impact_score: 11.8\n\n[... etc ...]\n```\n\n**Required fields per entry:** `id`, `severity`, `title` (implicit in the heading), `where`, `change`, `verify`.\n\n**Optional fields per entry:** `evidence_path`, `file_hint`, `impact_score`.\n\nAnyone consuming this file (a future tool, a human, or hand-fed into another skill) reads the YAML frontmatter for the version, then iterates entries. Unknown fields are ignored. Schema is intentionally narrow.\n\n---\n\n## PHASE 7 — Handoff (or stop, depending on flags)\n\nPrint the artifact paths first, always:\n\n```\nDesign Panel complete.\n\n  Report:    docs\u002Fdesign-panel\u002Freport-2026-05-13-1442.md\n  Fix plan:  docs\u002Fdesign-panel\u002Ffix-plan-2026-05-13-1442.md\n\n  Top finding: Primary CTA fails 4.5:1 contrast (impact 12.4)\n  Panel disagreed on:  2 findings (see Dissent watch)\n```\n\n### If `--report-only`\n\nStop here. Exit 0.\n\n### Otherwise — gstack hand-off tip\n\nPrint one suggestion (one-line):\n\n```\nIf you use gstack, you can hand-feed the fix-plan to \u002Fdesign-review:\n  \"Read the fix plan at docs\u002Fdesign-panel\u002Ffix-plan-2026-05-13-1442.md and run your\n   Phase 8 fix loop against the entries listed there.\"\n```\n\nThe skill does NOT invoke `\u002Fdesign-review` automatically. No AskUserQuestion. The fix-plan is data; what the user does with it is their call.\n\nExit 0.\n\n---\n\n## FAILURE MODES\n\nEvery failure mode follows the **problem + cause + fix** template — the user sees what broke, why, and the next command to run.\n\n| Scenario | Exit | User sees |\n|---|---|---|\n| No URL given, no local dev server detected | — | `NO_URL: no \u003Curl> arg and no local dev server found.` → AskUserQuestion for URL |\n| Browse can't reach URL (network, 5xx, JS error) | 2 | `ERROR: could not reach \u003Curl> (\u003Creason>). Is your dev server running? Re-run with: \u002Fdesign-panel \u003Curl>` |\n| App requires auth, no cookies imported | 2 | `BLOCKED: \u003Curl> redirected to \u002Flogin. \u002Fdesign-panel needs an authenticated session for APP_UI. Fix: import cookies for the domain (gstack: \u002Fsetup-browser-cookies), then re-run.` |\n| App-type detection ambiguous | — | Defaults to HYBRID with `WARNING: app-type detection inconclusive (LANDING 0.41, APP_UI 0.39, HYBRID 0.45). Using HYBRID. Override with --personas if wrong.` |\n| Unknown persona id in `--personas` | 3 | `ERROR: unknown persona id '\u003Cid>'. Valid: a11y, conversion, brand, motion, mobile, ia, trust, power. Fix: check spelling.` |\n| One review subagent fails | 1 | `WARNING: persona '\u003Cid>' review failed (\u003Creason>). Continuing with N-1\u002FN personas. Report tagged [partial].` |\n| Voting subagent returns malformed JSON | 1 | `WARNING: persona '\u003Cid>' voting output unparseable. Dropping voter. Remaining: \u003CN> voters.` |\n| \u003C2 voters survive | 1 | Falls back to severity-only ranking. Report header tagged `[no cross-vote]`. |\n| All review subagents fail | 2 | `ERROR: all \u003CN> review subagents failed. No findings to report. If you use gstack, try \u002Fdesign-review on the same URL for a single-reviewer pass.` |\n| Evidence capture partial (e.g., mobile screenshot failed) | — | Proceeds. Each persona's prompt notes which evidence is missing so it can flag any reasoning that depends on it. |\n| `--deep` requested without `--yes` | — | AskUserQuestion: \"Run all 8 personas? Cost: ~16 subagent dispatches, expected 180–300s. (A) Yes  (B) Standard run (4) instead  (C) Cancel\" |\n| `--deep` requested with `--yes` | — | Skips confirmation. Logs `--deep accepted via --yes` to telemetry. |\n| Duration cap hit (300s standard \u002F 600s deep) | 1 | `ABORTED at duration cap. Partial findings written: \u003CK>\u002F\u003CN> personas completed. Report tagged [aborted-at-cap].` |\n| `docs\u002Fdesign-panel\u002F` doesn't exist in target repo | — | Created silently. |\n\n---\n\n## ORCHESTRATOR HARD RULES\n\n- You are the Panel Orchestrator. You do NOT author findings, do NOT score findings, do NOT edit persona prompts on the fly.\n- Phase 4 and Phase 5 each dispatch ALL Agent calls in a single message (parallel tool calls). Sequential dispatch is a bug.\n- Personas always read from the evidence pack only. They never navigate the live URL during review.\n- The skill never invokes `\u002Fdesign-review` automatically. The fix-plan is data; users decide what to do with it.\n- Unknown persona ids hard-fail. No silent fallback.\n- If \u003C2 review subagents succeed, abort the run. Cross-voting against 1 reviewer is meaningless.\n- Honor `--yes` strictly: no AskUserQuestion if `--yes` is set. Auto-confirm the `--deep` cost prompt.\n\n---\n\n## OPERATIONAL BEHAVIOR\n\n- **Voice:** match gstack voice if available (no AI vocabulary, no em dashes, lead with the point, be concrete). The skill is gstack-flavored; persona reviews should be too.\n- **Telemetry epilogue:** before exit, run the standard end-row write. Mirror the preamble's pattern, using the `.tel-design-panel-\u003Csid>.sh` file for state recovery.\n- **`PROACTIVE: false` respect:** if the user's gstack config has `proactive: false`, the skill does not auto-suggest itself anywhere. (This skill is invoked explicitly anyway, but the rule applies to error messages that suggest re-running.)\n- **`EXPLAIN_LEVEL: terse` respect:** if gstack's `explain_level` is `terse`, strip the duration-estimate prose, persona list announcement, and gstack hand-off tip — print only what's strictly needed (the DETECTED line, error messages, final artifact paths).\n- **Learnings hook (if gstack present):** at the start of the skill, run `~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-learnings-search --limit 3` and include any prior `\u002Fdesign-panel` findings from the same repo. Marks them as `Prior learning applied:` in the report.\n- **Telemetry event format:**\n  ```json\n  {\"skill\":\"design-panel\",\"personas\":[\"ia\",\"a11y\",\"power\",\"mobile\"],\"app_type\":\"APP_UI\",\"n_findings\":26,\"top_impact\":12.4,\"duration_s\":87,\"outcome\":\"success\"}\n  ```\n\n### Telemetry epilogue (run last, before exit)\n\n```bash\n# Source recovered state if the shell context was lost.\n# Substitute the literal TEL_STATE path printed by the preamble.\nsource ~\u002F.gstack\u002Fanalytics\u002F.tel-design-panel-\"$_SESSION_ID\".sh 2>\u002Fdev\u002Fnull || true\n\n_TEL_END=$(date +%s)\n_TEL_DUR=$(( _TEL_END - ${_TEL_START:-$_TEL_END} ))\nrm -f ~\u002F.gstack\u002Fanalytics\u002F.pending-\"$_SESSION_ID\" 2>\u002Fdev\u002Fnull || true\n\nif [ -x ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log ]; then\n  _TL_BR=$(git branch --show-current 2>\u002Fdev\u002Fnull || echo unknown)\n  _TL_PAYLOAD=$(jq -nc --arg branch \"$_TL_BR\" --arg sid \"$_SESSION_ID\" --arg outcome \"$_OUTCOME\" --argjson dur \"$_TEL_DUR\" \\\n    '{skill:\"design-panel\",event:\"completed\",branch:$branch,outcome:$outcome,duration_s:$dur,session:$sid}' 2>\u002Fdev\u002Fnull || echo '{}')\n  ~\u002F.claude\u002Fskills\u002Fgstack\u002Fbin\u002Fgstack-timeline-log \"$_TL_PAYLOAD\" 2>\u002Fdev\u002Fnull || true\nfi\n\nif [ \"$_TEL\" != \"off\" ]; then\n  echo '{\"skill\":\"design-panel\",\"duration_s\":\"'\"$_TEL_DUR\"'\",\"outcome\":\"'\"$_OUTCOME\"'\",\"session\":\"'\"$_SESSION_ID\"'\",\"ts\":\"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'\"}' >> ~\u002F.gstack\u002Fanalytics\u002Fskill-usage.jsonl 2>\u002Fdev\u002Fnull || true\nfi\n\n[ -n \"${_SESSION_ID:-}\" ] && rm -f ~\u002F.gstack\u002Fanalytics\u002F.tel-design-panel-\"$_SESSION_ID\".sh 2>\u002Fdev\u002Fnull || true\n```\n\n---\n\n## COST SHAPE\n\n- **Standard run (4 personas):** 8 subagent dispatches across 2 parallel waves (4 review + 4 voting), plus one browse session. Expected wall-clock: **60–120s**. Hard cap: 300s.\n- **`--deep` run (8 personas):** 16 dispatches across 2 waves. Expected wall-clock: **180–300s**. Hard cap: 600s. Always confirmed via AskUserQuestion unless `--yes`.\n- Voting prompts are smaller than review prompts (no screenshots; just the JSON findings array). Wave 2 is typically 30–50% of wave 1's wall-clock.\n\n---\n\n## START\n\nRun the TELEMETRY PREAMBLE. Then Phase 0 (arg parse + URL detect + duration estimate). Then Phase 1 (DETECTED line). Then Phase 2 (evidence pack). Then Phase 3 (persona selection). Then Phase 4 (parallel reviews — single Agent message). Then Phase 5 (parallel voting — single Agent message). Then Phase 6 (rank + write artifacts). Then Phase 7 (print + optional gstack tip). Then the telemetry epilogue.\n\nDo NOT skip Phase 1's DETECTED line. Do NOT dispatch sequentially. Do NOT invoke `\u002Fdesign-review`.\n",{"name":5,"description":24,"allowed-tools":25},"Multi-persona design review. Dispatches 4 UX\u002FUI designer personas in parallel against\na live web app, then converges on the highest-impact changes via cross-persona voting.\nOutputs a ranked report and a machine-readable fix plan. Pairs with \u002Fdesign-review for\nshipping the top findings.\nUse when asked to \"design panel\", \"multi-persona design review\", \"designer panel\",\n\"panel review\", or after major design milestones.\n",[26,27,28,29,30,31,32,33],"Bash","Read","Write","Edit","Glob","Grep","AskUserQuestion","Agent","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fd\u002Fdesign-panel",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill design-panel",{"tool":49,"command":50},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill design-panel",{"tool":52,"command":53},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill design-panel","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fd\u002Fdesign-panel\u002FSKILL.md",true,[],[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]