Agent Skill (SKILL.md): Acting & Configuring Inside Kompile
Point any agent running inside a Kompile chat — whether local, open-weight, or frontier — at Kompile's public SKILL.md so it knows which dedicated tools to use, how to obey Enforcer & Judge guardrails, and how to configure Kompile based on plain-English user requests.
Direct raw URLs (fetchable by any agent)
- Primary
SKILL.md(raw Markdown):https://getkompile.github.io/kompile/SKILL.md - Package entry point:
https://getkompile.github.io/kompile/skills/kompile-harness/SKILL.md - Configuration reference:
https://getkompile.github.io/kompile/skills/kompile-harness/references/harness-configuration.md
Give it to an agent inside chat
Paste this into any Kompile chat (or fetch it directly with webfetch):
text
Fetch https://getkompile.github.io/kompile/SKILL.md and follow it for how to use Kompile tools and configure the harness when I ask.Or save a local user/project override directly from the terminal:
bash
mkdir -p ~/.kompile/skills/kompile-harness/references
curl -fsSL https://getkompile.github.io/kompile/skills/kompile-harness/SKILL.md \
-o ~/.kompile/skills/kompile-harness/SKILL.md
curl -fsSL https://getkompile.github.io/kompile/skills/kompile-harness/references/harness-configuration.md \
-o ~/.kompile/skills/kompile-harness/references/harness-configuration.mdOnce installed under ~/.kompile/skills/kompile-harness/, invoke it anytime in chat with /kompile-harness.
Translating user requests into harness configuration
A primary goal of kompile-harness is helping an agent translate what you ask for in plain English into the exact Kompile MCP tools, dry-run previews, and slash commands:
| When you ask the agent to… | What the agent does |
|---|---|
| "Set up / initialize Kompile in this repo" | Runs onboarding(action="explain"), previews onboarding(action="auto_configure", dryRun=true), indexes code via local_code_index(action="index"), and drafts AGENTS.md |
| "Keep subagent costs down / stop using Opus, Astra, or Neon for workers" | Inspects /cost and /subagent-breakdown; configures via onboarding(action="configure", section="subagents", ...) or guides /subagent-config ban *opus*, ban *fable*, ban *astra*, ban *neon*, route <provider>/<fast-model>, per-session, budget, cost-budget |
| "Add failover so rate limits don't stall us" | Configures or guides /model failover (main chat) and /subagent-config failover (subagents) using saved credential names only — never raw API keys |
| "Turn this workflow into a reusable skill" | Calls skill_manager(action="create_skill", project_scope=true, layout="flat"|"package", ...) so it becomes /skill-name |
| "Make this check a repeatable script" | Calls script_manager(action="create_script", project_scope=true, cache_results=true, ...) and runs it via script |
| "Create a read-only reviewer or specialist worker" | Calls role_manager with a restricted tools allowlist and economical model_hint |
| "Stage edits for review / don't touch live files yet" | Uses draft / draft_batch (create → show → rebase → atomic apply / revert) |
| "Enforce rule X / block command Y" | Configures via onboarding(action="configure", section="enforcer", ...) and persists durable context in memory |
| "Remember this for future sessions" | Saves a concise typed memory (project/feedback/reference) or file-pinned file_note |
| "Track our custom test runner automatically" | Adds an autoCapture.customRules entry (commandRegex + summaryRegex with (?<total>...), (?<passed>...), (?<failed>...)) in .kompile/test-milestones/config.json |
| "Share skills, memories, or GPU models across machines" | Uses sources (discover → add/auto_attach → pull/push) and peer (init/listen/add/sync/search) |
| "Change terminal layout / put tools in a sidebar" | Guides /ui preset focused (or /ui layout auto|split, /ui save project|global) |
| "Reclaim disk space / clean old sessions" | Previews with gc(action="report") first, then gc(action="run", apply=true) after confirmation |
Core tool routing rules taught by SKILL.md
| Task | Dedicated Kompile Tool | Blocked / Discouraged Shell Substitute |
|---|---|---|
| Symbols, callers, blast radius, bug traces | local_code_index (ranked_search, blended_search, debug_trace, changed_context) | Recursive grep / find |
| File outline, notes & open incidents | file_context or read(include_context=true) | cat whole-file dumps |
| Compiler-accurate navigation & rename | lsp (definition, references, call_hierarchy, rename with dry_run=true) | Blind regex replace |
| Read / search / edit files | read / read_batch, grep / grep_batch, glob, list, edit / edit_batch / edit_patch (read first) | cat, head, tail, sed -i, awk, echo >, tee |
| Staged changes & reviewable diffs | draft / draft_batch (.kompile/drafts.git) | Overlay dirs, *-draft.md, diff3 scripts |
| Static edit verification | lsp action=check file_paths=[...] (fail-closed) | Assuming edits compile |
| Builds & tests | build tool (provenance + automatic TestMilestoneCapture) | Raw mvn/gradle/npm/cargo/pytest in bash |
| Long-running commands & process monitors | process action=launch (auto-monitored + timeout_minutes + monitor_message) & process_notify | Shell sleep loops, timeout, private flock |
| Peer file locks, resource waiters & messaging | edit_coordinator (register_edits, monitor_edit, acquire_lock, wait_for_activity, durable message bus) | Uncoordinated concurrent edits, ad-hoc lock files, polling peers |
| Reusable scripts | script_manager + script (cache_results=true) | One-off python3 -c / node -e |
| Memory, history & reporting | memory, semantic_memory, transcript_search, diff_index, todowrite, progress | Ad-hoc scratch files |
Related guides
- Customizing the Harness Using an Agent — End-to-end walkthrough of using plain-English prompts and Kompile's self-configuration MCP tools (
onboarding,enforcer_config,policy_enforce,hooks,judge_control,skill_manager,role_manager,config_archive, andspin) - Edit Coordinator & Message Bus — How multi-agent locks, durable mailboxes, wakes, and
CoordinationMessageMandatework - Monitors & Reactive Wake-Ups — Automatic process completion monitors,
process_notify, advisorymonitor_editlock watchers, resource waiters, and thesleep/timeoutban - Skills & Skill Manager (
skill_manager) — How skills, layouts, precedence, and cross-CLI scanning work - Standard Daily Workflow — Growing skills, scripts, roles, and subagent controls over real sessions
- First-Party Skills Packaging — How
skills/packages ship inside Kompile distributions - Why Kompile Is Opinionated — The Enforcer, Judge, and Evidence architecture behind these rules