跳到正文
Skillpedia
智能体5.2k · #15019

capabilities-manage

它能做什么

它指导智能体通过 Kode 自身的命令管理各项功能,而不是依靠冗长的手动步骤。它适用于使用 Kode 命令行工具、并希望为自己配置好其功能的人。

适用场景

  • ✓当你想开启或关闭某个 Kode 功能时。
  • ✓当某个 Kode 功能(例如状态栏)无法正常工作,你想修复它时。
  • ✓当你希望智能体为你检查并更改 Kode 自身的设置时。

技能链接

https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/capabilities-manage/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请在 Kode 中为 TypeScript 开启语言服务器,并检查它是否正常工作。”

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

工作原理

智能体会查看当前设置,使用 Kode 自身的命令进行修改,然后通过一次小的真实操作检查结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Capabilities Manage

Goal

Make users manage Kode features by expressing intent (“enable LSP for TS”, “fix my statusline”) while the agent performs the necessary actions via the agent CLI.

Rules (do not violate)

  • Do not output “installation menu” scripts or long lists of install commands.
  • Prefer SlashCommand to run Kode commands (/statusline, /lsp, /plugin ...) instead of asking the user to do it manually.
  • Keep changes minimal and reversible; verify after each change.

Workflow

  1. Clarify which capability: statusline / lsp / output-style / plugins (or multiple).
  2. Inspect current state with minimal friction:
    • Read settings files (~/.kode/settings.json, .kode/settings.local.json).
    • For interactive status screens, ask the user to open them (single step): /lsp, /output-style.
  3. Apply changes:
    • statusline: create a Task with subagent_type statusline-setup (do not ask the user to memorize the command).
    • lsp: ensure a plugin provides .lsp.json mappings; manage via /plugin, then re-check via /lsp screen.
    • output styles: set outputStyle in settings (or ask the user to choose via /output-style); for edits, edit the output style markdown file and then re-check /output-style.
  4. Verify: re-check status screens and run a minimal real operation.

Capabilities audit (recommended for /capabilities)

Keep this fast and low-friction: default output should be a short checklist and only one question when a choice is required.

  1. Read current settings (best effort):
    • ~/.kode/settings.json (global)
    • .kode/settings.local.json (project, if present)
  2. Produce a compact checklist (OK / Needs attention) for:
    • Statusline: global settings.json contains statusLine.
    • Output style: either settings file contains a non-empty outputStyle string.
    • Plugins & LSP readiness: mention that LSP is plugin-driven; if the user cares, ask them to open /lsp (single step) to confirm resolved servers.
    • Permission friction: if the user reports unexpected denials/repeated prompts, invoke the permissions-debug skill.
  3. Auto-fix what you can safely:
    • Statusline: if requested, create a Task with subagent_type statusline-setup (do not ask the user to memorize the command).
    • Output style: set outputStyle in .kode/settings.local.json (project) or ~/.kode/settings.json (global) and re-read to verify.
  4. Verify each fix immediately by re-reading the changed file(s) and summarizing what changed.
常见问题

智能体会直接编辑我的设置文件吗?

在需要时它可能会读取并编辑设置文件,但每次修改都会保持小而易于撤销。

它能替我修复状态栏吗?

可以。它会把状态栏设置交给专门的设置任务处理,因此你不需要自己输入命令。

修改之后智能体会检查什么?

它会重新检查该功能的状态页面,并运行一次小的真实操作来确认其正常工作。

详情

作者的原始描述

Kode capability-management playbook: treat features (LSP, statusline, output styles, plugins, notifications) as configurable capabilities and drive changes through the agent CLI (SlashCommand/Task) instead of pushing users into menu-like flows. Use when the user asks to enable/disable/configure a capability, diagnose why it’s off, or wants the agent to self-manage Kode’s own features (meta capability management).

repo: shareAI-lab/Kode-CLI

热度

GitHub 星标
5.2k
排名
#15019
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能