Community程式設計與開發github.com

MoonshotAI/review

分析現有的技能集,並建議可合併成子技能包的候選群組。唯讀操作 — 僅提出方案,不移動檔案。

review 是什麼?

此子技能旨在協助開發者或 AI 代理使用者審查現有技能庫的組織結構,並提出將相關技能合併為子技能包的建議。它支援掃描技能註冊表或已配置的技能根目錄來建立完整清單,然後根據功能領域(如檔案操作、網頁工具、協作、可觀測性)進行分類,並檢測技能之間的使用耦合性。此外,它會標註粒度的問題(例如每個 CLI 旗標一個技能),並為每個候選分組提供詳細的建議,包括父級技能名稱、應移入的子技能、文件與資源目錄的對齊方式,以及是否需要 `has-sub-skill: true` 屬性。最終以易讀的清單輸出報告,不進行任何檔案修改——實際搬動檔案的工作由 `sub-skill.consolidate` 負責。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/MoonshotAI/kimi-code/tree/main/packages/agent-core-v2/src/app/skillCatalog/builtin/sub-skill/review

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

審案子技能(sub-skill.review)

分析當前的技能庫,並識別可以合併成子技能包的候選群組。此子技能是唯讀的:它會產出一個建議方案,供使用者在執行檔案變更(由 sub-skill.consolidate 處理)之前審查。

使用時機

  • 使用者要求審查、重組或稽核技能庫。
  • 有許多關聯性較弱的技能,可能需要透過階層式分組來優化。
  • 使用者想評估一個新技能是否應該成為現有父級技能的子技能。

流程

  1. 列出當前庫存。 使用技能註冊表(或掃描已配置的技能根目錄)來取得技能名稱、描述與來源範圍的完整清單。
  2. 按領域分類。 根據功能領域將技能分組,例如:檔案操作、網頁工具、協作、可觀測性。
  3. 檢測耦合性。 識別經常一起使用或共用類似 whenToUse 條件的技能。
  4. 標註粒度問題。 指出過細(例如每個 CLI 旗標一個技能)或過寬(無法歸入任何單一領域)的技能。
  5. 提出子技能結構。 針對每個候選群組,列出:
    • 父級技能名稱及一行描述。
    • 應遷移至其下的子技能。
    • 每個子技能必須一併移動的文件、參考資料、範例、資產或範本目錄,以確保最終目錄結構保持一致。
    • 父級技能是否需要 has-sub-skill: true(如果子技能應被發現,則需要)。
  6. 輸出摘要報告。 以簡潔的分組列表呈現發現結果,並附上理由,然後停止。不要修改任何檔案——這是 sub-skill.consolidate 的工作。

良好的子技能分組標準

  • 共享上下文。 子技能在同一領域或工作流程中運作。
  • 可組合的入口點。 父級技能提供自然的頂層控制代碼;子技能處理具體細節。
  • 淺層巢狀結構。 偏好 2 層(父級 → 子級)。除非必要,避免 3 層以上。
  • 回溯相容性。 現有技能的名稱應盡可能保持可被發現。

範例輸出格式

提議的子技能:web-research
  - 父級:web-research(has-sub-skill: true)
  - 子技能:
    - web-search    → 移入 web-research/search
    - fetch-url     → 移入 web-research/fetch
  - 文件對齊:將每個子技能的參考資料/範例/資產與該子技能一同移動。
  - 理由:兩者皆涉及線上資訊檢索,且經常被串聯使用。

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

相關技能