# Sub Skill

Discover and reorganize the skill inventory into hierarchical sub-skill bundles.

- Repository: https://github.com/MoonshotAI/kimi-code (8095 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add MoonshotAI/kimi-code --skill sub-skill -g -a claude-code -y`
Codex: `npx skills add MoonshotAI/kimi-code --skill sub-skill -g -a codex -y`
Cursor: `npx skills add MoonshotAI/kimi-code --skill sub-skill -g -a cursor -y`
Gemini CLI: `npx skills add MoonshotAI/kimi-code --skill sub-skill -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Sub-skill

Container skill for analyzing the local skill inventory and reorganizing it into hierarchical sub-skill bundles (`has-sub-skill: true` parents with children inside).

## When to use

- The user asks to review, reorganize, or consolidate skills.
- There are many loosely-related skills that might benefit from hierarchical grouping.
- The user wants to evaluate whether a new skill should be a sub-skill of an existing one.

## Sub-skills

- **`sub-skill.review`**, Analyze the current inventory and propose candidate sub-skill groupings.
- **`sub-skill.consolidate`**, Apply an approved grouping by moving skills into a parent bundle, with timestamped backups.

The usual flow is `sub-skill.review` first (read-only proposal), then `sub-skill.consolidate` after the user approves a plan. Never run consolidate without an explicit go-ahead from the user.

