ring:using-lib-commons
ring:using-lib-commons
Scope note (lib-observability v1.0.0): The observability layer —
log,metrics,tracing,zap,assert,runtime(panic recovery),redaction, and OTel attribute constants — moved out of lib-commons intogithub.com/LerianStudio/lib-observabilityas of v1.0.0. lib-commons v5 keeps deprecated shims for back-compat, but this skill is no longer the canonical reference for those packages. For observability work, dispatch [[using-lib-observability]] (top-level) or its dedicated sub-skills [[using-tracing]] / [[using-runtime]] / [[using-assert]]. This skill now focuses on lib-commons's non-observability surface: lifecycle (commons.Launcher), outbox repository (writer side lives in [[using-lib-streaming]]), circuit breakers, tenant management, idempotency, security/TLS, database connections, messaging (RabbitMQ command queues; events go through [[using-lib-streaming]]), HTTP toolkit.
When to use
Sweep mode:
- "Sweep the codebase for lib-commons opportunities"
- "Find where we could use lib-commons instead of DIY"
- "Audit this service for lib-commons compliance"
- "Identify lib-commons migration opportunities"
Reference mode:
- Need to understand what lib-commons provides
- Looking for the right package/API for a task
- Setting up a new service that uses lib-commons
- Need correct constructor/initialization patterns
- Working with multi-tenancy (tenant-manager subsystem)
- Working with event-driven tenant discovery