Drafts
Every skill has a single editable draftlayered over its live version. All edits — files and config — stage on the draft and never change what consumers see until you publish. The draft’s files are stored as ONE authoritative package; a write is a server-side round-trip (download → apply your changes → re-pack), so there is no local copy to keep in sync.
Read & update the draft
Read the draft’s config + metadata, patch any subset of it (draft-staged), or roll a historical revision forward into a fresh draft.
GET/v1/skills/:skillId/draftskill:read
Read the skill's editable draft: config, metadata, and file manifest.
Request
No request body.
Response
| Field | Type | Description |
|---|
id | string (uuid) | |
slug | string | |
display_name | string | |
status | "active" | "inactive" | |
hosting_mode | "byo" | "hosted" | "byos" | null | |
shareable | boolean | |
cover_meta | object | |
cover_image_path | string | null | |
source_url | string | null | |
created_at | string | |
updated_at | string | Latest change to the skill, the revision described here, or that revision's capabilities |
byo | object | null | |
byo.base_url | string | null | |
byo.model_name | string | null | |
byo.key_last4 | string | null | |
byo.charge | object | |
byo.charge.prompt_credits_per_token | string | null | |
byo.charge.completion_credits_per_token | string | null | |
hosted | object | null | |
hosted.model_id | string | null | |
hosted.creator_margin_bps | integer | null | |
byos | object | null | |
byos.connection_id | string (uuid) | null | |
byos.provider | "openai" | "anthropic" | "google" | null | |
byos.model_id | string | null | |
byos.charge | object | |
byos.charge.prompt_credits_per_token | string | null | |
byos.charge.completion_credits_per_token | string | null | |
configured | boolean | |
avatar_key | string | null | Current preset avatar key on the draft/published revision |
name | string | |
description | string | null | |
provisioning_status | "not_required" | "pending" | "running" | "ready" | "failed" | Provisioner progress, read from the provisioner's own runs on the agent runtime: not_required (author on the platform, nothing to do) | pending (waiting for a run to start) | running | ready (a run completed) | failed (every attempt ended without completing; the skill still runs on its imported defaults). Read GET /v1/skills/:skillId/provisioning, or repeat the import — an existing path answers 200 and spends no creation budget. |
requirements | object | |
requirements.env | array<string> | Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet |
requirements.connectors | array<string> | Connector ids the skill declares it uses (SKILL.md `connectors`) |
PATCH/v1/skills/:skillId/draftskill:write
Update draft config/metadata (partial: hosting, key, consumer_billing, meta). Draft-staged — never changes the live version until published. `key` is write-only. A `hosting.hosted_model_id` must be a model the platform serves, else 400 INVALID_MODEL. Omit it in hosted mode to run on the platform default model, which follows the platform as it changes.
Request
| Field | Type | Description |
|---|
keyoptional | object | |
key.llm_style | "anthropic" | "openai" | |
key.llm_base_url | string (uri) | |
key.llm_model_name | string | |
key.llm_key | string | |
key.extra_envoptional | object | |
hostingoptional | object | |
hosting.mode | "byo" | "hosted" | "byos" | |
hosting.hosted_model_idoptional | string | |
hosting.byos_provideroptional | "openai" | "anthropic" | "google" | |
hosting.byos_connection_idoptional | string (uuid) | |
hosting.byos_model_idoptional | string | |
consumer_billingoptional | object | |
consumer_billing.creator_margin_bps | integer | null | |
metaoptional | object | |
meta.display_nameoptional | string | Card display title override (max 40 chars) |
meta.descriptionoptional | string | One-line pitch shown under the cover front (max 60 chars) |
meta.file_indicateoptional | string | File-drop placeholder shown when visitors upload files (max 50 chars) |
meta.text_indicateoptional | string | Chat-input placeholder shown on the skill composer (max 50 chars) |
Response
| Field | Type | Description |
|---|
id | string (uuid) | |
slug | string | |
display_name | string | |
status | "active" | "inactive" | |
hosting_mode | "byo" | "hosted" | "byos" | null | |
shareable | boolean | |
cover_meta | object | |
cover_image_path | string | null | |
source_url | string | null | |
created_at | string | |
updated_at | string | Latest change to the skill, the revision described here, or that revision's capabilities |
byo | object | null | |
byo.base_url | string | null | |
byo.model_name | string | null | |
byo.key_last4 | string | null | |
byo.charge | object | |
byo.charge.prompt_credits_per_token | string | null | |
byo.charge.completion_credits_per_token | string | null | |
hosted | object | null | |
hosted.model_id | string | null | |
hosted.creator_margin_bps | integer | null | |
byos | object | null | |
byos.connection_id | string (uuid) | null | |
byos.provider | "openai" | "anthropic" | "google" | null | |
byos.model_id | string | null | |
byos.charge | object | |
byos.charge.prompt_credits_per_token | string | null | |
byos.charge.completion_credits_per_token | string | null | |
configured | boolean | |
avatar_key | string | null | Current preset avatar key on the draft/published revision |
name | string | |
description | string | null | |
provisioning_status | "not_required" | "pending" | "running" | "ready" | "failed" | Provisioner progress, read from the provisioner's own runs on the agent runtime: not_required (author on the platform, nothing to do) | pending (waiting for a run to start) | running | ready (a run completed) | failed (every attempt ended without completing; the skill still runs on its imported defaults). Read GET /v1/skills/:skillId/provisioning, or repeat the import — an existing path answers 200 and spends no creation budget. |
requirements | object | |
requirements.env | array<string> | Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet |
requirements.connectors | array<string> | Connector ids the skill declares it uses (SKILL.md `connectors`) |
PUT/v1/skills/:skillId/draftskill:write
Ensure a draft exists (no body) or roll the draft back to { source_revision } (appends a copy).
Request
| Field | Type | Description |
|---|
source_revisionoptional | string (uuid) | |
Response
No response body.
Read & write draft files
Read the package’s files with inline text content, or batch upsert/delete them. Each change is a whole-file upsert (path + content) or a delete (path + "deleted": true). Paths are package-relative; .. and absolute paths are rejected, and SKILL.md cannot be deleted. EditingSKILL.mdre-derives the card’s name and description from its frontmatter.
Both target the skill’s primary content. A skill can carry more than one content capability; name another with capability_id (a query parameter on GET, a body field on PATCH) — its id from GET /draft/capabilities.
A capability whose files are a Git checkout — one imported from a repository by this API or the Canvas — is read-only here and answers 400 CODE_FILES_READ_ONLY. Its content is the repository, so it is edited there and re-imported by resolving its ref. Reading those files with GET works normally, and skills whose package this API authored are unaffected.
curl -X PATCH https://connector.socialistic.ai/v1/skills/$SKILL_ID/draft/files \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "changes": [ { "path": "SKILL.md", "content": "---\nname: ...\n---\n..." } ] }'
GET/v1/skills/:skillId/draft/filesskill:read
Read the draft's (or ?rev=) files: list + inline text content (binary/oversized files list with empty content). ?capability_id= reads another content capability than the primary one.
Request
No request body.
Response
| Field | Type | Description |
|---|
revision_id | string | |
revision_number | number | |
files | array<object> | |
files[].path | string | |
files[].size | number | |
files[].langoptional | string | |
files[].content | string | |
files[].binaryoptional | boolean | |
PATCH/v1/skills/:skillId/draft/filesskill:write
Batch upsert/delete files on the draft. Body { capability_id?, changes: [{path, content} | {path, deleted:true}] }; `capability_id` targets another text capability than the primary one, and the response names the capability written (a new id when the write created the draft). SKILL.md frontmatter re-derives card metadata.
Request
| Field | Type | Description |
|---|
capability_idoptional | string (uuid) | |
changes | array<object> | |
Response
| Field | Type | Description |
|---|
revision_id | string | |
revision_number | number | |
sha | string | |
capability_idoptional | string | null | |
Read & write draft capabilities
A skill’s capabilities are what it can do beyond its files: the model it thinks with (inference), how it is paid for (billing), remote MCP servers (mcp), environment variables (env), generation tools, and its public-page copy (traffic). Edits stage on the draft like everything else, so sync files and capabilities, then publish once.
- Secrets are write-only. LLM and generation keys,
env values and MCP header values read back as "<set>". Sent back as "<set>" in a PATCH, a field keeps its stored value. A key belongs to its endpoint: a PATCH that moves a relay byo_llm.base_url or a generation url to another origin must send the new key with it (400 INVALID_CAPABILITY_CONFIG otherwise). PATCH merges. config merges into the stored config, nested objects one level deep. An mcp row’s headers is the exception: it replaces the whole set, so send every header to keep (existing ones as "<set>"). Moving an mcp urlto another origin keeps none of the stored header values — send the new server’s in the same request.- Singletons. Every skill has exactly one
billing and one inference row (at most one traffic): update them, never attach a second one or detach them. - Content. A
code capability is fetched and packaged from { "config": { "github_url" } } on your GitHub App installation, with the same GitHub errors as an import. A new text capability starts empty: write its files with PATCH /draft/files, passing its capability_id. - Refused values. A config is checked when it is written: its schema (
400 INVALID_CAPABILITY_CONFIG, with detail.fieldErrors), and any endpoint the runtime would call — an mcp url, a relay base URL — must not name an internal address, and an env value must be one line (400 INVALID_REQUEST, with detail: { field, issue } for an endpoint and detail: { field: "variables", issues: [...] } for env). A nested key cannot be removed by PATCH; detach the capability and attach it again. - Publishing.
GET answers validation: the rules publish checks on the set of capabilities, and which ones it breaks — what publish refuses with 409 CAPABILITY_SET_INVALID. Publish also needs a complete serving config (409 NOT_SHAREABLE), which validation does not cover. - Ids.Read without a draft, the rows are the live version’s. The first write copies them onto a new draft, and its response carries the row’s id there.
# Attach a remote MCP server
curl -X POST https://connector.socialistic.ai/v1/skills/$SKILL_ID/draft/capabilities \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "capability_type": "mcp", "label": "provence",
"config": { "name": "provence", "url": "https://mcp.example.com/mcp",
"headers": { "Authorization": "Bearer ..." } } }'
# Change the model: PATCH the inference row (its id from the GET)
curl -X PATCH https://connector.socialistic.ai/v1/skills/$SKILL_ID/draft/capabilities/$INFERENCE_ID \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "config": { "hosted_model_id": "deepseek/deepseek-v4-flash" } }'
GET/v1/skills/:skillId/draft/capabilitiesskill:read
Read the draft's capabilities (or the live version's, when there is no draft) with `validation`: the capability-set rules publish checks (CAPABILITY_SET_INVALID) — publish also needs a complete serving config (NOT_SHAREABLE). Secrets (LLM / generation keys, env values, MCP header values) read back as "<set>". Never creates a draft.
Request
No request body.
Response
| Field | Type | Description |
|---|
revision_id | string | null | |
revision_number | number | null | |
is_draft | boolean | |
capabilities | array<object> | |
capabilities[].id | string | |
capabilities[].capability_type | "billing" | "text" | "code" | "inference" | "env" | "image-generate" | "image-understanding" | "video-generate" | "video-understanding" | "audio-generate" | "audio-understanding" | "benchmark" | "tool" | "mcp" | "cli" | "traffic" | |
capabilities[].label | string | |
capabilities[].config | object | The capability's config. Secrets read back as "<set>". |
capabilities[].created_at | string | |
capabilities[].updated_at | string | |
validation | object | |
validation.ok | boolean | |
validation.violations | array<object> | |
validation.violations[].rule | string | |
POST/v1/skills/:skillId/draft/capabilitiesskill:write
Attach a capability to the draft (created if none), e.g. { capability_type: "mcp", config: { name, url, headers } }. A `code` capability is fetched and packaged from { config: { github_url } } on the owner's GitHub App installation, with the same GitHub errors as POST /v1/skills/import. A new `text` capability starts empty — write its files with PATCH /draft/files and its `capability_id`. 422 CAPABILITY_TYPE_NOT_ATTACHABLE for an under-development type; 409 BILLING_SINGLETON / INFERENCE_SINGLETON / TRAFFIC_SINGLETON when the skill already has that one — update it instead.
Request
| Field | Type | Description |
|---|
capability_type | "billing" | "text" | "code" | "inference" | "env" | "image-generate" | "image-understanding" | "video-generate" | "video-understanding" | "audio-generate" | "audio-understanding" | "benchmark" | "tool" | "mcp" | "cli" | "traffic" | |
labeloptional | string | |
configoptional | object | |
Response
| Field | Type | Description |
|---|
capability_id | string | |
revision_id | string | |
PATCH/v1/skills/:skillId/draft/capabilities/:capabilityIdskill:write
Update one draft capability's label and/or config — e.g. the inference row's model. `config` merges into the stored one; "<set>" keeps a stored secret. An mcp row's `headers` replaces the whole set, and moving its `url` to another origin keeps no stored header value. Answers the row's id on the draft, which is new if this write created the draft. On a canonical skill (one listed for its GitHub path), changing the repository or subpath of the code capability that points at that path answers 409 SOURCE_CAPABILITY_LOCKED; changing its ref is allowed.
Request
| Field | Type | Description |
|---|
labeloptional | string | |
configoptional | object | |
Response
| Field | Type | Description |
|---|
capability_id | string | |
revision_id | string | |
DELETE/v1/skills/:skillId/draft/capabilities/:capabilityIdskill:write
Detach one capability from the draft. 409 BILLING_SINGLETON / INFERENCE_SINGLETON: every skill keeps exactly one of each. 409 SOURCE_CAPABILITY_LOCKED: a canonical skill keeps the code capability pointing at its GitHub path.
Request
No request body.
Response
| Field | Type | Description |
|---|
capability_id | string | |
revision_id | string | |
Attachable capability types and their config schemas (generated from the platform contracts):
text0..N
Prompt package (SKILL.md + supporting files); attach empty, then write files via PATCH /draft/files.
Attach config (POST)
object
code0..N
Git repository checkout; attach with config: { github_url }. Stored pointer and archive fields are server-owned.
Attach config (POST)
| Field | Type | Description |
|---|
github_url | string (uri) | GitHub repository or subtree URL to package |
billingrequired singleton
Required singleton (update only). Consumer pricing margin (null = platform default).
Patch config (PATCH)
| Field | Type | Description |
|---|
hosted_pay_mode_creator_share_bpsoptional | integer | null | Creator margin in basis points (0–10000), or null for platform default; synced across all hosting modes |
byo_chargeoptional | object | |
byo_charge.creator_share_bpsoptional | integer | null | Same creator margin (0–10000 or null); per-token rates are server-derived |
byos_chargeoptional | object | |
byos_charge.creator_share_bpsoptional | integer | null | Same creator margin (0–10000 or null); per-token rates are server-derived |
inferencerequired singleton
Required singleton (update only). Base inference model and serving stack.
Patch config (PATCH)
| Field | Type | Description |
|---|
hosting_modeoptional | "byo" | "hosted" | "byos" | null | Serving mode: hosted (platform credits), byo (relay), or byos (account) |
hosted_model_idoptional | string | null | hosted: platform model id; null = platform default |
byo_llmoptional | object | null | |
byo_llm.styleoptional | string | |
byo_llm.base_urloptional | string | |
byo_llm.model_nameoptional | string | |
byo_llm.api_keyoptional | string | |
byos_connection_idoptional | string (uuid) | null | |
byos_provideroptional | "openai" | "anthropic" | "google" | null | |
byos_model_idoptional | string | null | |
env0..N
Attach config (POST)
| Field | Type | Description |
|---|
variablesoptional | object | Environment variables injected into the session. Keys must be POSIX names ([A-Za-z_][A-Za-z0-9_]*) and cannot start with "LLM_". Values must be single-line (no CR, LF, or NUL) and <= 4096 UTF-8 bytes each, with total key+value size <= 32768 UTF-8 bytes (secrets read back as "<set>") |
Patch config (PATCH)
| Field | Type | Description |
|---|
variablesoptional | object | Environment variables injected into the session. Keys must be POSIX names ([A-Za-z_][A-Za-z0-9_]*) and cannot start with "LLM_". Values must be single-line (no CR, LF, or NUL) and <= 4096 UTF-8 bytes each, with total key+value size <= 32768 UTF-8 bytes (secrets read back as "<set>") |
image-generate0..N
Attach config (POST)
| Field | Type | Description |
|---|
mode | "platform" | Served on the platform's key (no api_key or url) |
model | string | Platform-served maker/model id |
| Field | Type | Description |
|---|
mode | "relay" | Creator's own endpoint + api_key |
model | string | Maker/model id |
api_key | string | Required creator API key for the relay endpoint (write-only) |
urloptional | string | Optional custom relay endpoint URL |
Patch config (PATCH)
| Field | Type | Description |
|---|
modeoptional | "platform" | "relay" | Serving mode: platform (platform key, no api_key or url) or relay (requires non-empty api_key, or "<set>" to keep stored key on same origin); account is refused |
modeloptional | string | Maker/model id (must be platform-served when mode is platform) |
api_keyoptional | string | |
urloptional | string | |
video-generate0..N
Attach config (POST)
| Field | Type | Description |
|---|
mode | "platform" | Served on the platform's key (no api_key or url) |
model | string | Platform-served maker/model id |
| Field | Type | Description |
|---|
mode | "relay" | Creator's own endpoint + api_key |
model | string | Maker/model id |
api_key | string | Required creator API key for the relay endpoint (write-only) |
urloptional | string | Optional custom relay endpoint URL |
Patch config (PATCH)
| Field | Type | Description |
|---|
modeoptional | "platform" | "relay" | Serving mode: platform (platform key, no api_key or url) or relay (requires non-empty api_key, or "<set>" to keep stored key on same origin); account is refused |
modeloptional | string | Maker/model id (must be platform-served when mode is platform) |
api_keyoptional | string | |
urloptional | string | |
audio-generate0..N
Attach config (POST)
| Field | Type | Description |
|---|
mode | "platform" | Served on the platform's key (no api_key or url) |
model | string | Platform-served maker/model id |
| Field | Type | Description |
|---|
mode | "relay" | Creator's own endpoint + api_key |
model | string | Maker/model id |
api_key | string | Required creator API key for the relay endpoint (write-only) |
urloptional | string | Optional custom relay endpoint URL |
Patch config (PATCH)
| Field | Type | Description |
|---|
modeoptional | "platform" | "relay" | Serving mode: platform (platform key, no api_key or url) or relay (requires non-empty api_key, or "<set>" to keep stored key on same origin); account is refused |
modeloptional | string | Maker/model id (must be platform-served when mode is platform) |
api_keyoptional | string | |
urloptional | string | |
image-understanding0..N
Attach config (POST)
| Field | Type | Description |
|---|
mode | "platform" | Served on the platform's key (no api_key or url) |
model | string | Platform-served maker/model id |
| Field | Type | Description |
|---|
mode | "relay" | Creator's own endpoint + api_key |
model | string | Maker/model id |
api_key | string | Required creator API key for the relay endpoint (write-only) |
urloptional | string | Optional custom relay endpoint URL |
Patch config (PATCH)
| Field | Type | Description |
|---|
modeoptional | "platform" | "relay" | Serving mode: platform (platform key, no api_key or url) or relay (requires non-empty api_key, or "<set>" to keep stored key on same origin); account is refused |
modeloptional | string | Maker/model id (must be platform-served when mode is platform) |
api_keyoptional | string | |
urloptional | string | |
video-understanding0..N
Attach config (POST)
| Field | Type | Description |
|---|
mode | "platform" | Served on the platform's key (no api_key or url) |
model | string | Platform-served maker/model id |
| Field | Type | Description |
|---|
mode | "relay" | Creator's own endpoint + api_key |
model | string | Maker/model id |
api_key | string | Required creator API key for the relay endpoint (write-only) |
urloptional | string | Optional custom relay endpoint URL |
Patch config (PATCH)
| Field | Type | Description |
|---|
modeoptional | "platform" | "relay" | Serving mode: platform (platform key, no api_key or url) or relay (requires non-empty api_key, or "<set>" to keep stored key on same origin); account is refused |
modeloptional | string | Maker/model id (must be platform-served when mode is platform) |
api_keyoptional | string | |
urloptional | string | |
audio-understanding0..N
Attach config (POST)
| Field | Type | Description |
|---|
mode | "platform" | Served on the platform's key (no api_key or url) |
model | string | Platform-served maker/model id |
| Field | Type | Description |
|---|
mode | "relay" | Creator's own endpoint + api_key |
model | string | Maker/model id |
api_key | string | Required creator API key for the relay endpoint (write-only) |
urloptional | string | Optional custom relay endpoint URL |
Patch config (PATCH)
| Field | Type | Description |
|---|
modeoptional | "platform" | "relay" | Serving mode: platform (platform key, no api_key or url) or relay (requires non-empty api_key, or "<set>" to keep stored key on same origin); account is refused |
modeloptional | string | Maker/model id (must be platform-served when mode is platform) |
api_keyoptional | string | |
urloptional | string | |
trafficoptional singleton
Optional singleton. Public-page introduction copy (refer and pending_review are server-stamped).
Attach config (POST)
| Field | Type | Description |
|---|
langoptional | string | BCP-47 language tag of the copy (the skill's own language) |
headlineoptional | string | Public-page h1 / title (max 120 chars; prefer <= 32 CJK or <= 60 Latin) |
pitchoptional | string | One-sentence input -> output summary for search snippets (max 240 chars; prefer <= 80 CJK or <= 155 Latin) |
sectionsoptional | array<object> | Up to 6 ordered { title, body } sections; body is plain prose or [{ q, a }] Q&A pairs |
sections[].titleoptional | string | |
sections[].bodyoptional | string | array<object> | |
Patch config (PATCH)
| Field | Type | Description |
|---|
langoptional | string | BCP-47 language tag of the copy (the skill's own language) |
headlineoptional | string | Public-page h1 / title (max 120 chars; prefer <= 32 CJK or <= 60 Latin) |
pitchoptional | string | One-sentence input -> output summary for search snippets (max 240 chars; prefer <= 80 CJK or <= 155 Latin) |
sectionsoptional | array<object> | Up to 6 ordered { title, body } sections; body is plain prose or [{ q, a }] Q&A pairs |
sections[].titleoptional | string | |
sections[].bodyoptional | string | array<object> | |
mcp0..16
Remote MCP servers (at most 16 per revision, unique by name).
Attach config (POST)
| Field | Type | Description |
|---|
name | string | Unique server identifier matching /^[a-z0-9][a-z0-9_-]{0,63}$/, excluding reserved runtime extension names |
url | string | Public HTTPS endpoint URL with no embedded credentials, query string, or fragment (internal addresses are refused) |
headersoptional | object | Custom HTTP request headers (max 27 headers, 28672 bytes total; RFC 9110 token names, no control chars; forbids transport headers and X-Socialistic-*/Proxy-*/Mcp-* prefixes; values read back as "<set>") |
timeout_secondsoptional | integer | Per-tool timeout in seconds (0 = default 300s, max 1800s) |
Patch config (PATCH)
| Field | Type | Description |
|---|
nameoptional | string | Unique server identifier matching /^[a-z0-9][a-z0-9_-]{0,63}$/, excluding reserved runtime extension names |
urloptional | string | Public HTTPS endpoint URL with no embedded credentials, query string, or fragment (internal addresses are refused) |
headersoptional | object | Custom HTTP request headers (max 27 headers, 28672 bytes total; RFC 9110 token names, no control chars; forbids transport headers and X-Socialistic-*/Proxy-*/Mcp-* prefixes; values read back as "<set>") |
timeout_secondsoptional | integer | Per-tool timeout in seconds (0 = default 300s, max 1800s) |
Name, description & avatar
The skill’s name and description are live: they are saved on the skill immediately, not staged on the draft. The avatar is staged on the draft like everything else.
PATCH/v1/skills/:skillId/identityskill:write
Set the skill's name and/or description. LIVE — saved on the skill immediately, not staged on the draft, and never rolled back by discarding it. Returns the updated detail.
Request
| Field | Type | Description |
|---|
nameoptional | string | Live skill title shown on the share card and Console (prefer <= 40 chars) |
descriptionoptional | string | null | Live one-sentence consumer-facing description; null clears it |
Response
| Field | Type | Description |
|---|
id | string (uuid) | |
slug | string | |
display_name | string | |
status | "active" | "inactive" | |
hosting_mode | "byo" | "hosted" | "byos" | null | |
shareable | boolean | |
cover_meta | object | |
cover_image_path | string | null | |
source_url | string | null | |
created_at | string | |
updated_at | string | Latest change to the skill, the revision described here, or that revision's capabilities |
byo | object | null | |
byo.base_url | string | null | |
byo.model_name | string | null | |
byo.key_last4 | string | null | |
byo.charge | object | |
byo.charge.prompt_credits_per_token | string | null | |
byo.charge.completion_credits_per_token | string | null | |
hosted | object | null | |
hosted.model_id | string | null | |
hosted.creator_margin_bps | integer | null | |
byos | object | null | |
byos.connection_id | string (uuid) | null | |
byos.provider | "openai" | "anthropic" | "google" | null | |
byos.model_id | string | null | |
byos.charge | object | |
byos.charge.prompt_credits_per_token | string | null | |
byos.charge.completion_credits_per_token | string | null | |
configured | boolean | |
avatar_key | string | null | Current preset avatar key on the draft/published revision |
name | string | |
description | string | null | |
provisioning_status | "not_required" | "pending" | "running" | "ready" | "failed" | Provisioner progress, read from the provisioner's own runs on the agent runtime: not_required (author on the platform, nothing to do) | pending (waiting for a run to start) | running | ready (a run completed) | failed (every attempt ended without completing; the skill still runs on its imported defaults). Read GET /v1/skills/:skillId/provisioning, or repeat the import — an existing path answers 200 and spends no creation budget. |
requirements | object | |
requirements.env | array<string> | Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet |
requirements.connectors | array<string> | Connector ids the skill declares it uses (SKILL.md `connectors`) |
PUT/v1/skills/:skillId/draft/avatarskill:write
Set the draft's preset avatar. Draft-staged — consumers see it once the draft is published.
Request
| Field | Type | Description |
|---|
avatar_key | "coding" | "marketing" | "editor" | "data-analytics" | "research" | "design" | "sales" | "steward" | "finance" | "manager" | Preset avatar role key for the skill card |
Response
| Field | Type | Description |
|---|
revision_id | string | |
Save a checkpoint & read history
Freeze the current draft into an immutable snapshot (append-only, no serving change), and list the revision history. Revisions are read-only.
POST/v1/skills/:skillId/draft/saveskill:write
Freeze the current draft into an immutable snapshot checkpoint (append-only, no serving change).
Request
No request body.
Response
| Field | Type | Description |
|---|
revision_id | string | |
revision_number | number | |
GET/v1/skills/:skillId/revisionsskill:read
List the append-only revision history (draft / published / snapshot), newest first. Read-only.
Request
No request body.
Response
| Field | Type | Description |
|---|
revisions | array<object> | |
revisions[].id | string | |
revisions[].revision_number | number | |
revisions[].status_mask | number | |
revisions[].display_name | string | null | |
revisions[].version | string | null | |
revisions[].published_at | string | null | |
Publish
Promote the active draft to the live version consumers run — appends a revision and consumes the draft. Requires skill:publish— an API key, or an OAuth token granted it. A session’s agent never gets it for a creator’s skill: publishing stays the creator’s.
POST/v1/skills/:skillId/publishskill:publish
Publish the active draft: promote it to the live version consumers run (appends a revision, clears the draft). Ships everything staged on the draft at once — file writes (PATCH /draft/files) and capability edits (/draft/capabilities) alike. 409 NO_ACTIVE_DRAFT if there is no draft; 409 NOT_SHAREABLE if its serving config is incomplete; 409 REVISION_LEGACY_FORMAT for a skill that predates the capability model; 409 CAPABILITY_SET_INVALID (detail names the rules) if its capabilities could not run as a set — GET /draft/capabilities previews this as `validation`; 409 SOURCE_CAPABILITY_REQUIRED if the skill is canonical for a GitHub path and the draft has no code capability pointing at that path.
Request
No request body.
Response
No response body.