Files
Tom Huang b5eb8c1647 feat: generic skills + split skills/design-templates + finalize-design API (#955)
* feat: general-purpose skills with @-mention composition and user import

Lift skills from "one mode-bound skill per project" to a generic capability
the user can compose per turn:

- Daemon: scan multiple skill roots (user-skills under runtime data, then
  the bundled `skills/`); user-imported skills can shadow built-ins by id.
- New `POST /api/skills/import` and `DELETE /api/skills/:id` endpoints,
  with CONFLICT/BAD_REQUEST/NOT_FOUND error codes and built-in delete
  protection.
- ChatRequest gains `skillIds: string[]`; the chat run concatenates each
  picked skill's body (and merges craftRequires) into the system prompt
  for that turn only — the project's persistent `skillId` is untouched.
- Web composer: `@` popover now lists skills alongside project files;
  picks render as removable chips above the textarea and ride along with
  the request as `skillIds`.
- Settings → Library: import form (name/description/triggers/body),
  per-card delete for user skills, "user" origin badge.

* chore(web): drop welcome pet teaser + add ds→prompt-template mapping util

- SettingsDialog: remove the inline pet adoption teaser from the welcome
  panel so the first-run modal stays focused on configuration.
- New `inferPromptTemplateCategoriesForDs(ds)` helper that maps a design
  system's authored metadata to prompt-template gallery categories.
  Imported by the design-system gallery wiring on a sibling branch; no
  callers in this branch yet.

* feat: split skills/design-templates and add finalize-design API

Phase 0 of the skills/design-templates refactor (specs/current/
skills-and-design-templates.md):

- Move ~104 rendering catalogue entries from skills/ to design-templates/
  and keep skills/ for the small set of functional skills that *do work*
  on user input (utilities, briefs, packagers).
- Add design-templates/AGENTS.md and skills/AGENTS.md describing the
  contract, and a brand-agnostic craft/ surface for opt-in craft rules.
- Daemon: add DESIGN_TEMPLATES_DIR / USER_DESIGN_TEMPLATES_DIR roots and
  an /api/design-templates surface mirroring /api/skills. Asset/example
  routes still span both registries so existing srcdoc URLs keep
  resolving across the rename.
- Web: split LibrarySection into SkillsSection + DesignSystemsSection,
  rename the EntryView "Examples" tab to "Templates", and update locales
  + the New-project picker accordingly.

Adds the finalize-design endpoint:

- New apps/daemon/src/finalize-design.ts and packages/contracts/src/api/
  finalize.ts — one-shot synthesis of a project's transcript + active
  design system + current artifact into <projectDir>/DESIGN.md via the
  Anthropic Messages API. Per-project .finalize.lock mirrors the
  transcript-export hygiene from PR #493; provider credentials are not
  persisted by the daemon.

Other supporting changes:

- README + AGENTS.md updates to document the new directory split and
  craft/ surface, plus i18n strings across 13 locales.
- Test refactors and new coverage (finalize-design, runs, sidecar
  server, plus refreshed daemon integration tests).
- .gitignore: scope the *.exe ignore to /OpenDesign.exe so legitimate
  vendor binaries are no longer hidden.

* fix(merge): move clinical-case-report to design-templates/

Origin/main added the clinical-case-report skill under skills/ before
the skills/design-templates split landed. Its od.mode is prototype, so
per specs/current/skills-and-design-templates.md it is a design template
and belongs alongside the other rendering catalogue entries — not under
the slimmed-down functional skills/ root. Moving it keeps the EntryView
Templates tab consistent with origin/main's intent.

* feat(skills): curated design/creative catalogue + collapsible Settings rows

Seed ~100 curated design/creative skill stubs under skills/ sourced from
awesome-claude-skills (ComposioHQ) and awesome-agent-skills (VoltAgent).
Each stub carries an od.category tag so the new filter pill row in
Settings -> Skills can group them. The seed script
(scripts/seed-curated-design-skills.ts, pnpm seed:curated-design-skills)
is idempotent: it only creates folders that don't already exist, so
hand-edited stubs are never overwritten.

- Daemon: parse and surface od.category on SkillInfo with a strict slug
  normaliser; mirror the field on SkillSummary in @open-design/contracts.
  Category is purely a UI hint — system-prompt composition is unchanged.
- Web: rewrite SkillsSection from a left-list / right-detail grid into a
  vertical stack of collapsible rows mirroring the External MCP panel
  (header always visible with name + mode/source/category pills + per-row
  enable toggle; SKILL.md preview, file tree and inline edit form expand
  on demand). Add a Category filter row above the list. Reorder Settings
  nav so Skills + External MCP sit above the Composio/MCP cluster. Update
  composer placeholder/hint across 17 locales to advertise '@ files or
  skills · / for commands'.
- Docs: extend skills/AGENTS.md with the curated catalogue rules
  (idempotency, category vocabulary, no upstream vendoring).

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(skills): teach localized-content + system-prompt tests about the skills/design-templates split

mrcfps blocking review on PR #955: the skills/design-templates split
(b5993385) moved ~110 SKILL.md entries out of `skills/` and into
`design-templates/`, but two repo-level tests still hard-coded the
single-root layout, so CI gates went red on the merged branch:

- `e2e/tests/localized-content.test.ts` only scanned `<repo>/skills`
  while the locale `skillCopy` map keeps id-keyed entries spanning
  both roots (ExamplesTab/Templates uses one lookup regardless of
  origin). Teach the helper to read both `skills/` and
  `design-templates/`, deduplicating ids so the union matches the
  localized claim.
- `apps/daemon/tests/prompts/system.test.ts` read
  `skills/live-artifact/SKILL.md`, which now lives under
  `design-templates/live-artifact/`. Update the absolute path so
  composeSystemPrompt's coverage of the live-artifact preamble is
  exercised again.

Also enroll the curated design/creative catalogue (PR #955, ~91
stubs sourced from awesome-claude-skills / awesome-agent-skills) in
the DE / FR / RU `_SKILL_IDS_WITH_EN_FALLBACK` lists. The stubs are
English-only by design (frontmatter advertises an upstream URL); the
fallback list is exactly the place to acknowledge "we know this id
exists, English copy is fine here" so the localized-content coverage
gate passes without forcing a translation task per locale.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(skills): always quote frontmatter name so importUserSkill round-trips numeric / boolean ids

mrcfps PR #955 review: `buildSkillMarkdown` emitted `name:
${escapeYamlString(name)}` without quotes, so YAML coerced names
like `123`, `true`, `false`, or `null` into non-string scalars on
re-parse. listSkills() then read `data.name` as a number/boolean
and the import flow's follow-up `findSkillById(skills, result.id)`
missed it, falling into `/api/skills/import`'s "imported skill
could not be re-read" 500 path for those ids.

Switch the emitter to a quoted scalar (`name: "..."`) — the
double-escape already in `escapeYamlString` makes the quoted form
safe — and add a round-trip test covering `123`, `true`, `false`,
`null`, and `0` to lock in the contract.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(web): drop staged-skill chips when the matching @<id> token leaves the draft

mrcfps PR #955 review: `submit()` always forwarded every id in
`stagedSkills`, but that state was only mutated on picker click and
chip removal. Hand-deleting an `@<id>` token from the textarea left
the chip staged, so the request still carried `skillIds: [<id>]` and
the daemon composed a skill the prompt no longer referenced.

Sync the chips with the draft inside `handleChange()` by pruning
`stagedSkills` whenever the new value no longer contains the
`@<id>` token (using the same whitespace boundary as
`removeStagedSkill`'s strip regex). Comment explains why this
prune does not run for `staged` file attachments — users frequently
add files via the upload button without leaving an `@<path>` token,
so a symmetric prune there would erase legitimate uploads.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(daemon): stage @-composed skills' side files alongside the active skill

codex PR #955 review: composing a per-turn `@`-picked skill into the
system prompt appended its body (with the `withSkillRootPreamble`
guidance pointing at relative paths under `<cwd>/.od-skills/<folder>/`)
but never staged the actual folder. `startChatRun` only copied
`activeSkillDir`, so when the project's primary skill was different
(or absent) the composed skill's references/, examples/, and scripts/
files lived only at their absolute repo path — agents that honour
the cwd-relative form (or that don't get `--add-dir`, e.g. Codex with
allowlisted gpt-image projects) couldn't reach them.

Thread the composed skills' dirs out of `composeDaemonSystemPrompt`
as `extraSkillDirs` and stage each one through the same
`stageActiveSkill` API used for the primary skill. Dedupe by folder
basename so a project whose primary skill is also `@`-composed isn't
copied twice. Each preamble already advertises its own folder, so the
prompt and the staged tree stay aligned without further changes.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(web): respect the Library disable toggle in the project @-mention picker

codex PR #955 review: only `EntryView` received `enabledSkills`
(filtered against `config.disabledSkills`); active projects still
got `skills={skills}` raw, so a skill the user disabled in Settings
kept appearing in the project's `@`-mention popover and could ride
along to the daemon via `skillIds`. That broke the Library toggle
for any project opened on the post-split branch.

Compute a functional-skills-only enabled subset
(`enabledFunctionalSkills`) and pass it into `<ProjectView>` instead.
Templates stay separate — design-templates are filtered through their
own `enabledDesignTemplates` memo for the Templates gallery — so
ProjectView's chat composer still only sees skills, never templates,
matching the pre-split prop surface.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(e2e): mock /api/design-templates for example-use-prompt flow

The Templates tab in EntryView fetches from /api/design-templates after
the skills/design-templates split (specs/current/skills-and-design-templates.md).
The example-use-prompt Playwright scenario only mocked /api/skills, so the
gallery card never appeared and the test timed out waiting on
example-card-warm-utility-example. Serve the same fixture summary on both
endpoints so the templates gallery renders the card the test clicks.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(tools-pack): create design-templates fixture for resources test

The packaging resources copy now bundles the new design-templates tree
alongside skills (see resources.ts BUNDLED_RESOURCE_TREES). The
copyBundledResourceTrees fixture only created skills, design-systems,
craft, etc., so the recursive copy crashed with ENOENT on
design-templates before it could check the prompt-templates assertion.
Add the missing fixture directory so the test exercises the same set
of resource trees the packaged build does.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(skills): clone built-in side files into the shadow on first edit

mrcfps PR #955 review: editing a built-in skill wrote a USER_SKILLS_DIR
shadow folder that contained only a new SKILL.md. The next listSkills()
pass surfaced the shadow as the active dir, but every side-file resolver
(/api/skills/:id/files, /example, /assets/*, the system-prompt preamble,
and the per-turn cwd staging) reads through skill.dir. With nothing but
SKILL.md in the shadow, the bundled assets/, references/, scripts/, and
examples/ disappeared the moment the user hit save — a built-in like
last30days or live-artifact would break immediately after edit instead
of just having its body overridden.

Teach updateUserSkill() to take a `sourceDir` and clone every entry
except SKILL.md / dotfiles into the shadow on the very first edit. The
shadow stays self-contained, so all the resolvers keep working without
fallback bookkeeping. Subsequent edits detect the existing shadow and
skip the clone, so user tweaks under the side tree survive a re-save.

Wire `sourceDir: skill.dir` from server.ts's PUT /api/skills/:id handler
and add two regression tests:
- 'clones built-in side files into the shadow on the first edit' walks
  the file tree after save and asserts assets/template.html, references/
  notes.md, and scripts/helper.sh all round-trip from the built-in.
- 'preserves user-edited side files on subsequent edits' edits the
  staged assets/template.html, re-saves, and confirms the user content
  is still there.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(e2e): rename home tab from Examples to Templates

The Examples tab was renamed to Templates in EntryView (b5993385's
skills/design-templates split — entry.tabExamples became entry.tabTemplates
and the tab value moved from 'examples' to 'templates'), but
entry-chrome-flows still asserted the old label and testId. Update both.

* fix(skills+web): preserve template body in API mode and dir-based skill delete

Two follow-ups from PR #955 review:

1. ProjectView only received `enabledFunctionalSkills`, but
   `composedSystemPrompt()` still resolved `project.skillId` through that
   prop and `fetchSkill()`. Projects created from the new
   `/api/design-templates` surface keep a template id in `project.skillId`,
   so opening one in API mode dropped the template body from the system
   prompt and the upstream request ran without the project's primary
   template instructions. Now ProjectView takes a separate
   `designTemplates` prop (the unfiltered template list, so a
   later-disabled template still loads for projects already created from
   it) and `composedSystemPrompt()` plus the metadata / `isDeck` lookups
   fall back to that list, with `fetchDesignTemplate()` as the body-fetch
   fallback to `fetchSkill()`. The chat composer's `@`-picker keeps
   receiving only the enabled functional skills.

2. `DELETE /api/skills/:id` used `deleteUserSkill(USER_SKILLS_DIR, skill.id)`
   which re-slugified the frontmatter id and removed
   `<userSkillsDir>/<slug>/`. That matched the import shape but missed the
   install shape — `installFromTarget` writes the folder at
   `sanitizeRepoName(url)` (GitHub) or `path.basename(realpath)` (local
   symlink), neither of which is guaranteed to equal the slugified
   frontmatter `name`. A duplicate `app.delete('/api/skills/:id', ...)`
   handler at the install routes never fired because Express resolved the
   earlier registration first, leaving the install/uninstall path without
   working teardown. The handler now removes `skill.dir` (the absolute
   path listSkills already discovered) under a USER_SKILLS_DIR safety
   check, using `lstat` + `unlinkSync` so symlinked local installs unlink
   cleanly without recursing into the user's source tree. The dead
   duplicate handler is removed; `deleteUserSkill` is dropped from the
   server.ts import set (still exported and unit-tested in skills.ts).
   Regression coverage in `apps/daemon/tests/skills-delete-route.test.ts`
   pins both shapes plus the symlink-preserves-source case.

* test(daemon): point hyperframes system-prompt test at design-templates

The merge with main brought in a hyperframes system-prompt test that
reads `skills/hyperframes/SKILL.md`, but this branch's split moved
`hyperframes` into `design-templates/` (same migration as `live-artifact`
already handled above in this file). CI was failing with ENOENT on the
old path.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-11 17:48:34 +08:00

514 lines
26 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<!--
OD replit-deck seed.
Single-file horizontal-swipe HTML deck in the style of Replit Slides's
landing-page template gallery (replit.com/slides). One deck picks ONE
theme via `<body data-theme="...">`. All 8 themes ship as tokens below;
never override per-slide.
Themes:
helix Modern minimal · light grey + ink + electric blue
holm Editorial serif · cream + ink + deep chestnut
vance Gallery · black/cream bars + cream serif
bevel Y2K editorial · black + Y2K display type
world-dark Finance dark · deep green + mint + neon yellow
world-mint Finance light · mint + deep green + neon yellow
atlas Museum · black + ivory + vermilion + serif
bluehouse Consumer · deep navy + peach/coral gradient cards
DO NOT rewrite the script at the bottom. It solves five iframe-specific
bugs (real scroller, dual listeners, auto-focus, no scrollIntoView,
position persistence). See `skills/simple-deck` for the same pattern.
-->
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Holm — Series A Pre-Read</title>
<style>
/* ─── font stacks (system-only; no external fonts) ─────────────── */
:root {
--font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
--font-sans-display: -apple-system, BlinkMacSystemFont, 'Inter Display', 'Inter', 'Segoe UI', system-ui, sans-serif;
--font-serif: 'Iowan Old Style', 'Charter', 'Palatino', Georgia, 'Times New Roman', serif;
--font-serif-display: 'GT Super', 'Tiempos Headline', 'Iowan Old Style', Georgia, serif;
--font-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}
/* ─── theme: helix (slide-1/4/5 — modern minimal) ─────────────── */
body[data-theme="helix"] {
--bg: #fafafa;
--surface: #ffffff;
--fg: #19191c;
--muted: #6e6e73;
--border: #e4e4e7;
--accent: #5889fe;
--accent-soft: color-mix(in oklch, #5889fe 14%, transparent);
--font-display: var(--font-sans-display);
--font-body: var(--font-sans);
--display-weight: 600;
--display-tracking: -0.02em;
}
/* ─── theme: holm (slide-2 — editorial serif memo) ────────────── */
body[data-theme="holm"] {
--bg: #e4dfd7;
--surface: #eee9e0;
--fg: #0f0f0e;
--muted: #7c7e84;
--border: #c7c1b7;
--accent: #52311d;
--accent-soft: color-mix(in oklch, #52311d 14%, transparent);
--font-display: var(--font-serif-display);
--font-body: var(--font-sans);
--display-weight: 500;
--display-tracking: -0.015em;
}
/* ─── theme: vance (slide-3/7 — gallery catalog) ──────────────── */
body[data-theme="vance"] {
--bg: #f1ede2;
--surface: #e7e2d4;
--fg: #171815;
--muted: #6e6b62;
--border: #d6d2c5;
--accent: #171815;
--accent-soft: color-mix(in oklch, #171815 8%, transparent);
--bar: #0a0a0a; /* top/bottom gallery bar */
--bar-fg: #f1ede2;
--font-display: var(--font-serif-display);
--font-body: var(--font-sans);
--display-weight: 400;
--display-tracking: -0.01em;
}
/* ─── theme: bevel (slide-6/13 — Y2K editorial) ───────────────── */
body[data-theme="bevel"] {
--bg: #0d0d0b;
--surface: #18181a;
--fg: #eae6dd;
--muted: #a29e95;
--border: #2a2a28;
--accent: #c8ff00; /* neon outline only — sparingly */
--accent-soft: color-mix(in oklch, #c8ff00 10%, transparent);
--font-display: 'Antonio', 'Bebas Neue', Impact, var(--font-sans-display);
--font-body: var(--font-sans);
--display-weight: 700;
--display-tracking: 0;
}
/* ─── theme: world-dark (slide-8/10 — finance dark) ───────────── */
body[data-theme="world-dark"] {
--bg: #0d3a2b;
--surface: #124736;
--fg: #bcd6cd;
--muted: #789f91;
--border: #1d4c3c;
--accent: #e8f615;
--accent-soft: color-mix(in oklch, #e8f615 18%, transparent);
--font-display: var(--font-sans-display);
--font-body: var(--font-sans);
--display-weight: 500;
--display-tracking: -0.015em;
}
/* ─── theme: world-mint (slide-9 — finance light sibling) ─────── */
body[data-theme="world-mint"] {
--bg: #bcd6cd;
--surface: #c8e0d6;
--fg: #0d3a2b;
--muted: #527567;
--border: #9abbac;
--accent: #e8f615;
--accent-soft: color-mix(in oklch, #e8f615 22%, transparent);
--font-display: var(--font-sans-display);
--font-body: var(--font-sans);
--display-weight: 500;
--display-tracking: -0.015em;
}
/* ─── theme: atlas (slide-11 — museum chapter) ────────────────── */
body[data-theme="atlas"] {
--bg: #111010;
--surface: #1a1918;
--fg: #e7e6e2;
--muted: #827d78;
--border: #2a2826;
--accent: #de3f40;
--accent-soft: color-mix(in oklch, #de3f40 14%, transparent);
--font-display: var(--font-serif-display);
--font-body: var(--font-sans);
--display-weight: 500;
--display-tracking: -0.02em;
}
/* ─── theme: bluehouse (slide-12 — consumer card) ─────────────── */
body[data-theme="bluehouse"] {
--bg: #0b1524;
--surface: #10203a;
--fg: #ffffff;
--muted: #8ea0b8;
--border: #1a2c46;
--accent: #fb675d; /* coral */
--accent-2: #ff8f68; /* peach */
--accent-soft: color-mix(in oklch, #fb675d 18%, transparent);
--card-peach: #e0af99;
--card-lavender: #c7cff0;
--font-display: var(--font-sans-display);
--font-body: var(--font-sans);
--display-weight: 700;
--display-tracking: -0.025em;
}
/* ─── reset / base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
background: var(--bg);
color: var(--fg);
font-family: var(--font-body);
font-size: 18px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
display: flex;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
}
body::-webkit-scrollbar { display: none; }
p { text-wrap: pretty; margin: 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
/* ─── slide surface ───────────────────────────────────────────── */
.slide {
flex: 0 0 100vw;
width: 100vw;
height: 100vh;
scroll-snap-align: start;
padding: clamp(48px, 6vw, 96px) clamp(56px, 7vw, 112px);
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
.slide.center { align-items: center; justify-content: center; text-align: center; }
/* ─── meta bar (top thin row: brand · meta · page) ────────────── */
.meta-bar {
position: absolute;
top: clamp(32px, 4vw, 56px);
left: clamp(56px, 7vw, 112px);
right: clamp(56px, 7vw, 112px);
display: flex;
justify-content: space-between;
align-items: center;
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--muted);
}
body[data-theme="vance"] .meta-bar { color: var(--bar-fg); }
/* ─── typography primitives ──────────────────────────────────── */
.eyebrow {
font-family: var(--font-mono);
font-size: 12px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--muted);
}
.eyebrow.accent { color: var(--accent); }
.h-hero { font-family: var(--font-display); font-size: clamp(56px, 8.5vw, 128px); line-height: 1.02; }
.h-xl { font-family: var(--font-display); font-size: clamp(40px, 5vw, 76px); line-height: 1.08; }
.h-lg { font-family: var(--font-display); font-size: clamp(28px, 3vw, 44px); line-height: 1.14; }
.h-md { font-family: var(--font-display); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; }
.lead { font-size: clamp(16px, 1.2vw, 19px); color: var(--muted); max-width: 56ch; }
/* Big numeric display — for kpi rows, used by helix / world / atlas */
.num { font-family: var(--font-display); font-size: clamp(48px, 5.5vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.num-label { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.num-delta { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-top: 8px; letter-spacing: 0.02em; }
/* ─── layout primitives ──────────────────────────────────────── */
.hstack { display: flex; gap: var(--gap, 24px); align-items: flex-start; }
.vstack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); row-gap: clamp(48px, 5vw, 80px); }
.divider { height: 1px; background: var(--border); margin: clamp(16px, 2vw, 32px) 0; }
/* ─── surface cards ──────────────────────────────────────────── */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
padding: clamp(20px, 2vw, 32px);
}
/* ─── vance gallery bars ─────────────────────────────────────── */
body[data-theme="vance"] .slide { padding-top: 0; padding-bottom: 0; }
body[data-theme="vance"] .vance-top {
background: var(--bar);
color: var(--bar-fg);
padding: clamp(32px, 4vw, 64px) clamp(56px, 7vw, 112px);
margin-left: calc(-1 * clamp(56px, 7vw, 112px));
margin-right: calc(-1 * clamp(56px, 7vw, 112px));
}
/* ─── bevel dashed frames ────────────────────────────────────── */
body[data-theme="bevel"] .bevel-frame {
border: 1px dashed var(--accent);
padding: clamp(16px, 2vw, 28px);
position: relative;
}
body[data-theme="bevel"] .bevel-frame::before,
body[data-theme="bevel"] .bevel-frame::after {
content: "";
position: absolute;
width: 8px; height: 8px;
background: var(--accent);
border-radius: 50%;
}
body[data-theme="bevel"] .bevel-frame::before { top: -4px; left: -4px; }
body[data-theme="bevel"] .bevel-frame::after { bottom: -4px; right: -4px; }
/* ─── world yellow square marker ─────────────────────────────── */
body[data-theme="world-dark"] .world-marker,
body[data-theme="world-mint"] .world-marker {
display: inline-block;
width: 14px; height: 14px;
background: var(--accent);
vertical-align: middle;
}
/* ─── atlas chapter dot ──────────────────────────────────────── */
body[data-theme="atlas"] .atlas-dot {
display: inline-block;
width: 10px; height: 10px;
border-radius: 50%;
background: var(--accent);
margin-right: 12px;
vertical-align: middle;
}
/* ─── bluehouse gradient card ────────────────────────────────── */
body[data-theme="bluehouse"] .bh-card {
border-radius: 24px;
padding: clamp(28px, 3vw, 48px);
aspect-ratio: 4 / 3;
display: flex;
flex-direction: column;
justify-content: space-between;
}
body[data-theme="bluehouse"] .bh-card.peach {
background: var(--card-peach);
color: #1a0e08;
}
body[data-theme="bluehouse"] .bh-card.coral {
background: linear-gradient(135deg, var(--accent-2), var(--accent));
color: #ffffff;
}
body[data-theme="bluehouse"] .bh-card.lavender {
background: linear-gradient(180deg, var(--card-lavender), #8faad8);
color: #0b1524;
}
/* ─── deck chrome (counter, progress, hint) ──────────────────── */
.deck-counter {
position: fixed;
bottom: 24px; right: 32px;
font-family: var(--font-mono);
font-size: 11px;
padding: 6px 12px;
background: color-mix(in oklch, var(--bg) 92%, transparent);
border: 1px solid var(--border);
letter-spacing: 0.08em;
color: var(--muted);
z-index: 10;
}
.deck-hint {
position: fixed;
bottom: 24px; left: 32px;
font-family: var(--font-mono);
font-size: 11px;
color: var(--muted);
letter-spacing: 0.04em;
z-index: 10;
}
.deck-progress {
position: fixed;
top: 0; left: 0;
height: 2px;
background: var(--accent);
width: 0;
z-index: 10;
transition: width 0.18s ease;
}
</style>
</head>
<body data-theme="holm">
<!-- example: holm · illustrative content only. Numbers are synthetic. -->
<section class="slide" data-screen-label="01 Cover">
<div class="meta-bar">
<span style="font-family: var(--font-serif-display); font-size: 32px; text-transform: none; letter-spacing: 0; color: var(--accent);">Holm</span><span style="color: var(--muted);">&nbsp;&nbsp;EST. 2024</span>
<span>MEMO 04 &nbsp;/&nbsp; APR 2026</span>
</div>
<div style="margin-top: 30vh; max-width: 58vw;">
<p class="eyebrow" style="color: var(--accent); margin-bottom: 28px;">—&nbsp;&nbsp;SERIES A — CONFIDENTIAL PRE-READ</p>
<h1 class="h-xl" style="max-width: 18ch;">Banking and back-office for the 1.4 million lawyers who were never supposed to be alone.</h1>
<p class="lead" style="margin-top: 28px; max-width: 50ch;">Why solo and small-firm legal is the largest unbundled fintech opportunity left in professional services.</p>
</div>
<div style="position: absolute; bottom: clamp(40px, 5vh, 72px); left: clamp(56px, 7vw, 112px); right: clamp(56px, 7vw, 112px); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;">
<span><b>NAOMI VELEZ</b> — CO-FOUNDER, CEO &nbsp;·&nbsp; <b>DANIEL LIOR</b> — CO-FOUNDER, CTO</span>
<span>HOLM.LAW</span>
</div>
</section>
<section class="slide" data-screen-label="02 The Problem">
<div class="meta-bar">
<span style="color: var(--accent);">02 — THE PROBLEM &nbsp;<span style="display: inline-block; width: 40px; height: 1px; background: var(--accent); vertical-align: middle;"></span></span>
<span>HOLM · 02 / 03</span>
</div>
<div style="margin-top: 25vh; max-width: 62vw;">
<h2 class="h-xl" style="max-width: 18ch;">The median solo lawyer sends 34% of their billable hours to a bookkeeper, a bank, and a filing service that don't talk to each other.</h2>
</div>
<div style="position: absolute; bottom: clamp(56px, 7vh, 96px); left: clamp(56px, 7vw, 112px); right: clamp(56px, 7vw, 112px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); padding-top: clamp(24px, 3vh, 40px); border-top: 1px solid var(--border);">
<div><p class="eyebrow" style="margin-bottom: 8px;">MARKET SIZE</p><div class="num" style="font-size: clamp(36px, 4vw, 56px);">1.4M</div><div style="color: var(--muted); font-size: 13px; margin-top: 4px;">US solo + small-firm lawyers.</div></div>
<div><p class="eyebrow" style="margin-bottom: 8px;">TIME LOST</p><div class="num" style="font-size: clamp(36px, 4vw, 56px); color: var(--accent);">34%</div><div style="color: var(--muted); font-size: 13px; margin-top: 4px;">Billable hours on back-office.</div></div>
<div><p class="eyebrow" style="margin-bottom: 8px;">TAM</p><div class="num" style="font-size: clamp(36px, 4vw, 56px);">$18B</div><div style="color: var(--muted); font-size: 13px; margin-top: 4px;">Annual, US only.</div></div>
</div>
</section>
<section class="slide" data-screen-label="03 The Ask">
<div class="meta-bar">
<span style="color: var(--accent);">04 — THE ASK &nbsp;<span style="display: inline-block; width: 40px; height: 1px; background: var(--accent); vertical-align: middle;"></span></span>
<span>HOLM · 03 / 03</span>
</div>
<div style="margin-top: clamp(40px, 6vh, 80px);">
<h2 class="h-xl" style="max-width: 22ch;">$11.4M Series A, led by Felicis. Closing 6/15.</h2>
<p class="lead" style="margin-top: 20px;">Re-up from First Round and Cowboy. Notable angels: Patrick McKenzie, Olympia Hostler (Quaderno), Marshall Kirkpatrick.</p>
</div>
<div style="margin-top: clamp(32px, 4vh, 48px); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: start;">
<div>
<p class="eyebrow" style="margin-bottom: 20px;">USE OF FUNDS — 24 MONTH PLAN</p>
<div style="display: flex; flex-direction: column; gap: 16px;">
<div style="display: grid; grid-template-columns: 60px 1fr; gap: 24px; align-items: start;">
<span class="num" style="font-size: 28px; color: var(--accent);">52%</span>
<div><div style="font-weight: 600;">Engineering &amp; product</div><div style="color: var(--muted); font-size: 14px; margin-bottom: 6px;">Trust accounting, payroll, multi-state filings.</div><div style="height: 3px; background: var(--border); position: relative;"><div style="position: absolute; left: 0; top: 0; height: 100%; width: 52%; background: var(--accent);"></div></div></div>
</div>
<div style="display: grid; grid-template-columns: 60px 1fr; gap: 24px; align-items: start;">
<span class="num" style="font-size: 28px; color: var(--accent);">28%</span>
<div><div style="font-weight: 600;">Go-to-market</div><div style="color: var(--muted); font-size: 14px; margin-bottom: 6px;">Direct + state bar partnerships in CA, TX, NY.</div><div style="height: 3px; background: var(--border); position: relative;"><div style="position: absolute; left: 0; top: 0; height: 100%; width: 28%; background: var(--accent);"></div></div></div>
</div>
<div style="display: grid; grid-template-columns: 60px 1fr; gap: 24px; align-items: start;">
<span class="num" style="font-size: 28px; color: var(--accent);">12%</span>
<div><div style="font-weight: 600;">Compliance &amp; licensing</div><div style="color: var(--muted); font-size: 14px; margin-bottom: 6px;">MTL, sponsor bank coverage.</div><div style="height: 3px; background: var(--border); position: relative;"><div style="position: absolute; left: 0; top: 0; height: 100%; width: 12%; background: var(--accent);"></div></div></div>
</div>
<div style="display: grid; grid-template-columns: 60px 1fr; gap: 24px; align-items: start;">
<span class="num" style="font-size: 28px; color: var(--accent);">8%</span>
<div><div style="font-weight: 600;">Operations</div><div style="color: var(--muted); font-size: 14px; margin-bottom: 6px;">Brand, finance, ops.</div><div style="height: 3px; background: var(--border); position: relative;"><div style="position: absolute; left: 0; top: 0; height: 100%; width: 8%; background: var(--accent);"></div></div></div>
</div>
</div>
</div>
<div class="card" style="background: var(--surface); border: 1px solid var(--border);">
<p class="eyebrow" style="color: var(--accent); margin-bottom: 20px;">THE TEAM</p>
<div style="display: flex; flex-direction: column; gap: 16px;">
<div style="display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;">
<div style="width: 48px; height: 48px; border-radius: 50%; background: color-mix(in oklch, var(--accent) 22%, var(--surface)); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif-display); color: var(--accent); font-size: 20px;">N</div>
<div><div style="font-weight: 600;">Naomi Velez — CEO</div><div style="color: var(--muted); font-size: 14px;">Latham &amp; Watkins associate '14–'19. Solo practice 5 yrs. Cornell Law.</div></div>
</div>
<div style="display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;">
<div style="width: 48px; height: 48px; border-radius: 50%; background: color-mix(in oklch, var(--muted) 30%, var(--surface)); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif-display); color: var(--fg); font-size: 20px;">D</div>
<div><div style="font-weight: 600;">Daniel Lior — CTO</div><div style="color: var(--muted); font-size: 14px;">Ledger infra at Plaid. Built ACH stack at Modern Treasury. Waterloo CS.</div></div>
</div>
</div>
<div style="border-top: 1px solid var(--border); margin-top: 20px; padding-top: 14px;">
<p class="eyebrow" style="margin-bottom: 6px;">DIRECT</p>
<div style="display: flex; justify-content: space-between; font-size: 14px;"><span style="font-weight: 600;">naomi@holm.law</span><span style="color: var(--muted);">+1 (415) 555-0142</span></div>
</div>
</div>
</div>
</section>
<!-- chrome (do not move) -->
<div class="deck-progress" id="deck-progress" aria-hidden></div>
<div class="deck-counter" id="deck-counter">1 / 3</div>
<div class="deck-hint">← / → · scroll · swipe</div>
<script>
/*
Five hard rules for deck nav inside an iframe.
Verified by skills/simple-deck — do not rewrite.
1. Detect the real scroller — body OR documentElement.
2. Listen for scroll on BOTH window and document, capture phase.
3. Listen for keydown on BOTH window and document, capture phase.
4. Auto-focus body so arrow keys work without an upfront click.
5. Never use Element.scrollIntoView — yanks host page.
*/
(function () {
var slides = document.querySelectorAll('.slide');
var counter = document.getElementById('deck-counter');
var progress = document.getElementById('deck-progress');
var KEY = 'od-deck-pos:' + (location.pathname || '/');
var active = 0;
function scroller() {
if (document.body.scrollWidth > document.body.clientWidth + 1) return document.body;
return document.scrollingElement || document.documentElement;
}
function setActive(i) {
active = i;
if (counter) counter.textContent = (i + 1) + ' / ' + slides.length;
if (progress) progress.style.width = (((i + 1) / slides.length) * 100) + '%';
try { localStorage.setItem(KEY, String(i)); } catch (_) {}
}
function go(i) {
var next = Math.max(0, Math.min(slides.length - 1, i));
setActive(next);
scroller().scrollTo({ left: next * window.innerWidth, behavior: 'smooth' });
}
function syncFromScroll() {
var i = Math.round(scroller().scrollLeft / window.innerWidth);
if (i !== active && i >= 0 && i < slides.length) setActive(i);
}
function onKey(e) {
var t = e.target;
if (t && (t.tagName === 'INPUT' || t.tagName === 'TEXTAREA')) return;
if (e.key === 'ArrowRight' || e.key === ' ' || e.key === 'PageDown') { e.preventDefault(); go(active + 1); }
else if (e.key === 'ArrowLeft' || e.key === 'PageUp') { e.preventDefault(); go(active - 1); }
else if (e.key === 'Home') { e.preventDefault(); go(0); }
else if (e.key === 'End') { e.preventDefault(); go(slides.length - 1); }
}
window.addEventListener('keydown', onKey, true);
document.addEventListener('keydown', onKey, true);
document.addEventListener('scroll', syncFromScroll, { passive: true, capture: true });
window.addEventListener('scroll', syncFromScroll, { passive: true });
document.body.setAttribute('tabindex', '-1');
document.body.style.outline = 'none';
function focusDeck() { try { window.focus(); document.body.focus({ preventScroll: true }); } catch (_) {} }
document.addEventListener('mousedown', focusDeck);
window.addEventListener('load', focusDeck);
focusDeck();
try {
var saved = parseInt(localStorage.getItem(KEY) || '0', 10);
if (!isNaN(saved) && saved >= 0 && saved < slides.length) {
setActive(saved);
scroller().scrollTo({ left: saved * window.innerWidth, behavior: 'instant' });
} else {
setActive(0);
}
} catch (_) { setActive(0); }
})();
</script>
</body>
</html>