ring:planning-backend-refactor

ring:planning-backend-refactor is a skill for Cursor from LerianStudio/ring. It costs 93 tokens per session (1,170 once invoked), scanned A, original, Apache-2.0.

A planning tool for auditing an existing Go or TypeScript backend against project standards and turning the findings into refactoring tasks. A backend is the server-side part of an application that handles data, business rules, and APIs.

In plain words
What is it for?
Use it to assess a legacy backend or requested architecture audit and create findings and tasks for a later development cycle.
Why use it?
It makes structural and standards gaps visible before implementation and provides an ordered plan for addressing them.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the ring-dev-team plugin — 35 skills, 24 agents shipped together

Good fit Use it to assess a legacy backend or requested architecture audit and create findings and tasks for a later development cycle.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lerianstudio/ring/planning-backend-refactor
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.

Any agent
npx skills add LerianStudio/ring --skill planning-backend-refactor
Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring

Made for: Cursor.

Or install ring-dev-team, the plugin that ships this one along with the rest of its 35 skills, 24 agents.

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:planning-backend-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/planning-backend-refactor/github.svg)](https://agentmods.dev/skills/lerianstudio/ring/planning-backend-refactor)
Your own site
<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.

agentmods 80×15 button for ring:planning-backend-refactor

Your own site · 80×15
<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>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,170 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.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

Measured 2mo ago against content hash 3f4810136d0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

dev-team/skills/planning-backend-refactor/SKILL.md · 144 lines

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.md exists → STOP if missing
  • Detect stack: go.mod → Go; package.json + Express/Fastify/NestJS (no React) → TypeScript
  • If package.json + React/Next.js → STOP: use ring: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

Read the full file on GitHub · 144 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. 2mo ago First seen · 144 lines · 93 tokens per session scan A 3f4810136d0e

Subscribe to this mod's changes

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.

Related

ring:planning-backend-refactor compared with skills from other repositories

ring:planning-backend-refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ring:planning-backend-refactorLerianStudio/ringSkill21829d agoApache-2.0A93Cursor
api-auditgreglas75/zuvoSkill7todayMITA135Claude Code
performance-auditgreglas75/zuvoSkill7todayMITA90Claude Code
docsgreglas75/zuvoSkill7todayMITC68Claude Code
leadsgreglas75/zuvoSkill7todayMITE178Claude Code
laravel-audit-dsaMrPunyapal/laravel-auditorSkill854d agoMITA51Claude Code, Codex
moldpaulnsorensen/easy-cheeseSkill19todayMITA182Claude Code