tools/skills/charly/SKILL.md
OpenCharly CLI (charly) binary installed into container/VM images for in-container use. Use when working with charly binary deployment inside containers, in-container charly CLI usage, or the full charly toolchain (charly binary + virtualization + gocryptfs + socat).
npx skillsauth add overthinkos/overthink-plugins charlyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Property | Value |
|----------|-------|
| Install files | run: step, bin/charly |
The charly binary inside containers provides the full charly CLI for in-venue
scripting, service management, and automation. The box need NOT bake the charly
candy for charly to run inside a venue: when a flow needs charly present and the
venue lacks it (nested from-image delegation), the generic copy-charly-into-a-running-venue
mechanism (EnsureCharlyInVenue over DeployExecutor.PutFile — podman cp for a
container, scp for a VM/host) copies the host's own binary in on demand and invokes
the delivered copy. Baking the candy only pre-stages the binary so the first such call
skips the copy.
The charly candy installs the binary as a proper, dependency-resolving OS
package via localpkg: ({pac: pkg/arch, rpm: pkg/fedora, deb: pkg/debian}).
The BINARY SOURCE depends on the box type — a hard distinction, NEVER mixed:
disposable: true deploys) bake the latest in-development
charly: the check-bed runner builds every bed image with charly box build --dev-local-pkg, so the package is BUILT from the local working tree
(pkg/<fmt> + charly/). A bed therefore tests the charly code under
development — never a stale published release.charly box build DOWNLOADS the published release package
(releases/latest/download/opencharly-<arch>.<fmt>).ONE decision point (renderLocalPkgImageInstall), generic across all kinds and
all localpkg candies; the check-bed runner sets --dev-local-pkg automatically, a
production build never does. A dev build that cannot find its local source HARD
errors (R4 — no silent fallback to the release). Full mechanics:
/charly-internals:install-plan "Check-vs-production charly toolchain". This is
WHY a fresh check bed exercises your uncommitted charly changes while a real box
ships the released toolchain.
The charly candy's copy: bin/charly run step is resolved relative to the candy directory, so the box build reads candy/charly/bin/charly — NOT the repo-root bin/charly. Two independent paths need to stay in sync:
| Path | Who reads it |
|------|-------------|
| bin/charly (repo root) | Host-side charly invocations; users running /tmp/charly style tests |
| candy/charly/bin/charly | The charly candy's COPY into boxes during charly box build |
Canonical workflow — task build:charly compiles to repo-root AND syncs to the layer:
task build:charly # Builds + syncs both paths; rebuild images after.
charly box build <image> # Rebuild affected images.
Manual workflow — if you skip task build:charly and build with go build directly, you MUST sync the candy path, or boxes will bake the previous binary:
cd charly && go build -o ../bin/charly . # Only updates repo-root bin/charly.
cp bin/charly candy/charly/bin/charly # REQUIRED — sync to layer path.
charly box build <image> # Rebuild affected images.
Why this bites: charly box build uses auto-generated intermediate images (e.g., ghcr.io/overthinkos/charly-fedora-2-dbus-nodejs) that cache the charly candy. If you update bin/charly in repo-root but forget the candy copy, the intermediate's cache hit serves stale content. After cleaning up a stale dual-path situation, charly clean --invalidate 'charly-fedora-2*' forces a clean intermediate rebuild.
charly status ProbeThe charly probe checks:
charly binary exists in the containercharly version)Shows as charly:ok (2026.94.1417) in charly status detail view. Returns - for boxes without the charly candy.
Note: charly version writes to stdout via fmt.Println (the prior
println(version) emitted to stderr; the move to fmt.Println landed
with the MCP server work so the in-process tool-call path — which
captures os.Stdout — returns the CalVer correctly). The candy test at
candy/charly/charly.yml asserts stdout: matches [0-9]{4}\.[0-9]+. The
charly status probe uses CombinedOutput() so it's agnostic to the
stream.
# charly.yml — name-first; the charly candy is now composed into all supervisord images
my-image:
candy:
base: fedora
my-image-candy:
candy:
- charly
charly candy is the full toolchain (charly binary + virtualization + gocryptfs + socat); composed into githubrunner, charly-fedora, charly-arch/charly-infrastructure:virtualization, /charly-infrastructure:gocryptfs, /charly-infrastructure:socat -- the candies the charly candy composes alongside the binary to form the full toolchain/charly-coder:charly-mcp -- candies: [charly, supervisord] meta-composition that deploys charly mcp serve (~192-tool MCP gateway) with a /workspace bind mount (volume NAME project) for build-mode tools + auto-fallback to overthinkos/overthink when nothing is boundUse when the user asks about:
/charly-image:layer — candy authoring reference (charly.yml schema, plan-step verbs, service declarations)/charly-check:check — declarative testing (check: block, charly check box, charly check live)tools
Use when authoring or modifying a charly PLUGIN — a candy with a `plugin:` block that contributes Providers (verbs/kinds/deploy-targets/steps/builders/commands), its own CUE schema, builtin (compiled-in) or external (out-of-tree git repo). Covers the unified Provider model, the per-plugin CUE-schema contract (single source → Go params for dev + schema-over-Describe RPC for runtime), the SDK, and the loader.
tools
The CUE data-validation / configuration CLI (cue), pinned to v0.16.1. Use when working with the cue candy, installing the cue binary into a box or onto a target:local dev host, or running the offline schema-vendoring pipeline that feeds charly's egress validation.
tools
CUE EGRESS validation — validating (and, where it adds value, generating) the config files charly WRITES to a system BEFORE the bytes hit disk. MUST be invoked before working on charly/egress.go, the vendored schemas under candy/plugin-egress/egress-schemas/vendor/, the ValidateEgress / registerVendoredEgressKind path, the offline `task cue:vendor` pipeline, or adding an egress schema for any written artifact (cloud-init, k8s manifests, traefik routes, runtime config, install ledger, systemd/quadlet units, ssh_config, libvirt XML).
tools
Kubernetes cluster-probe declarative check verb — the `kube:` check verb (nodes, pods, ingress, storage class, addon health, apply/delete, and arbitrary resource GETs) served out-of-process by the candy/plugin-kube plugin (vendored client-go; no external kubectl required).