Platform Seams logo

Platform Seams

OrganizationPopular
EpicenterHQ
platform-seams

Apply Epicenter’s `#platform/*` build-time seam across browser and host targets. Use when adding or changing a seam, build condition, typecheck leaf, or deciding whether code belongs behind one.

Overview

PublisherEpicenterHQ
Repositoryepicenter
Skill nameplatform-seams
Stars
4.8K
Forks
386
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by EpicenterHQ on GitHub. Read the source before you install it.

Installation

Install the Platform Seams AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/EpicenterHQ/epicenter/tree/main/.agents/skills/platform-seams
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EpicenterHQ/epicenter.git /tmp/epicenter
mkdir -p .claude/skills
cp -r /tmp/epicenter/.agents/skills/platform-seams .claude/skills/platform-seams
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Platform Seams in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Platform Seams on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Platform Seams is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Platform seams

Replaces workspace-app-composition, whose subject (defineWorkspace, the workspace singleton, environment factories, the daemon) was deleted with the workspace plane. The seam below is the part that survived.

Storage is not a seam

Every build opens its own store. A host serves bundles and brokers credentials and owns no application data (ADR-0226), so there is no build where data lives somewhere else, and a #platform/* seam for storage is the thing to delete rather than to route. Applications acquire independent stores through openLocal and openPersonal from @epicenter/app/open. Resource constructors select browser or native implementations with isTauri() (ADR-0403). StoreRuntime injection controls store storage and admission; it is not an application-wide runtime. defineStore from the root is platform-free and carries no runtime or AI override.

App-level seams select auth and product capabilities. They do not choose store persistence. Keep resource composition at the product boundary; do not restore Whispering's removed #platform/runtime seam. For constructors and ownership, read the resource contracts.

Whispering is not a seam app

Whispering is a standalone desktop app whose data is a folder of files. It has no #platform/* map and no build condition. Its one boundary is the workspace type in apps/whispering/src/lib/workspace/, chosen at runtime by whether the desktop shell injected a bridge, and its native code runs in a separate folder host process. The "storage is not a seam" rule above is about store-backed apps and does not describe it. See apps/whispering/ARCHITECTURE.md.

Declaring one

1. Map the specifier in package.json "imports". One entry per condition, plus a default:

jsonc
"imports": {
  "#platform/auth": {
    "epicenter-host": "./src/lib/platform/auth.epicenter-host.ts",
    "tauri": "./src/lib/platform/auth.tauri.ts",
    "default": "./src/lib/platform/auth.browser.ts"
  }
}

Condition order in the map is match order.

2. Import the bare specifier, with no branch at the call site:

ts
import { auth } from '#platform/auth';

3. Activate the condition in vite.config.ts:

ts
resolve: {
	// Custom conditions REPLACE Vite's defaults, so the
	// ...defaultClientConditions spread is LOAD-BEARING: drop it and all
	// dependency resolution breaks.
	...(isEpicenterSurface && {
		conditions: ['tauri', ...defaultClientConditions],
	}),
},

4. Typecheck every leaf. Bundler moduleResolution reads the imports field and lands on default for the editor, so the browser leaf is free. Every other condition needs its own tsconfig.<condition>.json setting compilerOptions.customConditions, run from typecheck. Without one, those leaves are never checked at all.

5. Give the seam a contract. types.ts declares it; each leaf annotates against it:

ts
// platform/types.ts
export type PlatformAuth = { /* ... */ };

// platform/auth.browser.ts
export const auth: PlatformAuth | undefined = browserAuth;

Use export const x: Contract = ..., not satisfies. satisfies leaks the concrete type and breaks the lockstep that keeps every leaf the same shape.

The two conditions answer different questions (ADR-0190)

tauri means this build runs in a Tauri WebView, so a leaf may call a native command. epicenter-host means the desktop Epicenter host serves this build, so a leaf may reach the host for a credential, a deployment choice, or an asset base.

They used to be conflated because epicenter-host also meant the host owned the build's replica. ADR-0226 removed that, so the condition is now about brokered credentials and nothing about data.

Package selection and app seams. @epicenter/app selects its default runtime and clipboard inside the package with isTauri() (ADR-0403). It requires no consumer build condition. Keep app-level conditions where they select auth or product UI; removing the package map does not remove those app-owned choices.

A build that owns its own storage uses neither host condition, whether a browser or a bundle serves it: a WebView is a storage partition and origin pair like any other (ADR-0177). Every build owns its own storage, so this is now always true.

A dropped leaf fails nothing

This is the one hazard worth remembering. Removing an epicenter-host key from a seam breaks no build: resolution falls back silently to default, and the hosted build quietly runs the browser leaf. apps/honeycrisp/src/lib/platform-selection.test.ts reads the declarations and names the broken seam, and apps/epicenter/scripts/build-applications.test.ts runs the real build and reads the emitted bytes.

Why not suffixes

The old mechanism put .browser.ts / .tauri.ts ahead of .ts in Vite resolve.extensions, mirrored by tsconfig moduleSuffixes. That was global: every bare import was magic, which is how a bare ./fuji once collided with a fuji.browser.ts. #platform/* is scoped to those specifiers only, so the rest of the import graph stays ordinary.

Anti-patterns

  • Adding a #platform/* seam for storage, a replica, or a database. Every build opens its own store; that seam is what ADR-0226 refused.
  • Branching on the platform at an app's #platform/* call site. Import the bare specifier and let the build select the leaf.
  • Detecting the host at runtime in an app seam. The build already answered. @epicenter/app is the explicit exception: ADR-0403 selects its runtime and clipboard with isTauri(), under the supported Epicenter-host-only Tauri model.
  • Using satisfies on a leaf instead of a : Contract annotation.
  • Importing a .tauri.ts-only symbol through #platform/*. It resolves to the browser leaf off Tauri; import it directly from the .tauri module inside another .tauri.ts file.
  • Reintroducing resolve.extensions suffixes or tsconfig moduleSuffixes.
  • Dropping ...defaultClientConditions from the Tauri conditions array.
  • Adding a condition leaf with no tsconfig.<condition>.json, which means it is never typechecked.
  • A #platform/* seam over identity. Whether a person is signed in is runtime state, not a build condition, so the gate is an {#if} in the boot node and never a leaf. Every app renders a sign-in screen when signed out (ADR-0342, rejected: sign-in IS a door), and that is one branch in one file rather than a seam.

Frequently asked questions

What does the Platform Seams AI skill do?

Apply Epicenter’s `#platform/*` build-time seam across browser and host targets. Use when adding or changing a seam, build condition, typecheck leaf, or deciding whether code belongs behind one.

Why use Platform Seams on TypingMind?

Because you install it once and use it with any model. Platform Seams is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Platform Seams in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/EpicenterHQ/epicenter/tree/main/.agents/skills/platform-seams. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Platform Seams?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Platform Seams?

As many as you like. As long as a model supports skills, you can use Platform Seams with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Platform Seams AI skill free?

It is published on GitHub by EpicenterHQ. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇