Skip to content

Skills SDK

A skill is a package that teaches your companion something new: extra context, a set of tools it may use, optional sub-agents, hooks that fire on a schedule, and optionally a Stage app. Skills are how the platform’s behaviour grows without changing the companion’s core identity.

Every skill is described by a manifest — a JSON document validated against a fixed schema. The manifest is the contract; the heavy content (instructions, reference docs) lives in files the manifest points to, loaded only when needed. That layering keeps an idle skill cheap (≈50 tokens of metadata) and only pays for the detail when the skill is actually used.

A manifest declares, required fields first:

  • manifest_version — required, and only 1 is accepted today.
  • name, version, description — required identity. name is lowercase-hyphenated, version is semver (1.0.0).
  • author — who made it.
  • dependencies — other skills this one needs.
  • context — whether a SKILL.md (the how-to, ~500 tokens) exists for the skill.
  • tools — tools the skill binds, each core (a built-in companion tool) or composio (an external action), and whether it’s required.
  • agents — optional sub-agents, each with its own prompt and a whitelist of tools it may call.
  • hooks — when the skill acts on its own (below).
  • category and usage_hint — where the skill is listed and a hint when to use it.
  • is_default and auto_enable — whether the platform installs it by default and switches it on.
  • config_schema — a JSON Schema for the skill’s settings; the settings form in the app is checked against it.
  • skill_md — the instructions text. The platform’s package builder writes it from context/SKILL.md; you never write it by hand.
  • essence — a short accent line per language (en, de), at most 200 characters each.
  • ui — a Stage app: a component name, a self-contained JavaScript bundle (code, up to ~50 KB), an optional props_schema, the capabilities it asks for (app_data_read, app_data_write, companion_event, which the owner consents to) and a data_schema for the data it keeps, required with app_data_write.
  • licence and provenance — whether the companion may copy the package into an editable draft, and where a personal copy came from.

A hook has a trigger, a config and an action. Triggers are on_schedule (with config.cron, or config.time_from naming a HH:MM setting in config_schema, and optionally config.enabled_from naming a true/false setting that switches the hook), on_before_model, on_after_model and on_agent_complete. on_event is reserved for event subscriptions and refused today. Actions are message, agent_call, silent_turn and package_turn (a scheduled turn whose label, tools and budget the platform fixes in code; action.wake_reason names one of the platform’s package turns). A hook may also carry a reason, a human-readable note on what it is for.

The envelope of a real package, the Journal app (shortened: three of its four tools, ui.code and the long fields left out):

{
"manifest_version": 1,
"name": "journal",
"version": "1.0.0",
"description": "Your owner's private journal: dated entries they write in the Journal app ...",
"essence": { "en": "...", "de": "..." },
"author": "weside-official",
"is_default": false,
"auto_enable": true,
"context": { "skill.md": true, "reference.md": false },
"tools": [{ "name": "stage_render", "type": "core", "required": true }],
"config_schema": { "...": "..." },
"hooks": [
{
"trigger": "on_schedule",
"config": { "time_from": "prompt_time", "enabled_from": "evening_prompt" },
"action": { "type": "package_turn", "wake_reason": "journal_prompt" },
"reason": "Ask today's journal question"
}
],
"ui": { "component": "journal", "capabilities": ["app_data_read", "app_data_write"], "data_schema": { "...": "..." } }
}

A skill is the unit of reusable companion capability. Understanding the manifest tells you exactly what a skill can touch — which tools it gets, when it runs unprompted — before you install it, and shows you the shape you’d build toward when authoring your own.

Today the developer surface is installation and configuration, exposed over the REST API under /api/v1/companions/{id}/skills:

Terminal window
# List skills published on the platform
curl https://api.weside.ai/api/v1/companions/available \
-H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN"
# Install one on a companion
curl -X POST https://api.weside.ai/api/v1/companions/{companion_id}/skills \
-H "Authorization: Bearer $SUPABASE_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"skill_definition_id": 42}'

You can also list installed skills, update a skill’s config or toggle it on and off, and uninstall it — the same operations the companion’s Abilities page drives in the app.

  • Authoring is manifest-first, not yet self-serve. The schema above is real and stable, but a public “publish your own skill” SDK and marketplace are still landing — today’s published skills are seeded on the platform. Build against the manifest shape; the publishing path is where this is heading.
  • Tools must already exist. A manifest can only bind a core tool the platform exposes or a composio action you’ve connected — it can’t define brand-new tool code.
  • Hooks are gated. Scheduled hooks run under the companion’s proactivity and anti-spam rules; a skill can’t bypass them to spam you.
  • An unknown field refuses the package. The manifest and every declaration inside it accept only the fields above; a typo is an error, not a silently ignored key.
  • An installation belongs to you and runs for one companion. Two companions can carry different skills; deleting a companion deletes none of your installations.