AGENT SKILL

frontend-mockup-loop-dashboard

Dashboard-specific adapter on the generic frontend-mockup-loop skill: binds the 7-step design loop to pi-agent-dashboard component sources, theme-system tokens, and isolated verification. Use when designing/redesigning any pi-agent-dashboard client surface. Triggers: "design a dashboard screen", "mockup a dashboard surface", "redesign SessionCard", "make dashboard UI consistent".

License 许可
MIT
最近更新
2026-11-12
Stars
★ 348
Forks
56

01 前言 Front Matter

name
frontend-mockup-loop-dashboard
created
2026-06-23
updated
2026-11-07
version
1
description
Dashboard-specific adapter on the generic frontend-mockup-loop skill: binds the 7-step design loop to pi-agent-dashboard component sources, theme-system tokens, and isolated verification. Use when designing/redesigning any pi-agent-dashboard client surface. Triggers: "design a dashboard screen", "mockup a dashboard surface", "redesign SessionCard", "make dashboard UI consistent".

03 SKILL.md 正文

When to Use

Use when designing or refining any surface in packages/client (or src/client) of pi-agent-dashboard, and for every mock / mockup / UI-option / variant request here. This is a THIN ADAPTER: the generic loop, tools, and rubric live in the frontend-mockup-loop skill (source of truth: the workspace copy in packages/mockup-loop). Load that first for the full procedure; this skill only supplies the dashboard-specific bindings. Skip for trivial one-class tweaks.

Procedure

  1. LOAD the generic loop first: read the WORKSPACE copy packages/mockup-loop/.pi/skills/frontend-mockup-loop/SKILL.md (not an installed npm copy: unreleased skill changes apply here before the next release). Follow its 7 steps (GROUND, CONTRACT, MOCKUP, TEST, FIX, PROMOTE, LEARN) and use its tools (serve_mockup, score_mockup, init_ui_contract). The bindings below override only the dashboard-specific details. ANTI-SLOP binding (packages/anti-slop suite): Design Read profile is always product-ui; redesign mode preserve (anti-slop-redesign: audit first, protected list incl. data-testid + keyboard shortcuts); image direction is off for every dashboard surface (never run anti-slop-image-direction or anti-slop-brandkit here). Part B and layout discipline do not apply.
  2. GROUND binding: read the authoritative component source (e.g. packages/client/src/components/SessionCard.tsx) and capture the exact classes (e.g. rounded-xl border border-[var(--border-secondary)] bg-[var(--bg-secondary)]) and cite colours by TOKEN NAME (--bg-secondary, --bg-tertiary, --severity-*-{bg,fg,border}), never by a measured hex: values differ per palette. Delegate harvest per the debug-dashboard skill's references/isolated-verification.md.
  3. CONTRACT binding: read root ui-contract.md for every design fact (token roles, severity/tint/status families, type/spacing scale, WCAG invariants, theme layers). Token definitions live in packages/client/src/index.css (base dark/light); 8 more palettes x dark/light are runtime overrides from packages/client/src/lib/theme/themes.ts. New tokens get added to the theme layer first, then cited in ui-contract.md. Per-change scope: write openspec/changes/<name>/mockups/ui-plan.md (surfaces -> tokens -> states).
  4. MOCKUP binding: live-component mock is MANDATORY (generic step 3: fidelity R1-R4, scripts for behaviour, show with serve_mock_site, #ref URLs in every question, decisions via mock-decide). One page per <root>/<yyyy-mm-dd-slug>/mock.tsx using REAL @app/* client components, kit via mock-site/kit, rings Issue/Fix on the divs that change (guide: packages/mockup-loop/references/live-mock-site.md; example: packages/mockup-loop/examples/2026-11-03-session-pills/). Environment: inherited from packages/client/vite.config.ts via root package.json mockSite (launcher packages/client/scripts/vite-build.mjs) — never copy client aliases or plugins; mockups/mock-site.config.ts holds options only (title, themes, app, mock-only aliases @app/@flows), plus mock-site.app.tsx + mock-site.css. Host APIs (/api/*, /ws) come from fixtures (capture real shapes with mock-capture); "Missing fixtures" on the page lists what is still unanswered. Serve serve_mock_site{} (port 5299, never 8000) or npm run mocks. Static boards only for geometry repros (chat-selection-anchor style), and only as a directory holding STATIC.md that names the exception — never a loose .html (npm run check:mockups reports it). Location: change exists -> mockups go to openspec/changes/<name>/mockups/ (no marker row). No change yet (explore mode) -> write a dated live mock mockups/<yyyy-mm-dd-slug>/mock.tsx (static: mockups/<slug>/ + STATIC.md) and add a mockups/AGENTS.md row whose Purpose cell ends exactly Pending change: <intent> right before the closing | — spelling and casing exact, intent a short human hint with no | and no backticks. The marker makes it adoptable: openspec/config.yaml rules.proposal and plan-proposal Step 1b move it into the change when its proposal is created. Mockups not meant for a change get no marker. Verify dark AND light. PLUGIN SURFACE binding (a plugin page, dialog, overlay route or slot widget): compose from the runtime kit (dashboard-plugin-runtime: SettingsStatusPill, SettingsNotice, SettingsActionError, the field family) and the ui:* primitives (ui:dialog, ui:status-pill, ...), never hand-built equivalents. Check the slot and its footprint in packages/dashboard-plugin-skill/.pi/skills/dashboard-plugin-scaffold/references/slot-taxonomy.md, and the plugin-author rules in references/host-design.md. A plugin overlay route or slot widget is mocked inside its host: give the frame surroundings that render the real host shell part (the overlay chrome / slot container) around the slot, identical in both panes (R1). Rows without a reference implementation in ui-contract.md say Adoption: pending.
  5. PROMOTE binding: NEVER verify against the live :8000 server — it runs MAIN-repo code; worktree edits never load. Use isolated verification (debug-dashboard skill → references/isolated-verification.md: temp HOME, non-8000 ports, PI_DASHBOARD_NO_MDNS=1, openspec poll enabled:false). Confirm live root via lsof -i:8000 before/after; original PID must be unchanged.

Pitfalls

  • In an isolated env pass explicit --port/--pi-port to pi-dashboard stop (it honors them and kills only listeners that HOME owns; never use --force, never copy server.pid/server.lock*/instances/ from the real HOME). Or kill by pgrep -f 'cli.ts.*--port <N>'.
  • Do NOT leave openspec poll enabled during browser QA on this repo (73+ changes) — it starves the WS heartbeat -> blank client + dropped bridge. Set enabled:false in the isolated HOME config first.
  • Do NOT trust agent-browser eval on a file:// static page — it can blank the page and the live session-list timer invalidates @e<N> snapshot refs. Prefer clicking the page's own controls.
  • Do NOT duplicate the generic procedure here — if a rule is not dashboard-specific, it belongs in the frontend-mockup-loop skill, not this adapter.

Verification

  1. Generic frontend-mockup-loop rubric passes (contrast, responsive, anti-slop) in both themes at 3 breakpoints.
  2. ui-contract.md / ui-plan.md values reference index.css tokens, not raw hex.
  3. Theme parity (anti-slop-frontend T1-T3): zero added raw colour literals in the diff (index.css + themes.ts excluded); node scripts/theme-token-guard.mjs reports no new violation; screenshots exist for Base dark, Base light and one non-base palette from themes.ts. Visual judgment of them is a non-gating note.
  4. Promote happened in an isolated env on non-8000 ports; lsof -i:8000 still shows the original live server PID unchanged.
  5. Mockups landed under openspec/changes/<name>/mockups/, or (no change yet) under mockups/ with a Pending change: <intent> row; npm run check:mockups -- --base origin/develop reports nothing new.

04 同仓库更多 Skills

BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

youtube-srt

Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on "download the srt of this video", "transcripts of channel X for the last N months", "catalog the models AI Search talked about", "update docs/models".

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

video-transcription

Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on "/transcribe", "transcribe my meetings", "transcribe videos in ~/Movies", or any request to convert audio/video to text.

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

speaker-id

Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers "who is speaker 2", "put names on the transcript", "label the meeting SRT", "the diarization split one person into three", "enroll my voice". Backed by the pi-voiceid CLI.

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

veo-showreel-production-kit

Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

veo-generator

Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots/*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on "render the Veo video for <project>", "generate the videos from the shot scripts", "make the clips with Veo".

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

hyperframes-showreel

Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on "make a showreel from these recordings", "build the HyperFrames video", "assemble the footage edit", "render and QA the showreel".

★ 348