Revisão de Sub-habilidades

Analise o conjunto atual de habilidades e recomende grupos candidatos que poderiam ser consolidados em pacotes de sub-habilidades. Apenas leitura – propõe um plano, não move arquivos.

O que é Revisão de Sub-habilidades?

Esta habilidade, `sub-skill.review`, é uma ferramenta de análise somente leitura que ajuda você a auditar seu inventário de habilidades de agente de IA e identificar oportunidades de reorganização hierárquica. Ela é especialmente útil quando você tem muitas habilidades vagamente relacionadas que poderiam se beneficiar de agrupamento em pais e filhos, ou quando deseja avaliar se uma nova habilidade deve ser uma sub-habilidade de uma existente. A habilidade funciona primeiro listando todo o inventário atual (usando o registro de habilidades ou escaneando as raízes configuradas), depois categoriza as habilidades por domínio funcional (como operações de arquivo, ferramentas web, colaboração) e detecta acoplamentos entre habilidades que são frequentemente usadas juntas ou compartilham condições de uso semelhantes. Ela sinaliza problemas de granularidade, como habilidades muito específicas (ex.: uma habilidade por flag de CLI) ou muito amplas, e propõe estruturas de sub-habilidades, listando o pai, os filhos, os diretórios associados (documentação, exemplos, ativos) que devem acompanhar cada filho, e se o pai precisa de `has-sub-skill: true`. O resultado final é um relatório resumido com uma lista agrupada e justificativa – sem editar nenhum arquivo (isso fica a cargo da `sub-skill.consolidate`). A habilidade reforça critérios como contexto compartilhado, ponto de entrada componível, aninhamento raso (preferencialmente 2 níveis) e compatibilidade com versões anteriores.

Funciona com~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 Programação e Desenvolvimento skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Revisão de Sub-habilidades (sub-skill.review)

Analise o inventário atual de habilidades e identifique grupos candidatos que poderiam ser consolidados em pacotes de sub-habilidades. Esta sub-habilidade é somente leitura: ela produz uma proposta para o usuário revisar antes que quaisquer alterações de arquivo sejam feitas por sub-skill.consolidate.

Quando usar

  • O usuário pede para revisar, reorganizar ou auditar o inventário de habilidades.
  • Existem muitas habilidades vagamente relacionadas que podem se beneficiar de agrupamento hierárquico.
  • O usuário deseja avaliar se uma nova habilidade deve ser uma sub-habilidade de uma habilidade pai existente.

Processo

  1. Listar o inventário atual. Use o registro de habilidades (ou escaneie as raízes de habilidades configuradas) para obter uma lista completa de nomes, descrições e escopos de origem das habilidades.
  2. Categorizar por domínio. Agrupe habilidades por domínio funcional — por exemplo, operações de arquivo, ferramentas web, colaboração, observabilidade.
  3. Detectar acoplamento. Identifique habilidades que são frequentemente usadas juntas ou compartilham condições whenToUse semelhantes.
  4. Sinalizar problemas de granularidade. Aponte habilidades que são muito específicas (por exemplo, uma habilidade por flag de CLI) ou muito amplas para se encaixar em um único domínio.
  5. Propor estruturas de sub-habilidades. Para cada grupo candidato, liste:
    • O nome da habilidade pai e uma descrição de uma linha.
    • Os filhos que devem se mover para baixo dela.
    • Quaisquer diretórios de documentação, referência, exemplo, ativo ou template que devem acompanhar cada filho para que o layout final do diretório permaneça alinhado.
    • Se o pai precisa de has-sub-skill: true (sim, se os filhos devem ser descobertos).
  6. Gerar um relatório resumido. Apresente as descobertas como uma lista concisa agrupada com justificativa e pare. Não edite nenhum arquivo — esse é trabalho da sub-skill.consolidate.

Critérios para um bom agrupamento de sub-habilidades

  • Contexto compartilhado. Os filhos operam dentro do mesmo domínio ou fluxo de trabalho.
  • Ponto de entrada componível. O pai fornece um identificador natural de alto nível; os filhos lidam com especificidades.
  • Aninhamento raso. Prefira 2 níveis (pai → filho). Evite 3+ a menos que estritamente necessário.
  • Compatibilidade com versões anteriores. Os nomes de habilidades existentes devem idealmente permanecer descobríveis.

Formato de exemplo de saída

Sub-habilidade proposta: web-research
  - Pai: web-research (has-sub-skill: true)
  - Filhos:
    - web-search    → mover para web-research/search
    - fetch-url     → mover para web-research/fetch
  - Alinhamento de documentação: mover as referências/exemplos/ativos de cada filho com aquele filho.
  - Justificativa: Ambos lidam com recuperação de informações online e são frequentemente encadeados.

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

Habilidades Relacionadas