Skip to content
Back to skills

Skiff Keys

ASecurity

Skiff's keyboard shortcuts, kept in step across the keymap, the F1 sheet, the menu bar, the palette and the wiki. Use when you add, change, remove or rebind a key or a key-driven behavior in apps/desktop/src (keys.ts, keyboard.ts, actions.ts, commands.ts, infoDialogs.ts, menus, settings, modes), or when you review such a change.

  • 22 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 5, 2026
ai-agentsgogit

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add solutionscay/skiff --skill skiff-keys --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skiff Keys?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skiff Keys
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/solutionscay-skiff-keys/badge)](https://www.skillsdirectory.com/skills/solutionscay-skiff-keys)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skiff-keys
description: Skiff's keyboard shortcuts, kept in step across the keymap, the F1 sheet, the menu bar, the palette and the wiki. Use when you add, change, remove or rebind a key or a key-driven behavior in apps/desktop/src (keys.ts, keyboard.ts, actions.ts, commands.ts, infoDialogs.ts, menus, settings, modes), or when you review such a change.
---

# Skiff keys

Read the `skiff-design` skill first. Its interaction rules apply: Ctrl+Shift for the app, keys act on what is highlighted, keyboard and mouse call the same code.

## One source

`apps/desktop/src/app/keys.ts` is the keymap. Everything else reads from it.

| What | Where | Reads |
| --- | --- | --- |
| Action names and default keys | `keys.ts`: `Action`, `DEFAULTS` | — |
| User overrides | `[keys]` in `projects.toml` → `setKeymap()` | `DEFAULTS` |
| What each action does | `keys.ts`: `DESCRIBE` (section); `i18n/en.ts`: `key.<action>` (words) | — |
| What an action runs | `app/actions.ts`: `runAction()` | — |
| F1 sheet | `ui/infoDialogs.ts`: `showShortcuts()` | `DESCRIBE` + `FIXED_SHORTCUTS` |
| Menu bar and palette | `app/commands.ts` | `keyLabel()`, `menuAccel()` |
| Menu hint keys | `ui/menu.ts`: `hintKey()` | `eventLabel()` |
| Global dispatch | `app/keyboard.ts`: window keydown | `actionFor()` |

Keys that are not actions live where they are handled. Their F1 rows are in `FIXED_SHORTCUTS`:

- List keys (Enter, Space, arrows, F2, Delete, Menu): the `$("sidebar-scroll")` handler in `keyboard.ts`.
- Ctrl+Shift+1…9: `projectKey()` in `keyboard.ts`.
- Menus, palette, find bar, start-session menu, empty pane: their own files.

Screens that hold the keys reuse action keys with a local meaning. Settings (`appearance/settings.ts`) is one: `modalOpen()` stops global dispatch, and the screen reads `actionFor(e)` itself. Up/Down step sections. Left goes to the tabs. Right goes into the section. Focus mode and maximize (`app/modes.ts`) also give Up/Down a local meaning. Mission control (`workspace/missionControl.ts`) holds the keys as a dialog does. `runAction()` drops every action but these: its own key (close), maximize (the lit session), the palette key (search the board), the focus mode key (Crew or Recorder), the list keys (step the screens), Next waiting, Settings, Usage, the Skiff agent's key and quit. Settings and Usage close the board first. The board's `onKey()` reads plain arrows, Enter and Esc itself, and the same action keys, so they work on the board and in its search. Type to search: on the board, a key that types one character and is not the board's own (`typesIntoSearch()` in `missionLayout.ts`) goes into the search and focuses it, on Crew and the Recorder. The board's keys go first: arrows, Enter, Shift+Enter, `=`, `+`, `-`, Home, End, Page Up/Down and every action key. Space and Ctrl, Alt or ⌘ chords never type. In the search, `=` and `-` type. Esc in the search, or with text in it, clears the search and gives the keys back to the lit card, lane or bracket; else it closes the board. The F1 row is `fixed.mission.search`. A new bare board key must stay out of `typesIntoSearch()`. The Recorder (`missionControl/recorder.ts`) gives the board's commands a local meaning: Up/Down step its lanes and, after each lane, its task brackets in the window. Left/Right and Page Up/Down move the window, `=`/`-` zoom it, Home goes to the start of the reach, and End returns to live and follows now with the same length. The navigator's box and its edges do the same with the mouse; the strip shows about 8 windows (`navContext()`), so the box stays about an eighth of it and pans the strip at an end. On the lanes, a sideways drag moves the window (a press under 4 px stays a click), Ctrl+wheel (⌘+wheel on macOS) zooms at the pointer, Shift+wheel or a sideways trackpad scroll moves the window, and a plain wheel scrolls the lanes. A trackpad pinch does nothing, there or anywhere (`platform/noPinch.ts`, `src-tauri/src/pinch.rs`). The F1 row is `fixed.mission.time`. The Recorder has no presets. Enter goes to the lit lane's session. On a lit bracket, Enter, Shift+Enter and maximize do what the Ledger row's click and icon do (`taskTargets()`). Nothing folds, so Space is not its key.

## Rules

- Never hardcode a key label in UI text. Use `keyLabel(action)`. A key in a note, such as "Ctrl+Shift+Up/Down" in a `key.*` line, is the only exception. Check those notes when a default changes.
- A local handler matches action keys with `actionFor(e)`, not raw `e.key` checks. Then `[keys]` overrides work there too.
- An action with a menu bar item (`commands.ts`) has a native accelerator. The menu takes that key before the page sees a keydown, and calls `runAction()`. A screen that gives such a key a local meaning must also catch it in `runAction()`, as Settings does with `settings.runKey()`.
- A new action needs all of these: an `Action` member, a `DEFAULTS` key, a `DESCRIBE` row, a `key.<action>` line in `i18n/en.ts`, a `runAction()` case, and a `commands.ts` entry where a menu item fits. The typecheck fails while the `key.<action>` line is missing.
- A new fixed key needs a `FIXED_SHORTCUTS` row in the right section, and its `fixed.*` line in `i18n/en.ts`.
- A local meaning for an action key goes at the end of its `key.<action>` line: "In Settings, the next section".
- Before you take a key, check `DEFAULTS` for a clash. Check that the terminal does not need it (bare Ctrl), and that GNOME, KDE or macOS do not take it.
- The `key.*` and `fixed.*` lines are user copy. Follow the Words rules in `skiff-design`.

## Wiki

F1 is the full list. It reads the live keymap, so it is never out of date. The wiki does not copy it.

- [Design](https://github.com/solutionscay/skiff/wiki/Design) holds the rules: Ctrl+Shift for the app, keys act on the highlighted target, `[keys]` and F1.
- [Glossary](https://github.com/solutionscay/skiff/wiki/Glossary), section "The current keybinding scheme", holds the navigation model only: Ctrl+Shift+Up/Down, Ctrl+Shift+Left/Right, Ctrl+Shift+Home, F6, F1, Ctrl+Shift+P, Ctrl+Shift+M, Ctrl+Shift+A, Ctrl+Shift+Alt+Arrow. Each line names its action id. It sends the reader to F1 for the rest.
- [Mission control](https://github.com/solutionscay/skiff/wiki/Mission-control) lists the board's keys: Ctrl+Shift+A opens and closes it; in it, arrows move between cards, Enter goes to the session, Esc closes, Ctrl+Shift+P searches, the focus mode key switches Crew and Recorder, the Usage key (Ctrl+Shift+., ⌘+Shift+. on macOS) closes it and opens Settings › Usage. Update it when a key in `onKey()` or the mission branch of `runAction()` changes.

Update the wiki only when one of those keys or rules changes. The wiki is a separate repo: `git clone https://github.com/solutionscay/skiff.wiki.git`. Ask the operator before you push it.

## Before you finish

- `npx tsc --noEmit -p apps/desktop` passes.
- `DEFAULTS`, `DESCRIBE`, `runAction()` and `commands.ts` agree on the action.
- F1 shows the change in the right section.
- If you changed a navigation key or a rule, the wiki says so.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.