跳到正文
Skillpedia
自动化11k · #11682

customize-capability

它能做什么

这项技能让 AI 更新你已经安装的能力。适合希望为现有工作区功能添加工具、技能或指引的人。

适用场景

  • ✓当你希望为已安装的能力添加工具服务器时。
  • ✓当你希望在某个能力中添加、删除或编辑技能或服务时。
  • ✓当你希望修改某个能力给你的智能体提供的指引的时候。

技能链接

https://github.com/holaboss-ai/holaOS/blob/main/runtime/harnesses/src/embedded-skills/customize-capability/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/holaboss-ai/holaOS/blob/main/runtime/harnesses/src/embedded-skills/customize-capability/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把 Context7 文档工具添加到我的研究能力中,其他内容保持不变。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会编辑该能力的设置文件并重新安装,从而在不创建副本的情况下更新同一个能力。改动会在智能体的下一次运行中生效。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Customize Capability

Modify a capability that is already installed in this workspace. The most common request is giving it an MCP server so its agent gains new tools, but the same flow covers adding skills, integrations, or guidance.

A capability's source of truth is its manifest at capabilities/<capability-id>/capability.yaml. Re-installing reads that manifest and upserts the capability — re-install IS the update mechanism, and it never creates a duplicate.

Workflow

  1. Identify the capability id from the user's request.
  2. Read the current state:
    • If capabilities/<capability-id>/capability.yaml exists, edit it in place.
    • If it does NOT exist (the capability was installed from the catalog), create it. Reconstruct the existing config first so nothing is dropped: keep the capability's current skills (as ref), its integrations, and its agent_prompt, then add your change on top.
  3. Apply the change (see "Adding an MCP server" for the common case).
  4. Call the capability_install tool with capability_id: <capability-id>. It re-reads the manifest and upserts the capability. A malformed manifest is rejected with a precise error — fix and retry.
  5. Tell the user the change takes effect on the next agent run: the runtime compiles MCP servers at run start, so the current run won't see the new tools. Ask them to send a new message to pick them up.

Adding an MCP server

Add an mcp: block to the manifest. Each server connects the capability's agent to an MCP endpoint and exposes the tools you list.

Remote server (an HTTP/SSE MCP endpoint):

mcp:
  servers:
    - id: x                              # letters/digits/_/-, unique in this capability
      type: remote
      url: https://mcp.example/sse
      headers:                           # optional — e.g. auth
        Authorization: Bearer <token>
      tools: [create_post, list_posts]   # which tools to expose (required, ≥1)

Local server (a subprocess speaking MCP over stdio):

mcp:
  servers:
    - id: helper
      type: local
      command: [npx, "-y", "@modelcontextprotocol/server-everything"]
      environment:                       # optional
        SOME_TOKEN: "{env:SOME_TOKEN}"   # reads from the runtime environment
      tools: [echo, add]

Rules:

  • tools must list at least one tool name — you declare exactly which tools to expose.
  • Remote servers require url; local servers require command.
  • Put auth in headers (remote) or environment (local). Both header and environment values may use {env:VAR_NAME} to read from the runtime environment instead of hard-coding secrets.
  • Ask the user for the server url/command, which tools to expose, and any auth before writing the manifest.

The exposed tools become available to the capability's agent on the next run.

After installing

Confirm what you changed and remind the user to start a new message so the agent picks up the new MCP tools.

常见问题

我现有的设置会丢失吗?

不会。该技能会先读取当前的技能、服务和指引,然后在其基础上添加你的改动。

改动何时开始生效?

在下一次运行时生效。当前的运行仍会使用它开始时所用的工具。

它会创建重复的能力吗?

不会。重新安装会更新同一个能力,而不会生成第二个。

详情

作者的原始描述

Guide for modifying an already-installed workspace capability — adding or editing its MCP servers, skills, integrations, or agent guidance. Use when the user wants to customize, change, or extend an existing capability.

repo: holaboss-ai/holaOS

热度

GitHub 星标
11k
排名
#11682
许可证
—
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能