mikropkl CLAUDE.md

mikropkl CLAUDE.md is an instructions file for Claude Code from tikoci/mikropkl. It costs 13,297 tokens per session, scanned B, original, Unlicense.

Project context for coding agents working on mikropkl, which produces ready-to-run MikroTik RouterOS virtual machines for UTM on macOS and QEMU on macOS or Linux.

In plain words
What is it for?
Read it before changing project code, build files, virtual-machine manifests, UTM bundles, QEMU scripts, or testing and laboratory experiments.
Why use it?
It explains what the project is for, where its files belong, and how its configuration, images, and launch bundles fit together.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

Not installable on its own: it reads a path above its own folder, which only exists inside its repository. The line is import "../Pkl/CHR.pkl".

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tikoci/mikropkl/claude-md.svg)](https://agentmods.dev/instructions/tikoci/mikropkl/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/tikoci/mikropkl/claude-md"><img src="https://agentmods.dev/badge/instructions/tikoci/mikropkl/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 13,297 This file is loaded in full into every session.
When invoked 13,297 The same file — it is already loaded in full.
Security scan B 2 findings. Scan, not verified.
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.13297 $0.13297
Opus 5 $0.06649 $0.06649
Sonnet 5 $0.02659 $0.02659
Haiku 4.5 $0.01330 $0.01330

Measured 6d ago against content hash 51e10df2a86a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

mikropkl CLAUDE.md scanned grade B with 2 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 6d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo DEBIAN_FRONTEND=noninteractive apt-get update -qq

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `*.img.zip.url` → `wget` + `unzip` → raw `.img` disk (cached in `.url-cache/`)
CLAUDE.md · 909 lines

How it starts

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

CLAUDE.md — Project Context for AI Agents

This file documents the mikropkl project for AI coding agents. Read it before making changes.

Project Purpose

mikropkl produces declarative virtual machine packages for MikroTik RouterOS CHR using pkl. The primary output is UTM bundles (.utm directories) for macOS, with QEMU launch scripts (qemu.sh + qemu.cfg) for Linux and CI testing.

The goal is to streamline getting RouterOS CHR running — whether checking a config on an older version, trying a new feature, or bringing up multiple CHRs for network testing. Without mikropkl, getting CHR running involves downloading images from MikroTik, navigating several UI dialogs or constructing long qemu-system-* command lines. mikropkl replaces all that with declarative pkl manifests and make.

Two delivery paths:

  • UTM (macOS-first): utm://downloadVM?url=... one-click install, or download ZIP and open. UTM handles the VM lifecycle.
  • QEMU (macOS + Linux): Each .utm bundle includes qemu.sh + qemu.cfg. Unpack the ZIP, run ./qemu.sh, get a RouterOS prompt. Also used for CI validation.

The .utm bundle is a ZIP archive — structurally portable. A future mikropkl CLI tool could manage QEMU-based instances from ~/.local/ or ~/.mikropkl/, providing a Linux-native experience similar to UTM's on macOS.

Platform focus: macOS and Linux. Windows/WSL is not a target — we won't document setup steps, but QEMU on WSL should work since the scripts are POSIX shell. If someone reports a WSL issue, we'd consider it. The core challenge on Windows is that there's no default virtualization platform equivalent to KVM or Apple's Hypervisor.framework, so the kind of automation mikropkl does doesn't map cleanly to "brew install qemu" or "apt install qemu".

Directory Structure

Makefile              ← two-phase build orchestration (source of truth for building)
Manifests/            ← one .pkl file per machine variant (amend Templates/)
Templates/            ← mid-level pkl templates (amend Pkl/utmzip.pkl)
Pkl/                  ← core pkl modules
  utmzip.pkl          ← root module: defines all file outputs for a .utm bundle
  QemuCfg.pkl         ← generates qemu.cfg (ini) + qemu.sh (launcher) for direct QEMU use
  Libvirt.pkl         ← generates libvirt.xml (experimental, disabled by default)
  CHR.pkl             ← RouterOS CHR download URL logic and SVG icon helpers
  UTM.pkl             ← UTM-specific types (SystemArchitecture, BackendType, etc.)
  Randomish.pkl       ← deterministic pseudo-random helpers (MAC address generation)
  URL.pkl, SVG.pkl    ← helper modules
  chr-version.pkl     ← resolves RouterOS version from release channel (env: CHR_VERSION)
Files/
  efi_vars.fd         ← UEFI variable store (copied into Apple-backend bundles)
  QEMU.md             ← user-facing QEMU deployment guide
Machines/             ← build output (git-ignored except .url/.size placeholders)
Tests/                ← anchor tests (see Tests/README.md); `make test`, no QEMU needed
Lab/                  ← local experiments, debug scripts, investigation notes (NOT build artifacts)
  libvirt/            ← libvirt experiment docs and notes (see LIBVIRT.md inside)
  qemu-arm64/         ← QEMU aarch64 boot investigation (see NOTES.md inside)
  x86-direct-kernel/  ← x86 direct kernel boot experiments (see NOTES.md inside)
.github/workflows/
  chr.yaml            ← builds and releases UTM packages to GitHub Releases
  test.yaml           ← anchor tests on push/PR (no QEMU): accel decision table
  qemu-test.yaml      ← boots each QEMU machine via qemu.sh and runs REST API checks
  libvirt-test.yaml   ← historical: precursor to qemu-test.yaml (parses XML → raw QEMU)
  auto.yaml           ← automated trigger for chr.yaml on new RouterOS versions

Read the full file on GitHub · 909 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. 6d ago First seen · 909 lines · 13,297 tokens per session scan B 51e10df2a86a

Subscribe to this mod's changes

mikropkl CLAUDE.md is an instructions file published in the GitHub repository tikoci/mikropkl (52 stars, last pushed 2d ago), licensed Unlicense. It adds 13,297 tokens to every session, about $0.0665 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.