consolidate
Skill này làm gì
Skill này áp dụng một kế hoạch gom nhóm bằng cách chuyển các skill đã chọn vào một bó cha. Dành cho người đã chấp thuận cách tổ chức skill và muốn áp dụng nó.
Khi nào nên dùng
- ✓Khi bạn đã duyệt một kế hoạch gom nhóm và muốn áp dụng nó vào các thư mục skill.
- ✓Khi bạn muốn chuyển các skill độc lập vào một bó cha mới hoặc đã có.
- ✓Khi bạn muốn giữ bản sao lưu của mọi thư mục skill sắp thay đổi.
Liên kết skill
https://github.com/MoonshotAI/kimi-code/blob/main/packages/agent-core-v2/src/features/skill/catalog/builtin/sub-skill/consolidate/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Áp dụng nhóm đã duyệt. Chuyển các skill tìm kiếm web vào bó nghiên cứu web, và sao lưu trước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill trước tiên nhắc lại kế hoạch và yêu cầu bạn xác nhận. Sau đó nó sao lưu từng thư mục skill bị ảnh hưởng với dấu thời gian, tạo hoặc cập nhật bó cha, và chuyển các skill con vào trong.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Consolidate sub-skills (sub-skill.consolidate)
Execute the reorganization by moving user-specified skills into a parent bundle, forming a sub-skill hierarchy.
When to use
- The user has approved a grouping proposal (typically from
sub-skill.review) and wants to apply it. - Migrating standalone skills into a new or existing parent bundle.
Process
- Confirm the plan. Restate which skills will move and where, and ask the user to confirm before making any file changes.
- Back up every original skill directory. Before moving anything, create a timestamped backup of each skill directory that will be modified.
- For a skill at
<root>/<skill-name>/SKILL.md, back up the entire<skill-name>directory:cp -r <skill-name> "<skill-name>.$(date +%Y%m%d-%H%M%S).bak" - Keep all backups; never overwrite an existing backup file.
- For a skill at
- Create or update the parent bundle.
- If the parent does not exist, create
<parent-name>/SKILL.mdwithhas-sub-skill: truein the frontmatter. - If the parent already exists, ensure its frontmatter includes
has-sub-skill: true.
- If the parent does not exist, create
- Move child skills into the parent. Move each child skill's entire directory under the parent bundle.
- Example:
web-search/→web-research/web-search/
- Example:
- Keep documentation directory alignment. When moving documentation, references, examples, assets, or other payload directories, align them with the new skill directory layout.
- Preserve relative links from
SKILL.mdto files such asreferences/,assets/,examples/, or templates. - If a child skill moves from
<root>/<child>/to<root>/<parent>/<child>/, its documentation payload should move with that child unless the approved plan says otherwise. - Do not leave documentation in the old location or merge unrelated documentation directories together.
- Preserve relative links from
- Verify the result. List the new directory structure and confirm each moved skill still has a valid
SKILL.mdwith required frontmatter (nameanddescription). Check documentation directory alignment and relative links after the move. - Report the change. Summarize what was moved, the new structure, any documentation directories that moved, and where backups are located.
Don'ts
- Never move skills without backing up first.
- Never overwrite an existing backup — always use a fresh timestamped suffix.
- Don't drop frontmatter or payload files during the move; the entire directory must be preserved.
- Don't break documentation directory alignment — references, assets, examples, and templates must stay aligned with the skill directory that uses them.
- Don't create deeply nested hierarchies (3+ levels) unless the user explicitly requests it.
Câu hỏi thường gặp
Nó có thay đổi gì trước khi tôi xác nhận không?
Không. Nó nhắc lại kế hoạch và chờ xác nhận trước khi thay đổi file.
Bản gốc có được giữ lại không?
Có. Mỗi thư mục skill bị ảnh hưởng có một bản sao lưu có dấu thời gian, và bản sao lưu hiện có không bao giờ bị ghi đè.
Bó cha cần gì?
File skill cha phải có thiết lập đánh dấu nó là cha có skill con.
Chi tiết
Mô tả gốc của tác giả
Apply an approved sub-skill grouping by moving user-specified skills into a parent bundle, with timestamped backups of every modified directory.
repo: MoonshotAI/kimi-code
Độ phổ biến
- Sao GitHub
- 8.1k
- Vị trí xếp hạng
- #12561
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
sub-skill
8.1kGiúp agent của bạn xem danh sách skill và đề xuất gom các skill liên quan thành bó cha, để thư viện skill lớn dễ dùng hơn.
review
8.1kGiúp agent của bạn nghiên cứu các skill đã cài và gợi ý các nhóm có thể kết hợp thành bó. Nó chỉ đề xuất và không di chuyển file nào.
kimi-webbridge
8.1kCho phép agent của bạn điều khiển trình duyệt của bạn bằng các phiên đăng nhập sẵn có, để mở trang, nhấp, gõ, đọc nội dung và chụp màn hình.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.