Skip to content

Bundled & Custom Skills ​

Kompile does not require another vendor's CLI or skill directories to load skills.

  • Downstream spins or custom distributions can optionally stage bundled skill packages under <install>/lib/skills/<name>/SKILL.md (with supporting references/, scripts, and assets alongside the entry point); when a build checkout supplies a skills/ overlay, build-dist.sh and install.sh --dev copy it into <install>/lib/skills/.
  • The shared skill loader used by chat and skill_manager reads bundled defaults from KompileHome.installDirectory(), including custom install locations.
  • User definitions remain in ~/.kompile/skills/; project definitions remain in .kompile/skills/. Both flat <name>.md and <name>/SKILL.md are supported. Distribution updates do not own these override directories.

Precedence, lowest to highest: bundled defaults, user vendor skills, user Kompile skills, project vendor skills, project Kompile skills. Vendor scanning remains a compatibility feature; list_skills, get_skill, and expand_template use the combined registry. scan_provider_skills is specifically a project vendor scan, not the complete registry.

For the public Kompile harness guide fetchable by any agent, see SKILL.md (https://getkompile.github.io/kompile/SKILL.md). Built-in commands such as /review and /test are separately embedded in the CLI.

Maintaining user and project skills ​

skill_manager create_skill accepts layout=flat (default, <name>.md) or layout=package (<name>/SKILL.md). Set project_scope=true for project skills; creation otherwise uses ~/.kompile/skills. Add supporting references/scripts with the file tools beneath the package directory.

update_skill detects either layout and changes only the entry point, leaving supporting files intact. delete_skill removes the selected flat file or the whole package, including references/scripts. For update/delete, an explicit project_scope=true|false selects exactly that scope. If omitted, project wins, then user; deletion no longer removes both scopes. Removing an override may expose an underlying user/vendor/bundled definition again.

Mutations reject ambiguous flat/package duplicates and symlink entry points or package roots. Package deletion checks the whole tree before removing any files and rejects symlinks/special files. Bundled and vendor definitions are never mutation targets; create an override instead. Package names must match their directory names for management by name.

Checks:

  • python3 build-scripts/test_skill_distribution.py
  • Maven: -pl :kompile-cli-main -Dtest=SkillRuntimeContractTest test

A new release/reinstall is needed to deliver changed packaging to another machine.

Released under the Apache-2.0 License.