Documentation style spec
v0.1 · The single, operational spec for how Gridshift docs are written and
structured. It governs everything under docs/ (Mintlify). Voice and brand rules
live in BRAND.md (repo root) — this file is the docs-specific
operationalization of them, and the checklist the /docs-audit skill enforces.
If a rule here and BRAND.md ever disagree, BRAND.md wins on voice; this file
wins on structure and Mintlify usage.
Measured on 2026-10-22 with two simulated readers: a beginner needed 7 page hops to a first drum loop and never
reached a finished track; a returning producer found answers fast when they knew the feature’s name and slowly or
not at all when they started from a problem (“why are there gaps”, “what doesn’t sync”). The structure below
serves both paths: learn once, then look things up.
- Five tabs, each answering a different kind of question (owner, 2026-10-22): Learn (how do I start, and
why does Gridshift work this way: the tutorial, then explanation pages on the idea, the library, keyboard and
mouse, the iPhone app and AI assistants); Make Music (how do I do this step: the track’s path from idea to
master, Choose a Sound → Write Notes → Work with Audio → Build the Song → Feel → Mix and Export, then Organize
for the housekeeping that is not making music); Set Up and Devices (one-time setup and other devices);
Reference (look up: I want to…, glossary, palette commands, troubleshooting by symptom, shortcuts); and
Product Updates (the changelog, a tab of its own so what is new is one click away; owner, 2026-10-23).
- Every other dimension is a rule on each page, not a chapter of its own. Keyboard and mouse: each task gives
the key first and the click in the same sentence. Settings: a setting is named in the task that needs it; the
Settings page is the full list. Why: where a page meets a design decision, one sentence links its explanation page.
- URLs are stable; the folder is not the chapter. A page keeps its path when it moves between groups. Only a
merge or a split changes a path, and then
docs.json gets a redirect.
- Four page types, one per page (Diátaxis): tutorial (one, in Start: does a whole job, links onward),
how-to (one tool or one job, 2–6 tasks), explanation (how something works, no tasks, ≤ 6 sections),
reference (tables only, most-used first). Troubleshooting pages are how-to pages titled by the symptom.
No chapter overview pages: the tutorial and the sidebar order carry the route.
- Every fact has exactly one home (
HOMES.md). Other pages say at most one sentence and link to it. A
comparison (Ducking vs Sidechain) lives on the page a reader reaches first. A fact several features share
(what syncs, the number row) lives in its home page or in Reference.
- Budget both halves of a page: ≤ 300 visible words and ≤ 400 folded words on a how-to page, ≤ 5 Good to
know items, ≤ 8 items per folded section. Over that, split the page or cut. Folding is for depth a reader
asks for, not a place to park text (measured 2026-10-22: a visible-only budget pushed text into 295 folds).
- The A–Z index (
reference/a-z) is generated from every page’s title and keywords by
app/Scripts/docs-index.py; a reader who knows a feature only by its name or another DAW’s word finds it there.
- No implementation internals, folded or not: file formats, sync record types, buffer sizes, ranking weights,
milliseconds of a de-click, history of earlier versions. Cut them; the changelog keeps the history.
- Red thread: every how-to page ends with one
**Next:** line to the next step of the job.
- The reader’s words: each page carries
keywords in its frontmatter with the words a producer searches for
(MIDI Learn, drum rack, sidechain compression, render, swap, arm). A page that answers a limit says so plainly
(“There is no random timing”).
- The Docs Review stays current: after any change under docs/, rebuild and republish the owner’s Docs Review
artifact (skill
docs-review, dev.sh docs-review).
1. Voice, in one paragraph
Docs are the literal end of register by altitude — no marketing,
ever. Write to a producer who is technical and impatient with fluff. Present
tense, imperative for actions (“Press ⌘U”, not “You can press ⌘U”). US
English (color, behavior, optimize, canceling, gray). Bold a domain term
once, on first use, then plain. Cut the first sentence if it’s throat-clearing.
No exclamation marks, no emoji.
2. Page anatomy
Every how-to page follows the same spine, most important first (owner, 2026-10-20). A reader who stops after the
first screen has already done the main thing.
- Frontmatter (see §3).
- No lead paragraph. The
description is the lead: ≤ 30 words, what it does and how you do the main
thing. Explanation pages may add one lead of ≤ 3 lines.
- Task sections, most common first. One
## per thing the user does, verb-first. An observation
(“Follow the groove”, “See which clips are linked”) is not a task; it goes in Good to know. A task is one
<Shot> with one to three short sentences inside: the actions in order with their keys and what you then
see or hear. No explanations, except one warning sentence when skipping it makes the task fail (“Amount
starts at 0 %, so raise it”). A one-sentence action with no picture of its own goes in a final
## More actions list instead of its own heading.
- Good to know: rules, edge cases and “why”, stated as their effect on what you hear or do. One flat list,
≤ 5 items, a bold lead-in sentence, then ≤ 2 sentences (≤ 35 words).
- Folded sections (
<Accordion>): titled by the question they answer (“Why are there gaps?”, “Which
keys work here?”), never “Details”. ≤ 8 items each, never restating a task. A folded section with its own
picture or settings table is a page of its own.
- Keys: a page may show at most a 5-row key table. Full key tables live in the Reference tab only.
**Next:** one line linking the next step of the job.
Every task shows a screenshot of what the screen looks like once it is done (owner, 2026-10-27; replaces
“no screenshots, a clip each” of 2026-10-20). A screenshot is taken by a script, so after a UI change
rerunning shots.py renews it, and it is checked by looking at it, so it never holds a page back. A <Clip> takes the screenshot’s place only
where the motion is the information: a drag, a gesture, playback you have to see moving. A clip that already
shows its task stays. No callouts in the task sections.
The tutorial (“Your First Track”) is the one exception: numbered ## steps, one screenshot each, every step ends
with what you now hear, and each step links to the how-to page that goes further.
Headings: sentence case, task-oriented, verb-first where it’s an action. Never Title Case a heading
(feature names inside prose stay Title Case — they’re proper nouns; see §6).
3. Frontmatter
reviewed is the freshness signal — it means last checked for accuracy, which
is what predicts staleness. It is not an edit date: git already records edits,
and Mintlify shows a git-based “last updated” (metadata.timestamp). Never hand-set
reviewed — a date no audit produced is a claim no one checked.
4. Components — when to use which
Use the smallest thing that does the job. A sentence beats a callout; a callout
beats a section. Never stack callouts, never decorate.
5. Conventions
- Shortcuts: real glyphs in inline code, no
+: `⌘U`, `⌥A`,
`⇧⌘D`. Modifier order: ⌃ ⌥ ⇧ ⌘.
- Command Palette paths:
Command Palette → **Set Record Quantize** — bold the
command name.
- Ellipsis: a command or menu item that opens something ends in the single
character
… (U+2026), never three ASCII dots — Open Other…,
File → Sample Library…. Copy the name from the app’s source literal: the app
writes the same character, pinned by the SwiftLint rule
one_ellipsis_in_user_facing_titles and CommandTitleEllipsisTests, so a page
and the code it describes match byte for byte.
- Feature names: exact canonical casing from the BRAND.md glossary.
Never lowercase or hyphenate a variant. Platform names keep their casing: MIDI,
iOS, iCloud, macOS, MCP.
- Cross-links: relative, by canonical name —
[Groove & Swing](/features/groove).
- Numbers & units: numerals for measured values, space before the unit —
48 kHz, 256 frames, 5 ms.
- Defaults: always state the current default, and mark it —
**None** (default).
6. Accuracy contract
This is what makes a doc correct, not just well-formed. Every one of these is a
checkable claim and must match the current code:
- Keyboard shortcuts and modifier combos.
- Default values and the set of available options / modes / enum cases.
- Parameter, control, and setting names (as shown in the UI).
- Command Palette command names and menu paths, including the
… (U+2026) suffix
on a name that opens something (§5).
- File locations, formats, and limits stated as fact.
- Stated behavior that the code actually implements.
When a claim can’t be verified from code (subjective/behavioral prose), it is
flagged for human review, not silently rewritten.
7. Pictures and videos
Screenshots are the rule, videos are optional (owner, 2026-10-27). Every task carries a screenshot. A clip or
a tutorial video is added only where it helps, and a page is done without one. Videos held pages back for days:
each one needed the screen, a voice in sync with the picture, and several review rounds. A screenshot needs none
of that, and anyone can check it by looking at it.
Screenshots (<Shot>, taken by shots.py, the iPhone app’s by phone_shot.py; skill docs-shots):
- Show the result of the task, the screen once it worked, not the menu on the way there. The reader holds
their screen against it.
- Crop to what the task changes, with enough around it to find it: the timeline, the inspector, the palette.
The whole window only when the task changes the whole window.
- Mark what changed with a highlight box when it is small or easy to miss. At most two per picture.
- The example is the most common real use (a delay, a kick, a tempo change), in the song “Why” or a setup
project made for the page, never an empty project unless the task starts from one.
- The
alt text says what the picture shows, in one sentence, with the values you can read in it.
- A task the pipeline cannot reach (a hardware controller, a third-party plugin’s own window, iCloud
between two devices) keeps a
{/* shot needed: … */} marker naming what the picture should show. The
iPhone app is shot in a simulator with no iCloud account and the demo library (skill docs-shots § 6),
as <Shot phone …>, the whole screen.
Clips (<Clip>, tt.py clips) replace a task’s screenshot only where the motion is the information: a
drag, a gesture, a playhead you have to see moving. Clips already on a page stay until they are wrong.
Tutorial videos (YouTube, skill tutorial-video) are optional. A page that has one embeds it under its
first paragraph.
Write every page so it could be read aloud as a walkthrough. That serves the screenshots and keeps a video
possible:
- The opening definition says what the feature does for the user in plain words. No hook, no rhetorical
question.
- Every task section is one picture: what the task is for (one sentence), the steps, and what the user sees
or hears when it worked. A step without a visible result is incomplete; say what changes on screen.
- Cover the core interaction completely. Every way the feature is driven belongs on the page: the keys, the
menus, the fields a command asks for, and any preview or audition while browsing.
- Shortcuts sit in the step that uses them, not only in the closing table.
- Order tasks from first use to finer control. The page reads top to bottom.
- No promises. The page describes what ships. Nothing “coming soon”, nothing obvious.
8. Definition of done
A page passes audit when all of these hold:
Last modified on November 1, 2026