Skip to main content

gen-changesets

Use when generating changesets in the kimi-code repository — deciding whether to write one, which package to list, the bump level, the wording, and the confirmation workflow.

소스 정보

저장소
MoonshotAI/kimi-code
최근 소스 활동
2026년 10월 14일 14:35
감지된 SKILL.md 언어
영어
스타
8,013
포크
1,313

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
gen-changesets
description
Use when generating changesets in the kimi-code repository — deciding whether to write one, which package to list, the bump level, the wording, and the confirmation workflow.
# Generate Changesets The only user-facing published package is the CLI: `@moonshot-ai/kimi-code`. All other `@moonshot-ai/*` packages (sdk, kosong, oauth, telemetry, and so on) are internal. ## 1. Whether to Write Rule of thumb: **if users cannot perceive the change, write no changeset.** A changeset is a user-facing changelog entry, not a shipping gate — internal changes merged to main ship with the next release anyway, so skipping loses nothing. Do not write: - Docs-only or tests-only changes that never enter the shipped artifact. - Changes internal to core/server packages — architecture, protocols, refactors, config/journal/wire mechanics — unless they fix a bug users care about. - When you are unsure whether users can perceive a change, ask first. Do write: user-perceivable new features or behavior changes, and internal-package changes that fix a user-useful bug or change CLI output/behavior (list `@moonshot-ai/kimi-code` for those). ## 2. What to Write Create a short kebab-case file under `.changeset/`: ```markdown --- "@moonshot-ai/kimi-code": patch --- Fix occasional loss of tool call results in long conversations. ``` Wording: - One short, user-facing English sentence that states only what changed. Drop trailing clauses that explain the cause, the benefit, or the mechanism. - When a default flips or an existing behavior is removed, name the behavior users lose, not only the new default. State the escape hatch if one exists, e.g. `Stop hot-reloading config, skills, and AGENTS.md by default; set [watch] enabled = true or KIMI_CODE_WATCH=1 to turn it back on.`; if there is none, say plainly that the old behavior is no longer available. - New features: say plainly what it is plus one line on how to use it, e.g. `Add the /foo slash command to list active sessions. Run /foo to see them.` - Experimental features: also state how to enable them (the flag, config key, or env var). - No file, class, or function names, and no PR numbers. No vague words like refactor, optimize, or improve. No real internal identifiers — use neutral placeholders such as `example.com` or `YOUR_API_KEY`. - Internal packages' own changelogs (such as the sdk) are not curated for end users — write those entries honestly and technically. - One logical change per changeset; split unrelated changes into separate files. ## 3. Bump Level - `patch`: bug fixes, small improvements, configuration additions to existing features — when in doubt, use this. - `minor`: a real new capability users could not do before (a new slash command, a new subcommand, a new mode). - `major`: **never write it.** If you think a change qualifies, stop and ask the user; without explicit approval fall back to `minor`, or to `patch` if `minor` is also unclear. ## 4. Which Package - An internal change enters the CLI bundle and is user-perceivable → list `@moonshot-ai/kimi-code`. - An internal change does not enter the CLI or is not user-perceivable → write nothing; if it is written, list only that internal package. - Never mix packages ignored in `.changeset/config.json` with non-ignored packages in one frontmatter. - pi-tui exception: pi-tui-only changes list `@moonshot-ai/pi-tui`; if the same change is also visible to CLI users, write a separate CLI changeset (two files, never mixed). - kimi-inspect and the vis packages never appear in a changeset. ## 5. Workflow 1. Run `git status` / `git diff --name-only` to see which packages actually changed. 2. Apply section 1; if no changeset is needed, stop. 3. Pick the package and the bump, and write the one sentence. 4. **Show the changeset text to whoever requested the work and get their confirmation before committing.** 5. Do not guess at changes you do not understand: finish the parts that are clear, then list what is unclear and ask whether you may dig into the code. Before a release, review the accumulated `.changeset/` entries and delete the non-user-facing ones — the release PR regenerates from `.changeset/` on the selected release branch, so deleting a file removes its changelog entry without touching shipped code.
GitHub에서 보기