Skip to content

Skills & Skill Manager (skill_manager) ​

A skill is a named, reusable prompt template invoked directly as /<skill-name> [args] in chat (or expanded programmatically by an agent). Instead of re-explaining your release checklist, migration playbook, test-triage routine, or code-review rubric in every session, you codify it once — or prompt your agent to create and maintain it via skill_manager.

Kompile loads skills natively without requiring any other vendor's CLI, while remaining fully compatible with project-local Claude Code, Codex, Gemini, Qwen, and OpenCode skill files. For a ready-to-fetch agent guide, see kompile-harness (SKILL.md) (published raw at https://getkompile.github.io/kompile/SKILL.md so any agent can fetch how to use tools and configure the harness).


How skills are organized & resolved ​

Storage locations & 5-tier precedence ​

Kompile resolves skills from lowest to highest precedence:

PriorityTierLocationMutable by skill_manager?
1 (lowest)Bundled distribution defaults<install>/lib/skills/ (optional spin/distribution overlay)Read-only (create an override instead)
2User vendor skillsExternal vendor user skill dirsRead-only compatibility layer
3User Kompile skills~/.kompile/skills/Yes (project_scope=false, default for create_skill)
4Project vendor skillsProject-local .claude/, .codex/, .gemini/, .qwen/, .opencode/ skill/command filesRead-only (scan_provider_skills)
5 (highest)Project Kompile skills<repo>/.kompile/skills/Yes (project_scope=true)

NOTE

Precedence & overrides: Updating or deleting a project override never silently deletes the user-scope copy (and vice versa). Deleting a project override simply exposes any underlying user, vendor, or bundled definition again.

Two file layouts: flat vs. package ​

Both layouts use Markdown with YAML frontmatter and support {{args}} substitution:

  • layout="flat" (default): Single file <skills-dir>/<name>.md — ideal for concise prompt templates and checklists.
  • layout="package": Directory <skills-dir>/<name>/SKILL.md — ideal when a skill ships supporting references/, examples, or helper scripts alongside its entry point.

update_skill automatically preserves whichever layout exists and updates only the entry point (leaving supporting references/ intact). delete_skill removes the flat file or validates and removes the entire package directory. Both reject ambiguous flat+package duplicates and reject symlinks or special files fail-closed.


All 8 skill_manager actions ​

ActionKey ParametersWhat It Does
list_skillsoptional category, source, peer, include_sources, include_peersLists all available skills across local registries and (optionally) configured sources or TLS peers
get_skillname, optional source, peer, include_sources, include_peersReturns the full metadata, allowed tools, model hint, and prompt template of one skill
create_skillname, prompt_template, optional description, display_name, category, tools, model_hint, project_scope, layout (flat|package)Creates a new custom skill in ~/.kompile/skills/ (default) or .kompile/skills/ (project_scope=true)
update_skillname, fields to update, optional project_scopeUpdates an existing skill's entry point (defaults to project scope first, then user; preserves layout)
delete_skillname, optional project_scopeDeletes a skill from exactly one scope (rejects bundled/vendor targets and symlinks)
expand_templatename, optional argsExpands a skill's {{args}} placeholder and returns the rendered prompt
generate_markdownoptional compact (true|false)Generates a Markdown catalog of all registered skills
scan_provider_skillsoptional source (claude-code|codex|gemini|qwen|opencode), queryReads project-local skill/command files from other coding CLIs for cross-CLI reuse

Skill schema fields ​

  • name: Starts with a letter; letters, digits, hyphens, and underscores only (must match directory name in package layout).
  • prompt_template: The Markdown instructions; use {{args}} wherever user arguments from /<name> <args> should be injected.
  • tools: Comma-separated allowed tool list (e.g., "read, grep, glob, lsp, build") or "*" for all tools.
  • category: Organizational tag (e.g., git, code, debug, devops, custom).
  • model_hint: Optional suggested model when running the skill.

Practical workflow: prompting your agent to build skills ​

The fastest way to build a skill library is to let the agent capture a workflow right after you finish doing it together.

1. Turn a fresh workflow into a project skill ​

"Use skill_manager to create a project skill named pr-verify (project_scope=true, layout=flat, category=code, tools="read,grep,glob,lsp,build,progress") that inspects changed files, runs lsp action=check, runs the targeted Maven test suite via build, and posts a progress summary."

Invoke it anytime afterwards in chat:

text
/pr-verify auth-module

2. Package a complex skill with reference docs ​

"Create a package-layout project skill named db-migration using skill_manager, and place our schema checklist in .kompile/skills/db-migration/references/checklist.md."

3. Reuse skills already written for Claude Code, Codex, or OpenCode ​

"Run skill_manager action=scan_provider_skills to inspect our repo's existing .claude/ and .codex/ skills, then create Kompile project skills for the ones we use most."

4. Share skills across machines & teams ​

Because skills are one of the 9 portable HarnessComponent families:

  • Push/pull skills via kompile sources (kompile sources push team-s3 --components skills --yes) or kompile peer sync (skills are synced by default).
  • Query remote skills on demand without copying them locally by passing include_sources=true, source="<name>", include_peers=true, or peer="<name>" to skill_manager (list_skills / get_skill).

Pairing skill_manager with script_manager & role_manager ​

NeedToolWhere It Lives
Repeatable prompt procedure / checklist invoked as /nameskill_manager~/.kompile/skills/ or .kompile/skills/
Repeatable executable script (Python/Bash/Node/etc., optional verification cache) invoked via scriptscript_manager~/.kompile/scripts/ or .kompile/scripts/
Reusable agent/subagent persona (system prompt, pinned model, restricted tool allowlist)role_manager~/.kompile/roles/ or .kompile/roles/

Combining all three is a high-leverage pattern: a skill tells the agent when and how to run a workflow, invokes a cached script for deterministic checks, and delegates review to a read-only role.


Managing skills from the CLI & Web UI ​

bash
kompile skills list
kompile skills show --name=pr-verify
kompile skills create --name=pr-verify --description="Verify PR" \
  --tools=read,grep,lsp,build --template="Verify changes for: {{args}}"
kompile skills delete --name=pr-verify
kompile skills generate-md

In the Web UI, browse, create, edit, and expand skills under Tools → Skills (backed by /api/skills/**).


Released under the Apache-2.0 License.