Communityライティング&編集github.com

MoonshotAI/agent-core-review

`packages/agent-core-v2`(DI × Scope エージェントエンジン)内のコードレビューとテスト作成・レビューガイダンスに限定して使用します。レガシーな `packages/agent-core` や他のパッケージには適用されません。

agent-core-review とは?

このスキルは、`packages/agent-core-v2`(DI × Scope エージェントエンジン)に対するコードレビューとテスト作成・レビューのための専門的なレンズを提供します。`slop`(単一抽象レベル・階層的エラー処理レビュー)と `test`(契約駆動のテストルール)の2つのサブスキルから構成され、ユーザーのタスクに応じて適切なサブスキルを選択して適用します。`slop` はユーザーが明示的に要求した場合のみ呼び出され、通常のレビューやリファクタリングでは自動適用されません。このスキルは `packages/agent-core-v2` に完全にスコープされており、レガシーな `packages/agent-core` やその他のパッケージでは使用しないでください。

対応~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/ — 「契約/責務をテストし、実装をテストしない」という考え方に基づくテストごとのルールで、2つのモードを提供します。作成モード: テストを作成する — 1つの it につき1つの振る舞い、公開インターフェース経由で駆動し、真の外部境界のみをスタブ化し、時間/設定は文書化されたノブで制御し、テストを明確で独立した、リファクタリングに強い(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).

関連スキル