Skip to content

feat(tui): add searchable skills command#90

Open
Fengzdadi wants to merge 1 commit into
MoonshotAI:mainfrom
Fengzdadi:codex/skills-command
Open

feat(tui): add searchable skills command#90
Fengzdadi wants to merge 1 commit into
MoonshotAI:mainfrom
Fengzdadi:codex/skills-command

Conversation

@Fengzdadi
Copy link
Copy Markdown
Contributor

@Fengzdadi Fengzdadi commented May 26, 2026

Related Issue

Refs #60

Problem

Kimi Code currently exposes skill-derived slash commands, but there is no dedicated way in the TUI to inspect the skills loaded for the current session. Users need a focused view to discover loaded skills, understand where they came from, and quickly find the one they want to invoke.

This PR intentionally keeps the first version small. It does not add explicit slash alias rows to the skills view, because command invocation remains covered by slash completion and the /skill:<name> namespace. It also leaves skill enable/disable state and estimated token cost as reviewer-discussion items, since the current session API only returns loaded/effective skills.

What changed

  • Added a /skills built-in slash command that loads skills from the current session.
  • Shows loaded skills in a searchable picker, inspired by Claude Code's skills list.
  • Includes each skill's source, type, manual-only state, description, and path.
  • Inserts /skill:<name> into the editor when a skill is selected, instead of immediately executing it, so users can append extra instructions before submitting.
  • Keeps the empty-skills case as a transcript panel.
  • Documents /skills in both English and Chinese slash-command reference pages.
  • Added a changeset for @moonshot-ai/kimi-code.

Reviewer notes

  • The picker currently keeps path visible because it is useful for debugging project/user/built-in loading. Please consider whether this is too verbose for the default view.
  • Long descriptions plus paths may make rows visually dense. A future iteration could truncate secondary text or only expand the selected row.
  • Skill on/off state and estimated token cost are useful in Claude Code. Kimi Code may need SDK/runtime support before those fields can be shown accurately.
  • The "slash alias" feature was mentioned in Issue feat: 增加 Skills 可见性和管理入口 #60. However, we currently feel it is unnecessary, as it would result in an overly lengthy display, and Kimi Code itself was not designed with the intention of utilizing aliases.
image

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Validation

  • pnpm --filter @moonshot-ai/kimi-code exec vitest run test/tui/components/messages/skills-panel.test.ts test/tui/commands/registry.test.ts test/tui/kimi-tui-message-flow.test.ts --reporter=dot
  • pnpm --filter @moonshot-ai/kimi-code run typecheck
  • pnpm -C apps/kimi-code run build
  • pnpm -C apps/kimi-code exec oxlint src/tui/kimi-tui.ts src/tui/components/messages/skills-panel.ts test/tui/kimi-tui-message-flow.test.ts test/tui/components/messages/skills-panel.test.ts

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 26, 2026

🦋 Changeset detected

Latest commit: 7eb2b24

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Fengzdadi Fengzdadi marked this pull request as ready for review May 26, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant