[Feature]: Show Skill origin (project, user, plugin, built-in) in the "/" slash menu

未关闭
#632 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

Start with buildTuiSkillCommands() and formatSkillCommandDescription() in packages/tui/src/tui/controller/run/active-run-flow.ts, then inspect how the select list renders the two columns in packages/tui/src/tui/engine/components/select-list.ts. Use the existing TuiSkill.sourceKind data and map known values to labels while retaining the current fallback for unknown values. Done when Skill origins appear in /, native command rows stay unchanged, and filtering still uses Skill names.

由索引模型根据 Issue 内容生成。

描述

Product or interface

CLI - interactive TUI (the / slash menu)

Use case and problem

Typing / lists the built-in commands and every available Skill in one menu, and every Skill row looks the same: [Skill] <description>.

There is no way to tell where a Skill comes from:

  • a Plugin the user installed,
  • the project/workspace (<workspace>/.agents/skills, and the same-named .minimax/skills / .claude/skills directories),
  • the user's home (~/.agents/skills, and ~/.claude/skills / ~/.codex/skills),
  • the built-in Skills shipped with MiniMax Code.

That matters in day-to-day use:

  • Editing or deleting the wrong copy. A Skill name can exist both in the workspace and in a plugin or built-in bundle; the menu cannot show which one won.
  • Reviewing a shared setup. When a teammate's project Skill shows up, nothing in the menu says it came from the repository rather than from the user's home directory.
  • Debugging "why is this Skill here". The name alone does not say whether a plugin contributes it.

/skills already groups its output (Built-in Skills / User Skills / Other Skills via classifyTuiSkillSource), but the slash menu does not reuse that information, and the /skills text prints the raw internal token (e.g. workspace, global, skill-hub-local) instead of a user-facing label.

Desired behavior

Each Skill row in the / menu carries a short source marker; native commands stay unchanged.

Sketch (exact wording is up to maintainers):

-> artifacts                 [Plugin skill] Build, debug, or review code that uses Cloudflare Artifacts
   agent-desktop             [Project skill] Operate desktop apps on macOS, Windows, and Linux through native accessibility trees
   agy-session-search        [User skill] Search local Antigravity CLI (agy) sessions, past user prompts, and slash-command history
   answer-me-with-html       [Built-in skill] Turns an answer into a one-page visual HTML explainer
   /model                    Switch the provider and model for this session

Suggested user-facing vocabulary, mapped from the Skill source the Runtime already returns:

Runtime value Suggested label
plugin Plugin skill
workspace (.agents/skills, .minimax/skills, .claude/skills in the workspace) Project skill
user (~/.agents/skills, ~/.claude/skills, ~/.codex/skills) User skill
agent Agent skill
global (MiniMax Code data directory) Global skill
builtin-agent, builtin-global Built-in skill
skill-hub-local Installed from Skill Hub
missing / unknown fall back to today's [Skill]

Acceptance criteria:

  1. A Skill's origin is visible in the / menu without opening /skills.
  2. Native commands (e.g. /model, /compact) are unchanged.
  3. The label is derived from data the Runtime already exposes; no new filesystem scan in the TUI.
  4. Unknown or future sourceKind values never break rendering and degrade to the current [Skill] marker.
  5. Typing after / still filters on the Skill name, and the longer marker does not shift or truncate the name column.
Platform

Multiple platforms

Alternatives and additional context
  • Alternative: group the menu under headings (Commands, Project skills, User skills, Plugin skills) using the group labels the select list already supports. It reads well, but it reorders the list and makes fuzzy filtering across groups less predictable.
  • Alternative: only change /skills and leave the menu alone. The menu is where the ambiguity actually bites, so that is the weaker fix.
  • Implementation note (from reading this checkout, not verified against a release build): the origin is already available end to end. SkillInfo.sourceKind is produced by toSourceKind() in packages/local-runtime/src/skills/registry-views.ts, survives RuntimeSkillApplication.listRuntimeSkills() (which appends sourceKind: "plugin" for plugin Skills) and the skill.list service, and is already declared as TuiSkill.sourceKind in packages/tui/src/types/runtime-models.ts. The TUI discards it in buildTuiSkillCommands() / formatSkillCommandDescription() (packages/tui/src/tui/controller/run/active-run-flow.ts), which builds the [Skill] ... description rendered in the two columns of packages/tui/src/tui/engine/components/select-list.ts.
  • Naming caveat: <workspace>/.agents/skills is registered with kind workspace (root id workspace-agents in packages/local-runtime/src/skills/roots.ts), and ~/.agents/skills with kind user. The project value exists in SkillSourceKind, but no Skill root in roots.ts currently produces it, so a UI that says "project" needs an explicit workspace to project mapping.
  • Related surface with the same [Skill] ... convention that could follow later: the ACP command list built by availableSkillCommands() in packages/tui/src/acp/commands.ts.
主要语言
TypeScript
星标
2.3k
派生
315
平均合并
3 小时 54 分钟
30 天内合并 PR
9

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MiniMax-AI/minimax-code 的其他 Issue

查看 MiniMax-AI/minimax-code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。