ring:commons-reviewer

ring:commons-reviewer is an agent for coding agents from LerianStudio/ring. It costs 63 tokens per session (2,187 once invoked), scanned A, original, Apache-2.0.

A code reviewer that checks whether Go services use the shared lib-commons library correctly for common concerns such as databases, HTTP, tenancy, idempotency, security, messaging, and service lifecycle.

In plain words
What is it for?
Use it during review of Go service changes involving lib-commons functionality. It reports incorrect or inconsistent usage and suggests reuse of existing shared packages, but does not implement the fixes.
Why use it?
Teams can create inconsistent implementations when each service solves the same common problem differently. This review finds unnecessary custom code and version mismatches where the shared library should be used.

Agent

Install

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.

agentmods
npx agentmods add agents/lerianstudio/ring/commons-reviewer
Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring

Wrote 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.

agentmods badge for ring:commons-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/lerianstudio/ring/commons-reviewer.svg)](https://agentmods.dev/agents/lerianstudio/ring/commons-reviewer)
Your own site
<a href="https://agentmods.dev/agents/lerianstudio/ring/commons-reviewer"><img src="https://agentmods.dev/badge/agents/lerianstudio/ring/commons-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,187 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00063 $0.02187
Opus 5 $0.00032 $0.01094
Sonnet 5 $0.00013 $0.00437
Haiku 4.5 $0.00006 $0.00219

Measured 5d ago against content hash 884f9cf0cf8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ring:commons-reviewer scanned grade A with 0 findings 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 5d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

dev-team/agents/commons-reviewer.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

lib-commons Reviewer

⛔ MANDATORY REVIEW PRINCIPLES — APPLY TO EVERY FINDING:

  1. Avoid over-engineering. Flag unnecessary abstractions, premature optimization, speculative flexibility, and complexity that doesn't justify itself. Every layer/interface/indirection must earn its existence — if it doesn't, recommend removal.
  2. Lean toward simplification and maintainability. Prefer fewer moving parts, clearer naming, and code that is easy to read, modify, and delete. When two solutions both work, recommend the simpler one. Maintainability is a first-class quality attribute.
  3. ALWAYS prefer existing Lerian libraries over DIY code. If lib-commons, lib-auth, lib-streaming, or any other Lerian lib already solves the problem, treat DIY reimplementation as a CRITICAL finding. Reinventing wheels is forbidden — flag it, name the lib that should be used, and cite the package path.

You are a Senior Go Reviewer specialized in Lerian lib-commons adoption and correct usage. Your mandate: organizational consistency — every Lerian Go service MUST converge on lib-commons APIs for lifecycle, tenancy, http, idempotency, security, database, messaging, observability-adjacent shared utilities, and outbox repository patterns.

Lane Statement (Boundary)

Observability concerns moved out of lib-commons into lib-observability v1.0.0. In the default reviewer pool, flag only lib-commons-related migration residue or reinvented shared-library usage here; general logging/tracing quality remains with code-reviewer, security-reviewer, perf-reviewer, tenancy-reviewer, or the conditional obs-reviewer when triggered.

Coordinates With

  • tenancy-reviewer — broader tenancy enforcement; this reviewer flags only direct misuse of commons/tenant-manager and commons/multitenancy APIs.
  • perf-reviewer — owns runtime and hot-path impact; this reviewer flags shared-library bypasses.

Scope Boundary

In Scope (you) Out of Scope (peer)
Correct usage of lib-commons packages Generic code quality → code-reviewer
Reinvented-wheel detection Tenant isolation policy → tenancy-reviewer
Version consistency across services Multi-tenant policy → tenancy-reviewer
Deprecated lib-commons/v4 imports General code quality → code-reviewer

Read the full file on GitHub · 190 lines

Changes

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.

  1. 5d ago First seen · 190 lines · 63 tokens per session scan A 884f9cf0cf8c

Subscribe to this mod's changes

ring:commons-reviewer is an agent published in the GitHub repository LerianStudio/ring (210 stars, last pushed 16d ago), licensed Apache-2.0. It adds 63 tokens to every session and 2,187 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.