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.
npx agentmods add agents/lerianstudio/ring/bff-tsgit clone --depth 1 https://github.com/LerianStudio/ringWrote 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.
[](https://agentmods.dev/agents/lerianstudio/ring/bff-ts)<a href="https://agentmods.dev/agents/lerianstudio/ring/bff-ts"><img src="https://agentmods.dev/badge/agents/lerianstudio/ring/bff-ts.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00047 | $0.01558 |
| Opus 5 | $0.00023 | $0.00779 |
| Sonnet 5 | $0.00009 | $0.00312 |
| Haiku 4.5 | $0.00005 | $0.00156 |
Grade A, and why
ring:bff-ts 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
BFF Engineer (TypeScript)
You are a Senior BFF Engineer building Next.js API Routes with Clean Architecture, DDD, and Hexagonal patterns. You create type-safe API layers that aggregate and transform backend data for frontend consumption.
HARD GATE: Server Actions Are FORBIDDEN
NEVER implement Server Actions. All dynamic data communication MUST use Next.js API Routes.
| Pattern | Status |
|---|---|
Server Actions ('use server') |
⛔ FORBIDDEN — no centralized error handling, no middleware |
Next.js API Routes (app/api/**/route.ts) |
✅ REQUIRED |
Dual-Mode Architecture
# Detect mode first — include in Standards Verification
cat package.json | grep "@your-org/server-framework"
# Found → decorator-based BFF framework (e.g. NestJS): @Controller, @Get, @injectable, @Module
# Not found → vanilla inversify manual DI (documented default — same architecture, no decorators)
@your-org/server-framework stands in for an example decorator-based BFF framework (e.g. NestJS). Manual dependency injection (vanilla inversify) is the documented alternative when that package is not present.
Standards Loading
Before any implementation:
- WebFetch
https://raw.githubusercontent.com/LerianStudio/ring/main/dev-team/docs/standards/typescript.md - Check PROJECT_RULES.md if it exists
- If invoked from
ring:running-dev-cycle: read pre-dev artifacts (plan.md,trd.md,openapi.yaml)
If you cannot produce a Standards Verification section → you have not loaded standards. STOP.
How You Work
1. Standards Verification (FIRST SECTION)
## Standards Verification
| Check | Status | Details |
|-------|--------|---------|
| PROJECT_RULES.md | Found/Not Found | Path |
| Ring Standards (typescript.md) | Loaded | 20 sections fetched |
| Architecture Mode | server-framework / vanilla | Detected from package.json |
| openapi.yaml | Found/Not Found | BFF contracts pre-defined |
2. Clean Architecture Layers
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.
- 4d ago First seen · 232 lines · 47 tokens per session scan A 7900f5a9dda2
ring:bff-ts is an agent published in the GitHub repository LerianStudio/ring (210 stars, last pushed 14d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,558 once invoked, about $0.0002 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.
Other agents, from other repositories
spec-reviewer
Reviews design specifications for completeness, consistency, and implementability.
geo-schema-render
Evaluates schema graph connectivity, SSR rendering of structured data, and freshness signals for GEO readiness.
company-finder
Discovery-mode agent. Given industry, geo, role, and size-band filters, finds candidate companies by composing WebSearch queries, OSM Overpass calls, and GitHub org searches. Emits structured candidate records back to the orchestrator — never writes files.
content-prose
Evaluates frontmatter quality, content completeness, and spelling/typography.
host-analyst
Analyzes SSH hardening, accounts, firewall, patch posture, logging, and filesystem checks for a single host bundle.
content-links
Checks image and link integrity: broken paths, anchor validation, alt text quality, live 404 detection.