ExtremeRouter: Skill for Claude Code

.agents/skills/extreme-router-refactor/SKILL.md

extreme-router-refactor is a skill for Claude Code, Codex from rsalmn/ExtremeRouter. It costs 78 tokens per session (1,244 once invoked), scanned A, original, MIT.

A code-refactoring and review guide for ExtremeRouter projects. It looks for bugs, code smells, duplication, security weaknesses, performance problems, and architectural issues.

In plain words
What is it for?
Use it to clean up code, fix bugs, review changes, find technical debt, investigate broken behaviour, and check edge cases, validation, authentication, secrets, concurrency, and database performance.
Why use it?
It helps address the underlying cause of a problem and related risks, rather than only patching the visible symptom. The input does not specify a particular programming language or framework.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is rsalmn/ExtremeRouter's own configuration. It tells Claude Code and Codex how to work on ExtremeRouter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ExtremeRouter configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rsalmn/ExtremeRouter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rsalmn/ExtremeRouter/main/.agents/skills/extreme-router-refactor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/rsalmn/ExtremeRouter

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 extreme-router-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/rsalmn/extremerouter/extreme-router-refactor/github.svg)](https://agentmods.dev/skills/rsalmn/extremerouter/extreme-router-refactor)
Your own site
<a href="https://agentmods.dev/skills/rsalmn/extremerouter/extreme-router-refactor"><img src="https://agentmods.dev/badge/skills/rsalmn/extremerouter/extreme-router-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 extreme-router-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/rsalmn/extremerouter/extreme-router-refactor"><img src="https://agentmods.dev/badge/skills/rsalmn/extremerouter/extreme-router-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,244 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.00078 $0.01244
Opus 5 $0.00039 $0.00622
Sonnet 5 $0.00016 $0.00249
Haiku 4.5 $0.00008 $0.00124

Measured 9d ago against content hash 96bc5f2fa26a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

extreme-router-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 9d 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.

.agents/skills/extreme-router-refactor/SKILL.md · 175 lines

How it starts

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

Code Refactoring & Review Expertise

You are an expert in identifying and resolving technical debt, code smells, and architectural issues.

Refactoring Philosophy

Never stop after solving the visible issue.

Always search for:

  • Root cause (not just symptoms)
  • Related issues (ripple effects)
  • Future problems (what will break next?)
  • Architectural improvements (how to prevent this class of issue)

Think two steps ahead. Fix the problem, then fix the system that allowed the problem.

Code Review Checklist

When reviewing code, check for:

Correctness

  • Logic errors
  • Edge cases (null, undefined, empty arrays, zero values)
  • Error handling (what happens when things fail?)
  • Race conditions (async/await, concurrent updates)
  • Data validation (trust boundaries)

Security

  • Input sanitization (SQL injection, XSS, command injection)
  • Authentication/authorization checks
  • Secret exposure (hardcoded keys, logs, error messages)
  • CORS/CSRF protection
  • Rate limiting

Performance

  • Unnecessary re-renders (React components)
  • Missing memoization (expensive computations)
  • N+1 queries (database access patterns)
  • Missing indexes (database queries)
  • Large bundle imports (tree-shaking opportunities)
  • Synchronous operations that should be async

Maintainability

  • Code duplication (DRY violations)
  • Magic numbers/strings (use constants)
  • Deep nesting (extract functions/components)
  • Long functions (>50 lines = refactor)
  • Complex conditionals (extract to named variables)
  • Poor naming (unclear intent)

Architecture

  • Separation of concerns (UI vs business logic)
  • Dependency direction (should flow inward)
  • Coupling (tight vs loose)
  • Cohesion (related things together)
  • Abstraction level (too high-level or too low-level)

Refactoring Process

When refactoring existing code:

  1. Explain what's wrong — be specific, cite code
  2. Explain why it's wrong — impact on maintainability/performance/security
  3. Show the impact — what happens if we don't fix it?
  4. Propose the solution — how to improve it
  5. Rewrite it cleanly — provide the improved code

Read the full file on GitHub · 175 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. 9d ago First seen · 175 lines · 78 tokens per session scan A 96bc5f2fa26a

Subscribe to this mod's changes

extreme-router-refactor is a skill published in the GitHub repository rsalmn/ExtremeRouter (32 stars, last pushed 2d ago), licensed MIT. It adds 78 tokens to every session and 1,244 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

human-review

Produce a plain-English review of the files you just edited and gate the changes behind an explicit Approve/Undo choice. Use when the Stop hook from the human-review-skill plugin asks for a review (you'll see a prompt referencing an edit log), OR when the developer's most recent message is "1", "2", "approve", or…

IrtezaAsadRizvi/claude-human-review · 83 tokens

code-reviewer

Perform thorough code reviews — bugs, security issues, performance bottlenecks, style violations, and architectural concerns.

inbharatai/claude-skills · 26 tokens

security-auditor

Audit code for security vulnerabilities — OWASP Top 10, injection flaws, auth issues, secrets exposure, and dependency risks.

inbharatai/claude-skills · 30 tokens

review

Review before merge. Stage-1 spec-compliance gate, then risk-selected Stage-2 review axes from the canonical set. analyst always runs, callers can pin extra always-on axes, and explicit deep review runs the full 16-axis set. Run after /test. Do NOT invoke code-qualities-assessment, doc-accuracy, golden-principles, or…

rjmurillo/ai-agents · 97 tokens

code-qualities-assessment

Assess code maintainability through 5 foundational qualities (cohesion, coupling, encapsulation, testability, non-redundancy) with quantifiable scoring rubrics. Works at method/class/module levels across multiple languages. Produces markdown reports with remediation guidance. Use when you ask to "assess…

rjmurillo/ai-agents · 108 tokens

adr-review

Multi-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus. Use when you say "review this ADR", when an ADR is…

rjmurillo/ai-agents · 134 tokens