ring:planning-backend-refactor

ring:planning-backend-refactor is a skill for Claude Code, Codex 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 Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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: Claude Code, Codex.

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.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.svg" alt="Measured on agentmods" 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 $0.00046 $0.00585
Sonnet 5 $0.00019 $0.00234
Haiku 4.5 $0.00009 $0.00117

Measured 4d ago against content hash 3f4810136d0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 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.

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. 4d 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 (211 stars, last pushed 19d ago), licensed Apache-2.0. It adds 93 tokens to every session and 1,170 once invoked, about $0.0005 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-09-03.