Checklist
What to check before you publish an extension.
Go through this before you publish. Each item links to the page that explains it.
Shape
- One folder with an entry file (
index.tsorindex.tsx) whose default export{ manifest, View, actions }satisfiesExtensionModule, andnpm run build:extensions(inapps/desktop) builds it. (Getting started) - The manifest goes through
defineExtension, with a reverse-DNS id you own, a semverversionbumped for this release, adescriptionand a Lucideicon. (Manifest) - Every declared action has a handler (otherwise the tool fails with "… declares … but doesn't implement it"). (Actions)
Self-contained
- No imports from other extension folders, no attempts to reach other extensions' storage, and no
data:<ns>:*permissions (they grant nothing today). (Self-contained) - No new npm packages, unless the package is the point of the extension. It builds in the Studio too.
- The view imports nothing but the modules the frame provides, and uses
host.net,host.storageandhost.shellinstead offetch,localStorageand links. - Permissions list only what the code uses. (Permissions)
The assistant
- Every kind of record the user sees is a collection, or is readable through an action. (Giving the assistant your data)
- Records are in collections; nothing list-shaped is kept in
host.storage, which is for settings and small state up to 64 KB. (Giving the assistant your data) - The view reads and writes through
useCollection/host, not a private store. - Every collection, field and action has a description, and id fields say where the id comes from. (Writing for the model)
- The tool text is lean: the manifest's first sentence fits in about 100 characters, group-wide conventions are said once, nothing repeats the schema, and the tools average about 150 tokens each (a group near 3,000 tokens in all, more for a large integration that keeps that average). (Clear but lean)
- Outward-facing or destructive actions set
requiresApproval; pure reads setreadOnly. - Errors say how to fix the call; results are small and true.
-
README.mdlists the assistant tools the extension adds.
Routes
- The view keeps its pages (open record, folder, tab, sub-screen) in
useRoute, notuseState: clicking through it changes the address, Back and Forward step through it, and a reload reopens the same page. (Getting started) - A route naming something that's gone (deleted record, removed folder) lands on a sensible page and fixes the address with
replace, but only after the data has loaded. -
README.mdhas a "Routes" section listing the routes and what each opens. - Search can find the extension's things: each collection has a
routewith{id}, or the manifest names a read-onlysearchaction whose results carry routes. That is also what lets people and the assistant add them to Projects. (Being found in Search)
Notifications and events
- If the extension sends notifications: every kind is declared in
notificationswith a title and description,badge: falseon kinds that aren't waiting for the person, plain one-line text, atargetthe view handles withuseLinkTarget, andmarkReadonce the person has seen what a badged notification was about. (Notifications and events) - Things people would want to react to that collections don't already report are declared in
eventswith descriptions and payload schemas, and emitted with a one-linesummary. - An extension that receives events claims each one before doing anything that must happen once.
- The README lists the notification kinds, what targets mean, and the events.
Look
- Colors come from the design tokens (
bg-surface,text-muted, …), nothing hard-coded, and the view works in light and dark. (UI kit) - The root is
h-fulland scrolls inside; nothing has a fixed width, so it works at phone width.