Community코딩 & 개발github.com

MoonshotAI/consolidate

승인된 하위 스킬 그룹화를 적용하여 사용자가 지정한 스킬을 상위 번들로 이동하고, 수정된 모든 디렉토리에 타임스탬프가 포함된 백업을 생성합니다.

consolidate란 무엇인가요?

이 스킬은 사용자가 승인한 스킬 그룹화 제안(일반적으로 `sub-skill.review`에서 생성)을 실제 파일 시스템에 적용합니다. 사용자는 이동할 스킬 목록과 대상 상위 번들을 지정하기만 하면 되며, 이 스킬이 자동으로 모든 변경 사항을 처리합니다. 핵심 기능은 이동 전에 각 원본 스킬 디렉토리의 타임스탬프 백업을 생성하여 안전을 보장하고, 전체 디렉토리를 보존하며(프론트매터 및 페이로드 파일 포함), 문서 참조, 에셋, 예제 등의 상대 링크가 깨지지 않도록 정렬을 유지합니다. Claude Code, Cursor, Codex와 같은 AI 에이전트 플랫폼에서 파일 시스템 작업을 안전하게 수행하도록 설계되었으며, 잘못된 변경을 방지하기 위해 실행 전 사용자 확인이 필요합니다. 결과적으로 스킬이 체계적인 하위 스킬 계층 구조로 재구성되어 AI 에이전트의 모듈성과 유지보수성이 향상됩니다.

지원 대상✓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/consolidate

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

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

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

문서

하위 스킬 통합 (sub-skill.consolidate)

사용자가 지정한 스킬을 상위 번들로 이동하여 하위 스킬 계층 구조를 형성하는 재구성을 실행합니다.

사용 시기

  • 사용자가 (일반적으로 sub-skill.review에서 나온) 그룹화 제안을 승인하고 이를 적용하려는 경우.
  • 독립 스킬을 새 상위 번들 또는 기존 상위 번들로 마이그레이션하는 경우.

프로세스

  1. 계획 확인. 어떤 스킬이 어디로 이동할지 다시 설명하고, 파일 변경을 하기 전에 사용자에게 확인을 요청합니다.
  2. 모든 원본 스킬 디렉토리 백업. 이동하기 전에 수정될 각 스킬 디렉토리의 타임스탬프 백업을 생성합니다.
    • <root>/<skill-name>/SKILL.md에 있는 스킬의 경우, 전체 <skill-name> 디렉토리를 백업합니다:
      cp -r <skill-name> "<skill-name>.$(date +%Y%m%d-%H%M%S).bak"
      
    • 모든 백업을 유지하고, 기존 백업 파일을 덮어쓰지 않습니다.
  3. 상위 번들 생성 또는 업데이트.
    • 상위 번들이 존재하지 않으면, 프론트매터에 has-sub-skill: true를 포함하여 <parent-name>/SKILL.md를 생성합니다.
    • 상위 번들이 이미 존재하면, 해당 프론트매터에 has-sub-skill: true가 포함되어 있는지 확인합니다.
  4. 하위 스킬을 상위 번들로 이동. 각 하위 스킬의 전체 디렉토리를 상위 번들 아래로 이동합니다.
    • 예: web-search/ → web-research/web-search/
  5. 문서 디렉토리 정렬 유지. 문서, 참조, 예제, 에셋 또는 기타 페이로드 디렉토리를 이동할 때, 새로운 스킬 디렉토리 레이아웃에 맞게 정렬합니다.
    • SKILL.md에서 references/, assets/, examples/ 또는 템플릿과 같은 파일로의 상대 링크를 보존합니다.
    • 하위 스킬이 <root>/<child>/에서 <root>/<parent>/<child>/로 이동하는 경우, 승인된 계획에 달리 명시되지 않는 한 해당 문서 페이로드도 함께 이동해야 합니다.
    • 문서를 이전 위치에 남겨두거나 관련 없는 문서 디렉토리를 함께 병합하지 마십시오.
  6. 결과 확인. 새 디렉토리 구조를 나열하고 이동된 각 스킬에 필수 프론트매터(name 및 description)가 포함된 유효한 SKILL.md가 여전히 있는지 확인합니다. 이동 후 문서 디렉토리 정렬 및 상대 링크를 점검합니다.
  7. 변경 사항 보고. 이동된 내용, 새 구조, 이동된 문서 디렉토리 및 백업 위치를 요약합니다.

금지 사항

  • 먼저 백업하지 않고 스킬을 이동하지 마십시오.
  • 기존 백업을 덮어쓰지 마십시오 — 항상 새로운 타임스탬프 접미사를 사용하십시오.
  • 이동 중에 프론트매터 또는 페이로드 파일을 삭제하지 마십시오. 전체 디렉토리가 보존되어야 합니다.
  • 문서 디렉토리 정렬을 깨뜨리지 마십시오 — 참조, 에셋, 예제 및 템플릿은 이를 사용하는 스킬 디렉토리와 정렬된 상태를 유지해야 합니다.
  • 사용자가 명시적으로 요청하지 않는 한 깊게 중첩된 계층 구조(3레벨 이상)를 생성하지 마십시오.

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

관련 스킬