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 kinhluan/rules-quarkus-skills --skill refactoring-expertgit clone --depth 1 https://github.com/kinhluan/rules-quarkus-skillsWrote 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/kinhluan/rules-quarkus-skills/refactoring-expert)<a href="https://agentmods.dev/skills/kinhluan/rules-quarkus-skills/refactoring-expert"><img src="https://agentmods.dev/badge/skills/kinhluan/rules-quarkus-skills/refactoring-expert/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/kinhluan/rules-quarkus-skills/refactoring-expert"><img src="https://agentmods.dev/badge/skills/kinhluan/rules-quarkus-skills/refactoring-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00037 | $0.01029 |
| Opus 5 | $0.00018 | $0.00515 |
| Sonnet 5 | $0.00007 | $0.00206 |
| Haiku 4.5 | $0.00004 | $0.00103 |
Grade A, and why
refactoring-expert 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 12d 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 — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
refactoring-expert 🛠
Keyword: refactoring | Platforms: gemini,claude,codex
High-Performance Refactoring Expert Skill - A fusion of Refactoring Guru's architectural patterns and Supercent's rigorous operational discipline.
🎯 Core Mandates (Strict Constraints)
- Test-First: Mandatory to verify or write tests before any code transformation. No tests = No refactor.
- Behavior Preservation: Absolute prohibition on functional changes. Same input → same output.
- Atomic Steps: One transformation at a time (e.g., Extract Method only). Do not mix refactoring with feature additions or bug fixes.
- Boy Scout Rule: Leave the code cleaner than you found it, but stay within the requested scope.
- Quantitative Constraints:
- Methods: Max 20 lines of code.
- Parameters: Max 3 parameters per method.
- Nesting: Max 2 levels of indentation (if/for/while).
- Complexity: Proactively simplify "Arrow Code."
🛠 Refactoring & Design Domains
1. Code Smells (Diagnosis - The Guru Way)
- Bloaters: Large Classes, Long Methods, Primitive Obsession, Data Clumps.
- OO Abusers: Switch Statements (replace with Strategy/State), Refused Bequest, Temporary Fields.
- Change Preventers: Divergent Change, Shotgun Surgery.
- Dispensables: Dead Code, Duplicate Code, Speculative Generality.
2. Refactoring Techniques
- Composing Methods: Extract Method, Inline Method, Replace Temp with Query.
- Moving Features: Move Method, Move Field, Extract Class, Hide Delegate.
- Organizing Data: Replace Magic Number with Constant, Encapsulate Field, Replace Type Code with Strategy.
- Simplifying Conditionals: Decompose Conditional, Replace Nested Conditional with Guard Clauses.
3. Design Patterns (The Structural Core)
- Creational: Factory Method, Abstract Factory, Builder, Singleton.
- Structural: Adapter, Bridge, Composite, Decorator, Facade, Proxy.
- Behavioral: Command, Observer, State, Strategy, Template Method, Visitor.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 12d ago First seen · 88 lines · 37 tokens per session scan A 567db4d8e98b
refactoring-expert is a skill published in the GitHub repository kinhluan/rules-quarkus-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 1,029 once invoked, about $0.0002 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-31.
Other skills, from other repositories
src
Validates foo syntax: DECLARE, arrays, nested arrays, function calls, loops.
code-quality
Clean code principles, SOLID, and code review practices.
refactoring
Improve code structure without changing behavior using proven refactoring patterns. Use when cleaning up code, reducing duplication, improving readability, or restructuring modules.
modularity-health-evaluator
Assess code modularity health using quantitative metrics — cohesion (LCOM), coupling (afferent/efferent), abstractness, instability, distance from main sequence, and connascence taxonomy. Use this skill whenever the user asks about module quality, code coupling analysis, cohesion measurement, class decomposition…
bi-validation
BI validator driven by ValidationHook — inspects every dashboard, chart, and dataset delivered in the run, verifies config quality (chart type, metrics, dimensions, dataset wiring) and data presence via getchartdata when supported.
compact-guard-clauses
Refactor deeply nested conditions into early-return guard clauses when doing so improves readability and preserves behavior.