/xmake-skills:xmake-addonsfrom xmake-skills
Installs, manages, and uses Xmake addons: installing via `xmake addon`, declaring `add_addons` in xmake.lua, and referencing payloads with `@addon/` paths and `@addon` modules.
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.
An addon extends xmake itself: plugins (new commands), rules, toolchains, project templates, lua modules and includes files. It is installed once per user, not per project.
::: warning
Addons need xmake from the dev branch (they are newer than v3.1.0). Before it, the same
role was played by xmake plugin --install, which only handles plugins.
:::
xmake addon --install <name> # from the repository index
xmake addon --install github:user/repo # from github, `#branch` is supported
xmake addon --install https://github.com/u/r.git # from any git url
xmake addon --install /path/to/my-addon # from a local directory
xmake addon --install xmake-repo@serial-tools # from a specific repository
xmake addon --list # installed + available addons
xmake addon --search serial # search the repositories
xmake addon --remove serial-tools
xmake addon --remove --all
xmake addon --upgrade # upgrade what the current project declares
--force removes an addon even if other addons depend on it, -y skips the confirmations.
Declare it in xmake.lua, xmake installs it automatically when the project is loaded and
records the resolved version in xmake-addons.lock next to it:
add_addons("esp32-devel") -- any version
add_addons("esp32-devel 1.0.x") -- a version range
Then reference its payloads. Addon payloads are namespaced, so two addons never clash:
includes("@addon/esp32-devel/board") -- an includes file of the addon
target("blink")
add_rules("@addon/esp32-devel/app") -- a rule of the addon
set_toolchains("@addon/esp32-devel/esp32") -- a toolchain of the addon
import("@addon.serial-tools.serial") -- a module of an addon (dots, not slashes)
| Reference | Points at |
|---|---|
@addon/<name>/<rule|toolchain|includes> | a namespaced payload, used by the project apis |
@addon.<name>.<module> | a lua module of an addon, used by import() |
@self.<module> | a module of the addon which owns the running script |
Inside your own addon always use @self, never hardcode your own name:
import("@self.private.board")
~/.xmake/addons/<name>/<version>/ # the installed payloads
~/.xmake/addons/addons.conf # the registry xmake reads on startup
<project>/xmake-addons.lock # the versions this project resolved
xmake hello or the
same template id conflict, and the second install is rejected.add_addons + xmake-addons.lock.xmake addon --upgrade upgrades what the current project declares, not everything.xmake-addon-development skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub xmake-io/xmake-skills --plugin xmake-skills58 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-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`./xmake-basicsOther plugins' skills for the same job