跳到正文
Skillpedia
智能体8.1k · #12561

consolidate

它能做什么

这项技能通过把选定的技能移入父级套件,来执行归类方案。适合已经批准了技能组织方式的人。

适用场景

  • ✓当你已经批准了归类方案,并希望把它应用到技能文件夹的时候。
  • ✓当你想把独立的技能移入新的或现有的父级套件的时候。
  • ✓当你希望为每个即将改动的技能文件夹保留备份的时候。

技能链接

https://github.com/MoonshotAI/kimi-code/blob/main/packages/agent-core-v2/src/features/skill/catalog/builtin/sub-skill/consolidate/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MoonshotAI/kimi-code/blob/main/packages/agent-core-v2/src/features/skill/catalog/builtin/sub-skill/consolidate/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请执行我们批准的归类方案。先备份,然后把网络搜索技能移入网络调研套件。”

每周 5 个新技能,1 分钟读完。

工作原理

技能先复述方案并请你确认。然后为每个受影响的技能文件夹做带时间戳的备份,创建或更新父级套件,并把子技能移入其中。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

  1. Confirm the plan. Restate which skills will move and where, and ask the user to confirm before making any file changes.
  2. 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.
  3. Create or update the parent bundle.
    • If the parent does not exist, create <parent-name>/SKILL.md with has-sub-skill: true in the frontmatter.
    • If the parent already exists, ensure its frontmatter includes has-sub-skill: true.
  4. Move child skills into the parent. Move each child skill's entire directory under the parent bundle.
    • Example: web-search/ → web-research/web-search/
  5. 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.md to files such as references/, 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.
  6. Verify the result. List the new directory structure and confirm each moved skill still has a valid SKILL.md with required frontmatter (name and description). Check documentation directory alignment and relative links after the move.
  7. 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.
常见问题

在我确认之前,它会改动任何东西吗?

不会。它先复述方案,并在做任何文件改动前等待你的确认。

原件会保留吗?

会。每个受影响的技能文件夹都会得到一份带时间戳的备份,已有的备份绝不会被覆盖。

父级套件需要什么?

父级技能文件必须包含标记它为带有子技能的父级的设置。

详情

作者的原始描述

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

热度

GitHub 星标
8.1k
排名
#12561
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能