Community라이팅 & 에디팅github.com

MoonshotAI/gen-docs

의미 있는 코드 변경 후 Kimi Code CLI 사용자 문서를 업데이트하여 제품 동작이나 사용자 경험에 영향을 반영합니다.

gen-docs란 무엇인가요?

이 스킬은 Kimi Code CLI 제품의 코드 변경 사항이 사용자에게 영향을 미칠 때 해당 문서를 자동으로 업데이트하는 데 사용됩니다. 주로 `docs/` 디렉토리 아래에 있는 영어(`docs/en/`)와 중국어(`docs/zh/`) 이중 언어 문서를 동기화하며, 변경 로그(Changelog)는 영어를 원본으로 하고 중국어는 영어로부터 번역됩니다. 작업 흐름은 변경 사항 검사, 사용자 영향 분석, 영어 변경 로그 동기화, 사용자 문서 업데이트, 그리고 이중 언어 콘텐츠 동기화 순서로 진행됩니다. 이 스킬은 VitePress 기반 사이트와 `translate-docs` 스킬에 의존하며, 문서 스타일 가이드(`docs/AGENTS.md`)를 준수하여 일관된 용어 사용과 정확한 번역을 보장합니다. 또한, 새로운 기능 추가보다는 기존 문서에 변경 사항을 자연스럽게 통합하고, 내부 정보 대신 중립적인 예제를 사용하도록 규정하고 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/MoonshotAI/kimi-code/tree/main/.agents/skills/gen-docs

Installed? Explore more 라이팅 & 에디팅 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

문서 생성 (Gen Docs)

개요

이 저장소는 docs/ 아래에 이중 언어 사용자 문서를 유지 관리합니다. docs/en/과 docs/zh/는 대부분의 페이지에서 서로 미러링되어 있으므로, 변경 시 두 곳을 모두 업데이트해야 합니다. 변경 로그(Changelog)는 예외입니다. 영어가 원본이고 중국어는 영어로부터 번역됩니다.

코드베이스에 제품 동작이나 사용자 경험에 영향을 미치는 변경 사항이 있을 때 이 스킬을 사용하여 해당 문서를 업데이트하세요.

전체 출시 전 감사(pre-release audit)(환각(hallucination) 및 적용 범위 누락 탐지)를 수행하려면 audit-docs 스킬을 대신 사용하세요.

전제 조건

이 스킬은 다음 사항이 준비되어 있어야 합니다. 누락된 항목이 있으면 중단하고 사용자에게 보고한 후 계속하세요.

  • docs/ 디렉토리에 docs/zh/, docs/en/, docs/.vitepress/config.ts 설정 (VitePress 사이트)
  • docs/AGENTS.md 스타일 가이드 — 진실 공급원(Source-of-truth) 규칙, 용어 표, 타이포그래피, 작성 스타일 정의
  • docs/scripts/sync-changelog.mjs — 루트 CHANGELOG.md를 docs/en/release-notes/changelog.md로 자동 동기화
  • .agents/skills/ 디렉토리의 translate-docs 스킬 — 이중 언어 동기화 처리

작업 흐름

  1. 변경 사항 검사

    • git log main..HEAD --oneline — 현재 브랜치의 커밋
    • git diff main..HEAD --stat — 파일 수준 범위
    • ls .changeset/*.md (README.md 제외) — 보류 중인 변경셋 항목
    • CHANGELOG.md 및 하위 패키지 packages/*/CHANGELOG.md를 읽어 이미 기록된 항목 확인
  2. 사용자 영향 이해

    각 변경 사항에 대해 필요한 경우 실제 구현을 읽으십시오. 커밋 메시지나 PR 제목만으로 동작을 추론하지 마십시오. 다음은 건너뜁니다:

    • 외부에서 보이는 동작 변경이 없는 내부 리팩터링
    • 테스트, CI, 타입 전용 변경
    • 사용자가 CLI를 호출하는 방식을 변경하지 않는 도구/빌드 시스템 변경

    검사 후 사용자에게 영향을 주는 변경이 없다고 판단되면 그렇게 말하고 중단하십시오.

  3. 영어 변경 로그 동기화

    다음을 실행하세요:

    node docs/scripts/sync-changelog.mjs
    

    이 명령은 루트 CHANGELOG.md에서 docs/en/release-notes/changelog.md를 업데이트합니다. 문서 변경 로그를 직접 편집하지 마십시오.

  4. 사용자 문서 업데이트

    docs/AGENTS.md의 규칙에 따라 작업 중인 로케일의 영향을 받는 페이지를 편집한 다음, 미러를 동기화하십시오. docs/AGENTS.md의 용어 표와 주변 페이지의 기존 표현과 일치하는 용어를 사용하십시오.

    다음 모든 관련 섹션을 다룹니다:

    • 가이드 (시작하기, 사용 사례, 상호작용, 세션, IDE 통합)
    • 사용자 지정 (스킬, 에이전트, MCP, 훅, 플러그인 등)
    • 설정 (구성 파일, 환경 변수, 공급자, 데이터 위치)
    • 참조 (CLI 하위 명령, 슬래시 명령, 키보드 단축키)
    • 릴리스 노트 (docs/zh/release-notes/breaking-changes.md — 호환성이 깨지는 변경이 포함된 경우)
  5. 이중 언어 콘텐츠 동기화

    translate-docs 스킬을 호출하십시오. 이 스킬은 다음을 수행합니다:

    • 변경 로그가 아닌 업데이트된 페이지를 docs/en/과 docs/zh/ 간에 동기화
    • 영어 변경 로그를 중국어로 번역하여 docs/zh/release-notes/changelog.md에 저장

규칙 및 규약

  • 로케일 동기화: 변경 로그가 아닌 페이지는 docs/en/과 docs/zh/ 간에 미러링 상태를 유지합니다. 변경 로그는 영어 → 중국어 순서로 흐릅니다.
  • 용어: docs/AGENTS.md의 용어 표를 정확히 사용하십시오. 새로운 번역을 만들거나 동의어를 사용하지 마십시오.
  • 범위 규율: 최근 변경 사항의 영향을 받은 섹션만 업데이트하십시오. 관련 없는 문서를 기회적으로 다시 작성하지 마십시오.
  • 공개 예제: 문서에 실제 내부 엔드포인트, 키 이름, 계정 이름 또는 서비스 이름을 절대 작성하지 마십시오. https://api.example.com/v1, https://registry.example.com/v1/models/api.json, example.test, YOUR_API_KEY와 같은 중립적인 자리 표시자를 사용하십시오.
  • 호환성이 깨지는 변경: 변경 사항 중 호환성이 깨지는 것이 있다면, docs/en/release-notes/breaking-changes.md (## Unreleased 아래)에 **영향받는 대상** + **마이그레이션 방법** 하위 섹션을 추가하고, 이를 docs/zh/release-notes/breaking-changes.md에 미러링하십시오.
  • 자동 동기화된 파일을 편집하지 마십시오: docs/en/release-notes/changelog.md는 동기화 스크립트에 의해 재생성되며, 수동 편집 시 덮어쓰여집니다.

일반적인 실수

  • 코드가 어떻게 변경되었는지 설명하는 대신 사용자가 이제 무엇을 할 수 있는지 (또는 더 이상 할 수 없는지)를 설명하지 않는 경우.
  • 기존 문장에 변경 사항을 녹여내지 않고 기능별로 새 섹션 제목을 추가하는 경우.
  • 한 로케일만 업데이트하고 미러를 업데이트하지 않은 채로 두는 경우.
  • 먼저 변경한 로케일에서 수정해야 할 표현을 미러에서만 편집하는 경우.
  • docs/AGENTS.md 용어 표에서 벗어난 새로운 용어를 만드는 경우.
  • 예제에서 중립적인 example 자리 표시자 대신 실제 내부 값을 사용하는 경우.

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

MoonshotAI/agent-core-dev

Use when developing in packages/agent-core-v2 (the DI × Scope agent engine) — adding or modifying a domain Service, choosing a LifecycleScope, wiring DI dependencies, splitting a domain across scopes, owning or migrating a config section, gating behavior behind an experimental flag, raising coded errors, working on the permission system, writing DI/Scope tests, porting business logic from agent-core (v1) to v2, triaging a main-branch commit against v2, or exposing a v2 domain over server-v2 while keeping the /api/v1 wire contract compatible with released clients. Self-contained guide organized by development stage (orient → design → implement → test → verify) plus align workflows for v1→v2 migration, main-branch commit triage, and server-v2 wire exposure; each file carries the rules, examples, and red lines for its step.

MoonshotAI/agent-core-review

Use ONLY for code review and test write/review guidance in `packages/agent-core-v2` (the DI × Scope agent engine). Does NOT apply to the legacy `packages/agent-core` or to any other package — for those, do not load this skill. Groups the review and testing lenses used for agent-core-v2 — `slop` (single-level-of-abstraction / layered error-handling review, invoked only on explicit request) and `test` (contract-driven per-test rules for both authoring and reviewing tests). Apply the sub-skill that matches the task; do not apply `slop` unprompted.

MoonshotAI/consolidate

Apply an approved sub-skill grouping by moving user-specified skills into a parent bundle, with timestamped backups of every modified directory.

MoonshotAI/gen-changesets

Use when generating changesets in the kimi-code repository, including package bump selection, internal package and CLI bundle handling, bump levels, major confirmation, and English changelog wording.

MoonshotAI/kimi-datasource

Universal data-source assistant. Use this skill when the user wants external structured data such as stocks, financial reports, technical indicators, A-share/HK/US markets, global macroeconomics, Chinese enterprise registry information, arXiv papers, Google Scholar results, or Chinese laws/regulations and judicial cases. This plugin exposes tools via MCP server `plugin-kimi-datasource_data`; call them in the flow `mcp__plugin-kimi-datasource_data__get_data_source_desc` → `mcp__plugin-kimi-datasource_data__call_data_source_tool`.

MoonshotAI/pre-changelog

Use before merging a kimi-code release PR to preview the user-facing CLI changelog in Chinese. Reads the changelog that changesets pre-generated in the release PR, then reuses sync-changelog's strip / classify / translate logic to render a Chinese preview. Writes no files.

MoonshotAI/review

Analyze the available skill set and recommend candidate groups that could be consolidated into sub-skill bundles. Read-only — proposes a plan, does not move files.

MoonshotAI/slop

Invoke only when the user explicitly asks to review code through the "single level of abstraction / layered error handling" lens — a function does only its own layer's business logic while errors are handled above or below. The agent reports detections, raw-count measurements, and move directions. Apply only when the user explicitly requests this lens.

MoonshotAI/sub-skill

Discover and reorganize the skill inventory into hierarchical sub-skill bundles. Use when the user asks to review, group, or consolidate skills into a parent bundle.

MoonshotAI/sync-changelog

Use after a release succeeds, when maintainers need to sync apps/kimi-code/CHANGELOG.md into docs/en/release-notes/changelog.md and docs/zh/release-notes/changelog.md, then open a PR on a dedicated branch.

MoonshotAI/test

Use when writing or reviewing tests, or when asked how to write a good single test. Encodes the per-test rules behind the "test the contract / responsibility, not the implementation" principle — name and structure one behavior per `it`, drive through the public surface, stub only true external boundaries, control time and config via documented knobs, and keep tests clear, isolated, and refactor-resilient. The same rules drive both authoring (write mode) and auditing existing tests (review mode).

MoonshotAI/translate-docs

Translate and sync bilingual user documentation between docs/zh/ and docs/en/ following the source-of-truth rules in docs/AGENTS.md.

MoonshotAI/write-tui

Use when writing or modifying the kimi-code terminal UI in apps/kimi-code/src/tui — components, dialogs/selectors, slash commands, themes, streaming render, or the KimiTUI controllers. Covers the architecture, where new features go, test placement, the theme system mechanics, and the dialog interaction/visual spec (DESIGN.md).

관련 스킬