|
| 1 | +# Install Humanize for Kimi CLI |
| 2 | + |
| 3 | +This guide explains how to install the Humanize skills for [Kimi Code CLI](https://github.com/MoonshotAI/kimi-cli). |
| 4 | + |
| 5 | +## Overview |
| 6 | + |
| 7 | +Humanize provides three Agent Skills for kimi: |
| 8 | + |
| 9 | +| Skill | Type | Purpose | |
| 10 | +|-------|------|---------| |
| 11 | +| `humanize` | Standard | General guidance for all workflows | |
| 12 | +| `humanize-gen-plan` | Flow | Generate structured plan from draft | |
| 13 | +| `humanize-rlcr` | Flow | Iterative development with Codex review | |
| 14 | + |
| 15 | +## Installation |
| 16 | + |
| 17 | +### Quick Install (Recommended) |
| 18 | + |
| 19 | +From the Humanize repo root, run: |
| 20 | + |
| 21 | +```bash |
| 22 | +./scripts/install-skills-kimi.sh |
| 23 | +``` |
| 24 | + |
| 25 | +This command will: |
| 26 | +- Sync `humanize`, `humanize-gen-plan`, and `humanize-rlcr` into `~/.config/agents/skills` |
| 27 | +- Copy runtime dependencies into `~/.config/agents/skills/humanize` |
| 28 | + |
| 29 | +Common installer script (all targets): |
| 30 | + |
| 31 | +```bash |
| 32 | +./scripts/install-skill.sh --target kimi |
| 33 | +``` |
| 34 | + |
| 35 | +### Manual Install |
| 36 | + |
| 37 | +### 1. Clone or navigate to the humanize repository |
| 38 | + |
| 39 | +```bash |
| 40 | +cd /path/to/humanize |
| 41 | +``` |
| 42 | + |
| 43 | +### 2. Copy skills and runtime bundle to kimi's skills directory |
| 44 | + |
| 45 | +```bash |
| 46 | +# Create the skills directory if it doesn't exist |
| 47 | +mkdir -p ~/.config/agents/skills |
| 48 | + |
| 49 | +# Copy all three skills |
| 50 | +cp -r skills/humanize ~/.config/agents/skills/ |
| 51 | +cp -r skills/humanize-gen-plan ~/.config/agents/skills/ |
| 52 | +cp -r skills/humanize-rlcr ~/.config/agents/skills/ |
| 53 | + |
| 54 | +# Copy runtime dependencies used by the skills |
| 55 | +cp -r scripts ~/.config/agents/skills/humanize/ |
| 56 | +cp -r hooks ~/.config/agents/skills/humanize/ |
| 57 | +cp -r prompt-template ~/.config/agents/skills/humanize/ |
| 58 | + |
| 59 | +# Hydrate runtime root placeholders inside SKILL.md files |
| 60 | +for skill in humanize humanize-gen-plan humanize-rlcr; do |
| 61 | + sed -i.bak "s|{{HUMANIZE_RUNTIME_ROOT}}|$HOME/.config/agents/skills/humanize|g" \ |
| 62 | + "$HOME/.config/agents/skills/$skill/SKILL.md" |
| 63 | +done |
| 64 | +``` |
| 65 | + |
| 66 | +### 3. Verify installation |
| 67 | + |
| 68 | +```bash |
| 69 | +# List installed skills |
| 70 | +ls -la ~/.config/agents/skills/ |
| 71 | + |
| 72 | +# Should show: |
| 73 | +# humanize/ |
| 74 | +# humanize-gen-plan/ |
| 75 | +# humanize-rlcr/ |
| 76 | +``` |
| 77 | + |
| 78 | +### 4. Restart kimi (if already running) |
| 79 | + |
| 80 | +Skills are loaded at startup. Restart kimi to pick up the new skills: |
| 81 | + |
| 82 | +```bash |
| 83 | +# Exit current kimi session |
| 84 | +/exit |
| 85 | + |
| 86 | +# Or press Ctrl-D |
| 87 | + |
| 88 | +# Start kimi again |
| 89 | +kimi |
| 90 | +``` |
| 91 | + |
| 92 | +## Usage |
| 93 | + |
| 94 | +### List available skills |
| 95 | + |
| 96 | +```bash |
| 97 | +/help |
| 98 | +``` |
| 99 | + |
| 100 | +Look for the "Skills" section in the help output. |
| 101 | + |
| 102 | +### Use the skills |
| 103 | + |
| 104 | +#### 1. Generate plan from draft |
| 105 | + |
| 106 | +```bash |
| 107 | +# Start the flow (will ask for input/output paths) |
| 108 | +/flow:humanize-gen-plan |
| 109 | + |
| 110 | +# Or load as standard skill |
| 111 | +/skill:humanize-gen-plan |
| 112 | +``` |
| 113 | + |
| 114 | +#### 2. Start RLCR development loop |
| 115 | + |
| 116 | +```bash |
| 117 | +# Start with plan file |
| 118 | +/flow:humanize-rlcr path/to/plan.md |
| 119 | + |
| 120 | +# With options |
| 121 | +/flow:humanize-rlcr path/to/plan.md --max 20 --push-every-round |
| 122 | + |
| 123 | +# Skip implementation, go directly to code review |
| 124 | +/flow:humanize-rlcr --skip-impl |
| 125 | + |
| 126 | +# Load as standard skill (no auto-execution) |
| 127 | +/skill:humanize-rlcr |
| 128 | +``` |
| 129 | + |
| 130 | +#### 3. Get general guidance |
| 131 | + |
| 132 | +```bash |
| 133 | +/skill:humanize |
| 134 | +``` |
| 135 | + |
| 136 | +## Command Options |
| 137 | + |
| 138 | +### RLCR Loop Options |
| 139 | + |
| 140 | +| Option | Description | Default | |
| 141 | +|--------|-------------|---------| |
| 142 | +| `path/to/plan.md` | Plan file path | Required (unless --skip-impl) | |
| 143 | +| `--max N` | Maximum iterations | 42 | |
| 144 | +| `--codex-model MODEL:EFFORT` | Codex model | gpt-5.2:xhigh | |
| 145 | +| `--codex-timeout SECONDS` | Review timeout | 5400 | |
| 146 | +| `--base-branch BRANCH` | Base for code review | auto-detect | |
| 147 | +| `--full-review-round N` | Full alignment check interval | 5 | |
| 148 | +| `--skip-impl` | Skip to code review | false | |
| 149 | +| `--push-every-round` | Push after each round | false | |
| 150 | + |
| 151 | +### Generate Plan Options |
| 152 | + |
| 153 | +| Option | Description | Required | |
| 154 | +|--------|-------------|----------| |
| 155 | +| `--input <path>` | Draft file path | Yes | |
| 156 | +| `--output <path>` | Plan output path | Yes | |
| 157 | + |
| 158 | +## Prerequisites |
| 159 | + |
| 160 | +Ensure you have `codex` CLI installed: |
| 161 | + |
| 162 | +```bash |
| 163 | +codex --version |
| 164 | +``` |
| 165 | + |
| 166 | +The skills will use `gpt-5.2` with `xhigh` effort level by default. |
| 167 | + |
| 168 | +## Uninstall |
| 169 | + |
| 170 | +To remove the skills: |
| 171 | + |
| 172 | +```bash |
| 173 | +rm -rf ~/.config/agents/skills/humanize |
| 174 | +rm -rf ~/.config/agents/skills/humanize-gen-plan |
| 175 | +rm -rf ~/.config/agents/skills/humanize-rlcr |
| 176 | +``` |
| 177 | + |
| 178 | +## Troubleshooting |
| 179 | + |
| 180 | +### Skills not showing up |
| 181 | + |
| 182 | +1. Check the skills directory exists: |
| 183 | + ```bash |
| 184 | + ls ~/.config/agents/skills/ |
| 185 | + ``` |
| 186 | + |
| 187 | +2. Ensure SKILL.md files are present: |
| 188 | + ```bash |
| 189 | + cat ~/.config/agents/skills/humanize/SKILL.md | head -5 |
| 190 | + ``` |
| 191 | + |
| 192 | +3. Restart kimi completely |
| 193 | + |
| 194 | +### Codex not found |
| 195 | + |
| 196 | +The skills expect `codex` to be in your PATH. If using a proxy, ensure `~/.zprofile` is configured: |
| 197 | + |
| 198 | +```bash |
| 199 | +# Add to ~/.zprofile if needed |
| 200 | +export OPENAI_API_KEY="your-api-key" |
| 201 | +# or other proxy settings |
| 202 | +``` |
| 203 | + |
| 204 | +### Scripts not found |
| 205 | + |
| 206 | +If skills report missing scripts like `setup-rlcr-loop.sh`, verify: |
| 207 | + |
| 208 | +```bash |
| 209 | +ls -la ~/.config/agents/skills/humanize/scripts |
| 210 | +``` |
| 211 | + |
| 212 | +### Installer options |
| 213 | + |
| 214 | +The installer supports: |
| 215 | + |
| 216 | +```bash |
| 217 | +./scripts/install-skill.sh --help |
| 218 | +``` |
| 219 | + |
| 220 | +Common examples: |
| 221 | + |
| 222 | +```bash |
| 223 | +# Preview only |
| 224 | +./scripts/install-skills-kimi.sh --dry-run |
| 225 | + |
| 226 | +# Custom skills directory |
| 227 | +./scripts/install-skills-kimi.sh --skills-dir /custom/skills/dir |
| 228 | +``` |
| 229 | + |
| 230 | +### Output files not found |
| 231 | + |
| 232 | +The skills save output to: |
| 233 | +- Cache: `~/.cache/humanize/<project>/<timestamp>/` |
| 234 | +- Loop data: `.humanize/rlcr/<timestamp>/` |
| 235 | + |
| 236 | +Ensure these directories are writable. |
| 237 | + |
| 238 | +## See Also |
| 239 | + |
| 240 | +- [Kimi CLI Documentation](https://moonshotai.github.io/kimi-cli/) |
| 241 | +- [Agent Skills Format](https://agentskills.io/) |
| 242 | +- [Install for Codex](./install-for-codex.md) |
| 243 | +- [Humanize README](../README.md) |
0 commit comments