Community라이팅 & 에디팅github.com

MoonshotAI/agent-core-v2 리뷰

`packages/agent-core-v2`(DI × Scope 에이전트 엔진) 전용 코드 리뷰 및 테스트 작성/리뷰 가이드입니다. 레거시 `packages/agent-core`나 다른 패키지에는 적용하지 마십시오.

agent-core-v2 리뷰란 무엇인가요?

이 스킬은 `packages/agent-core-v2` 패키지(의존성 주입(DI)과 스코프(Scope)를 기반으로 하는 에이전트 엔진)에 대한 코드 리뷰와 테스트 작성/리뷰에 특화되어 있습니다. 레거시 `packages/agent-core`나 다른 패키지에는 적용되지 않으므로, 리뷰 대상 패키지를 반드시 확인해야 합니다. `slop`(단일 추상화 계층 및 계층적 오류 처리 리뷰, 명시적으로 요청된 경우에만 호출)과 `test`(계약 기반 테스트 작성 및 리뷰 규칙) 두 가지 하위 스킬로 구성되어 있으며, 작업에 맞는 하위 스킬을 선택적으로 적용해야 합니다. `slop`은 사용자가 명시적으로 요청하지 않는 한 일반 리뷰나 리팩터링에 무단으로 적용해서는 안 됩니다. agent-core-v2 엔진의 품질을 유지하고 일관된 리뷰 기준을 적용하는 데 매우 유용합니다. Cursor, Codex 등 AI 에이전트 플랫폼에서 사용할 수 있습니다.

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

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

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

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

문서

kc-review

범위: packages/agent-core-v2만 해당 이 렌즈들은 v2 엔진(DI × Scope)에 맞춰져 있습니다. 레거시 packages/agent-core나 다른 패키지에는 적용하지 마십시오.

packages/agent-core-v2를 리뷰하거나 테스트할 때 사용하는 렌즈 번들입니다. 각 하위 스킬은 독립적으로 작동하며, 작업에 맞는 것을 호출하세요.

하위 스킬

  • slop/ — 단일 추상화 계층(Single Level of Abstraction) 및 계층적 오류 처리. 리뷰 차원: 함수는 자신의 계층을 직선적으로 설명해야 하며, 오류는 상위 또는 하위 계층에서 처리되어야 합니다. 에이전트는 심각도 등급이 아닌 탐지 및 측정 결과를 보고합니다. 사용자가 명시적으로 이 렌즈를 요청한 경우에만 호출 — 일반 리뷰나 리팩터링에 무단으로 적용하지 마십시오.
  • test/ — "구현이 아닌 계약/책임을 테스트하라"는 원칙에 따른 테스트별 규칙으로, 두 가지 모드를 지원합니다. 작성 모드: 테스트를 작성합니다 — it 하나당 동작 하나, 공개 표면(public surface)을 통해 구동, 진정한 외부 경계만 스텁, 문서화된 노브(knob)를 통해 시간/설정 제어, 테스트를 명확하고 격리되며 리팩터링에 강하게(CCCR) 유지합니다. 리뷰 모드: 기존 테스트를 동일한 규칙에 따라 감사하고 file:line으로 결과를 보고합니다. 테스트를 작성, 수정, 리뷰하거나 좋은 단일 테스트 작성 방법에 대한 조언이 필요할 때 사용합니다.

라우팅

  • 코드 구조/추상화 계층/오류 처리 위치 리뷰 → slop (명시적인 요청이 있을 때만).
  • 테스트 작성 또는 수정, 테스트 품질 리뷰, 단일 테스트에 대한 조언 → test.

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

관련 스킬