Skiff's design rules for UI, interaction and copy. Use before you add or change anything under apps/desktop/src that the user sees or presses (CSS, menus, dialogs, keys, labels, themes), and when you review such a change.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Skiff Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/solutionscay-skiff-design)
---
name: skiff-design
description: Skiff's design rules for UI, interaction and copy. Use before you add or change anything under apps/desktop/src that the user sees or presses (CSS, menus, dialogs, keys, labels, themes), and when you review such a change.
---
# Skiff design
The published copy is the wiki [Design](https://github.com/solutionscay/skiff/wiki/Design) page. Change both together.
Where the rules live in code: tokens in `apps/desktop/src/styles/tokens.css`, keys in `app/keys.ts` (`keyLabel`, `DESCRIBE`), actions in `app/actions.ts`, menus in `ui/menu.ts` and `workspace/menus.ts`, theme pickers in `appearance/themes.ts`.
How Skiff looks and behaves. Read this before you change the UI. Terms follow the [Glossary](https://github.com/solutionscay/skiff/wiki/Glossary).
## The essence
Skiff is a control surface for many long-running agent sessions. It shows where each session is and what it needs. The apps the user already has do everything else.
Test every change with three questions:
1. Does it make many sessions easier to manage?
2. Does the user always know where the keys are and what an action changes?
3. Does Skiff stay small?
## Product rules
- **Panes are for sessions.** Files and diffs open as Settings › Open with says. A terminal tool runs in the peek over the terminals. An app opens its own window. A file with no command goes to the system's default app. The peek never adds a session pane, and its tool is not a session to the user.
- **The current row owns the main area.** A change, file or folder row shows its preview. A session or group row shows its panes. Only `select()` changes the current row; a render only ends a preview. Enter goes into what shows. Space opens or closes.
- **Sessions outlive the window.** `skiffd` owns every PTY. Closing a pane, a group or the window does not end a session. End and Kill ask first. Closing or removing a project also ends its sessions. Close asks when sessions run; Remove always asks.
- **Hands off the agent setup.** Skiff installs no hooks or plugins and writes nothing into an agent's config or data folder. On request, Resume runs the agent's CLI resume command. An integration, if one exists, is a separate package that the user installs.
- **Restore as shells.** After a daemon restart, each saved session comes back as a shell in its folder. Resume offers the agent's picker, a conversation list, or Continue latest. The user chooses how to resume. Reopening the window reconnects to live sessions.
- **One settings file.** `client.toml` holds this computer's settings (keys, appearance, Open with). `projects.toml` holds each Host's projects. Customization is declarative: TOML and themes. Skiff has no plugins and no automations.
## Visual rules
- **Square and flush.** `border-radius: 0` everywhere. Dots and slider thumbs are round. Panes touch, with no gaps and no floating cards. One exception: in the tree, Projects, each fleet and Other are boxes with a 1px `--rule-strong` frame, 8px in from the panel's edges, with an 8px `--frame` gutter between them.
- **A line marks a region edge.** The side panel, the terminal area, the top bar and the panes have lines between them. In the tree, each section box (Projects, each fleet, Other) has a 1px strong frame, and the projects in a box part with a 1px rule. Rows in the tree have no space between them. The side panel never shows a scrollbar. The wheel, the trackpad and the keys still scroll it.
- **Show only what needs a look.** An idle session has no mark unless it has unread output. A shell at its prompt has no mark. The bell means an agent asks for approval. The flag means a turn or a command ended out of sight. Pane buttons show on the focused pane and on a hovered header. A changed file's folder shows on the current row and on hover. A project that Skiff cannot read shows one red alert glyph at the end of its row. Its tooltip has the message and git's text. Nothing is added under the project.
- **One state signal per level in Mission control.** A session card carries its state mark. A connector takes its child's state color. A Skipper or Admiral window says its state and its task in words, with no state mark in its header. A frame head (Host, fleet, project) shows only how many sessions wait: no working or session count.
- **One rule weight.** Lines are 1px `--rule`. Pane dividers and edges of floating surfaces use `--rule-strong`. Do not stack accent lines.
- **One row grid.** Project rows, section heads in the tree, the fleet Skipper row, menu items and pane headers are `--row` high (40px at zoom 1). Worktree rows in the tree, session rows, file rows and the Changes and Files headers use 20px. The agent rows in the tree step down in size: the Skiff agent row is 60px with a 40px face, the fleet Skipper row is 40px with a 28px face, and a project Skipper row is 30px with a 20px face. The top bar is 48px. A Skippers list row is 60px. The Tree | Skippers bar is 32px. Standard side padding is 16px; nested rows use indentation. A chevron sits at the end of its row, so the indent shows only the hierarchy.
- **Settings grid.** A Settings pane uses only 40px multiples: no 20px lines, no gaps. The page head is one 40px row, in line with the page list's title. Section heads are 40px `--head` bands with the head label. Column heads and bands read as words, in sentence case.
- **Central controls.** A menu, a picker, a field, a button or a switch comes from `ui/controls.ts`. No native dropdown and no datalist. A control fills its cell, so rows stay flush. A native file dialog stays where the app uses one.
- **Everything zooms.** Write lengths as `calc(N * var(--u))` and font sizes as `calc(Npx * var(--zoom, 1))`. Rules and small accent bars use fixed pixel widths. Measured positions use pixels.
- **One value scale.** Each step has one role, and `styles/tokens.css` and `appearance/appTheme.ts` map the roles once. Do not color a role in a single file.
- `--frame`: the ground. The top bar, the status bar and the gutters between the tree boxes. It is the darkest of the theme's surfaces.
- `--head`: a section head. Tree box heads (Projects, a fleet, Other), Settings group heads, content section heads ("App theme") and pane heads. It is halfway between the frame and the item. A head reads as a label, not a button: 11px, semibold, `--text-3`, sentence case, centered in its row.
- `--item`: a row, a page or a tab that you can press. Tree rows, Skippers rows, Settings pages, Tasks rows, the Tree | Skippers and Tasks | Schedules tabs. It is the lightest of the theme's surfaces.
- Hover: `--hover` over the item, one faint step.
- `--sel` with a 2px `--sel-bar`: the selected item. `--sel` is the item with 10% of the theme's text color (12% on a dark theme), and `--sel-bar` is the text color. A row takes the bar on its left edge. A tab takes it on its bottom edge and is semibold. The tree, the Settings pages, the Tasks rows, both tab bars and the active theme card use this one mark. It never takes a head color, the theme accent or a project color.
- Light and dark themes take the same order, from the theme's own `background`, `sidebar` and `tertiary` colors. Stay flat: no gloss, no radius, no shadow.
- **Tokens only.** Colors come from `styles/tokens.css`. A theme changes the tokens. A theme file's `[ui]` table can set the accent, and its `working` key keeps the working state off the accent. The color picker uses fixed white and black for its cursor contrast.
- **Typefaces.** IBM Plex Sans for the UI: 13px body, 11 to 12px for meta text and hints, weights 500 to 700 for emphasis. JetBrains Mono for terminals and code. The wordmark uses Skiff Wordmark, a subset of Lilita One with the letters of SKIFF only.
- **Each color has one job.**
- Project color (`--pc`) shows location: the project badge in the tree, the lit menu item and the focused pane's frame. The selected row does not take it. The tree has no project bars.
- State colors show session state: amber for waiting, blue for working, grey for done, idle and unread. Shape and motion tell the grey marks apart. A theme can change the working color. Project colors stay away from state colors.
- Red shows errors, destructive items and deleted lines in diffs. Green marks added lines. A destructive item stays red when lit.
- **Waiting is the one lit band.** A waiting session row, pane header and Mission control card, a Ledger row that needs you, and the top bar's Waiting cell fill with `--state-waiting-bg`. No other state fills a band.
- **Highlight, do not outline.** The current row gets the selection mark (`--sel` and the 2px `--sel-bar` on the left). The lit menu item gets a 22% project-color tint and a 2px inset bar on the left. A current project row lights whole, its ⋯ included. A focus ring shows only after keyboard use (`body.kbd`), as a quiet 1px line. A selected pane gets a 2px frame in the working blue. The focused pane gets one in its project color. While the keys are on another row, the row of the pane on screen keeps the 2px bar without the tint.
- **Shadows on floating surfaces only.** Menus and dialogs have shadows. Menus are solid, never translucent.
- **Little motion.** The goal is no clunk. A terminal, a pane and any box that holds one never animate: they show and go at once, and they take their new size in that frame. Focus mode, maximize, session and group switches, tree folds, the Ledger fold, menus, dialogs and the palette are instant. Only light layers move, with opacity and transform only: the mission control content fades in on open, Ledger rows move, come and go, one row flash, the mission control result dot, the Recorder lanes under a lane that enters or leaves, and the Recorder navigator strip when it takes a new span. A move takes at most 120ms; the result dot takes 5 moves, so it reads on a long line. Timings come from the tokens `--motion-fade`, `--motion-move` and `--motion-ease`. No CSS transition. Hover and other small changes do not animate. Mission control's root is opaque, so two screens never blend. The panes under it do not paint or fit; on close they draw under it, and then it goes at once. A pane gets its WebGL renderer before it shows. When in doubt, cut the animation. [motion.md](motion.md) lists every animation. Status loops use `steps()`: the working skiff rocks, the model icon of an idle tree Skipper row with a watcher turns once in 8 s, and a Skipper's face blinks and sometimes turns its head. A done face does not move. Bells and flags stay still. Reduced motion stops every loop and every one-off motion. Smooth loops cost frames on WebKit and in power-saver mode.
- **Icons.** The Rune Icons outline set, stroke `currentColor`, 14px in menus. Add only the icons that the code uses.
## Theme scope
Themes cascade: app, then project, then session. A lower level replaces the one above it. A group theme sets the theme of each member session.
- Each picker names its scope in the title: "Project theme: skiff", "Session theme: Sea Dog Mermaid".
- The first card is the level above: "Same as app", "Same as project".
Themes are location cues. One look tells you which project or session you are in.
## Interaction rules
- **Keyboard and mouse are equal.** An action has one implementation. Its key, its menu item and its palette entry all call it.
- **Ctrl+Shift for the app.** App keys are Ctrl+Shift+letter (⌘+Shift on macOS). Bare Ctrl belongs to the terminal. One exception: in a text field, Ctrl+A (⌘A on macOS) selects the text. One handler in `app/keyboard.ts` does this. Users override keys in `[keys]`, and F1 shows the live keymap. Never hardcode a key label: use `keyLabel(action)`.
- **Keys act on what is highlighted.** The menu and theme keys use the highlighted scope. New session uses the row's worktree, else the focused pane's worktree. End session uses a highlighted session row, else the focused session. Close pane follows the row with DOM focus, else the focused pane or picked group. File-manager and copy-path keys use the highlighted file when there is one. See the [Glossary](https://github.com/solutionscay/skiff/wiki/Glossary).
- **Menus show their keys, and the keys work.** An item's hint key picks that item while the menu is open. Enter always picks the lit item.
- **One highlight.** The tree has one current row at most. The focused pane's frame hides when the keys are elsewhere, such as on a group row.
- **Focus goes back.** A menu or dialog gives the keys back to the row or terminal that opened it. It does not change the selection.
- **Two regions.** The tree and the terminal have one tab stop each. F6 steps between them. In the tree, the stop is the current row.
- **Two views.** The side panel shows the tree or the Skippers list. Tree | Skippers at its top and Ctrl+Alt+Shift+S switch them. View › Show Skippers also switches them, and the choice lasts across restarts. A Skippers list row shows one state word under the name: the most urgent of Needs you, Watcher failed, Working, Waiting on N, Done, Idle and Agent exited. Its number shows only while Ctrl+Shift is held. The time of the last output is in the tooltip.
- **One tree.** The tree shows the Skiff agent, fleets, projects, worktrees, groups and sessions in one tree. Each connected Host has its own tree, in a Host section; with more than one Host, each section has a head. A click on the Projects head, a fleet head or a project row folds or opens it. A project Skipper sits under its project, in the worktree column. Sessions and groups open from their own rows. Mission control opens from Ctrl+Shift+A, View › Mission control or the palette. A fleet head does not open it.
- **Fold only with children.** A row folds only when something is under it. A row with nothing under it has no chevron, no fold and no hover. A folded row shows a rollup of its waiting, working and unread sessions. Folds persist.
- **Ask before you destroy.** Actions that end live sessions or remove a project ask. They say which sessions end and what stays. Removing a selection of already exited sessions needs no confirmation. Other actions do not ask.
## Words
- Use the Glossary terms. Do not invent synonyms.
- Write in Simplified Technical English: short sentences, active voice, one idea per sentence.
- No help text. A screen shows labels, counts and one error line for each fault. It has no notes and no advice lines.
- UI text states what something is or does. No commentary, caveats or predictions. Keep a line only if the user needs it to act: a label, what an action does, what it removes or changes, an error and its fix.
- Use sentence case. An item that opens a dialog or more choices ends in "…".
- Name the scope: "Session theme", "Project theme", "Close the pane. The session keeps running."
- Keep the tone plain and dry. Leave out hype.
- Words come from the catalog: `t("key")` from `i18n`. Add each new line to `i18n/en.ts` and to the other catalogs (`es.ts`, `zh.ts`); a catalog without the line shows English. Fill names with `{name}` placeholders and counts with `tn()` plural lines, not string joins. Match code on ids, never on the words.
## Before you ship a UI change
- Lines align with the row grid and the 1px rules.
- Colors and sizes come from tokens and zoom units.
- The action has a key, a menu item and a palette entry where it fits, and all three call the same code.
- The key acts on the highlighted target, and the title or label names that target.
- Focus and selection are the same after the menu or dialog closes.
- Nothing new opens in a pane, and nothing writes into an agent's setup.