> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 创建技能 - POST /v1/workspaces/:workspace_id/skills

> 通过 POST /v1/workspaces/:workspace_id/skills 创建技能定义。最小角色 contributor。

创建一个技能定义（Skill）。技能是可版本化、可共享的执行能力，后续可追加版本、送审、共享与设可见性。

## 接口

```http theme={null}
POST /v1/workspaces/:workspace_id/skills
```

## 认证

`Authorization: Bearer <jwt>` 或 `X-API-Key <sk_...>`。最小角色：**contributor**。

## 路径参数

<ParamField path="workspace_id" type="string" required>
  工作空间 id。
</ParamField>

## 请求体

<ParamField body="name" type="string">
  技能名称。
</ParamField>

<ParamField body="description" type="string">
  技能描述。
</ParamField>

## 响应

<ResponseField name="id" type="string">
  技能 id（`skill_...`）。
</ResponseField>

<ResponseField name="workspace_id" type="string">
  所属工作空间 id。
</ResponseField>

<ResponseField name="owner_id" type="string">
  拥有者用户 id。
</ResponseField>

<ResponseField name="name" type="string">
  名称。
</ResponseField>

<ResponseField name="description" type="string">
  描述。
</ResponseField>

<ResponseField name="source" type="string">
  来源（`git` / `zip` / `hub`）。
</ResponseField>

<ResponseField name="visibility" type="string">
  可见性（`private` / `team` / `restricted` / `agent`）。
</ResponseField>

<ResponseField name="status" type="string">
  状态（`draft` / `reviewed` / `shared`）。
</ResponseField>

<ResponseField name="created_at" type="string">
  创建时间（RFC3339）。
</ResponseField>

<ResponseField name="updated_at" type="string">
  更新时间（RFC3339）。
</ResponseField>

## 示例

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/skills \
    -H "Authorization: Bearer <jwt>" \
    -H "Content-Type: application/json" \
    -d '{"name":"网页摘要","description":"把网页内容总结为要点"}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "skill_01a2b3c4d5e6",
    "workspace_id": "ws_01a2b3c4d5e6",
    "owner_id": "usr_01a2b3c4d5e6",
    "name": "网页摘要",
    "description": "把网页内容总结为要点",
    "source": "",
    "visibility": "private",
    "status": "draft",
    "created_at": "2026-10-12T10:00:00Z",
    "updated_at": "2026-10-12T10:00:00Z"
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.