ring:planning-frontend-refactor

ring:planning-frontend-refactor is a skill for Claude Code, Codex from LerianStudio/ring. It costs 100 tokens per session (1,213 once invoked), scanned C, original, Apache-2.0.

A planning tool for auditing an existing React or Next.js frontend against project standards for structure, visual design, accessibility, and tests. React and Next.js are JavaScript tools for building web interfaces.

In plain words
What is it for?
Use it to assess a legacy frontend or existing application and produce findings and refactoring tasks for a later implementation cycle.
Why use it?
It turns differences from those standards into an ordered set of work before anyone changes the code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Good fit Use it to assess a legacy frontend or existing application and produce findings and refactoring tasks for a later implementation cycle.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/planning-frontend-refactor.svg)](https://agentmods.dev/skills/lerianstudio/ring/planning-frontend-refactor)
Your own site
<a href="https://agentmods.dev/skills/lerianstudio/ring/planning-frontend-refactor"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/planning-frontend-refactor.svg" alt="Measured on agentmods" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,213 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00100 $0.01213
Opus 5 $0.00050 $0.00607
Sonnet 5 $0.00020 $0.00243
Haiku 4.5 $0.00010 $0.00121

Measured 4d ago against content hash 84c5709d91c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade C, and why

ring:planning-frontend-refactor scanned grade C with 1 finding 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Replace @your-org/design-system with your organization's design system package. -->
dev-team/skills/planning-frontend-refactor/SKILL.md · 135 lines

How it starts

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

Dev Refactor Frontend

When to use

  • User wants to refactor existing frontend project to follow standards
  • Legacy React/Next.js codebase needs modernization
  • Frontend project audit requested

Skip when

  • Greenfield project → Use /ring:planning-small-features or /ring:planning-large-features instead
  • Single file fix → Use ring:running-dev-cycle-frontend directly
  • Backend-only project → Use ring:planning-backend-refactor instead

Sequence

Runs before: ring:running-dev-cycle-frontend

Analyzes existing frontend codebase against Ring/Lerian standards and generates refactoring tasks for ring:running-dev-cycle-frontend.

You orchestrate. Agents analyze. NEVER use Bash/Grep/Read to analyze code — dispatch agents.

Gap Principle

Every divergence from Ring standards = a mandatory gap. No exceptions.

All divergences → FINDING-XXX → REFACTOR-XXX task → ring:running-dev-cycle-frontend input.

Architecture Pattern Applicability

Project Type Apply Frontend Standards?
Full React/Next.js App ✅ YES — all frontend.md sections
Design System Library ✅ YES
Landing page / static ⚡ PARTIAL — directory + styling only
Utility / config package ❌ NO

Standards Loading

Pre-fetch before any step:

WebFetch: https://raw.githubusercontent.com/LerianStudio/ring/main/CLAUDE.md
WebFetch: https://raw.githubusercontent.com/LerianStudio/ring/main/dev-team/docs/standards/frontend.md
WebFetch: testing-accessibility.md, testing-visual.md, testing-e2e.md, testing-performance.md

STOP if any fetch fails.

Execution Steps

Step 1: Validate Prerequisites

  • Check docs/PROJECT_RULES.md exists → STOP if missing
  • Detect UI library mode: read package.json
    • @your-org/design-systemdesign-system
    • Otherwise → fallback-only
  • If go.mod and no React → STOP: use ring:planning-backend-refactor

Step 2: Generate Codebase Report

Read the full file on GitHub · 135 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 · 135 lines · 100 tokens per session scan C 84c5709d91c2

Subscribe to this mod's changes

ring:planning-frontend-refactor is a skill published in the GitHub repository LerianStudio/ring (211 stars, last pushed 19d ago), licensed Apache-2.0. It adds 100 tokens to every session and 1,213 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.