/guicedee-cerial:guicedee-cerialfrom guicedee-cerial
Connects serial devices via jSerialComm with lifecycle management, auto-reconnect, idle monitoring, and health reporting.
Ships in guicedee-cerial. 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.
Lifecycle-aware serial port connectivity for Guiced using jSerialComm and Vert.x 5.
Inject @Named CerialPortConnection singletons by port number, configure with CRTP-fluent setters, and let the framework handle connection lifecycle, idle monitoring, automatic reconnect with exponential backoff, MicroProfile Health reporting, and optional OpenTelemetry tracing.
guiced.net:cerial dependency.@Inject @Named("1")
private CerialPortConnection connection;
connection.setBaudRate(BaudRate.$9600)
.setDataBits(DataBits.$8)
.setParity(Parity.None)
.setStopBits(StopBits.$1)
.setFlowControl(FlowControl.None)
.connect();
// Write
connection.write("Hello, device!");
// Read (callback on Vert.x worker thread)
connection.setComPortRead((data, port) -> {
String message = new String(data).trim();
System.out.println("Received: " + message);
});
module-info.java:
module my.app {
requires com.guicedee.cerial;
opens my.app.serial to com.google.guice;
}
| Method | Default | Values |
|---|---|---|
setBaudRate() | BaudRate.$9600 | $300 to $256000 |
setDataBits() | DataBits.$8 | $5, $6, $7, $8 |
setParity() | Parity.None | None, Odd, Even, Mark, Space |
setStopBits() | StopBits.$1 | $1, $1_5, $2 |
setFlowControl() | FlowControl.None | None, RtsCtsIn, RtsCtsOut, XonXoffIn, XonXoffOut |
12 states grouped into Exception, Transitional, and Active sets:
Silent, Running, Logging, SimulationOpening, OperationInProgress, FileTransferOffline, Missing, Failed, InUse, GeneralExceptionsetInitialReconnectDelaySeconds(), setMaxReconnectDelaySeconds()CerialIdleMonitor detects silent connections via Vert.x periodic timer. Status transitions to Silent when idle beyond threshold.
CerialPortConnection.onDestroy() marks shutdown before cancelling reconnect and monitor timers. It detaches the native data listener before closing the port, with a bounded native-close wait. Preserve this sequence: an in-flight error callback must not schedule another reconnect during shutdown. disconnect() alone is not the terminal lifecycle operation.
CerialHealthCheck implements @Liveness, @Readiness, @Startup and reports status of all active connections (requires health module).
requires com.guicedee.cerial;.@Named("0") through @Named("999") singletons.opens to com.google.guice.provides needed.IGuicePreDestroy closes all open ports.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub guicedee/ai-rules --plugin guicedee-cerial