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 skills add LerianStudio/ring --skill planning-backend-refactorgit 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/skills/lerianstudio/ring/planning-backend-refactor)<a href="https://agentmods.dev/skills/lerianstudio/ring/planning-backend-refactor"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/planning-backend-refactor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/lerianstudio/ring/planning-backend-refactor"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/planning-backend-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.1 | $0.00093 | $0.01170 |
| Opus 5.5 | $0.00037 | $0.00468 |
| Sonnet 5.5 | $0.00019 | $0.00234 |
| Haiku 4.5 | $0.00009 | $0.00117 |
Grade A, and why
ring:planning-backend-refactor 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 2mo 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 — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Dev Refactor Skill
When to use
- User wants to refactor existing project to follow standards
- Legacy codebase needs modernization
- Project audit requested
Skip when
- Greenfield project → Use ring:planning-large-features or ring:planning-small-features instead
- Single file fix → Use ring:running-dev-cycle directly
- Frontend project → Use ring:planning-frontend-refactor
Analyzes existing backend codebase against Ring/Lerian standards and generates refactoring tasks for ring:running-dev-cycle.
You orchestrate. Agents analyze. NEVER run Bash/Grep/Read to analyze code directly — dispatch agents.
Gap Principle
Every divergence from Ring standards = a mandatory gap to implement. No exceptions.
All divergences → FINDING-XXX → REFACTOR-XXX task → ring:running-dev-cycle input.
Architecture Pattern Applicability
| Service Type | Apply Hexagonal/Lerian Pattern? |
|---|---|
| CRUD API | ✅ YES |
| Complex business logic | ✅ YES |
| Event-driven systems | ✅ YES |
| CLI tools / scripts | ❌ NO |
| Workers / background jobs | ❌ NO |
| Simple lambdas | ❌ NO |
Execution Steps
Step 1: Validate Prerequisites
- Check
docs/PROJECT_RULES.mdexists → STOP if missing - Detect stack:
go.mod→ Go;package.json+ Express/Fastify/NestJS (no React) → TypeScript - If
package.json+ React/Next.js → STOP: usering:planning-frontend-refactor
Step 2: Generate Codebase Report
Dispatch ring:codebase-explorer:
Generate comprehensive codebase report: project structure, architecture pattern,
tech stack, code patterns (config, database, handlers, errors, telemetry, testing),
key files inventory with file:line references, code snippets.
Output: docs/ring:planning-backend-refactor/{timestamp}/codebase-report.md
Step 3: Dispatch Specialist Agents (parallel)
Verify codebase-report.md exists before dispatching.
For Go projects — dispatch backend analysis:
Task 1: ring:backend-go (MODE: ANALYSIS only)
- Load golang.md via WebFetch
- Check all sections per shared-patterns/standards-coverage-table.md
- Flag framework/library mismatches vs standards
- File size enforcement: >1000 lines = ISSUE-XXX (HIGH), >1500 = CRITICAL
- Multi-tenant analysis per shared-patterns/multi-tenant-analysis.md
- Check tests, coverage, docker-compose/local runtime, and observability as backend-owned responsibilities
- Output: Standards Coverage Table + ISSUE-XXX per finding
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.
- 2mo ago First seen · 144 lines · 93 tokens per session scan A 3f4810136d0e
ring:planning-backend-refactor is a skill published in the GitHub repository LerianStudio/ring (218 stars, last pushed 29d ago), licensed Apache-2.0. It adds 93 tokens to every session and 1,170 once invoked, about $0.0004 per session on Opus 5.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-09-03.
ring:planning-backend-refactor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ring:planning-backend-refactorLerianStudio/ring | Skill | 218 | 29d ago | Apache-2.0 | A | 93 | Cursor |
| api-auditgreglas75/zuvo | Skill | 7 | today | MIT | A | 135 | Claude Code |
| performance-auditgreglas75/zuvo | Skill | 7 | today | MIT | A | 90 | Claude Code |
| docsgreglas75/zuvo | Skill | 7 | today | MIT | C | 68 | Claude Code |
| leadsgreglas75/zuvo | Skill | 7 | today | MIT | E | 178 | Claude Code |
| laravel-audit-dsaMrPunyapal/laravel-auditor | Skill | 85 | 4d ago | MIT | A | 51 | Claude Code, Codex |
| moldpaulnsorensen/easy-cheese | Skill | 19 | today | MIT | A | 182 | Claude Code |