zb

zb is a skill for Claude Code, Codex from AdamBien/airails. It costs 80 tokens per session (952 once invoked), scanned A, original, MIT.

A build tool for single-module Java 25 or newer projects with no external dependencies. It creates executable JAR files without Maven or Gradle.

In plain words
What is it for?
Use it to compile, package, and run Java projects when a .zb configuration is available or needs to be created.
Why use it?
It removes the need for a larger dependency-management build system in small, self-contained Java projects.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/adambien/airails/zb
Any agent
npx skills add AdamBien/airails --skill zb
Clone the repo
git clone --depth 1 https://github.com/AdamBien/airails

Made for: Claude Code, Codex.

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 zb

README.md
[![agentmods](https://agentmods.dev/badge/skills/adambien/airails/zb.svg)](https://agentmods.dev/skills/adambien/airails/zb)
Your own site
<a href="https://agentmods.dev/skills/adambien/airails/zb"><img src="https://agentmods.dev/badge/skills/adambien/airails/zb.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 952 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00080 $0.00952
Opus 5 $0.00040 $0.00476
Sonnet 5 $0.00016 $0.00190
Haiku 4.5 $0.00008 $0.00095

Measured 6d ago against content hash 5ab475eba31b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

zb 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 6d 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.

java/zb/SKILL.md · 121 lines

How it starts

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

zb - Zero Dependencies Builder

Build single-module Java 25+ projects into executable JARs without Maven or Gradle.

How to Build

Step 1: Check for zb.sh script

Search for a zb.sh wrapper script in this order — stop at the first match:

  1. zb.sh in the project root
  2. Glob for **/zb.sh within the project directory tree
  3. Glob for **/zb.sh one level above the project (sibling projects)
  4. Check ~/bin/zb.sh or ~/.local/bin/zb.sh

If zb.sh is found, skip to Step 3 (zb.sh) — the script handles jar location and execution internally.

If zb.sh is not found, continue to Step 2 to locate zb.jar manually.

Step 2: Find zb.jar (only if zb.sh not found)

Locate zb.jar in this order — stop at the first match:

  1. zb.jar in the project root
  2. Glob for **/zb.jar within the project directory tree
  3. Glob for **/zb.jar one level above the project (sibling projects)
  4. Check ~/bin/zb.jar or ~/.local/bin/zb.jar

If neither zb.sh nor zb.jar is found, tell the user to download from github.com/AdamBien/zb.

Step 3: Find the build directory

zb must run from the directory containing the .zb config file (or where one should be generated). In multi-module repos, this is the module subdirectory, not the repo root.

  • Glob for .zb files in the project
  • cd into the directory containing the .zb file before running zb
  • If no .zb exists, run from the directory that contains src/main/java

Step 4: Run the build

With zb.sh:

cd <build-directory> && <path-to-zb.sh>

With zb.jar (fallback):

cd <build-directory> && java -jar <path-to-zb.jar>

Step 5: Verify

Check exit code and output. A successful build prints the number of compiled files. Common errors:

  • "Multiple main classes found" — you are in the wrong directory (likely the repo root instead of a module subdirectory)
  • Compilation errors — fix the source and rebuild

Source Directory Convention

Read the full file on GitHub · 121 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 121 lines · 80 tokens per session scan A 5ab475eba31b

Subscribe to this mod's changes

zb is a skill published in the GitHub repository AdamBien/airails (48 stars, last pushed yesterday), licensed MIT. It adds 80 tokens to every session and 952 once invoked, about $0.0004 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

authoring-java-sdk-tasks

Writes Airflow task logic in Java, Kotlin, or any JVM language using the Airflow Java SDK. Use when the user wants to implement Airflow tasks in Java/JVM, asks about @Builder.Dag/@Builder.Task/@Builder.XCom, the Task/BundleBuilder interfaces, reading connections/variables/XComs from Java, the JSON-to-Java type…

astronomer/agents · 152 tokens

configuring-airflow-language-sdks

Configures Airflow to run language SDK tasks (Java, Go, and future native SDKs) — register a coordinator, map a queue to it, ensure the runtime/artifact on workers, and tune coordinator options. Use when the user wants Airflow to route a queue to a native-language coordinator, asks about the [sdk]…

astronomer/agents · 155 tokens

jackson-3-migration

Migrer Jackson 2.x til Jackson 3.x (tools.jackson) i Kotlin/Java-prosjekter — automatisert OpenRewrite-pass pluss manuell Kotlin-spesifikk opprydding og verifisering.

navikt/copilot · 53 tokens

java-to-kotlin

Trinnvis Java-til-Kotlin-migrering med rammeverk-bevisste transformasjoner for Spring, Ktor og Nav-mønstre.

navikt/copilot · 35 tokens

js-gof

Apply Gang of Four and related design patterns in JavaScript and TypeScript. Use when implementing creational, structural, or behavioral patterns, or when the user mentions factories, builder, prototype, flyweight, singleton, object pool, adapter, wrapper, decorator, proxy, bridge, composite, facade, chain of…

metarhia/metaskills · 107 tokens

data-structures

Implements custom JavaScript data structures: queues, deques, stacks, linked lists, cons lists, circular buffers, unrolled lists, tries, heaps, graphs, LRU caches, CRDTs, pools, structs. Use when building or choosing non-native collections, optimizing enqueue/dequeue, designing persistent lists, or when the user asks…

metarhia/metaskills · 84 tokens