kmp-setup

kmp-setup is a skill for Claude Code from underpass-ai/kmp. It costs 42 tokens per session (1,330 once invoked), scanned A, original, Apache-2.0.

A setup and update guide for KMP, covering installation, upgrades, ownership repairs, and fallback-language configuration.

In plain words
What is it for?
Use it to diagnose KMP, install or update its engine, repair plugin ownership, remove outdated cached versions, or configure fallback language.
Why use it?
It checks the installation before changing it and keeps the KMP engine and its integrations aligned across supported hosts.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex.

Part of the kmp plugin — 12 skills, 10 commands, 2 hooks, 1 MCP server shipped together

Good fit Use it to diagnose KMP, install or update its engine, repair plugin ownership, remove outdated cached versions, or configure fallback language.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/underpass-ai/kmp/kmp-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add underpass-ai/kmp --skill kmp-setup
Clone the repo
git clone --depth 1 https://github.com/underpass-ai/kmp

Made for: Claude Code.

Or install kmp, the plugin that ships this one along with the rest of its 12 skills, 10 commands, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kmp-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/underpass-ai/kmp/kmp-setup/github.svg)](https://agentmods.dev/skills/underpass-ai/kmp/kmp-setup)
Your own site
<a href="https://agentmods.dev/skills/underpass-ai/kmp/kmp-setup"><img src="https://agentmods.dev/badge/skills/underpass-ai/kmp/kmp-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kmp-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/underpass-ai/kmp/kmp-setup"><img src="https://agentmods.dev/badge/skills/underpass-ai/kmp/kmp-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,330 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01330
Opus 5.5 $0.00017 $0.00532
Sonnet 5.5 $0.00008 $0.00266
Haiku 4.5 $0.00004 $0.00133

Measured 13d ago against content hash 8fe3a7f1e1e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kmp-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/kmp/skills/kmp-setup/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

KMP setup

Resolve the plugin root as two directories above this SKILL.md. Diagnose first with <plugin-root>/scripts/kmp-doctor.sh; it is a thin adapter into kmp-mcp doctor, whose Rust lifecycle diagnosis owns host inventory, engine proof, effective wiring and plugin-tree parity.

When a session notice or version comparison says a newer release exists, run <plugin-root>/scripts/kmp-update.sh. That inventories every installed host, updates every installed KMP plugin, and installs the checksummed engine from the same release. An ordinary update resolves the latest public release in the native lifecycle; --version <release> selects an explicit target. The installed plugin's manifest only selects the initial bootstrap engine and the default setup version. Do not update only one host or one half.

Once the release is proved and every host points at it, the update names the superseded versions each host's plugin cache still holds, leaving the installed release and the one before it for rollback. It removes none of them: a session that was already open dispatches its skills out of the version directory it started in, and deleting that directory breaks the session until its host restarts. The next time the engine starts, that start removes them. The receipt names what is still there under plugin_caches as deferred; report it as deferred rather than as freed space.

For an enabled Codex plugin, the plugin owns MCP. Install or update the engine with <plugin-root>/scripts/kmp-install-binary.sh, but do not add a global mcp_servers.kmp registration, copied prompts, or an AGENTS snippet. If a global registration also exists, report the collision and remove it only as the explicit ownership repair for the requested setup.

Standalone Codex wiring is retired. The native plugin is the single MCP owner; reject --standalone and diagnose any old global registration as a collision.

Show the active configuration with kmp-mcp config. It reports the agent policy and the user memory selection, and starts no host.

memory store is which memory KMP opens. Selection runs in one order: KMP_MCP_DATA_DIR, then the nearest project root (a git checkout, whose worktrees share its store, or a directory that already holds a .kernel/ store), then the saved selection, then the per-user default. kmp-mcp config prints the saved selection, the effective one, and which of those rules won, so a workspace that is not a repository never reaches a store nobody chose without saying so. A valid explicit override wins even if the saved selection is invalid; report the unused setting's warning and repair it before removing the override.

Save a selection with kmp-mcp config memory-store <absolute-path>, and undo it with kmp-mcp config memory-store --clear. The selection is one line in the user config file, so it survives a normal desktop restart with no environment variable and no launcher script. It creates no store: the first write does. A relative or ~ path is refused, because a saved selection has to mean one directory from every working directory.

A directory holding memory this engine cannot open is refused with the reason and the repair. Never present that as a reason to migrate: KMP does not migrate, move, convert or overwrite an existing store, and setup and update must not select or write one. Selecting a fresh store is the user's explicit decision, and the old store stays exactly where it is.

memory routing decides whether an agent enters KMP unasked. The default is on request: memory is called when the user asks for KMP, when a kmp skill or command runs, or when the project opts in. Change it only when the user asks for always-on recall, with kmp-mcp config memory-routing always; on-request returns to the default. Never turn it on as part of an install.

There is no language setting to configure. A semantic question is asked in English with the user's own words passed as asked_as, and the answer is given in the user's language with stored evidence, refs, relation why and source metadata preserved byte-for-byte. kmp-mcp doctor and kmp-mcp info name the lexical-bridge table a store would read, or say there is none and what that means for Ask; report that line when the user asks about languages. An older config file may still carry an ask_fallback_languages line; it is ignored and the doctor says so. Questions in Chinese, Japanese or Thai are not segmented by word yet; storage remains byte-exact. Upgrades must leave the policy file intact.

Read the full file on GitHub · 102 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed · +1 lines · +9 tokens per session 8fe3a7f1e1e4
  2. 1mo ago Changed · +5 lines b6e4efe8a02b
  3. 2mo ago Changed · +1 lines 2a656cefd880
  4. 2mo ago Changed · +25 lines 6a165436beae
  5. 2mo ago Changed · +3 lines 98a10d70fe07
  6. 3mo ago Changed · +1 lines b4eff70ca363
  7. 3mo ago Changed · +8 lines aa4cbe002a14
  8. 3mo ago First seen · 58 lines · 33 tokens per session scan A 02037a226284

Subscribe to this mod's changes

kmp-setup is a skill published in the GitHub repository underpass-ai/kmp (0 stars, last pushed 5d ago), licensed Apache-2.0. It adds 42 tokens to every session and 1,330 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

kmp-setup compared with skills from other repositories

kmp-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kmp-setupunderpass-ai/kmpSkill05d agoApache-2.0A42Claude Code
simple-englishNousResearch/hermes-agentSkill269ktodayMITA16Claude Code, Codex
website-maintaineryamadashy/repomixSkill30ktodayMITA37Claude Code
openclwUnicomAI/wanwuSkill2.4k11d agoApache-2.0A64Claude Code, Codex
i18n-date-patternsyonatangross/orchestkitSkill317todayMITA53Claude Code
inclusive-designevanca/flutter-ai-rulesSkill67823d agoMITA50Claude Code
rewrite-twKerberosClaw/kc_ai_skillsSkill812d agoMITA152Claude Code