feat(install): add Kimi Code CLI install target (kimi-project adapter) (#2441)

Rebuild of #2154 on current main, following the hermes/openclaw (#2433)
adapter recipe: 10-line kimi-project adapter (project kind, ./.kimi root),
registry + helpers ownership, SUPPORTED_INSTALL_TARGETS + legacy-compat
modules, kimi target on the 5 shared modules + .kimi in platform-configs
paths, both schema enums, npm files allowlist, help text, README stub.

Credit to @MoYiC6 for the original adapter design in #2154.
This commit is contained in:
Affaan Mustafa
2026-07-03 22:24:13 -07:00
committed by GitHub
parent c837139e6c
commit 49128b5763
10 changed files with 61 additions and 9 deletions
+22
View File
@@ -0,0 +1,22 @@
# ECC for Kimi Code CLI
This directory contains the ECC (Everything Claude Code) configuration for the Kimi Code CLI harness.
## What is installed
- `rules/ecc/` — shared coding rules and guidelines
- `skills/ecc/` — reusable skills
- `commands/` — slash commands
- `AGENTS.md` — agent instructions
## Manual install
```bash
bash ./install.sh --target kimi --profile minimal
```
## Notes
- The `kimi` target installs into the project-level `./.kimi/` directory.
- Kimi Code CLI's own config (`~/.kimi-code/config.toml`, plugins) is **not** touched by ECC install.
- Use `npx ecc doctor --target kimi` to check install health.
+12 -6
View File
@@ -18,7 +18,8 @@
"qwen",
"zed",
"hermes",
"openclaw"
"openclaw",
"kimi"
],
"dependencies": [],
"defaultInstall": true,
@@ -45,7 +46,8 @@
"qwen",
"zed",
"hermes",
"openclaw"
"openclaw",
"kimi"
],
"dependencies": [],
"defaultInstall": true,
@@ -72,7 +74,8 @@
"qwen",
"zed",
"hermes",
"openclaw"
"openclaw",
"kimi"
],
"dependencies": [],
"defaultInstall": true,
@@ -116,7 +119,8 @@
"scripts/auto-update.js",
"scripts/setup-package-manager.js",
".hermes",
".openclaw"
".openclaw",
".kimi"
],
"targets": [
"claude",
@@ -131,7 +135,8 @@
"qwen",
"zed",
"hermes",
"openclaw"
"openclaw",
"kimi"
],
"dependencies": [],
"defaultInstall": true,
@@ -288,7 +293,8 @@
"qwen",
"zed",
"hermes",
"openclaw"
"openclaw",
"kimi"
],
"dependencies": [
"platform-configs"
+1
View File
@@ -47,6 +47,7 @@
".cursor/",
".gemini/",
".hermes/",
".kimi/",
".opencode/",
".openclaw/",
".qwen/",
+2 -1
View File
@@ -30,7 +30,8 @@
"qwen",
"zed",
"hermes",
"openclaw"
"openclaw",
"kimi"
]
},
"profile": {
+2 -1
View File
@@ -60,7 +60,8 @@
"qwen",
"zed",
"hermes",
"openclaw"
"openclaw",
"kimi"
]
}
},
+1
View File
@@ -43,6 +43,7 @@ Targets:
qwen - Install commands, agents, skills, rules, and Qwen config into ~/.qwen/
zed - Install project settings, commands, agents, skills, and flattened rules into ./.zed/
hermes - Install shared rules/skills/commands into ~/.hermes/
kimi - Install shared rules/skills/commands into ./.kimi/
openclaw - Install shared rules/skills/commands into ~/.openclaw/
Options:
+8 -1
View File
@@ -4,7 +4,7 @@ const path = require('path');
const { getInstallTargetAdapter, planInstallTargetScaffold } = require('./install-targets/registry');
const DEFAULT_REPO_ROOT = path.join(__dirname, '../..');
const SUPPORTED_INSTALL_TARGETS = ['claude', 'claude-project', 'cursor', 'antigravity', 'codex', 'gemini', 'opencode', 'codebuddy', 'joycode', 'qwen', 'zed', 'hermes', 'openclaw'];
const SUPPORTED_INSTALL_TARGETS = ['claude', 'claude-project', 'cursor', 'antigravity', 'codex', 'gemini', 'opencode', 'codebuddy', 'joycode', 'qwen', 'zed', 'hermes', 'openclaw', 'kimi'];
const COMPONENT_FAMILY_PREFIXES = {
baseline: 'baseline:',
language: 'lang:',
@@ -87,6 +87,13 @@ const LEGACY_COMPAT_BASE_MODULE_IDS_BY_TARGET = Object.freeze({
'platform-configs',
'workflow-quality',
],
kimi: [
'rules-core',
'agents-core',
'commands-core',
'platform-configs',
'workflow-quality',
],
});
const LEGACY_LANGUAGE_ALIAS_TO_CANONICAL = Object.freeze({
c: 'c',
+1
View File
@@ -8,6 +8,7 @@ const PLATFORM_SOURCE_PATH_OWNERS = Object.freeze({
'.cursor': 'cursor',
'.gemini': 'gemini',
'.hermes': 'hermes',
'.kimi': 'kimi',
'.joycode': 'joycode',
'.opencode': 'opencode',
'.openclaw': 'openclaw',
@@ -0,0 +1,10 @@
const { createInstallTargetAdapter } = require('./helpers');
module.exports = createInstallTargetAdapter({
id: 'kimi-project',
target: 'kimi',
kind: 'project',
rootSegments: ['.kimi'],
installStatePathSegments: ['ecc-install-state.json'],
nativeRootRelativePath: '.kimi',
});
+2
View File
@@ -7,6 +7,7 @@ const cursorProject = require('./cursor-project');
const geminiProject = require('./gemini-project');
const hermesHome = require('./hermes-home');
const joycodeProject = require('./joycode-project');
const kimiProject = require('./kimi-project');
const openclawHome = require('./openclaw-home');
const opencodeHome = require('./opencode-home');
const qwenHome = require('./qwen-home');
@@ -24,6 +25,7 @@ const ADAPTERS = Object.freeze([
openclawHome,
codebuddyProject,
joycodeProject,
kimiProject,
qwenHome,
zedProject,
]);