/xmake-skills:xmake-valafrom xmake-skills
Builds Vala projects with xmake: configure .vala sources, declare VAPI packages, and produce executables or shared/static libraries.
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.
Vala compiles to C (via valac), then to native code. Xmake handles both steps via the vala rule. Supported since v2.5.7 (binaries) / v2.5.8 (libraries).
add_rules("mode.debug", "mode.release")
add_requires("glib") -- mandatory
target("hello")
set_kind("binary")
add_rules("vala") -- required
add_files("src/*.vala")
add_packages("glib")
add_values("vala.packages", "glib-2.0", "gobject-2.0")
Three things every Vala target needs:
add_rules("vala") — tells xmake this is a Vala target.add_requires("glib") + add_packages("glib") — Vala's runtime.add_values("vala.packages", ...) — the VAPI package names that valac should import.target("mymath")
set_kind("static")
add_rules("vala")
add_files("src/*.vala")
add_packages("glib")
add_values("vala.packages", "glib-2.0", "gobject-2.0")
add_values("vala.header", "mymath.h") -- exported C header
add_values("vala.vapi", "mymath-1.0.vapi") -- exported VAPI
Consumers in C can #include "mymath.h"; consumers in Vala import mymath-1.0.vapi.
target("mymath")
set_kind("shared")
add_rules("vala")
add_files("src/*.vala")
add_packages("glib")
add_values("vala.packages", "glib-2.0", "gobject-2.0")
add_values("vala.header", "mymath.h")
add_values("vala.vapi", "mymath-1.0.vapi")
target("app")
set_kind("binary")
add_files("src/main.c")
add_deps("mymath")
add_packages("glib")
The exported header and VAPI flow through add_deps automatically.
add_rules("vala"). .vala files are treated as unknown — build fails. Always add the rule.vala.packages vs add_packages. These are different axes: vala.packages is what valac imports (VAPI names), add_packages is what xmake links. You usually need both for glib.glib-2.0, not glib. Check pkg-config --list-all for the exact names.xmake-packagesxmake-targetsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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