/platform-frontend:bytedesk-design [component | page | area — what to review or design]from platform-frontend
ByteDesk design system expert and source of frontend design truth. Use for ByteDesk UI/UX design work: component critique, token compliance, layout, visual hierarchy, atomic composition, micro-interactions, Framer Motion, and the Mission Control dark workspace aesthetic. Invoke for design, UI layout, component choice, animation patterns, design-system compliance, or requests to make a page or component look better.
Ships in platform-frontend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ByteDesk's UI is a dark workspace — Replit-inspired, data-dense, technically precise. The aesthetic says "professional tool" not "consumer app." Every design decision serves clarity and information density over decoration.
Four principles:
globals.css CSS variables. Nothing is hardcoded.Whenever you are implementing UI (new pages, new components, refactoring existing pages), use the /bytedesk-atomize skill to ensure work lands in the correct atomic design layer. Design decisions made here must be reflected in the component hierarchy — atoms in components/ui/, molecules in components/shared/, organisms in components/{domain}/. Don't write inline JSX in pages that belongs in an organism, and don't write organisms that duplicate existing atoms or molecules.
After making changes, invoke /bytedesk-atomize --path <dir> where <dir> is the highest-level directory that contains all the files you changed. Use git diff --name-only to find the changed files, then find their common ancestor directory. Examples:
src/app/(app)/sales/contacts/page.tsx and src/app/(app)/sales/tasks/page.tsx → --path src/app/(app)/salessrc/components/sales/pipelines/opportunity-card.tsx → --path src/components/sales/pipelinessrc/app/(app)/sales/ and src/components/sales/ → --path src/ByteDesk.Web/src (widest common ancestor)The path should be specific enough to focus the atomizer on what actually changed — don't pass the entire repo root unless changes truly span the whole frontend.
Before writing a single line of JSX, scan the codebase for existing components that cover — or partially cover — the design need. This step is mandatory. Skipping it and building from scratch is the primary source of duplication in this codebase.
Discovery order:
Check the reference catalog first — read references/components.md for documented atoms, molecules, and organisms. If something is already listed, use it.
Search the live component tree — the catalog may lag behind the code. Run these searches:
# Atoms (primitives)
find src/ByteDesk.Web/src/components/ui -name "*.tsx" | sort
# Molecules (domain-agnostic compositions)
find src/ByteDesk.Web/src/components/shared -name "*.tsx" | sort
# Organisms (domain-specific, check the relevant domain dir)
find src/ByteDesk.Web/src/components/<domain> -name "*.tsx" | sort
Grep for patterns — if you're unsure whether something exists, search by concept:
grep -r "export function.*<concept>" src/ByteDesk.Web/src/components --include="*.tsx" -l
Decision gate — apply before building anything:
| Situation | Action |
|---|---|
| Existing component fully covers the need | Use it. Zero new code. |
| Existing component is close but missing one prop | Add the prop to the existing component; don't duplicate it. |
| Existing atom/molecule could be composed to cover it | Compose them; don't build a new thing that re-implements what they already do. |
| Nothing relevant exists | Build new — see atomic design rules below. |
State explicitly in your response which components you checked and why they didn't fit before proposing anything new.
When discovery confirms nothing exists and a new component is needed, determine its atomic layer before writing code. Getting this wrong creates components in the wrong place that break discoverability for future work.
Question 1: Does this component have any domain knowledge
(knows about Contacts, Pipelines, Opportunities, etc.)?
NO → it's an atom or molecule (belongs in ui/ or shared/)
YES → it's an organism or page fragment (belongs in components/<domain>/)
Question 2 (for NO above): Does this compose multiple atoms
together in a reusable pattern?
NO → atom → place in components/ui/<name>.tsx
YES → molecule → place in components/shared/<name>.tsx
Question 3 (for YES above): Does this represent a self-contained
section of a page with its own data-fetching or state?
NO → organism → place in components/<domain>/<name>.tsx
YES → still an organism, but note that data fetching belongs
in the page or a custom hook, not the organism itself
Atoms (components/ui/):
label, value, variant, not contact.nameButton, Badge, StatusDot, Card, InputMolecules (components/shared/):
EmptyState, DetailRow, StatCard, PageHeaderOrganisms (components/<domain>/):
Pages (app/(app)/<route>/page.tsx):
<div className="flex gap-2"> in a page, stop — extract itWhen reviewing a component for design quality, check:
style={{ color: "#..." }} that's not pulling from var(--color-*)?<div> when <Button> exists? Used inline styles where <Card> covers the pattern?text-[10px] instead of text-2xs? Non-IBM font? Wrong semantic class?<div className="flex gap-2"> wrapping that could be <Row gap={2}>?Surface findings as a prioritized list: Critical (token violations, wrong semantics) → Should fix (composition, missing states) → Nice to have (refinements).
Before anything else: run Step 0 (Component Discovery) above. Only proceed here once you've confirmed what exists and what gaps remain.
For the parts that require new work, layer the design in this order:
references/tokens.md for the exact CSS variable to use for each color, spacing, shadow, and motion value.references/patterns.md.After designing, run
git diff --name-only, find the highest common ancestor directory of all changed files, and invoke/bytedesk-atomize --path <that-directory>before considering the work done.
When the user asks for animation patterns, micro-interactions, or any implementation advice tied to an existing component or page:
Do this first — before writing any code:
src/ByteDesk.Web/src/components/**/*.tsx is the search root. Don't assume file names from the reference docs; find the real one.The reference files describe the system; the codebase is the ground truth for what you're actually modifying. Generic examples that could apply anywhere are less useful than advice tied to the specific file.
These are enforced by .claude/rules/frontend.md — violations block CI:
var(--color-*) onlyfont-sans) and IBM Plex Mono (font-mono)text-[10px] or similar — use semantic classes (text-2xs, text-caption, .mc-label)--color-accent-orange) = upgrade/brand CTAs only; never general interactive--color-accent-blue) unless explicitly brand-orange.mc-grid class for theming@/lib/utils/format — never redefine inlinecn() from @/lib/utils/cn for conditional class mergingrequest() from @/lib/api/client.ts — never raw fetch()Read these when designing or reviewing:
references/tokens.md — complete CSS variable reference: all colors, typography, spacing, shadows, motion, radius, z-index tokens with values and intended usereferences/components.md — full catalog of atoms (31), molecules, and organisms with props, use cases, and code examplesreferences/patterns.md — design patterns for: full-page layouts, modals/drawers, data-dense panels, and micro-interaction/animation sequences| Task | Read |
|---|---|
| Picking the right color | tokens.md → Colors |
| Choosing a component | components.md → Atoms |
| Building a modal | components.md + patterns.md → Modal patterns |
| Adding animation to a new component | tokens.md → Motion, patterns.md → Animation |
| Adding animation to an existing component | Glob/Grep for the actual file → read it → tokens.md → Motion, patterns.md → Animation |
| Building a dashboard | patterns.md → Full-page layouts |
| Critiquing a component | tokens.md (check for violations), components.md (check for better alternatives) |
## Design Review: [ComponentName]
**Critical**
- [Issue]: [specific token/component that's wrong + what to use instead]
**Should Fix**
- [Issue]: [explanation + recommendation]
**Nice to Have**
- [Suggestion]: [optional refinement]
**Suggested diff** (if fixes are straightforward):
[targeted code changes]
Lead with a Component Discovery Summary: list what you scanned, what you found, and why you determined new code is needed. For example: "Scanned ui/ and shared/. StatCard covers the metric display; no existing organism handles the combined filter + list layout for this domain, so ProspectingResultsPanel is new — placed in components/sales/prospecting-searches/ as an organism."
Then state the atomic layer: "New component: ProspectingResultsPanel → organism → components/sales/prospecting-searches/prospecting-results-panel.tsx."
Then the composition story: "This is a Card (raised) containing a Stack with a SectionHeader, then a DataTable, then a Row of action Buttons." Then provide the full TSX.
Always include:
cn() for conditional classesstyle={{}} only for truly dynamic values// State coverage comment at top
// States: default, loading, empty, error
export function ComponentName({ ... }: Props) { ... }
After reading the actual file, lead with the file path and what you found, then show a surgical diff:
**File:** `src/ByteDesk.Web/src/components/sales/.../ActualComponent.tsx`
**Current structure:** [one sentence describing what's already there]
**Changes needed:**
[targeted diff against the real code — not a standalone example]
Name the real component. Show only what changes. If multiple files need changes, address each in sequence.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub bytedeskai/bytedesk-marketplace --plugin platform-frontend4 skills in this plugin
/bytedesk-atomizeByteDesk UI componentization skill using atomic design. Invoke this skill whenever the user wants to extract inline JSX into atoms/molecules/organisms, refactor large page files into smaller components, componentize any area of the ByteDesk frontend, apply atomic design principles to the application, extract repeated patterns into shared components, or clean up a page that's grown too large. Also invoke for "componentize this", "extract this into a component", "break this page into atoms", "apply atomic design to X", "componentize the UI", "run atomize on sales", or any phrasing around structuring the frontend by atomic design layers. Run this over and over until the entire UI is componentized. Use agents to attack different domains in parallel. When in doubt, invoke this rather than doing componentization work directly — it enforces the right placement rules and design system constraints./bytedesk-browser-testDrive the ByteDesk web app through real Chrome via the `agent-browser` CLI to prove frontend changes actually render and behave correctly before they ship. Required for every PR that touches `src/ByteDesk.Web/**`. Covers login, navigation, snapshot-and-ref interaction, screenshot capture, console/error inspection, network/HAR/trace capture, React DevTools, web vitals, mobile/PWA smoke, and tab management. Invoke for "browser test", "smoke the UI", "agent-browser", "render check", "frontend smoke", or whenever a PR's diff touches a `.tsx`, `.ts`, `.css`, `.json` under `src/ByteDesk.Web/`./bytedesk-realtime-engineerByteDesk browser realtime engineer for SignalR and ByteDesk.Realtime. Invoke whenever the user wants live updates, realtime streams, SignalR topics, push updates, polling replacement, topic registry work, Redis projection events, replay/state/history wiring, agent/chat/job/deployment live feeds, admin realtime diagnostics, or an audit for banned browser SSE/EventSource/raw WebSocket patterns. Use this instead of implementing SSE directly; ByteDesk browser realtime is Redis projection events -> ByteDesk.Realtime -> SignalR -> useTopic/useAdminTopic.