Skip to content

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.md

Once 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 ​

TaskDedicated Kompile ToolBlocked / Discouraged Shell Substitute
Symbols, callers, blast radius, bug traceslocal_code_index (ranked_search, blended_search, debug_trace, changed_context)Recursive grep / find
File outline, notes & open incidentsfile_context or read(include_context=true)cat whole-file dumps
Compiler-accurate navigation & renamelsp (definition, references, call_hierarchy, rename with dry_run=true)Blind regex replace
Read / search / edit filesread / 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 diffsdraft / draft_batch (.kompile/drafts.git)Overlay dirs, *-draft.md, diff3 scripts
Static edit verificationlsp action=check file_paths=[...] (fail-closed)Assuming edits compile
Builds & testsbuild tool (provenance + automatic TestMilestoneCapture)Raw mvn/gradle/npm/cargo/pytest in bash
Long-running commands & process monitorsprocess action=launch (auto-monitored + timeout_minutes + monitor_message) & process_notifyShell sleep loops, timeout, private flock
Peer file locks, resource waiters & messagingedit_coordinator (register_edits, monitor_edit, acquire_lock, wait_for_activity, durable message bus)Uncoordinated concurrent edits, ad-hoc lock files, polling peers
Reusable scriptsscript_manager + script (cache_results=true)One-off python3 -c / node -e
Memory, history & reportingmemory, semantic_memory, transcript_search, diff_index, todowrite, progressAd-hoc scratch files

Released under the Apache-2.0 License.