xmake-vala

xmake-vala is a skill for Claude Code from xmake-io/xmake-skills. It costs 65 tokens per session (822 once invoked), scanned A, original, Apache-2.0.

Build instructions for Vala projects using xmake, a tool that automates compiling and packaging software. Vala is a programming language that is converted to C before being compiled into native programs or libraries.

In plain words
What is it for?
Use it to build Vala executables, static libraries, and shared libraries with xmake, including libraries that export C headers and Vala interface files.
Why use it?
It clarifies the settings needed for xmake to handle Vala source files, including the GLib runtime and Vala package declarations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the xmake-skills plugin — 58 skills shipped together

Good fit Use it to build Vala executables, static libraries, and shared libraries with xmake, including libraries that export C headers and Vala interface files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xmake-io/xmake-skills/xmake-vala
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xmake-io/xmake-skills --skill xmake-vala
Clone the repo
git clone --depth 1 https://github.com/xmake-io/xmake-skills

Made for: Claude Code.

Or install xmake-skills, the plugin that ships this one along with the rest of its 58 skills.

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 xmake-vala

README.md
[![agentmods](https://agentmods.dev/badge/skills/xmake-io/xmake-skills/xmake-vala/github.svg)](https://agentmods.dev/skills/xmake-io/xmake-skills/xmake-vala)
Your own site
<a href="https://agentmods.dev/skills/xmake-io/xmake-skills/xmake-vala"><img src="https://agentmods.dev/badge/skills/xmake-io/xmake-skills/xmake-vala/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xmake-vala

Your own site · 80×15
<a href="https://agentmods.dev/skills/xmake-io/xmake-skills/xmake-vala"><img src="https://agentmods.dev/badge/skills/xmake-io/xmake-skills/xmake-vala.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 822 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00065 $0.00822
Opus 5 $0.00032 $0.00411
Sonnet 5 $0.00013 $0.00164
Haiku 4.5 $0.00006 $0.00082

Measured 12d ago against content hash 922f13b029a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

xmake-vala scanned grade A with 0 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/languages/xmake-vala/SKILL.md · 82 lines

How it starts

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

Building Vala with Xmake

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).

1. Minimal console program

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.

2. Static library with exported API

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.

3. Shared library

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")

4. Consuming a Vala library in C

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.

Pitfalls

  • Forgot add_rules("vala"). .vala files are treated as unknown — build fails. Always add the rule.
  • Missing glib dep. Vala's runtime is glib. Add it as a package even for "hello world".
  • 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.
  • Version in the VAPI name. glib-2.0, not glib. Check pkg-config --list-all for the exact names.
  • Cross-compile. Vala's two-step build (Vala → C → native) makes cross-compile trickier than pure C. Works but requires the cross toolchain to also have glib headers.

Read the full file on GitHub · 82 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. 12d ago First seen · 82 lines · 65 tokens per session scan A 922f13b029a3

Subscribe to this mod's changes

xmake-vala is a skill published in the GitHub repository xmake-io/xmake-skills (24 stars, last pushed 19d ago), licensed Apache-2.0. It adds 65 tokens to every session and 822 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

platform-detection

Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system. Use only for "which test platform/framework?", "VSTest or MTP?", or "what runner does this project use?", including bridge settings, UseVSTest opt-outs, and incompatible or conflicting VSTest/MTP configuration.…

dotnet/skills · 146 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

omh-rust

This is a Hermes-native rust workflow skill.

rlaope/oh-my-hermes · 69 tokens

axiom-concurrency

Use when writing ANY async code, actors, threads, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.

CharlesWiltgen/Axiom · 43 tokens