Skip to content
中文

Create Skill

POST/agent/v1/skills◐ Partial

Request body

  • filesarrayrequired

    Files to upload for the skill.

    All files must be in the same top-level directory and must include a SKILL.md file at the root of that directory.

  • display_namestringoptional

    Human-readable, single-line label for the Skill. Maximum 255 characters. Always set: derived from the SKILL.md frontmatter name when omitted at creation. Not unique.

Returns

200

Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.

Errors follow the Anthropic error format (type / message / request_id) — see error codes

Request

curl
curl https://api.deepraxis.com/agent/v1/skills \
  -H "Authorization: Bearer $PRAXIS_API_KEY" \
  -F "files[]=@docs-sample/SKILL.md;filename=docs-sample/SKILL.md" \
  -F "display_name=docs-sample"
Python
import requests

opts = dict(
    base_url="https://api.deepraxis.com/agent",
    api_key="$PRAXIS_API_KEY",
)

# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证);每个文件部分的文件名就是它的相对路径
resp = requests.post(
    f"{opts['base_url']}/v1/skills",
    headers={"Authorization": f"Bearer {opts['api_key']}"},
    files=[
        ("files[]", ("docs-sample/SKILL.md", open("docs-sample/SKILL.md", "rb"), "text/markdown")),
    ],
    data={"display_name": "docs-sample"},
)
resp.raise_for_status()
print(resp.status_code, resp.json())
TypeScript
const opts = {
  baseURL: "https://api.deepraxis.com/agent",
  apiKey: "$PRAXIS_API_KEY",
};

// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证);每个文件部分的文件名就是它的相对路径
const { readFile } = await import("node:fs/promises");
const form = new FormData();
form.append("files[]", new File([await readFile("docs-sample/SKILL.md")], "docs-sample/SKILL.md", { type: "text/markdown" }));
form.append("display_name", "docs-sample");
const resp = await fetch(`${opts.baseURL}/v1/skills`, {
  method: "POST",
  headers: { Authorization: `Bearer ${opts.apiKey}` },
  body: form,
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
console.log(resp.status, await resp.json());

Response 200

{
  "id": "skill_468e43304fa24aaca392e7200dd386c8",
  "type": "skill",
  "display_name": "docs-sample",
  "latest_version_id": "1792747544802000",
  "source": "custom",
  "created_at": "2026-10-23T09:25:44.802Z",
  "updated_at": "2026-10-23T09:25:44.802Z"
}

Response

HTTP 200

Successful response

multipart/form-data

Name Type Description
id string Unique identifier for the skill. The format and length of IDs may change over time.
created_at string ISO 8601 timestamp of when the skill was created.
display_name string Human-readable, single-line label for the Skill. Maximum 255 characters. Always set: derived from the SKILL.md frontmatter name when omitted at creation. Not unique.
latest_version_id string ID of the newest Skill Version — what latest references resolve to. Always set: a Skill holds at least one version.
source object Where the Skill comes from. Possible values: - "custom": authored by the platform user; private to their workspace - "anthropic": published by Anthropic; shared and read-only - "anthropic_example": Anthropic-published sample Skill - "plugin": resolved from an installed plugin
source.type string Where the Skill comes from. Possible values: - "custom": authored by the platform user; private to their workspace - "anthropic": published by Anthropic; shared and read-only - "anthropic_example": Anthropic-published sample Skill - "plugin": resolved from an installed plugin
type string Object type. For Skills, this is always "skill".
updated_at string ISO 8601 timestamp of when the skill was last updated.