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.
npx skills add AdamBien/airails --skill zcfggit clone --depth 1 https://github.com/AdamBien/airailsWrote 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.
[](https://agentmods.dev/skills/adambien/airails/zcfg)<a href="https://agentmods.dev/skills/adambien/airails/zcfg"><img src="https://agentmods.dev/badge/skills/adambien/airails/zcfg/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.
<a href="https://agentmods.dev/skills/adambien/airails/zcfg"><img src="https://agentmods.dev/badge/skills/adambien/airails/zcfg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.01655 |
| Opus 5 | $0.00037 | $0.00827 |
| Sonnet 5 | $0.00015 | $0.00331 |
| Haiku 4.5 | $0.00007 | $0.00166 |
Grade A, and why
zcfg scanned grade A with 1 finding 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 yesterday.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -sf https://raw.githubusercontent.com/AdamBien/zcfg/main/src/main/java/airhacks/zcfg/ZCfg.java -o src/main/java/airhacks/zcfg/ZCfg.java --create-dirs How it starts
The opening of the file, as written. The whole thing — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Integrate zcfg into a Java application using $ARGUMENTS. Apply all rules below.
What is zcfg
zcfg is a zero-dependency, single-class Java configuration loader. It reads standard Java properties files from multiple sources with defined precedence and provides type-safe access to configuration values.
- Source: https://github.com/AdamBien/zcfg
- Requires: Java 21+
Source Integration
zcfg is integrated by copying the source file directly into the target project — no Maven dependency required.
Source location: https://github.com/AdamBien/zcfg/blob/main/src/main/java/airhacks/zcfg/ZCfg.java
For zb projects: Download the file preserving its package structure:
curl -sf https://raw.githubusercontent.com/AdamBien/zcfg/main/src/main/java/airhacks/zcfg/ZCfg.java -o src/main/java/airhacks/zcfg/ZCfg.java --create-dirs
The package airhacks.zcfg; declaration stays as-is. Import with import airhacks.zcfg.*;.
For other projects:
- Determine the target project's base package (e.g.,
com.example.myapp) - Create the file
ZCfg.javain azcfgsub-package under the base package (e.g.,src/main/java/com/example/myapp/zcfg/ZCfg.javaorsrc/com/example/myapp/zcfg/ZCfg.java) - Write the following source with the
packagedeclaration adjusted to match the target location:
package <base-package>.zcfg;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.util.Properties;
import java.util.stream.Stream;
public class ZCfg {
static final String PROPERTIES_FILE = "app.properties";
static Properties CACHE;
public static void load(String appName) {
CACHE = loadProperties(appName);
}
static Properties loadProperties(String appName) {
var properties = new Properties();
var userHome = System.getProperty("user.home");
var globalConfig = Path.of(userHome, "." + appName, PROPERTIES_FILE);
if (Files.exists(globalConfig)) {
loadFromFile(globalConfig, properties);
}
var localConfig = Path.of(PROPERTIES_FILE);
if (Files.exists(localConfig)) {
loadFromFile(localConfig, properties);
}
properties.putAll(System.getProperties());
return properties;
}
static void loadFromFile(Path file, Properties properties) {
try (var is = Files.newBufferedReader(file)) {
properties.load(is);
} catch (IOException e) {
throw new IllegalStateException("Cannot load properties from: " + file, e);
}
}
public static String string(String key) {
if (CACHE == null)
throw new IllegalStateException("Call ZCfg.load(appName) first");
return CACHE.getProperty(key);
}
public static String string(String key, String defaultValue) {
if (CACHE == null)
throw new IllegalStateException("Call ZCfg.load(appName) first");
return CACHE.getProperty(key, defaultValue);
}
public static int integer(String key, int defaultValue) {
if (CACHE == null)
throw new IllegalStateException("Call ZCfg.load(appName) first");
var value = CACHE.getProperty(key);
return value != null ? Integer.parseInt(value) : defaultValue;
}
public static boolean bool(String key, boolean defaultValue) {
if (CACHE == null)
throw new IllegalStateException("Call ZCfg.load(appName) first");
var value = CACHE.getProperty(key);
return value != null ? Boolean.parseBoolean(value) : defaultValue;
}
public static List<String> strings(String key) {
if (CACHE == null)
throw new IllegalStateException("Call ZCfg.load(appName) first");
var value = CACHE.getProperty(key);
if (value == null)
return List.of();
return split(value);
}
static List<String> split(String value) {
var values = value.split(",");
return Stream.of(values)
.map(String::trim)
.toList();
}
}
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.
- yesterday Changed · +1 lines 54b209a64dbb
- 9d ago First seen · 197 lines · 75 tokens per session scan A 354c21475bfa
zcfg is a skill published in the GitHub repository AdamBien/airails (49 stars, last pushed 2d ago), licensed MIT. It adds 75 tokens to every session and 1,655 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
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…
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…
springboot-patterns
Spring Boot architecture patterns, REST API design, layered services, data access, caching, async processing, and logging. Use for Java Spring Boot backend work.
azure-appconfiguration-java
Azure App Configuration SDK for Java. Centralized application configuration management with key-value settings, feature flags, and snapshots. Triggers: "ConfigurationClient java", "app configuration java", "feature flag java", "configuration setting java", "azure config java".
azure-eventhub-java
Build real-time streaming applications with Azure Event Hubs SDK for Java. Use when implementing event streaming, high-throughput data ingestion, or building event-driven architectures.
azure-ai-voicelive-java
Azure AI VoiceLive SDK for Java. Real-time bidirectional voice conversations with AI assistants using WebSocket. Triggers: "VoiceLiveClient java", "voice assistant java", "real-time voice java", "audio streaming java", "voice activity detection java".