Agent skill

Working With Config

by quarkusio in quarkusio/quarkus

Quarkus configuration conventions: @ConfigMapping interfaces, config phases, and migration from legacy @ConfigRoot classes.

Apache-2.0Auto-check passed

Install Working With Config

skills CLI
$ npx skills add quarkusio/quarkus --skill working-with-config -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install quarkusio/quarkus working-with-config --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/quarkusio/quarkus.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/working-with-config .claude/skills/working-with-config && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
working-with-config
GitHub stars
16k
Token cost
~1.3k tokens
SKILL.md length
411 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

Quarkus configuration conventions: @ConfigMapping interfaces, config phases, and migration from legacy @ConfigRoot classes.

  • SKILL.md covers Use @ConfigMapping Interfaces…, Config Phases, Naming and Annotation Processor…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Working With Config is an agent skill from quarkusio/quarkus. Quarkus configuration conventions: @ConfigMapping interfaces, config phases, and migration from legacy @ConfigRoot classes.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Java. The repository describes itself as: Quarkus: Supersonic Subatomic Java. The licence is Apache-2.0.

Example prompts

  • “/working-with-config”

What it can do on your machine

Read from SKILL.md and the folder at commit d58d0eb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are java and xml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Working With Config loads about 1.3k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 411 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from quarkusio/quarkus at commit d58d0eb, republished under its Apache-2.0 licence (© quarkusio). 411 words, ~1,258 tokens.

Download SKILL.mdSave it as .claude/skills/working-with-config/SKILL.md (or your agent's skills folder).
name
working-with-config
description
Quarkus configuration conventions: @ConfigMapping interfaces, config phases, and migration from legacy @ConfigRoot classes.

Working with Configuration

Use @ConfigMapping Interfaces (Not Legacy Classes)

Quarkus configuration must use @ConfigMapping interfaces. The legacy @ConfigRoot-annotated classes with @ConfigItem have been fully removed (see adr/0008-phasing-out-config-classes.adoc).

Correct (current approach)
java
@ConfigMapping(prefix = "quarkus.my-extension")
@ConfigRoot(phase = ConfigPhase.RUN_TIME)
public interface MyExtensionRuntimeConfig {

    /** Description of the property. */
    @WithDefault("default-value")
    String myProperty();

    /** Optional property (absent means not set by the user). */
    Optional<String> optionalProperty();
}
Do NOT Use Optional to Define Default Values

Never use Optional and provide a default via .orElse(...) in application code. The default must be declared in the config mapping itself via @WithDefault:

java
// BAD — do not do this
String name = config.optName().orElse("theDefaultName");

// GOOD — declare the default in the config mapping
@WithDefault("theDefaultName")
String name();
Non-root @ConfigMapping (without @ConfigRoot)

@ConfigMapping can also be used without @ConfigRoot for non-root mappings. These are not auto-discovered — you must register them explicitly (e.g., via @Inject in a CDI bean or programmatically with SmallRye Config). Use this when mapping a sub-tree of configuration that does not represent an extension's top-level config root.

java
@ConfigMapping(prefix = "some.custom.prefix")
public interface MyCustomConfig {

    /** A non-root config property. */
    String someValue();
}
Wrong (legacy approach, do not use)
java
// DO NOT use this pattern
@ConfigRoot(name = "my-extension", phase = ConfigPhase.RUN_TIME)
public class MyExtensionConfig {
    @ConfigItem(defaultValue = "default-value")
    String myProperty;
}

Config Phases

@ConfigRoot defaults to BUILD_TIME when no phase is specified. Always set the phase explicitly — omitting it for a config injected at runtime will cause UnsatisfiedResolutionException because BUILD_TIME configs are not registered as CDI beans.

  • BUILD_TIME — Baked into the binary at build time, immutable at runtime. Use for settings that affect code generation. Only available in @BuildStep methods — not injectable via @Inject in runtime CDI beans.
  • BUILD_AND_RUN_TIME_FIXED — Read at build time, also available at runtime. Cannot change without rebuilding. Available in both @BuildStep methods and runtime CDI beans.
  • RUN_TIME — Read at application startup. Can change between runs. Available in runtime CDI beans via @Inject. Not available in @BuildStep methods.

Naming

  • Config interfaces: <Feature>Config.java, or split as <Feature>BuildTimeConfig.java / <Feature>RuntimeConfig.java
  • Config prefix: quarkus.<extension-name>
Show full SKILL.md (169 more words)Show less

Annotation Processor (quarkus-extension-processor)

The quarkus-extension-processor annotation processor is required for all extension modules, not just those with @ConfigRoot. It generates metadata files (including META-INF/quarkus-config-roots.list for config discovery) that Quarkus needs to wire extensions correctly. Without it, most extension functionality will silently fail.

Both runtime/ and deployment/ POMs must include:

xml
<plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <executions>
        <execution>
            <id>default-compile</id>
            <configuration>
                <annotationProcessorPaths>
                    <path>
                        <groupId>io.quarkus</groupId>
                        <artifactId>quarkus-extension-processor</artifactId>
                        <version>${project.version}</version>
                    </path>
                </annotationProcessorPaths>
            </configuration>
        </execution>
    </executions>
</plugin>

Most modules already have this. If you create a new module or notice missing metadata, verify the annotation processor is present in its pom.xml.

Key Rules

  • Always specify phase explicitly on @ConfigRoot — the default is BUILD_TIME, which is not injectable via CDI at runtime
  • Configuration is immutable — never mutate config objects
  • Use RUN_TIME phase unless the config genuinely affects build-time behavior
  • Do NOT access RUN_TIME config during build steps — it is not available yet
  • BUILD_TIME config changes require a rebuild
  • When adding new quarkus.* properties, always register them in a @ConfigMapping interface. Reading them programmatically via ConfigProvider.getConfig().getOptionalValue(...) is fine, but the corresponding key must still be defined in a @ConfigMapping — otherwise SmallRye Config will emit "unknown property" warnings at startup.

© quarkusio, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/working-with-config of quarkusio/quarkus.

Open the folder on GitHubat commit d58d0eb

Compare with similar skills

Working With Config next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Working With Config compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Working With Config this skillquarkusio/quarkus16k—~1.3kAutomated safety check: PassApache-2.0
Brainstormingxpinjection/test-driven-spring-boot11252 repos~2.6kAutomated safety check: PassMIT
Android API Diffgkd-kit/gkd43k—~796Automated safety check: PassGPL-3.0
Video Cover Imageitwanger/toBeBetterJavaer18k—~3.3kAutomated safety check: PassNone
Lancedb Update Lance Dependencylancedb/lancedb12k—~1.1kAutomated safety check: PassApache-2.0
Java SDK E2E Test with Replay Snapshotgithub/copilot-sdk11k—~1.8kAutomated safety check: PassMIT

Similar skills

  • Brainstorming

    xpinjection/test-driven-spring-boot

    You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.

    112 GitHub starsUsed in 52 repos~2.6k tokens
    Agent WorkflowsAuto-check passed
  • Android API Diff

    gkd-kit/gkd

    Looks up Android framework Java and AIDL APIs across versions with the android-api-diff CLI: signatures, availability, source files and hidden-API access code.

    43k GitHub stars~796 tokensUpdated today
    MobileAuto-check passed
  • Video Cover Image

    itwanger/toBeBetterJavaer

    Generate matched 3:4, 16:9, and 4:3 short-video cover images from toBeBetterJavaer video scripts or AI/Java technical topics.

    18k GitHub stars~3.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • Update LanceDB to a specific Lance release or tag. An agent skill from lancedb/lancedb.

    12k GitHub stars~1.1k tokensUpdated today
    DatabasesAuto-check passed
  • Official

    Creates a Java SDK end-to-end test for the Copilot SDK that runs against a recorded YAML snapshot through a replay proxy, so CI needs no real authentication.

    11k GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated today
    Auto-check passed

More from quarkusio/quarkus

All 12 skills in this repo
  • Manage Deprecations

    quarkusio/quarkus

    Maintain @Deprecated code in the Quarkus codebase: remove code that has been deprecated for more than 12 months, add the @Deprecated annotations that were missed when a related element was…

    16k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Building And Testing

    quarkusio/quarkus

    How to build and test Quarkus: Maven commands, build flags, incremental builds, justfile aliases, and important build rules.

    16k GitHub stars~615 tokensUpdated today
    Auto-check passed
  • Building Docs

    quarkusio/quarkus

    How to build, preview, and verify Quarkus documentation locally: root Maven build, docs rebuild, Roq dev server preview.

    16k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Quarkus split classloading model, runtime-dev module wiring, conditional dependencies, and common classloading mistakes.

    16k GitHub stars~635 tokensUpdated today
    Auto-check passed
  • Step-by-step guide for converting Quarkus extensions from the legacy @Record/@Recorder pattern to the ServiceRegistrar service system.

    16k GitHub stars~4.6k tokensUpdated today
    Auto-check passed
  • Creating Extensions

    quarkusio/quarkus

    How to create a new Quarkus extension: full module layout, package naming, artifact naming, dependency rules, and Dev UI setup.

    16k GitHub stars~929 tokensUpdated today
    Auto-check passed

Works with

Questions about Working With Config

What does Working With Config do?

Quarkus configuration conventions: @ConfigMapping interfaces, config phases, and migration from legacy @ConfigRoot classes. Working With Config is an agent skill from quarkusio/quarkus. Quarkus configuration conventions: @ConfigMapping interfaces, config phases, and migration from legacy @ConfigRoot classes.

How do I install Working With Config in Claude Code?

Run `npx skills add quarkusio/quarkus --skill working-with-config -a claude-code`. Or copy the skill folder (.agents/skills/working-with-config in quarkusio/quarkus) into .claude/skills/working-with-config in your project. Claude Code loads it when a task matches its description.

How do I install Working With Config in Codex?

Run `npx skills add quarkusio/quarkus --skill working-with-config -a codex`. Or copy the skill folder (.agents/skills/working-with-config in quarkusio/quarkus) into .agents/skills/working-with-config in your project. Codex loads it when a task matches its description.

Can I use Working With Config in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add quarkusio/quarkus --skill working-with-config -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/working-with-config, .gemini/skills/working-with-config, .github/skills/working-with-config and .opencode/skills/working-with-config in your project.

What does Working With Config need to run?

SKILL.md names no scripts, command-line tools or credentials: Working With Config is instructions for the agent only.

Does Working With Config access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Working With Config safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Working With Config use?

Working With Config is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Working With Config use?

About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Working With Config?

Skills that share tags, products or a category with Working With Config: Brainstorming (xpinjection/test-driven-spring-boot, 112 stars), Android API Diff (gkd-kit/gkd, 43k stars), Video Cover Image (itwanger/toBeBetterJavaer, 18k stars) and Lancedb Update Lance Dependency (lancedb/lancedb, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Working With Config?

quarkusio (a GitHub organization) maintains it in quarkusio/quarkus, which has 15,939 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 9, 2026.

Source: quarkusio/quarkus on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.