Skip to content

feat(install-skill): add Kimi Code harness support - #65

Merged
BB-fat merged 2 commits into
mainfrom
feat/kimi-code-harness
Aug 6, 2026
Merged

feat(install-skill): add Kimi Code harness support#65
BB-fat merged 2 commits into
mainfrom
feat/kimi-code-harness

Conversation

@BB-fat

@BB-fat BB-fat commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Motivation

bsk install-skill did not support Kimi Code CLI (MoonshotAI/kimi-code), so users of that harness had to copy SKILL.md manually.

What changes

New kimi-code harness in skill_install::harness:

  • Install path: $KIMI_CODE_HOME/skills/browser-skill, defaulting to ~/.kimi-code/skills/browser-skill — Kimi Code CLI's Kimi-specific user-level skills directory (per the official skills doc). The KIMI_CODE_HOME override is honored, same pattern as HERMES_HOME for the hermes harness.
  • Detection: the kimi-code home directory exists (env-aware label), or kimi on PATH.
  • Aliases: kimi, kimi-code, kimi-cli, kimicode, kimi_cli.

No other harness behaviour touched; --all/--yes/interactive flows pick it up automatically through the existing detection logic.

Notes:

  • README's harness icon table is unchanged — adding Kimi Code there needs an official logo asset, which I didn't want to improvise.
  • Env-mutating kimi tests are serialized with a shared mutex (Rust tests run in parallel; KIMI_CODE_HOME reads/writes would otherwise race).

Tests

  • New unit tests: alias parsing, home-layout detection, skills-dir mapping, KIMI_CODE_HOME override, cli/display names.
  • cargo fmt --all, cargo clippy -p bsk --all-targets -- -D warnings: clean.
  • cargo test -p bsk --lib skill_install: all pass except the pre-existing, environment-dependent sync_continues_on_partial_error (fails identically on clean main in this environment).

BB-fat added 2 commits August 6, 2026 05:05
Add kimi-code to the install-skill harness list: installs the bundled SKILL.md into ~/.kimi/skills (Kimi Code CLI's brand-group user skills directory, highest priority per https://github.com/MoonshotAI/kimi-cli/blob/main/docs/en/customization/skills.md). Detection signals: ~/.kimi directory and kimi/kimi-cli on PATH. Aliases: kimi, kimi-code, kimi-cli, kimicode, kimi_cli.
… KIMI_CODE_HOME

Kimi Code CLI's canonical repo is MoonshotAI/kimi-code: user-level skills live in $KIMI_CODE_HOME/skills (default ~/.kimi-code/skills), not kimi-cli's ~/.kimi/skills. Detection checks the kimi-code home dir (env-aware label) and the kimi binary on PATH. Serialize env-mutating kimi tests with a shared mutex to avoid a parallel-test race on KIMI_CODE_HOME.
@BB-fat
BB-fat merged commit d0bee1a into main Aug 6, 2026
4 checks passed
@BB-fat
BB-fat deleted the feat/kimi-code-harness branch August 6, 2026 05:25
@BB-fat BB-fat mentioned this pull request Aug 8, 2026
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