Skip to content

heymegabyte/agent-skills / 06-build-and-slice-loop

build-and-slice-loop

Verified

Use when implementing features or streaming OnePrompt site builds. Complete vertical slices with real content, strict TypeScript and Zod. Parallel section/data work, deterministic assembly, granular patches and immediate valid previews.

FileKindSize
SKILL.mdskill md7.2 KB
admin-dashboard.mdmarkdown5.5 KB
ai-chat-widget.mdmarkdown6.0 KB
blog-and-content-engine.mdmarkdown6.2 KB
build-breaking-rules.mdmarkdown7.4 KB
chat-native-dashboard.mdmarkdown3.6 KB
contact-forms-and-endpoints.mdmarkdown6.7 KB
copilot-and-ai-features.mdmarkdown7.4 KB
custom-error-pages.mdmarkdown4.5 KB
data-tables.mdmarkdown7.7 KB
domain-provisioning.mdmarkdown4.6 KB
easter-eggs.mdmarkdown4.7 KB
empty-states-and-loading.mdmarkdown5.7 KB
file-uploads-and-storage.mdmarkdown6.7 KB
internationalization.mdmarkdown4.3 KB
keyboard-shortcuts-and-command-palette.mdmarkdown6.7 KB
microcopy-library.mdmarkdown8.0 KB
notification-center.mdmarkdown8.4 KB
onboarding-and-first-run.mdmarkdown5.0 KB
pre-digested-builds.mdmarkdown3.6 KB
pwa-kit.mdmarkdown6.8 KB
realtime-and-websockets.mdmarkdown7.2 KB
rich-text-editor.mdmarkdown7.4 KB
site-search.mdmarkdown4.0 KB
stripe-first-donations.mdmarkdown10.7 KB
web-manifest-system.mdmarkdown11.9 KB
webhook-system.mdmarkdown9.5 KB

chat-native-dashboard.md

View on GitHub
---
name: "Chat-Native Dashboard"
version: "2.0.0"
updated: "2026-04-23"
description: "ChatGPT-style three-column layout as primary interface for all service apps. Login=dashboard with blur overlay. Chat is the operating system — every feature accessible through conversation + inline widgets. CF Agents SDK AIChatAgent for stateful sessions."
---

# Chat-Native Dashboard Pattern

## Architecture

- Three-column layout
  - **Left** — thread history + data editor
  - **Center** — chat with inline widgets
  - **Right** — contextual panel (phone/status/settings)
- Auth overlay = same page with `backdrop-filter: blur(12px)` over dashboard, not a separate route
- `/login` → redirect to `/dashboard`

## Widget System

- Chat messages carry `widget` and `widgetData` fields
- Template uses `@if (msg.widget === 'type')` to render inline interactive components

### Core widgets

- `ssn-auth`, `voice-biometric`, `upload`
- `status-cards`, `quick-actions`
- `video-player`, `application-video`
- `timeline`, `progress`, `confirm`
- `data-view`, `form-wizard`, `document-checklist`
- `notification`, `progress-bar`
- `profile-completion`, `program-card`, `settings`

Every AI response includes contextual action buttons via `buttons[]` array.

## Command Palette (Cmd+K)

- Linear/Notion-style Cmd+K palette
- Fuzzy search across all commands — apply | upload | status | profile | call | notifications | settings | signout
- Keyboard shortcut `Meta+K` toggles
- Styled as glass modal centered at 20vh from top

### Focus contract

- Cmd+K opens AND focuses the chat/palette input on the same frame — caret blinking, ready to type
- `autofocus` attr + `requestAnimationFrame(()=>inputRef.current?.focus({preventScroll:true}))` after open-state flip
- Re-press while open = re-focus + `select()` existing text
- Esc returns focus to trigger
- Build-gated by Playwright `await expect(input).toBeFocused()` after `keyboard.press('Meta+K')`

## Notification System

- Bell icon in header with unread badge
- Dropdown shows time-ordered notifications with read/unread state
- Mark-all-read
- Click notification triggers action
- Notifications generated from — application status changes, document processing, profile completion prompts

## Auth Flow

1. Anonymous
2. SSN entry (overlay)
3. Voice biometric (overlay)
4. Authenticated (blur dissolves)

- **SSN** — AES-256-GCM encrypted, font-mono tracking-wide centered input
- **Voice** — 5-second recording, animated pulse rings, processing spinner, green checkmark on success
- **Skip option** for anonymous browsing

## Data Management

- "Your Data" slides over left sidebar as overlay panel
- All fields needed for government form submissions — `name`, `dob`, `gender`, `phone`, `email`, `address`, `county`, `household`, `income`, `homeless`, `disabled`, `blind`, `deaf`, `veteran`, `children`, `language`
- Save to backend API
- Submission videos listed below profile fields with play buttons

## Real-Time Features

- **Phone panel** — Twilio Voice SDK v2 WebRTC
- Live transcript in right sidebar
- Call duration timer
- Drag-and-drop file upload anywhere on chat window
- Upload progress bar with animation
- Thread history persisted to sessionStorage (future — backend)

## Key Principles

1. Chat = primary interface. Phone calls and web forms are secondary access methods.
2. Every feature is a chat widget. Status checks, file uploads, form reviews — all inline.
3. Auth is a layer, not a page. Dashboard always visible behind blur.
4. Mobile-responsive — sidebars become slide-out drawers with backdrop overlays.
5. Evidence-first — every form submission generates video + screenshots accessible from chat.
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall