skills/ARCHIVE-dupe-2026-07-12/root_.agents_skills/FORGE-kimi-code/SKILL.md
Configure, audit, and align Kimi Code CLI as AAA warga FI-008 with arifOS kernel and A-FORGE stdio actuator.
npx skillsauth add ariffazil/openclaw-workspace FORGE-kimi-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Before using this skill on any mutating, irreversible, or high-blast-radius task:
source: not found, or missing federation toolskimi-cli (uv, v1.47) to kimi-code (v0.18+)mcp.json, config.toml, or KIMI_CODE_HOME driftvault.env without 888_HOLDdefault_yolo = true for constitutional work:7071/mcp as primary ingress (single-session SDK limit)| Path | Purpose |
|------|---------|
| /root/.kimi-code/bin/kimi | kimi-code binary (v0.18+) |
| /usr/local/bin/kimi | Federation wrapper (sets KIMI_CODE_HOME, unsets dead KIMI_API_KEY) |
| $KIMI_CODE_HOME → /root/.arifos/agents/kimi | Config, MCP, hooks, credentials, skills |
| /root/.arifos/agents/kimi/mcp.json | User-global MCP (13 servers, 9 active) |
| /root/.mcp.json | Project-root MCP when cwd is /root |
| /root/AAA/agents/kimi-code/WARGAAA_CARD.md | Warga identity card |
kimi migrate (interactive — config only recommended)which kimi → /usr/local/bin/kimi → exec ~/.kimi-code/bin/kimiecho $KIMI_CODE_HOME → /root/.arifos/agents/kimikimi doctor → OK config.toml/login — never use dead KIMI_API_KEY from vault.env (causes 404)mcp-launchers/*.sh (bash), not inline sh -lc with sourceaforge.sh — not HTTP for Kimi primary ingressarifOS/.serena/project.yml and A-FORGE/.serena/project.yml existconfig.toml has [agent_identity] citizenship = "warga-aaa"resource_not_found_errorRoot cause: stale KIMI_API_KEY in environment overrides OAuth.
unset KIMI_API_KEY
kimi login # or /login in TUI
kimi doctor
Wrapper at /usr/local/bin/kimi already unsets KIMI_API_KEY.
sh: 35: source: not foundRoot cause: MCP stdio launchers invoked via sh with bash-only source.
Fix: use dedicated bash scripts in mcp-launchers/ with #!/usr/bin/env bash and . /root/.env (not source).
Ensure disabled: true on legacy servers in mcp.json. Start fresh session: /new.
for p in 8088 8081 18082 18083 7071 3001; do
curl -sf "http://127.0.0.1:$p/health" >/dev/null && echo ":$p OK" || echo ":$p FAIL"
done
kimi doctor
| Condition | Action |
|-----------|--------|
| OAuth revoked | /login in Kimi TUI |
| A-FORGE stdio fails | cd /root/A-FORGE && npm run build then retry |
| Cross-repo architecture change | 888_HOLD → Arif |
DITEMPA BUKAN DIBERI.
testing
OpenClaw edge agent bridge — operational triage, doctor, restart, and A2A bridge routing for the federation edge (Telegram surface). USE WHEN: "openclaw unhealthy", "gateway down", "edge bot not responding", "a2a bridge disconnected", "watchdog tripped", "openclaw doctor", "openclaw restart". NOT for token/security audit — use FORGE-telegram-audit.
tools
Generate images, videos, TTS, voice clone, and music via MiniMax MCP server. Use when user asks to "draw", "generate image", "create picture", "make a photo", "text to image", "image generation".
testing
Single load-bearing constitutional-judgment skill. Routes all F1–F13, verdict, hold, seal, scope, authority and floor-check calls through the live arif_judge surface. Replaces 7 overlapping predecessors (arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge, arifos-constitutional-judge).
development
MANDATORY LSP grounding gate BEFORE any code mutation on .ts, .py, .js, .tsx, .jsx files. Forces the agent to read real-time compiler diagnostics and structural project context before editing — eliminating blind guesses and anchoring every mutation in F2 (TRUTH). Routes through arifOS kernel (:8088) for centralized gate logic.