/guicedee-client:guicedee-clientfrom guicedee-client
Provides the client SPI contracts for Guiced lifecycle, including IGuiceContext, call scopes, and Environment configuration, enabling module development without the full runtime.
Ships in guicedee-client. 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.
The client SPI library — defines the contracts that all Guiced modules program against without pulling in the full runtime.
This library provides the interfaces and annotations for the Guiced lifecycle. Application code and library modules depend on client to register hooks, access the injector, and define scoping — without coupling to the runtime engine in inject.
guiced.net:client dependency.IGuiceContext.registerModuleForScanning.add("my.app");
IGuiceContext context = IGuiceContext.instance();
Injector injector = context.inject();
provides:
module my.app {
requires com.guicedee.client;
provides com.guicedee.client.services.lifecycle.IGuiceModule
with my.app.AppModule;
}
All hooks extend IDefaultService<J> (CRTP); override sortOrder() when a custom execution order is needed. IGuiceModule additionally declares enabled() (default true). IDefaultService, startup, shutdown, and configurator hooks do not declare enabled(); gate their work inside the hook body.
| Interface | When | Purpose |
|---|---|---|
IGuiceConfigurator<J> | First | Configure GuiceConfig before scanning |
IGuicePreStartup<J> | After scan, before injector | Pre-startup tasks, returns List<Future<Boolean>> |
IGuiceModule<J> | During injector creation | Standard Guice AbstractModule |
IGuicePostStartup<J> | After injector ready | Post-startup tasks, returns List<Uni<Boolean>> |
IGuicePreDestroy<J> | Shutdown or startup rollback | Cleanup in ascending shutdownSortOrder(), with class-name tie-breaking |
| Class | Purpose |
|---|---|
IGuiceContext | Singleton access to injector and context |
IDefaultService | Base for all SPI hooks (CRTP) with sortOrder() (default 100; some hooks override the default, e.g. IGuicePostStartup = 50) |
Environment | Canonical environment-variable / system-property resolver — always use this instead of System.getenv/System.getProperty |
CallScope / CallScopeProperties | Request-scoped injection context |
IJsonRepresentation | Jackson ObjectMapper configuration contract |
EnvironmentNever call System.getenv(...) / System.getProperty(...) directly, and never write a local env(...)/getProperty(...) helper. Resolve every environment variable and system property through com.guicedee.client.Environment:
import com.guicedee.client.Environment;
// name, default — returns the resolved value (never null; empty string if no default)
String enterprise = Environment.getSystemPropertyOrEnvironment("AM_ENTERPRISE_NAME", "NE1 World");
boolean enabled = Boolean.parseBoolean(
Environment.getSystemPropertyOrEnvironment("AM_INSTALL_ENABLED", "true"));
Environment.getSystemPropertyOrEnvironment(name, default) resolves with this precedence (highest first):
-Dname=value)name, then the upper-cased/underscored NAME variant).env.local file (local overrides, typically git-ignored).env file (shared defaults, may be committed)${...} placeholders resolved)Environment.getProperty(name, default) is an alias of getSystemPropertyOrEnvironment with the same precedence, .env.local/.env lookup, and placeholder resolution. Use the canonical getSystemPropertyOrEnvironment spelling in new code. Other helpers include Environment.resolvePlaceholders(value) for ${VAR:-default} strings and Environment.reloadDotEnv() for tests. All string config attributes therefore support ${ENV_VAR} placeholders for free.
requires com.guicedee.client;.module-info.java + META-INF/services/).sortOrder() controls execution order — lower runs first. IGuiceModule.enabled() controls module enablement; other hooks gate work inside their method.sortOrder() — all futures in a group must complete before the next group.IGuicePreStartup.onStartup() returns List<Future<Boolean>> — uses Vert.x io.vertx.core.Future.IGuicePostStartup.postLoad() returns List<Uni<Boolean>> — uses Mutiny io.smallrye.mutiny.Uni.Environment.getSystemPropertyOrEnvironment(name, default) — never System.getenv/System.getProperty and never a hand-rolled env(...) helper.CallScoper carries JVM-local request values through supported callbacks and Mutiny continuations. IOnCallScopeEnter and IOnCallScopeExit are per-call hooks; a startup-only setting does not configure each request. Dual-register implementations in JPMS and META-INF/services. Scope values and correlation IDs do not authenticate another process or grant access to a distributed resource.
Use Integer sortOrder() for startup and Integer shutdownSortOrder() for teardown; the latter defaults to sortOrder(). IGuiceContext.destroy() is terminal: cleanup may resolve existing bindings, but must not bootstrap a replacement injector.
When adding requires directives, use the correct module names:
| Maven Artifact | JPMS Module Name |
|---|---|
io.vertx:vertx-core | io.vertx.core |
io.vertx:vertx-web | io.vertx.web |
io.vertx:vertx-web-client | io.vertx.web.client |
io.vertx:vertx-service-resolver | io.vertx.serviceresolver |
io.smallrye.reactive:mutiny | io.smallrye.mutiny |
io.github.classgraph:classgraph | io.github.classgraph |
com.google.inject:guice | com.google.guice |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub guicedee/ai-rules --plugin guicedee-client