/xmake-skills:xmake-remote-compilationfrom xmake-skills
Compiles and runs projects on a remote machine transparently using xmake service. Covers server setup, client config, multi-host, and authentication.
Ships in xmake-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Remote compilation is "run the entire build + run + test on a remote machine, transparently". Different from distributed compilation (which offloads individual compile jobs to a cluster): remote compilation sends one project to one server, and every xmake/xmake run/xmake test command executes there.
Use it for:
Compared to ssh-based workflows, this doesn't suffer from flaky terminal sessions and integrates into any editor without IDE-specific remote-dev features.
xmake service # foreground (starts all configured services)
xmake service -vD # verbose
xmake service --start # daemonize
xmake service --stop
xmake service --restart
First run creates ~/.xmake/service/server.conf and prints a token.
{
known_hosts = { },
logfile = "/home/ruki/.xmake/service/server/logs.txt",
remote_build = {
listen = "0.0.0.0:9691",
workdir = "/home/ruki/.xmake/service/server/remote_build"
},
tokens = { "e438d816c95958667747c318f1532c0f" }
}
listen — host:port (default 9691).workdir — where projects are synced on the server.tokens — token allowlist.known_hosts — optional IP allowlist (harden exposed servers).~/.xmake/service/client.conf:
{
remote_build = {
connect = "192.168.56.110:9691",
token = "e438d816c95958667747c318f1532c0f"
}
}
{
remote_build = {
hosts = {
{ name = "local", connect = "127.0.0.1:9691", token = "ab9dcb6f..." },
{ name = "windows", connect = "10.5.138.247:9691", token = "0e052f8c..." },
{ name = "linux", connect = "10.5.138.100:9691", token = "7889e254..." }
}
}
}
Pick a host at connect time:
xmake service --connect # first host
xmake service --connect --host=windows # by name
xmake service --connect --host=10.5.138.247 # by IP
xmake service --connect --host=10.5.138.247:9691
xmake service run. More of them: xmake service --gen-token.xmake service --add-user=<name> on server, then connect = "user@host:port" on client. Prompts for password on each connect.known_hosts — clients outside the list are rejected even with a valid token.cd myproject
xmake service --connect
# -> Scanning files ..
# -> Comparing 3 files ..
# -> Uploading files with 1372 bytes ..
# -> sync files ok!
First connect uploads the project to <workdir>/<project-hash> on the server. Subsequent syncs are incremental.
Once connected, every xmake command runs on the server:
xmake # build (on server)
xmake run # run target (on server)
xmake run -d app # debug (on server)
xmake test # test (on server)
xmake f -m release # configure (on server)
xmake -rv # verbose rebuild (on server)
Output streams back to your terminal. Errors point at server paths (same as the project root, since xmake keeps the relative layout).
Code sync is automatic on build, but you can force it:
xmake service --sync # push local changes now
Useful after a batch edit from a tool the file watcher didn't catch.
xmake service --pull 'build/**' ./out # glob + local dest
xmake service --pull build/linux/x86_64/release/myapp ./dist/
Use for grabbing the built library/executable after a remote compile, or fetching generated files (compile_commands.json, headers, coverage reports).
xmake service --disconnect
xmake service --clean # wipe server workdir for this project
xmake service --logs # tail server logs
Disconnect is per-project — other projects stay connected.
| You want | Use |
|---|---|
| Build + run + debug on one beefy server | xmake-remote-compilation (this skill) |
| Pool compile jobs across a cluster while building locally | xmake-distributed-compilation |
| Share compiled objects across teammates/CI | xmake-build-cache (remote cache) |
They compose — a remote server can also be a distcc client/server, and a remote build can use the remote cache. Start with the simplest that solves your problem.
/home/<server-user>/.xmake/service/... paths. Either alias that path on your local machine or use xmake service --pull to bring artifacts/logs back..gitignore-style filtering or trim build artifacts before connecting.~/.xmake/service.conf; current versions use separate server.conf / client.conf under ~/.xmake/service/. If you're copying configs between old docs and new versions, watch for this.xmake run runs on the server — if the target expects a GPU/USB/filesystem that only exists locally, use remote for build only and pull the binary.xmake-distributed-compilationxmake-build-cachexmake-troubleshootingWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
xmake, remote-compilation, build-server, cross-platform, client-server
58 skills in this plugin
/xmake-addon-developmentUse when writing an Xmake addon — the `addon.lua` manifest, the payload layout (plugins/rules/toolchains/modules/includes/templates), `@self` references, shipping package definitions with an addon, `add_globalmodules`, testing it locally, and publishing it to xmake-repo as an `addon` kind package./xmake-addonsUse when installing or using an Xmake addon — `xmake addon --install/--list/--remove/--upgrade/--search`, declaring `add_addons(...)` in a project, and referencing addon payloads with `@addon/<name>/<rule>`, `@addon.<name>.<module>` or `@self`. For writing and publishing one, see xmake-addon-development./xmake-async-jobsUse when running parallel / async work inside xmake scripts — `async.runjobs` for parallel job execution, `async.jobgraph` (DAG) for dependency-ordered jobs, `async.jobpool` (tree structure), `core.base.scheduler` coroutine scheduling, semaphores, and `on_build_files(..., {jobgraph = true})` in rules. For running external compile jobs faster, see `xmake-build-optimization`.npx claudepluginhub xmake-io/xmake-skills --plugin xmake-skillsOther plugins' skills for the same job