Community라이팅 & 에디팅github.com

MoonshotAI/pre-changelog

병합 전 kimi-code 릴리스 PR의 사용자 대상 CLI 변경 로그를 중국어로 미리 봅니다. changesets가 미리 생성한 변경 로그를 읽고 sync-changelog의 스트립/분류/번역 로직을 재사용하여 중국어 미리보기를 렌더링합니다. 파일을 쓰지 않습니다.

pre-changelog란 무엇인가요?

이 스킬은 MoonshotAI/kimi-code 저장소의 오픈된 릴리스 PR에서 사용자에게 보여지는 CLI 변경 로그(중국어)를 병합 전에 미리 볼 수 있게 해줍니다. 읽기 전용으로 동작하며, 파일을 쓰거나 커밋하지 않습니다. 'sync-changelog'의 스트리핑, 분류, 번역 규칙을 재사용하지만, 데이터 소스는 공개된 CHANGELOG.md 대신 릴리스 PR의 diff이며 출력은 문서 파일 대신 터미널 미리보기입니다. 주요 워크플로는 릴리스 PR 검색, pre-generated CLI 변경 로그 블록 추출, sync-changelog와 동일한 규칙으로 중국어 미리보기 렌더링(스트리핑, 병합/중복 제거, 분류, 번역), 최종 미리보기 출력입니다. Claude Code, Cursor, Codex 등 표준 도구 연동이 가능한 AI 에이전트 환경에서 사용할 수 있습니다.

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

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

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

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

문서

사전 변경 로그

병합 전에 오픈된 kimi-code 릴리스 PR의 사용자 대상 중국어 변경 로그를 미리 봅니다. 읽기 전용: 이 스킬은 파일을 쓰지 않으며 아무것도 커밋하지 않습니다.

이 스킬은 sync-changelog의 스트립 / 분류 / 번역 규칙을 재사용합니다. sync-changelog를 먼저 읽으십시오. 데이터 소스(공개된 CHANGELOG.md 대신 릴리스 PR diff)와 출력(문서 파일 대신 미리보기)만 다릅니다.

워크플로

1. 릴리스 PR 찾기

gh pr list --state open --search "ci: release packages in:title" \
  --json number,title,url,headRefName,baseRefName

headRefName: changeset-release/main인 PR을 선택하고 number, url을 <RELEASE>로 기록합니다. 열려 있는 PR이 없으면 미리볼 것이 없습니다 — 중지합니다.

2. 사전 생성된 CLI 변경 로그 블록 읽기

changesets는 이미 릴리스 PR 내부에 apps/kimi-code/CHANGELOG.md를 사전 생성했습니다. diff에서 새 버전 블록을 추출합니다:

gh api repos/MoonshotAI/kimi-code/pulls/<RELEASE>/files \
  --jq '.[] | select(.filename=="apps/kimi-code/CHANGELOG.md") | .patch'

맨 위 ## <version>부터 다음 ## 전까지의 추가된 줄(+)을 가져옵니다. 이것이 미리볼 버전 블록입니다.

CLI 변경 로그가 diff에 없으면(예: SDK 전용 릴리스) 중지하고 사용자에게 알립니다 — 사용자 대상 CLI 변경 로그가 없습니다.

3. 중국어 미리보기 렌더링 (sync-changelog 재사용)

sync-changelog가 문서 사이트에서 하는 것과 정확히 동일하게 버전 블록을 처리하되, 메모리에서만 처리합니다:

  • 스트립 (sync-changelog 3단계): H1, ### Patch Changes / ### Minor Changes / ### Major Changes 부제목, PR 링크, 커밋 해시 링크를 제거합니다. 각 항목의 본문 텍스트만 유지합니다. Thanks [@user](...)! 크레딧(여러 작성자 형식 포함)은 매번 제거해야 합니다. 각 항목 내에서 SDK 전용 및 공급자 내부 문장(SDK 기능 매핑/API 노출, 공급자 와이어 형식 메커니즘, 내부 XML 마커)을 제거하고 사용자 대상 효과와 필수 제약 조건만 유지합니다.
  • 병합 및 중복 제거 (sync-changelog 4단계): 동일한 표면에 대한 미세 조정을 하나의 상위 항목으로 병합합니다. 세 개 이상의 수정이 동일한 UI 영역이나 동일한 문제 클래스를 대상으로 하면 하나의 상위 수정 항목으로 병합합니다(광범위하거나 진정으로 구별되는 수정은 병합하지 않음). 이미 나열된 웹 기능만 지원하는 서버/API 항목은 제거합니다.
  • 분류 (sync-changelog 4단계): 새로운 기능 / 버그 수정 / 개선 / 리팩터링 / 기타로 분류합니다. 각 섹션 내에서 독자 가치 순으로 정렬합니다(개선에서 사용자에게 보이는 변경을 프로토콜/내부 조정보다 먼저 배치).
  • 번역 (sync-changelog 6단계): 항목 본문을 중국어로 번역합니다. 항목당 한 문장을 유지하고 섹션 내에서 평행한 리듬을 유지합니다. 섹션 제목은 新功能 / 修复 / 优化 / 重构 / 其他가 됩니다.

업스트림 항목이 영어가 아니면 플래그를 지정하고 중지합니다(changeset 항목은 영어여야 함).

4. 출력

미리보기를 직접 출력합니다. 버전이 아직 릴리스되지 않았으므로 <version>(预览)을 제목으로 사용합니다. 빈 섹션은 无를 씁니다. 파일을 쓰지 마십시오.

发版 PR: <url>

## <version>(预览)

### 新功能
- ...

### 修复
- ...

규칙

  • 읽기 전용. CHANGELOG.md, 문서 파일을 절대 쓰거나 아무것도 커밋하지 마십시오.
  • 분류, 순서 및 번역은 sync-changelog를 정확히 따릅니다 — 그 이상으로 표현을 바꾸거나 재분류하지 마십시오.
  • 릴리스 PR에 CLI 변경 로그 diff가 없으면 보고하고 중지합니다.

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/gen-docs

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

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/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).

관련 스킬