skills/kimi-code-aaa/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 Kimi Code AAA ConfigurationInstall 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.
development
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.