# Gen Docs

Update Kimi Code CLI user documentation after meaningful code changes that affect...

- Repository: https://github.com/MoonshotAI/kimi-code (8095 stars)
- Category: Writing
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add MoonshotAI/kimi-code --skill gen-docs -g -a claude-code -y`
Codex: `npx skills add MoonshotAI/kimi-code --skill gen-docs -g -a codex -y`
Cursor: `npx skills add MoonshotAI/kimi-code --skill gen-docs -g -a cursor -y`
Gemini CLI: `npx skills add MoonshotAI/kimi-code --skill gen-docs -g -a gemini-cli -y`

## Description

Update Kimi Code CLI user documentation after meaningful code changes that affect product behavior or user experience.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Gen Docs

## Overview

This repository maintains bilingual user documentation under `docs/`. `docs/en/` and `docs/zh/` are mirrored pairs for most pages; update both in the same change. **Changelog is the exception**, English is the source, and Chinese is translated from English.

Use this skill to update the corresponding documentation whenever the codebase has changes that affect product behavior or user experience.

For a **full pre-release audit** of all pages (detecting hallucinations and coverage gaps), use the `audit-docs` skill instead.

## Prerequisites

This skill depends on the following being in place. If any are missing, stop and report to the user before continuing:

- `docs/` directory with `docs/zh/`, `docs/en/`, and `docs/.vitepress/config.ts` set up (VitePress site).
- `docs/AGENTS.md` style guide, defines source-of-truth rules, terminology table, typography, and writing style.
- `docs/scripts/sync-changelog.mjs`, auto-syncs root `CHANGELOG.md` to `docs/en/release-notes/changelog.md`.
- `translate-docs` skill in `.agents/skills/`, handles bilingual synchronization.

## Workflow

1. **Inspect changes**

   - `git log main..HEAD --oneline`, commits on the current branch
   - `git diff main..HEAD --stat`, file-level scope
   - `ls .changeset/*.md` (excluding `README.md`), pending changeset entries
   - Read `CHANGELOG.md` and any subpackage `packages/*/CHANGELOG.md` for already-recorded entries.

2. **Understand user-facing impact**

   For each change, read the actual implementation when needed; **do not infer behavior from commit messages or PR titles alone**. Skip:

   - Internal refactors with no externally visible behavior change
   - Tests, CI, type-only changes
   - Tooling / build-system changes that do not change how users invoke the CLI

   If after the scan you conclude there is no user-facing impact, say so and stop.

3. **Sync English changelog**

   Run:

   ```bash
   node docs/scripts/sync-changelog.mjs
   ```

The rest: https://github.com/MoonshotAI/kimi-code/blob/HEAD/.agents/skills/gen-docs/SKILL.md
