/tesseron:tesseron-devfrom tesseron
Set up and maintain Tesseron integration in JS/TS projects. Installs the correct consumer package (React, Vue, Svelte, server, web) and wires the canonical API at module scope.
Ships in tesseron. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The go-to skill for getting Tesseron into a project and keeping it cleanly wired as the project evolves. It is the integration skill — not the API tutorial skill (that is the sibling framework skill, which covers how to design actions, resources, handlers, and so on). If the question is "how do I use Tesseron's API?", load framework. If the question is "how do I wire Tesseron into this project, switch to a different consumer package, or adjust the integration shape?", you are in the right place.
This skill does not create projects, pick build tooling, or template framework-specific code. Project creation is someone else's job (upstream scaffolders, framework-specific skills, or the user's own hand). Once the project exists, this skill gets Tesseron correctly integrated with it.
Tesseron ships five consumer packages plus one build-tool plugin. Everything else — package managers, TypeScript configs, framework-specific idioms — is outside Tesseron's responsibility.
| Package | Scope |
|---|---|
@tesseron/react | React projects — exports useTesseronAction, useTesseronResource, useTesseronConnection. |
@tesseron/svelte | Svelte 5 projects — exports tesseronAction, tesseronResource, tesseronConnection runes-style helpers with lifecycle-scoped registration. |
@tesseron/vue | Vue 3 projects — Composition API equivalents of the Svelte helpers with the same lifecycle-scoped semantics. |
@tesseron/server | Node processes — headless services, CLIs, backend adapters. |
@tesseron/web | Any other browser context. A framework-neutral singleton — the same singleton API serves vanilla JS and any browser framework Tesseron does not officially ship a dedicated adapter for. |
@tesseron/vite | Vite dev-server plugin. Required for every browser app in v2 — exposes the /@tesseron/ws bridge the gateway dials into. Add it to vite.config.ts alongside the consumer package. |
@tesseron/core (protocol types) and @tesseron/mcp (the gateway binary) are not consumer packages; ignore them here.
Detect from the project's package.json + file layout:
svelte in dependencies → @tesseron/svelte.vue in dependencies → @tesseron/vue.react and react-dom in dependencies → @tesseron/react.index.html, no Vite/webpack/etc., @types/node present) → @tesseron/server.@tesseron/web.For browser apps, ALSO install @tesseron/vite as a dev dependency and register it in vite.config.ts — v2 relies on the plugin to bridge the browser WebSocket to the gateway.
If the signals conflict (e.g. a React app embedded in a Node workspace — which package applies is usually about where the tesseron.connect() will run), ask the user which process needs the agent surface. Only one consumer @tesseron/* package per process.
If the project is on a non-JS/TS stack (Rails, Django, Go, raw PHP, etc.), stop. Tesseron consumes the SDK from JS/TS only.
Every action needs a Standard-Schema-compatible validator for its .input(...). Check dependencies + devDependencies for one of (preference order): zod, valibot, @sinclair/typebox. If none is present, install zod. Do not install a second validator if the project already has one.
Detect the package manager from the lockfile (pnpm-lock.yaml → pnpm, yarn.lock → yarn, bun.lockb → bun, package-lock.json or none → npm) and use it. Never swap managers.
Install the chosen @tesseron/* package (+ the validator if missing, + @tesseron/vite as a devDependency for browser apps) pinned as ^2.0.0. All @tesseron/* packages release in lockstep, so this range resolves them compatibly as new minors land. If an older project is still on ^1.0.0, upgrade it to ^2.0.0 — v2 is a breaking reverse-connection migration and mixing majors will fail at connect time.
The Tesseron API is framework-neutral. Every integration has the same four calls:
tesseron.app({
id: '<snake_case>',
name: '<Human Readable Name>',
description: '<one-line purpose>',
});
app.id is snake_case and stable — it's the prefix the MCP gateway applies to every tool name (<app_id>__<action_name>). Derive a default from package.json name normalized to snake_case; ask the user only if that clashes.
tesseron
.action('<name>')
.describe('<what it does, written for the LLM>')
.input(<validator schema>)
.handler((input, ctx) => { /* mutate state, return a result */ });
Always include .describe(...) — it is the LLM's only signal for when to call this action.
tesseron
.resource('<name>')
.describe('<what it exposes>')
.output(<validator schema>)
.read(() => <current value>);
A resource exposes state to the agent. The minimal scaffold should include one so the user sees the full shape; they can remove it later if they only need actions.
const welcome = await tesseron.connect();
// welcome.claimCode is the 6-character code the user pastes into Claude.
The canonical calls are framework-neutral. Where they go in the project is the framework's convention, not Tesseron's:
@tesseron/react): tesseron.app(...) at module scope in the main entry file (src/main.tsx or equivalent). Actions and resources can be registered either at module scope via tesseron.action(...) / tesseron.resource(...) or — when they need to close over component state — inside components via useTesseronAction(...) / useTesseronResource(...). useTesseronConnection() surfaces the connection object (including claimCode) to whichever component renders the pairing UI.@tesseron/server): all four calls at module scope of the Node entry file. For Express/Fastify/Koa hybrids, put the Tesseron block in the same file as app.listen(...) so they share process state.@tesseron/web): all four calls at module scope of the framework's entry file (whichever file the framework bootstraps from). The singleton does not care about framework lifecycle — tesseron.app(...) runs at import time; tesseron.connect() can be awaited at module scope or scheduled inside a framework-provided startup hook.Do not template framework-specific code. Reactive primitives, component patterns, and lifecycle idioms of any non-React framework belong to the framework — not to Tesseron. If the user is working in such a framework, they already know how to wire a module-scope import; if another skill is active that specializes in that framework, let it handle idiomatic placement.
If you don't know the project's framework well enough to place calls idiomatically, put them at module scope of the main entry file. That is the lowest-common-denominator placement and will work. Tell the user it's a safe default, not an idiomatic one, and invite them to relocate if their framework prefers a different hook.
tesseron.connect() returns a WelcomeResult whose claimCode is a 6-character string the user pastes into Claude to pair the session. Make it visible:
console.log(\Claim code: ${welcome.claimCode}`)`.@tesseron/react): useTesseronConnection() exposes claimCode — render it in whichever component owns the pairing UI.@tesseron/web): feed the resolved claimCode into the framework's own reactivity primitive (state, ref, signal, observable) and render it. Do not template this — it is the framework's UI concern, not Tesseron's.claim session <code> in Claude and the app's actions become typed MCP tools.framework skill is auto-triggered for further Tesseron work (more actions, subscribable resources, ActionContext methods, session resume, tests). The tesseron-reviewer skill runs before commit.Beyond first-time setup, this skill also covers:
@tesseron/web that now wants React's hook ergonomics: uninstall @tesseron/web, install @tesseron/react, rewrite the module-scope registrations into hook calls where component-scoped state requires it. Only one consumer package per process at the end.@tesseron/* versions. All @tesseron/* packages ship in lockstep. Upgrade them together. Bump every @tesseron/* dep in package.json to the same new version, run the project's install, re-run typecheck. A matching @tesseron/mcp gateway version lives in the plugin — users who installed the plugin at the same version are already aligned; users on older plugin installs may need to reinstall the plugin after a major bump.app.id values. When a single process is exposing two logically distinct surfaces to the agent, they should be two separate processes with two app.id values. See framework/references/project-structure.md for the multi-app section and tool-name collision rules.@tesseron/* package and the validator if it was installed by this skill (check whether the project uses it elsewhere first). Delete the tesseron.app(...) / action / resource / tesseron.connect() block. Leave bundler config, tsconfig, and framework code untouched.For each of these, apply the same rules as the install flow: use the project's existing package manager, do not touch framework config, do not template framework-specific code. The framework skill's references are the source of truth for what the Tesseron API is — consult them if you need to verify current shapes before editing.
package.json, tsconfig.json, or any framework config file.@tesseron/* package per process.@tesseron/core/dist/... or cross-package relative paths). Only the top-level exports are public API..describe(...) on every action and resource..input(...) — never a plain TypeScript type.crypto.randomUUID() for ids. It's available in all supported runtimes.tesseron.app(...) call (inserting a second one throws).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tesseron-dev/tesseron --plugin tesseron5 skills in this plugin
/frameworkQuick-reference mental model for the Tesseron TypeScript SDK — core abstractions (app, action, resource, handler, ActionContext, transport, session, gateway), canonical imports per consumer package (`@tesseron/web`, `/server`, `/react`, `/core`, `/mcp`), and the minimum-viable-app template. Load when the user is starting Tesseron work, wiring a first action or resource, deciding which consumer package to import, writing a handler for the first time, or orienting on how the pieces fit together. Triggers on code that imports from `@tesseron/*`, on calls to `tesseron.action(...)`, `tesseron.resource(...)`, `tesseron.connect(...)`, `useTesseronAction`, `useTesseronResource`, or `useTesseronConnection`, and on broad questions like "what is Tesseron", "how do actions work", "where do I start". For authoritative specs — exact wire format, error code tables, handshake and resume shapes, full protocol behaviour — prefer the `tesseron-docs` skill, which queries the live `@tesseron/docs-mcp` server. This skill is the cheat sheet; `tesseron-docs` is the manual./tesseron-docsAuthoritative Tesseron documentation lookup via the `@tesseron/docs-mcp` MCP server. Calls `search_docs` to find relevant pages and `read_doc` to fetch the full markdown body when the user asks precision questions about Tesseron protocol or SDK behaviour. Triggers on requests that need an exact spec, not an overview — wire format (JSON-RPC envelopes, `tesseron/hello`, `tesseron/welcome`, `tesseron/resume`, `actions/progress`, `actions/cancel`), transport framing, handshake and claim-code flow, session resume and resumeToken, lifecycle transitions, sampling contract, elicitation contract (`ctx.confirm`, `ctx.elicit`), progress + cancellation via `AbortSignal`, error codes (`TesseronErrorCode`, `SamplingNotAvailableError`, `ElicitationNotAvailableError`, `TimeoutError`, `CancelledError`, `ResumeFailedError`), capability negotiation, origin allowlist, multi-app namespacing, MCP gateway config, Standard Schema (Zod, Valibot, Typebox) integration, action-builder steps, resource read/subscribe, React hook semantics. Use phrases like "what error code does X return", "what does tesseron/hello look like", "exact handshake shape", "resumeToken flow", "gateway origin allowlist", "show me the spec for", "what fields does X accept". The `framework` skill handles orientation and the mental model; `tesseron-docs` handles chapter-and-verse questions./tesseron-explorerMaps existing Tesseron TypeScript codebases — catalogs apps, actions, resources, context-method usage, transports, React hooks, and session-lifecycle wiring; traces how agent invocations flow through handlers into app state; returns a compact architecture summary with file:line references. Use PROACTIVELY when the user asks to "explore", "map", "understand", "analyze", "trace", or "explain how this works" in a project that imports from `@tesseron/core`, `@tesseron/web`, `@tesseron/server`, `@tesseron/react`, or `@tesseron/mcp`, or before extending a non-trivial Tesseron codebase. The caller should pass the scope (project root, package, or specific feature) in the invocation prompt./tesseron-reviewerReviews Tesseron TypeScript code for framework- and protocol-specific correctness — app manifest hygiene, action/resource builder invariants, ActionContext capability checks, handler async/signal forwarding, subscriber cleanup, session resume flow, React hook registration patterns, gateway origin-allowlist sanity — using confidence-based filtering. Use PROACTIVELY after any change to Tesseron code, before commit or PR, and whenever the user asks to review, audit, check, or validate code that imports from `@tesseron/core`, `@tesseron/web`, `@tesseron/server`, `@tesseron/react`, or `@tesseron/mcp`. Complements generic code review by focusing only on Tesseron-specific concerns. The caller should pass the scope (diff, file paths, or module) in the invocation prompt.Other plugins' skills for the same job