SuperAPI AI 工具集

dym-arex-skill-lenh-chat-trong-tui

通用与其它

查看项目

更新于 10-18 01:23

技能介绍

用途

该技能名为 dym-arex-skill-lenh-chat-trong-tui,是一份命令对照速查表,用于区分 DisCo 中的两类命令:shell 命令与 TUI 聊天命令。

DisCo 中约一半的常用操作(登录 provider、切换模式、导出、恢复、压缩上下文)属于在 TUI 提示符内输入的聊天命令,若直接粘贴到终端会得到 command not found。该技能不生成任何文件,仅作为查表使用。

命令区分方式

  • shell 命令:形如 disco ...,在终端输入。
  • 内置聊天命令:形如 /settings、/login、/creator 等,在运行 disco 后的 DisCo 提示符内输入。
  • 调用技能:形如 /skill:<名称>,可在 DisCo 提示符内输入,也可放入 disco -p "..." 的提示字符串中。

/skill:<名称> 是唯一可同时用于两处的形式,因为 -p 会把整串内容传给 agent,例如:

disco --researcher -p "/skill:vllm <task>"          # 有效

内置命令列表

以下列表读取自 core/slash-commands.ts 中的 BUILTIN_SLASH_COMMANDS,共 24 条。

Provider 与模型

  • /login <provider>:配置 provider 认证
  • /logout:移除 provider 认证
  • /model <provider/model>:选择模型(打开选择 UI)
  • /scoped-models:为 Ctrl+P 循环启用/禁用模型
  • /settings:打开设置菜单

模式与会话

  • /creator:在新会话中切换到 Creator
  • /researcher:在新会话中切换到 Researcher
  • /new:新建会话
  • /resume:继续另一个会话
  • /session:查看会话信息与统计
  • /name:为会话设置显示名称
  • /fork:从之前的某条用户消息创建新分支
  • /clone:在当前位置克隆会话
  • /tree:导航会话树(切换分支)
  • /compact:手动压缩上下文

导入与导出

  • /export:导出会话(默认 HTML,可指定 .html/.jsonl)
  • /import:从 JSONL 文件导入并继续会话
  • /share:以 GitHub secret gist 形式分享会话
  • /copy:复制 agent 最后一条消息到剪贴板

其他

  • /trust:为后续会话保存项目 trust 决定
  • /reload:重新加载 keybindings、extension、skill、prompt、theme、context file
  • /changelog:查看 changelog
  • /hotkeys:查看全部快捷键
  • /quit:退出

注意事项

/creator 与 /researcher 会打开新会话:两者都会先警告,然后以干净上下文打开新会话。旧会话仍然存在,可用 /resume 取回;从新会话导出的内容只包含新会话的活动。不要期望在会话中途切换模式还能保留原有对话脉络。若某个请求属于另一模式,DisCo 会在执行前停止并建议切换,不会自行暗中切换模式。

调用技能:/skill:<名称>

在 Researcher 中:

/skill:repo-skills-router <任务描述>
/skill:vllm determine and verify the highest-throughput configuration for <model and workload>
/skill:<graph-entry> Complete <task> within <constraints>, and verify it with <evaluator>.

在 Creator 中(7 个常用入口):

/skill:distill-ml-knowledge identify <source or task anchor>; scope, ground, construct, and verify the operating skill graph.
/skill:create-repo-skill Create and verify a repository skill for /absolute/path/to/repo.
/skill:refresh-repo-skill Refresh /absolute/path/to/existing-skill against the current repository at /absolute/path/to/repo.
/skill:extend-repo-skill Add <capability> coverage to /absolute/path/to/existing-skill using /absolute/path/to/repo as evidence.
/skill:import-repo-skills-to-agent import vllm and sglang to ~/.claude
/skill:create-paper-skills Use Distiller to generate and verify paper-replication skills for each run in this config. config_path: /absolute/path/to/distiller-run-config.toml
/skill:design-meta-skill <反复出现且有证据的能力缺口>

Router 被禁用(disco repo-skills router disable)后仍可手动调用 /skill:repo-skills-router,禁用只是将其从自动选择中移除。

常见陷阱

  • /login 没有对应的 shell 命令。若需非交互方式,可使用环境变量(OPENAI_API_KEY、ANTHROPIC_API_KEY、GEMINI_API_KEY、OPENROUTER_API_KEY、MISTRAL_API_KEY)。
  • /share 会把会话推送到 GitHub gist。secret gist 仍是“有链接即可查看”,分享前请检查内容。
  • 安装或更新技能后必须 /new 或重新打开 disco,正在运行的会话看不到新技能。
  • Extension 可注册额外的聊天命令和 CLI 标志(例如 plan-mode extension 的 --plan);disco --help 会在 Extension CLI Flags 部分列出这些标志。

后续步骤

若打算修改 DisCo 本身,可参考 09-contributor-phat-trien-cli.md。