socialistic connector

Connector API

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
FieldTypeDescription
idstring (uuid)
slugstring
display_namestring
status"active" | "inactive"
hosting_mode"byo" | "hosted" | "byos" | null
shareableboolean
cover_metaobject
cover_image_pathstring | null
source_urlstring | null
created_atstring
updated_atstringLatest change to the skill, the revision described here, or that revision's capabilities
byoobject | null
byo.base_urlstring | null
byo.model_namestring | null
byo.key_last4string | null
byo.chargeobject
byo.charge.prompt_credits_per_tokenstring | null
byo.charge.completion_credits_per_tokenstring | null
hostedobject | null
hosted.model_idstring | null
hosted.creator_margin_bpsinteger | null
byosobject | null
byos.connection_idstring (uuid) | null
byos.provider"openai" | "anthropic" | "google" | null
byos.model_idstring | null
byos.chargeobject
byos.charge.prompt_credits_per_tokenstring | null
byos.charge.completion_credits_per_tokenstring | null
configuredboolean
avatar_keystring | nullCurrent preset avatar key on the draft/published revision
namestring
descriptionstring | 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.
requirementsobject
requirements.envarray<string>Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet
requirements.connectorsarray<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
FieldTypeDescription
keyoptionalobject
key.llm_style"anthropic" | "openai"
key.llm_base_urlstring (uri)
key.llm_model_namestring
key.llm_keystring
key.extra_envoptionalobject
hostingoptionalobject
hosting.mode"byo" | "hosted" | "byos"
hosting.hosted_model_idoptionalstring
hosting.byos_provideroptional"openai" | "anthropic" | "google"
hosting.byos_connection_idoptionalstring (uuid)
hosting.byos_model_idoptionalstring
consumer_billingoptionalobject
consumer_billing.creator_margin_bpsinteger | null
metaoptionalobject
meta.display_nameoptionalstringCard display title override (max 40 chars)
meta.descriptionoptionalstringOne-line pitch shown under the cover front (max 60 chars)
meta.file_indicateoptionalstringFile-drop placeholder shown when visitors upload files (max 50 chars)
meta.text_indicateoptionalstringChat-input placeholder shown on the skill composer (max 50 chars)
Response
FieldTypeDescription
idstring (uuid)
slugstring
display_namestring
status"active" | "inactive"
hosting_mode"byo" | "hosted" | "byos" | null
shareableboolean
cover_metaobject
cover_image_pathstring | null
source_urlstring | null
created_atstring
updated_atstringLatest change to the skill, the revision described here, or that revision's capabilities
byoobject | null
byo.base_urlstring | null
byo.model_namestring | null
byo.key_last4string | null
byo.chargeobject
byo.charge.prompt_credits_per_tokenstring | null
byo.charge.completion_credits_per_tokenstring | null
hostedobject | null
hosted.model_idstring | null
hosted.creator_margin_bpsinteger | null
byosobject | null
byos.connection_idstring (uuid) | null
byos.provider"openai" | "anthropic" | "google" | null
byos.model_idstring | null
byos.chargeobject
byos.charge.prompt_credits_per_tokenstring | null
byos.charge.completion_credits_per_tokenstring | null
configuredboolean
avatar_keystring | nullCurrent preset avatar key on the draft/published revision
namestring
descriptionstring | 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.
requirementsobject
requirements.envarray<string>Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet
requirements.connectorsarray<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
FieldTypeDescription
source_revisionoptionalstring (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
FieldTypeDescription
revision_idstring
revision_numbernumber
filesarray<object>
files[].pathstring
files[].sizenumber
files[].langoptionalstring
files[].contentstring
files[].binaryoptionalboolean
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
FieldTypeDescription
capability_idoptionalstring (uuid)
changesarray<object>
Response
FieldTypeDescription
revision_idstring
revision_numbernumber
shastring
capability_idoptionalstring | 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
FieldTypeDescription
revision_idstring | null
revision_numbernumber | null
is_draftboolean
capabilitiesarray<object>
capabilities[].idstring
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[].labelstring
capabilities[].configobjectThe capability's config. Secrets read back as "<set>".
capabilities[].created_atstring
capabilities[].updated_atstring
validationobject
validation.okboolean
validation.violationsarray<object>
validation.violations[].rulestring
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
FieldTypeDescription
capability_type"billing" | "text" | "code" | "inference" | "env" | "image-generate" | "image-understanding" | "video-generate" | "video-understanding" | "audio-generate" | "audio-understanding" | "benchmark" | "tool" | "mcp" | "cli" | "traffic"
labeloptionalstring
configoptionalobject
Response
FieldTypeDescription
capability_idstring
revision_idstring
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
FieldTypeDescription
labeloptionalstring
configoptionalobject
Response
FieldTypeDescription
capability_idstring
revision_idstring
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
FieldTypeDescription
capability_idstring
revision_idstring

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)
FieldTypeDescription
github_urlstring (uri)GitHub repository or subtree URL to package
billingrequired singleton

Required singleton (update only). Consumer pricing margin (null = platform default).

Patch config (PATCH)
FieldTypeDescription
hosted_pay_mode_creator_share_bpsoptionalinteger | nullCreator margin in basis points (0–10000), or null for platform default; synced across all hosting modes
byo_chargeoptionalobject
byo_charge.creator_share_bpsoptionalinteger | nullSame creator margin (0–10000 or null); per-token rates are server-derived
byos_chargeoptionalobject
byos_charge.creator_share_bpsoptionalinteger | nullSame 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)
FieldTypeDescription
hosting_modeoptional"byo" | "hosted" | "byos" | nullServing mode: hosted (platform credits), byo (relay), or byos (account)
hosted_model_idoptionalstring | nullhosted: platform model id; null = platform default
byo_llmoptionalobject | null
byo_llm.styleoptionalstring
byo_llm.base_urloptionalstring
byo_llm.model_nameoptionalstring
byo_llm.api_keyoptionalstring
byos_connection_idoptionalstring (uuid) | null
byos_provideroptional"openai" | "anthropic" | "google" | null
byos_model_idoptionalstring | null
env0..N
Attach config (POST)
FieldTypeDescription
variablesoptionalobjectEnvironment 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)
FieldTypeDescription
variablesoptionalobjectEnvironment 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)
FieldTypeDescription
mode"platform"Served on the platform's key (no api_key or url)
modelstringPlatform-served maker/model id
FieldTypeDescription
mode"relay"Creator's own endpoint + api_key
modelstringMaker/model id
api_keystringRequired creator API key for the relay endpoint (write-only)
urloptionalstringOptional custom relay endpoint URL
Patch config (PATCH)
FieldTypeDescription
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
modeloptionalstringMaker/model id (must be platform-served when mode is platform)
api_keyoptionalstring
urloptionalstring
video-generate0..N
Attach config (POST)
FieldTypeDescription
mode"platform"Served on the platform's key (no api_key or url)
modelstringPlatform-served maker/model id
FieldTypeDescription
mode"relay"Creator's own endpoint + api_key
modelstringMaker/model id
api_keystringRequired creator API key for the relay endpoint (write-only)
urloptionalstringOptional custom relay endpoint URL
Patch config (PATCH)
FieldTypeDescription
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
modeloptionalstringMaker/model id (must be platform-served when mode is platform)
api_keyoptionalstring
urloptionalstring
audio-generate0..N
Attach config (POST)
FieldTypeDescription
mode"platform"Served on the platform's key (no api_key or url)
modelstringPlatform-served maker/model id
FieldTypeDescription
mode"relay"Creator's own endpoint + api_key
modelstringMaker/model id
api_keystringRequired creator API key for the relay endpoint (write-only)
urloptionalstringOptional custom relay endpoint URL
Patch config (PATCH)
FieldTypeDescription
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
modeloptionalstringMaker/model id (must be platform-served when mode is platform)
api_keyoptionalstring
urloptionalstring
image-understanding0..N
Attach config (POST)
FieldTypeDescription
mode"platform"Served on the platform's key (no api_key or url)
modelstringPlatform-served maker/model id
FieldTypeDescription
mode"relay"Creator's own endpoint + api_key
modelstringMaker/model id
api_keystringRequired creator API key for the relay endpoint (write-only)
urloptionalstringOptional custom relay endpoint URL
Patch config (PATCH)
FieldTypeDescription
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
modeloptionalstringMaker/model id (must be platform-served when mode is platform)
api_keyoptionalstring
urloptionalstring
video-understanding0..N
Attach config (POST)
FieldTypeDescription
mode"platform"Served on the platform's key (no api_key or url)
modelstringPlatform-served maker/model id
FieldTypeDescription
mode"relay"Creator's own endpoint + api_key
modelstringMaker/model id
api_keystringRequired creator API key for the relay endpoint (write-only)
urloptionalstringOptional custom relay endpoint URL
Patch config (PATCH)
FieldTypeDescription
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
modeloptionalstringMaker/model id (must be platform-served when mode is platform)
api_keyoptionalstring
urloptionalstring
audio-understanding0..N
Attach config (POST)
FieldTypeDescription
mode"platform"Served on the platform's key (no api_key or url)
modelstringPlatform-served maker/model id
FieldTypeDescription
mode"relay"Creator's own endpoint + api_key
modelstringMaker/model id
api_keystringRequired creator API key for the relay endpoint (write-only)
urloptionalstringOptional custom relay endpoint URL
Patch config (PATCH)
FieldTypeDescription
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
modeloptionalstringMaker/model id (must be platform-served when mode is platform)
api_keyoptionalstring
urloptionalstring
trafficoptional singleton

Optional singleton. Public-page introduction copy (refer and pending_review are server-stamped).

Attach config (POST)
FieldTypeDescription
langoptionalstringBCP-47 language tag of the copy (the skill's own language)
headlineoptionalstringPublic-page h1 / title (max 120 chars; prefer <= 32 CJK or <= 60 Latin)
pitchoptionalstringOne-sentence input -> output summary for search snippets (max 240 chars; prefer <= 80 CJK or <= 155 Latin)
sectionsoptionalarray<object>Up to 6 ordered { title, body } sections; body is plain prose or [{ q, a }] Q&A pairs
sections[].titleoptionalstring
sections[].bodyoptionalstring | array<object>
Patch config (PATCH)
FieldTypeDescription
langoptionalstringBCP-47 language tag of the copy (the skill's own language)
headlineoptionalstringPublic-page h1 / title (max 120 chars; prefer <= 32 CJK or <= 60 Latin)
pitchoptionalstringOne-sentence input -> output summary for search snippets (max 240 chars; prefer <= 80 CJK or <= 155 Latin)
sectionsoptionalarray<object>Up to 6 ordered { title, body } sections; body is plain prose or [{ q, a }] Q&A pairs
sections[].titleoptionalstring
sections[].bodyoptionalstring | array<object>
mcp0..16

Remote MCP servers (at most 16 per revision, unique by name).

Attach config (POST)
FieldTypeDescription
namestringUnique server identifier matching /^[a-z0-9][a-z0-9_-]{0,63}$/, excluding reserved runtime extension names
urlstringPublic HTTPS endpoint URL with no embedded credentials, query string, or fragment (internal addresses are refused)
headersoptionalobjectCustom 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_secondsoptionalintegerPer-tool timeout in seconds (0 = default 300s, max 1800s)
Patch config (PATCH)
FieldTypeDescription
nameoptionalstringUnique server identifier matching /^[a-z0-9][a-z0-9_-]{0,63}$/, excluding reserved runtime extension names
urloptionalstringPublic HTTPS endpoint URL with no embedded credentials, query string, or fragment (internal addresses are refused)
headersoptionalobjectCustom 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_secondsoptionalintegerPer-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
FieldTypeDescription
nameoptionalstringLive skill title shown on the share card and Console (prefer <= 40 chars)
descriptionoptionalstring | nullLive one-sentence consumer-facing description; null clears it
Response
FieldTypeDescription
idstring (uuid)
slugstring
display_namestring
status"active" | "inactive"
hosting_mode"byo" | "hosted" | "byos" | null
shareableboolean
cover_metaobject
cover_image_pathstring | null
source_urlstring | null
created_atstring
updated_atstringLatest change to the skill, the revision described here, or that revision's capabilities
byoobject | null
byo.base_urlstring | null
byo.model_namestring | null
byo.key_last4string | null
byo.chargeobject
byo.charge.prompt_credits_per_tokenstring | null
byo.charge.completion_credits_per_tokenstring | null
hostedobject | null
hosted.model_idstring | null
hosted.creator_margin_bpsinteger | null
byosobject | null
byos.connection_idstring (uuid) | null
byos.provider"openai" | "anthropic" | "google" | null
byos.model_idstring | null
byos.chargeobject
byos.charge.prompt_credits_per_tokenstring | null
byos.charge.completion_credits_per_tokenstring | null
configuredboolean
avatar_keystring | nullCurrent preset avatar key on the draft/published revision
namestring
descriptionstring | 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.
requirementsobject
requirements.envarray<string>Environment variable names the skill declares (SKILL.md `requires`, .socialistic/capabilities.json) that no env capability sets yet
requirements.connectorsarray<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
FieldTypeDescription
avatar_key"coding" | "marketing" | "editor" | "data-analytics" | "research" | "design" | "sales" | "steward" | "finance" | "manager"Preset avatar role key for the skill card
Response
FieldTypeDescription
revision_idstring

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
FieldTypeDescription
revision_idstring
revision_numbernumber
GET/v1/skills/:skillId/revisionsskill:read

List the append-only revision history (draft / published / snapshot), newest first. Read-only.

Request

No request body.

Response
FieldTypeDescription
revisionsarray<object>
revisions[].idstring
revisions[].revision_numbernumber
revisions[].status_masknumber
revisions[].display_namestring | null
revisions[].versionstring | null
revisions[].published_atstring | 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.