# save()

Canonical URL: https://developers.iagenify.com/zh/sdk/ref/agents/skills/save/
Language: zh

`api.agents.skills.save({ name, description, content }) → Promise<Skill>`

创建或替换账户上的一项技能。 它从不写到磁盘上, 开发者的文件会保留在磁盘上 。

Status: always the account · same name replaces · returns the saved item

```javascript
await api.agents.skills.save({
  name: "release-notes",
  description: "Write release notes from a range of commits, in our house format.",
  content: "Group changes under Added, Changed, Fixed.\nOne line per change, past tense…",
});
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `name` | string | 必填 | 小写字母、数字和破折号,最多64个字符。 |
| `description` | string | 必填 | 一条线 **由这个决定特工是否装载过** |
| `content` | string | 必填 | 指示,最多10万个字符 |

> **描述是触发器,不是标签**
>
> 代理商符合它提出的要求。 “ 释放说明”几乎没有匹配; 上面的句子与需要它的要求相符。 通常没有人会用它的名字来描述它。

## 永远也碰不到磁盘 {#account-only}

磁盘是一个只读的源。开发者自己编辑这些文件,这是格式的点,没有人想要 API 召人来改写他们,

## 保存磁盘上存在的名称 {#shadowing}

允许使用,从那时起账户的版本就是应用,无处不在。 这是推广本地技能,让共享技能的预期方法。

## 替换同名 {#replacing}

没有单独的更新。 读读它, 修改它, 保存它回来 。

- [SKILL.md 格式](/zh/sdk/agent/skills-and-subagents/skill-format): 多么好的一 看起来像。
- [remove()](/zh/sdk/ref/agents/skills/remove): 带走一个

```python
api.agents.skills.save(
    name="release-notes",
    description="Write release notes from a range of commits, in our house format.",
    content="Group changes under Added, Changed, Fixed.\nOne line per change, past tense…",
)
```
