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`(基于契约的每个测试规则,支持测试编写与审查两种模式)。`slop` 子技能要求函数在其所属层次上以直线方式描述行为,错误处理由上下层完成,代理仅报告检测结果而不给出严重等级。`test` 子技能遵循‘测试契约/职责而非实现’原则:编写模式强制每个 `it` 只测试一种行为,驱动公共接口,仅对真正外部边界进行桩(stub),通过文档化的控制点管理时间和配置;审查模式按相同规则审计现有测试并报告 `file:line` 定位问题。请根据实际任务匹配子技能,切勿在未经提示的情况下自动应用 `slop`。

兼容平台~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 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

kc-review

适用范围:仅限 packages/agent-core-v2。 这些审查镜头专为 v2 引擎(DI × Scope)校准。请勿将其应用于旧版 packages/agent-core 或其他包。

一组用于审查或测试 packages/agent-core-v2 的镜头集合。每个子技能独立自包含;根据任务调用相应的子技能。

子技能

  • slop/ — 单一抽象层次与分层错误处理。一个审查维度:函数应作为其所属层次的直线描述进行阅读,错误处理应在上层或下层完成。代理报告检测结果和测量值,而非严重等级。仅当用户显式请求此镜头时才能调用——不要将其无故应用于一般的审查或重构。
  • test/ — 遵循“测试契约/职责而非实现”的每个测试规则,支持两种模式。编写模式: 编写测试——每个 it 只测试一种行为,通过公共接口驱动,仅对真正的外部边界进行桩(stub),通过文档化的控制点管理时间和配置,保持测试清晰、隔离且对重构有弹性(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).

相关技能