[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FE0KVJ2ZQMETAHNRT258YH":3,"skill-same:01M6FE0KVJ2ZQMETAHNRT258YH":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6FE0KVJ2ZQMETAHNRT258YH","design-guide",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpaperclipai\u002Fpaperclip\u002Fdesign-guide\u002FSKILL.md",[],[18,19,20],"design","design guide","guide","2026-11-10 10:12:30",false,"# Paperclip Design Guide\n\nPaperclip's UI is a professional-grade control plane — dense, keyboard-driven, dark-themed by default. Every pixel earns its place.\n\n**Always use with:** `frontend-design` (visual polish) and `web-design-guidelines` (web best practices).\n\n---\n\n## 1. Design Principles\n\n- **Dense but scannable.** Maximum information without clicks to reveal. Whitespace separates, not pads.\n- **Keyboard-first.** Global shortcuts (Cmd+K, C, [, ]). Power users rarely touch the mouse.\n- **Contextual, not modal.** Inline editing over dialog boxes. Dropdowns over page navigations.\n- **Dark theme default.** Neutral grays (OKLCH), not pure black. Accent colors for status\u002Fpriority only. Text is the primary visual element.\n- **Component-driven.** Prefer reusable components that capture style conventions. Build at the right abstraction — not too granular, not too monolithic.\n\n---\n\n## 2. Tech Stack\n\n- **React 19** + **TypeScript** + **Vite**\n- **Tailwind CSS v4** with CSS variables (OKLCH color space)\n- **shadcn\u002Fui** (new-york style, neutral base, CSS variables enabled)\n- **Radix UI** primitives (accessibility, focus management)\n- **Lucide React** icons (16px nav, 14px inline)\n- **class-variance-authority** (CVA) for component variants\n- **clsx + tailwind-merge** via `cn()` utility\n\nConfig: `ui\u002Fcomponents.json` (aliases: `@\u002Fcomponents`, `@\u002Fcomponents\u002Fui`, `@\u002Flib`, `@\u002Fhooks`)\n\n---\n\n## 3. Design Tokens\n\nAll tokens defined as CSS variables in `ui\u002Fsrc\u002Findex.css`. Both light and dark themes use OKLCH.\n\n### Colors\n\nUse semantic token names, never raw color values:\n\n| Token | Usage |\n|-------|-------|\n| `--background` \u002F `--foreground` | Page background and primary text |\n| `--card` \u002F `--card-foreground` | Card surfaces |\n| `--primary` \u002F `--primary-foreground` | Primary actions, emphasis |\n| `--secondary` \u002F `--secondary-foreground` | Secondary surfaces |\n| `--muted` \u002F `--muted-foreground` | Subdued text, labels |\n| `--accent` \u002F `--accent-foreground` | Hover states, active nav items |\n| `--destructive` | Destructive actions |\n| `--border` | All borders |\n| `--ring` | Focus rings |\n| `--sidebar-*` | Sidebar-specific variants |\n| `--chart-1` through `--chart-5` | Data visualization |\n\n### Radius\n\nSingle `--radius` variable (0.625rem) with derived sizes:\n\n- `rounded-sm` — small inputs, pills\n- `rounded-md` — buttons, inputs, small components\n- `rounded-lg` — cards, dialogs\n- `rounded-xl` — card containers, large components\n- `rounded-full` — badges, avatars, status dots\n\n### Shadows\n\nMinimal shadows: `shadow-xs` (outline buttons), `shadow-sm` (cards). No heavy shadows.\n\n---\n\n## 4. Typography Scale\n\nUse these exact patterns — do not invent new ones:\n\n| Pattern | Classes | Usage |\n|---------|---------|-------|\n| Page title | `text-xl font-bold` | Top of pages |\n| Section title | `text-lg font-semibold` | Major sections |\n| Section heading | `text-sm font-semibold text-muted-foreground uppercase tracking-wide` | Section headers in design guide, sidebar |\n| Card title | `text-sm font-medium` or `text-sm font-semibold` | Card headers, list item titles |\n| Body | `text-sm` | Default body text |\n| Muted | `text-sm text-muted-foreground` | Descriptions, secondary text |\n| Tiny label | `text-xs text-muted-foreground` | Metadata, timestamps, property labels |\n| Mono identifier | `text-xs font-mono text-muted-foreground` | Issue keys (PAP-001), CSS vars |\n| Large stat | `text-2xl font-bold` | Dashboard metric values |\n| Code\u002Flog | `font-mono text-xs` | Log output, code snippets |\n\n---\n\n## 5. Status & Priority Systems\n\n### Status Colors (consistent across all entities)\n\nDefined in `StatusBadge.tsx` and `StatusIcon.tsx`:\n\n| Status | Color | Entity types |\n|--------|-------|-------------|\n| active, achieved, completed, succeeded, approved, done | Green shades | Agents, goals, issues, approvals |\n| running | Cyan | Agents |\n| paused | Orange | Agents |\n| idle, pending | Yellow | Agents, approvals |\n| failed, error, rejected, blocked | Red shades | Runs, agents, approvals, issues |\n| archived, planned, backlog, cancelled | Neutral gray | Various |\n| todo | Blue | Issues |\n| in_progress | Indigo | Issues |\n| in_review | Violet | Issues |\n\n### Priority Icons\n\nDefined in `PriorityIcon.tsx`: critical (red\u002FAlertTriangle), high (orange\u002FArrowUp), medium (yellow\u002FMinus), low (blue\u002FArrowDown).\n\n### Agent Status Dots\n\nInline colored dots: running (cyan, animate-pulse), active (green), paused (yellow), error (red), offline (neutral).\n\n---\n\n## 6. Component Hierarchy\n\nThree tiers:\n\n1. **shadcn\u002Fui primitives** (`ui\u002Fsrc\u002Fcomponents\u002Fui\u002F`) — Button, Card, Input, Badge, Dialog, Tabs, etc. Do not modify these directly; extend via composition.\n2. **Custom composites** (`ui\u002Fsrc\u002Fcomponents\u002F`) — StatusBadge, EntityRow, MetricCard, etc. These capture Paperclip-specific design language.\n3. **Page components** (`ui\u002Fsrc\u002Fpages\u002F`) — Compose primitives and composites into full views.\n\n**See [references\u002Fcomponent-index.md](references\u002Fcomponent-index.md) for the complete component inventory with usage guidance.**\n\n### When to Create a New Component\n\nCreate a reusable component when:\n- The same visual pattern appears in 2+ places\n- The pattern has interactive behavior (status changing, inline editing)\n- The pattern encodes domain logic (status colors, priority icons)\n\nDo NOT create a component for:\n- One-off layouts specific to a single page\n- Simple className combinations (use Tailwind directly)\n- Thin wrappers that add no semantic value\n\n---\n\n## 7. Composition Patterns\n\nThese patterns describe how components work together. They may not be their own component, but they must be used consistently across the app.\n\n### Entity Row with Status + Priority\n\nThe standard list item for issues and similar entities:\n\n```tsx\n\u003CEntityRow\n  leading={\u003C>\u003CStatusIcon status=\"in_progress\" \u002F>\u003CPriorityIcon priority=\"high\" \u002F>\u003C\u002F>}\n  identifier=\"PAP-001\"\n  title=\"Implement authentication flow\"\n  subtitle=\"Assigned to Agent Alpha\"\n  trailing={\u003CStatusBadge status=\"in_progress\" \u002F>}\n  onClick={() => {}}\n\u002F>\n```\n\nLeading slot always: StatusIcon first, then PriorityIcon. Trailing slot: StatusBadge or timestamp.\n\n### Grouped List\n\nIssues grouped by status header + entity rows:\n\n```tsx\n\u003Cdiv className=\"flex items-center gap-2 px-4 py-2 bg-muted\u002F50 rounded-t-md\">\n  \u003CStatusIcon status=\"in_progress\" \u002F>\n  \u003Cspan className=\"text-sm font-medium\">In Progress\u003C\u002Fspan>\n  \u003Cspan className=\"text-xs text-muted-foreground ml-1\">2\u003C\u002Fspan>\n\u003C\u002Fdiv>\n\u003Cdiv className=\"border border-border rounded-b-md\">\n  \u003CEntityRow ... \u002F>\n  \u003CEntityRow ... \u002F>\n\u003C\u002Fdiv>\n```\n\n### Property Row\n\nKey-value pairs in properties panels:\n\n```tsx\n\u003Cdiv className=\"flex items-center justify-between py-1.5\">\n  \u003Cspan className=\"text-xs text-muted-foreground\">Status\u003C\u002Fspan>\n  \u003CStatusBadge status=\"active\" \u002F>\n\u003C\u002Fdiv>\n```\n\nLabel is always `text-xs text-muted-foreground`, value on the right. Wrap in a container with `space-y-1`.\n\n### Metric Card Grid\n\nDashboard metrics in a responsive grid:\n\n```tsx\n\u003Cdiv className=\"grid md:grid-cols-2 xl:grid-cols-4 gap-4\">\n  \u003CMetricCard icon={Bot} value={12} label=\"Active Agents\" description=\"+3 this week\" \u002F>\n  ...\n\u003C\u002Fdiv>\n```\n\n### Progress Bar (Budget)\n\nColor by threshold: green (\u003C60%), yellow (60-85%), red (>85%):\n\n```tsx\n\u003Cdiv className=\"w-full h-2 bg-muted rounded-full overflow-hidden\">\n  \u003Cdiv className=\"h-full rounded-full bg-green-400\" style={{ width: `${pct}%` }} \u002F>\n\u003C\u002Fdiv>\n```\n\n### Comment Thread\n\nAuthor header (name + timestamp) then body, in bordered cards with `space-y-3`. Add comment textarea + button below.\n\n### Cost Table\n\nStandard `\u003Ctable>` with `text-xs`, header row with `bg-accent\u002F20`, `font-mono` for numeric values.\n\n### Log Viewer\n\n`bg-neutral-950 rounded-lg p-3 font-mono text-xs` container. Color lines by level: default (foreground), WARN (yellow-400), ERROR (red-400), SYS (blue-300). Include live indicator dot when streaming.\n\n---\n\n## 8. Interactive Patterns\n\n### Hover States\n\n- Entity rows: `hover:bg-accent\u002F50`\n- Nav items: `hover:bg-accent\u002F50 hover:text-accent-foreground`\n- Active nav: `bg-accent text-accent-foreground`\n\n### Focus\n\n`focus-visible:ring-ring focus-visible:ring-[3px]` — standard Tailwind focus-visible ring.\n\n### Disabled\n\n`disabled:opacity-50 disabled:pointer-events-none`\n\n### Inline Editing\n\nUse `InlineEditor` component — click text to edit, Enter saves, Escape cancels.\n\n### Popover Selectors\n\nStatusIcon and PriorityIcon use Radix Popover for inline selection. Follow this pattern for any clickable property that opens a picker.\n\n---\n\n## 9. Layout System\n\nThree-zone layout defined in `Layout.tsx`:\n\n```\n┌──────────┬──────────────────────────────┬──────────────────────┐\n│ Sidebar  │  Breadcrumb bar              │                      │\n│ (w-60)   ├──────────────────────────────┤  Properties panel    │\n│          │  Main content (flex-1)       │  (w-80, optional)    │\n└──────────┴──────────────────────────────┴──────────────────────┘\n```\n\n- Sidebar: `w-60`, collapsible, contains CompanySwitcher + SidebarSections\n- Properties panel: `w-80`, shown on detail views, hidden on lists\n- Main content: scrollable, `flex-1`\n\n---\n\n## 10. The \u002Fdesign-guide Page\n\n**Location:** `ui\u002Fsrc\u002Fpages\u002FDesignGuide.tsx`\n**Route:** `\u002Fdesign-guide`\n\nThis is the living showcase of every component and pattern in the app. It is the source of truth for how things look.\n\n### Rules\n\n1. **When you add a new reusable component, you MUST add it to the design guide page.** Show all variants, sizes, and states.\n2. **When you modify an existing component's API, update its design guide section.**\n3. **When you add a new composition pattern, add a section demonstrating it.**\n4. Follow the existing structure: `\u003CSection title=\"...\">` wrapper with `\u003CSubSection>` for grouping.\n5. Keep sections ordered logically: foundational (colors, typography) first, then primitives, then composites, then patterns.\n\n### Adding a New Section\n\n```tsx\n\u003CSection title=\"My New Component\">\n  \u003CSubSection title=\"Variants\">\n    {\u002F* Show all variants *\u002F}\n  \u003C\u002FSubSection>\n  \u003CSubSection title=\"Sizes\">\n    {\u002F* Show all sizes *\u002F}\n  \u003C\u002FSubSection>\n  \u003CSubSection title=\"States\">\n    {\u002F* Show interactive\u002Fdisabled states *\u002F}\n  \u003C\u002FSubSection>\n\u003C\u002FSection>\n```\n\n---\n\n## 11. Component Index\n\n**See [references\u002Fcomponent-index.md](references\u002Fcomponent-index.md) for the full component inventory.**\n\nWhen you create a new reusable component:\n1. Add it to the component index reference file\n2. Add it to the \u002Fdesign-guide page\n3. Follow existing naming and file conventions\n\n---\n\n## 12. File Conventions\n\n- **shadcn primitives:** `ui\u002Fsrc\u002Fcomponents\u002Fui\u002F{component}.tsx` — lowercase, kebab-case\n- **Custom components:** `ui\u002Fsrc\u002Fcomponents\u002F{ComponentName}.tsx` — PascalCase\n- **Pages:** `ui\u002Fsrc\u002Fpages\u002F{PageName}.tsx` — PascalCase\n- **Utilities:** `ui\u002Fsrc\u002Flib\u002F{name}.ts`\n- **Hooks:** `ui\u002Fsrc\u002Fhooks\u002F{useName}.ts`\n- **API modules:** `ui\u002Fsrc\u002Fapi\u002F{entity}.ts`\n- **Context providers:** `ui\u002Fsrc\u002Fcontext\u002F{Name}Context.tsx`\n\nAll components use `cn()` from `@\u002Flib\u002Futils` for className merging. All components use CVA for variant definitions when they have multiple visual variants.\n\n---\n\n## 13. Common Mistakes to Avoid\n\n- Using raw hex\u002Frgb colors instead of CSS variable tokens\n- Creating ad-hoc typography styles instead of using the established scale\n- Hardcoding status colors instead of using StatusBadge\u002FStatusIcon\n- Building one-off styled elements when a reusable component exists\n- Adding components without updating the design guide page\n- Using `shadow-md` or heavier — keep shadows minimal (xs, sm only)\n- Using `rounded-2xl` or larger — max is `rounded-xl` (except `rounded-full` for pills)\n- Forgetting dark mode — always use semantic tokens, never hardcode light\u002Fdark values\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpaperclipai\u002Fpaperclip\u002Fdesign-guide",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill design-guide",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill design-guide",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill design-guide","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpaperclipai\u002Fpaperclip\u002Fdesign-guide\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]