Skip to main content

TF Design

TF Design is a local design workspace. You describe what you want in plain language and it produces an editable artifact — a slide deck, a landing page, a document, an animated motion piece, or generated media — as real files in a project folder you own.

It ships in two shapes that share one engine:

SurfaceUse it when
CLI / daemon (tfdesign)You are an agent, a script, or a terminal user. Headless runs, exports, media generation, catalog access — all scriptable and delegatable.
Desktop app (Design tab)You want the visual workspace: picker, live sandboxed preview, inline comments, file viewer, export menu.

Both drive the same tfdesign daemon, the same skills, and the same design-system registry. A project created from the CLI opens in the app, and a project created in the app can be continued with tfdesign run --project <id>.

Two ways in​

From the CLI (or a coding agent)​

npm install -g @toothfairyai/tfdesign

# one headless design run, current directory
tfdesign run "A pricing page for a SaaS analytics platform, three tiers, FAQ"

# continue it
tfdesign run --project pricing-page "Make the hero taller and switch the accent to teal"

# convert it
tfdesign export pptx --project pricing-page --font modern-ui

tfdesign attaches to a daemon rooted at the calling directory. If none is running it boots a private one on an ephemeral port, rooted here, and shuts it down when the run ends. State always lives with the directory you ran it from, which is what makes delegation to a coding agent predictable.

See CLI Reference for every subcommand and flag.

From the Desktop app​

  1. Open the Design tab.
  2. Pick a surface — Prototype, Deck, Document, Motion, Image, Video, Audio, Template, or Other.
  3. Optionally bind a design system.
  4. Write the brief and press ⌘/Ctrl+Enter.
  5. Answer the discovery form, pick a visual direction, then iterate with chat and inline comments.
  6. Export from the preview toolbar.

How a run works​

  1. Brief — the only required input.
  2. Discovery form — the agent asks about surface, platform, audience, tone, brand, and scale. It asks even when the brief looks complete; these are the decisions that make output specific rather than generic.
  3. Direction picker — with no brand bound, the agent offers five deterministic visual directions (editorial-monocle, modern-minimal, warm-soft, tech-utility, brutalist-experimental), each with a fixed OKLch palette and font stack.
  4. Generation — the agent follows the bound skill's workflow inside a sandboxed working directory, writing real files.
  5. Self-critique — the artifact is scored across five dimensions and fixed before it is emitted.
  6. Preview, edit, export — chat, inline comments, direct file edits, and a converter per format.

The surfaces​

SurfaceOutputNotes
PrototypeOne screen or a short flow (HTML/JSX)Landing pages, dashboards, app screens
DeckMulti-slide HTML presentationKeyboard/scroll/touch nav, PDF and PPTX export
DocumentPaged HTML on a paper canvasA4/A3/Letter/Legal, Word-style pagination
MotionAnimated slides as HTML+CSS → MP4Editable code, not generated footage; seekable timeline
Image / Video / AudioMedia files via the ToothFairyAI backendAsync renders saved into the project
TemplateA pre-built artifact personalised by the agentFastest path
Live artifactData-backed, refreshable artifactConnector-driven dashboards and reports

Key concepts​

ConceptDescription
ModesThe surfaces above and how they compose. See Modes.
SkillsBundled SKILL.md workflows the agent follows. See Skills.
Design SystemsPortable DESIGN.md brand specs (153 bundled). See Design Systems.
Craft rulesBrand-agnostic quality standards every skill can opt into. See Design Systems Overview.
Media generationImage, video, and speech generation through the backend. See Media Generation.
MotionCode-authored animation rendered to MP4. See Motion.
MCPThree MCP servers exposing projects, media, and skill scripts to external agents. See MCP Server.

Architecture​

tfdesign CLI ──┬── run / export / skills / design-systems / projects / media
│
├── HTTP API ── projects, files, runs (SSE), media, motion
│
├── MCP (stdio) ── tfdesign · skill-tools · live-artifacts
│
└── design agent (nested tfcode) ── writes real files
│
└── project folder ── preview, FileViewer, exports
  • Daemon — one Express process owning SQLite (app.sqlite), project folders, media tasks, motion renders, and the warm agent engine pool.
  • Web frontend — the React workspace the daemon serves (and the Desktop app embeds).
  • Storage — ~/.tfdesign semantics collapse to <calling dir>/.tfdesign for the published CLI, so state is per-project. OD_DATA_DIR relocates everything; OD_MEDIA_CONFIG_DIR relocates only media credentials.
  • Agent transport — the daemon spawns a coding agent with the working directory pinned to the project folder and the full prompt stack (discovery → design system → craft → skill → media/motion contract).

Keyboard shortcuts​

ShortcutAction
⌘/Ctrl+EnterGenerate / send message
EscDismiss the active menu / cancel generation
⌘/Ctrl+PQuick file switcher
⌘/Ctrl+ZUndo (manual edit mode)
⌘/Ctrl+Shift+ZRedo (manual edit mode)

Next steps​

  • Modes — the surfaces and when to use each.
  • Skills — what actually ships, and how skill scripts run.
  • CLI Reference — every subcommand, flag, and exit code.
  • MCP Server — expose TF Design to an external agent.
  • HTTP API — the daemon route map.