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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
SlashCommandto 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
- Clarify which capability:
statusline/lsp/output-style/plugins(or multiple). - 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.
- Read settings files (
- 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.jsonmappings; manage via/plugin, then re-check via/lspscreen. - output styles: set
outputStylein settings (or ask the user to choose via/output-style); for edits, edit the output style markdown file and then re-check/output-style.
- statusline: create a Task with subagent_type
- 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.
- Read current settings (best effort):
~/.kode/settings.json(global).kode/settings.local.json(project, if present)
- Produce a compact checklist (OK / Needs attention) for:
- Statusline: global
settings.jsoncontainsstatusLine. - Output style: either settings file contains a non-empty
outputStylestring. - 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-debugskill.
- Statusline: global
- 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
outputStylein.kode/settings.local.json(project) or~/.kode/settings.json(global) and re-read to verify.
- Statusline: if requested, create a Task with subagent_type
- 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
评论
- …
同一仓库的更多技能
doc-coauthoring
5.2k帮你的智能体把零散的笔记整理成清晰的提案、规格或决策文档,再请一位新读者来检查。
lsp-maintain
5.2k帮你的智能体查明 Kode 中代码提示缺失的原因,并设置提供语言服务器的插件。
mcp-builder
5.2k指导你的智能体构建一个 MCP 服务器,为 AI 提供清晰、命名合理的操作,用于连接外部服务,可使用 TypeScript 或 Python。
permissions-debug
5.2k帮你的智能体查明 Kode 为何一直阻止或反复询问某个工具,并以安全、小幅的方式修改权限设置。