code-refactoring-refactor-clean

code-refactoring-refactor-clean is a skill for Claude Code, Codex from Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI. It costs 50 tokens per session (408 once invoked), scanned A, original, no licence file.

A skill for refactoring code, meaning changing its structure without changing what it is meant to do.

In plain words
What is it for?
Useful for analyzing code and applying clean-code practices, SOLID principles, and design patterns.
Why use it?
It helps improve code quality, maintainability, and performance through cleaner designs and common design principles.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Useful for analyzing code and applying clean-code practices, SOLID principles, and design patterns.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dokhacgiakhoa/agent-skills-4-vibe-coding-cli/code-refactoring-refactor-clean
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 Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI --skill code-refactoring-refactor-clean
Clone the repo
git clone --depth 1 https://github.com/Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI

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 code-refactoring-refactor-clean

README.md
[![agentmods](https://agentmods.dev/badge/skills/dokhacgiakhoa/agent-skills-4-vibe-coding-cli/code-refactoring-refactor-clean/github.svg)](https://agentmods.dev/skills/dokhacgiakhoa/agent-skills-4-vibe-coding-cli/code-refactoring-refactor-clean)
Your own site
<a href="https://agentmods.dev/skills/dokhacgiakhoa/agent-skills-4-vibe-coding-cli/code-refactoring-refactor-clean"><img src="https://agentmods.dev/badge/skills/dokhacgiakhoa/agent-skills-4-vibe-coding-cli/code-refactoring-refactor-clean/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 code-refactoring-refactor-clean

Your own site · 80×15
<a href="https://agentmods.dev/skills/dokhacgiakhoa/agent-skills-4-vibe-coding-cli/code-refactoring-refactor-clean"><img src="https://agentmods.dev/badge/skills/dokhacgiakhoa/agent-skills-4-vibe-coding-cli/code-refactoring-refactor-clean.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 408 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.
Origin unknown 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.00050 $0.00408
Opus 5 $0.00025 $0.00204
Sonnet 5 $0.00010 $0.00082
Haiku 4.5 $0.00005 $0.00041

Measured 8d ago against content hash 042560bf8297, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

code-refactoring-refactor-clean 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 8d 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.

.agent/skills/code-refactoring-refactor-clean/SKILL.md · 58 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

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.

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. 8d ago First seen · 58 lines · 50 tokens per session scan A 042560bf8297

Subscribe to this mod's changes

code-refactoring-refactor-clean is a skill published in the GitHub repository Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI (510 stars, last pushed 3mo ago), with no licence file. It adds 50 tokens to every session and 408 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

printing-press-polish

Polish a generated CLI to pass verification and become publish-ready. Runs diagnostics (dogfood, verify, scorecard, go vet, gosec), automatically fixes all issues (verify failures, static-analysis findings, dead code, descriptions, README, MCP tool quality), reports the before/after delta, and offers to publish. Use…

mvanhorn/cli-printing-press · 125 tokens

printing-press-output-review

Internal sub-skill: agentic review of a printed CLI's sampled command output for plausibility issues that rule-based checks can't encode (substring-match relevance, format bugs, silent source drops, ranking failures). Invoked via the Skill tool by the main printing-press skill at Phase 4.85 and printing-press-polish…

mvanhorn/cli-printing-press · 102 tokens

eslint-fix

A project-aware assistant for finding and fixing ESLint errors, warnings, and configuration compatibility problems. ESLint is a tool that checks JavaScript and TypeScript code for style and common mistakes.

laolaoshiren/claude-code-skills-zh · 79 tokens

fix

Dispatch fix subagent for FIX-FIRST gaps from review, re-review, then diagnose unresolved failures after 2 loops.

automagik-dev/genie · 25 tokens

dtctl

Investigate incidents, debug performance issues, analyze logs, and manage observability resources in Dynatrace using the dtctl CLI. Use this skill whenever the user asks about error rates, latency spikes, service health, crash-looping pods, web vitals, SLO status, open problems, root cause analysis, log patterns…

dynatrace-oss/dtctl · 114 tokens

debug

Systematic 4-phase debugging with escalation protocol. Use when saying "debug", "investigate bug", "find root cause", "why is this failing", or "fix this bug".

anton-abyzov/specweave · 38 tokens