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:
| Priority | Tier | Location | Mutable by skill_manager? |
|---|---|---|---|
| 1 (lowest) | Bundled distribution defaults | <install>/lib/skills/ (optional spin/distribution overlay) | Read-only (create an override instead) |
| 2 | User vendor skills | External vendor user skill dirs | Read-only compatibility layer |
| 3 | User Kompile skills | ~/.kompile/skills/ | Yes (project_scope=false, default for create_skill) |
| 4 | Project vendor skills | Project-local .claude/, .codex/, .gemini/, .qwen/, .opencode/ skill/command files | Read-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 supportingreferences/, 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
| Action | Key Parameters | What It Does |
|---|---|---|
list_skills | optional category, source, peer, include_sources, include_peers | Lists all available skills across local registries and (optionally) configured sources or TLS peers |
get_skill | name, optional source, peer, include_sources, include_peers | Returns the full metadata, allowed tools, model hint, and prompt template of one skill |
create_skill | name, 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_skill | name, fields to update, optional project_scope | Updates an existing skill's entry point (defaults to project scope first, then user; preserves layout) |
delete_skill | name, optional project_scope | Deletes a skill from exactly one scope (rejects bundled/vendor targets and symlinks) |
expand_template | name, optional args | Expands a skill's {{args}} placeholder and returns the rendered prompt |
generate_markdown | optional compact (true|false) | Generates a Markdown catalog of all registered skills |
scan_provider_skills | optional source (claude-code|codex|gemini|qwen|opencode), query | Reads 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 inpackagelayout).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_managerto create a project skill namedpr-verify(project_scope=true,layout=flat,category=code,tools="read,grep,glob,lsp,build,progress") that inspects changed files, runslsp action=check, runs the targeted Maven test suite viabuild, and posts aprogresssummary."
Invoke it anytime afterwards in chat:
/pr-verify auth-module2. Package a complex skill with reference docs
"Create a
package-layout project skill nameddb-migrationusingskill_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_skillsto 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) orkompile 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, orpeer="<name>"toskill_manager(list_skills/get_skill).
Pairing skill_manager with script_manager & role_manager
| Need | Tool | Where It Lives |
|---|---|---|
Repeatable prompt procedure / checklist invoked as /name | skill_manager | ~/.kompile/skills/ or .kompile/skills/ |
Repeatable executable script (Python/Bash/Node/etc., optional verification cache) invoked via script | script_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
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-mdIn the Web UI, browse, create, edit, and expand skills under Tools → Skills (backed by /api/skills/**).
Related guides
- Standard Daily Workflow — How to grow skills, scripts, roles, and cost controls from everyday sessions
- First-Party Skills Packaging — Bundled repository skill packaging and distribution checks
- Skills and Prompt Templates — Comparing agent-facing skills vs. Jinja prompt templates
- Peers & Sources — Sharing skills across machines, blob stores, and TLS peers
- Extensions & Plugins — Combining skills with custom tools, hooks, and process extensions