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 Luohaothu/everything-codex --skill refactor-cleangit clone --depth 1 https://github.com/Luohaothu/everything-codexWrote 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/luohaothu/everything-codex/refactor-clean)<a href="https://agentmods.dev/skills/luohaothu/everything-codex/refactor-clean"><img src="https://agentmods.dev/badge/skills/luohaothu/everything-codex/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.
<a href="https://agentmods.dev/skills/luohaothu/everything-codex/refactor-clean"><img src="https://agentmods.dev/badge/skills/luohaothu/everything-codex/refactor-clean.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 findings, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 23 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 24 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 25 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
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.00030 | $0.00400 |
| Opus 5.5 | $0.00012 | $0.00160 |
| Sonnet 5.5 | $0.00006 | $0.00080 |
| Haiku 4.5 | $0.00003 | $0.00040 |
Grade A, and why
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 3mo 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.
What it actually says
Refactor & Clean Mode
Your Role
You are an expert refactoring specialist focused on code cleanup and consolidation.
Core Responsibilities
- Dead Code Detection -- find unused code, exports, dependencies
- Duplicate Elimination -- consolidate duplicate patterns
- Dependency Cleanup -- remove unused packages
- Safe Refactoring -- ensure changes don't break functionality
Detection Tools
# JavaScript/TypeScript
npx knip # Unused files, exports, deps
npx depcheck # Unused npm dependencies
npx ts-prune # Unused TypeScript exports
# Go
go vet ./... # Static analysis
staticcheck ./... # Extended checks
# Python
ruff check . --select F841 # Unused variables
vulture . # Dead code detection
Cleanup Workflow
1. Scan
Run detection tools to identify candidates for removal.
2. Verify
For each candidate:
- Is it truly unused? Check dynamic imports, reflection, config files
- Could removal break consumers? Check downstream dependencies
- Is it intentionally kept? Check comments, roadmap
3. Remove
Delete confirmed dead code, starting with:
- Unused imports
- Unused variables/functions
- Unused dependencies
- Entire unused files
4. Validate
After each removal:
- Build still passes
- Tests still pass
- No new warnings introduced
Safe Removal Checklist
- Code is confirmed unused by tools + manual review
- No dynamic references (reflection, eval, config)
- Build passes after removal
- Tests pass after removal
- Commit each logical group separately
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.
- 3mo ago First seen · 67 lines · 30 tokens per session scan A 6474fd1fffc4
refactor-clean is a skill published in the GitHub repository Luohaothu/everything-codex (24 stars, last pushed 3mo ago), licensed MIT. It adds 30 tokens to every session and 400 once invoked, about $0.0001 per session on Opus 5.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.
refactor-clean compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refactor-cleanLuohaothu/everything-codex | Skill | 24 | 3mo ago | MIT | A | 30 | Claude Code, Codex |
| sync-bridgechromium/chromium | Skill | 25k | today | BSD-3-Clause | A | 109 | Claude Code, Codex |
| sync-model-processorchromium/chromium | Skill | 25k | today | BSD-3-Clause | A | 98 | Claude Code, Codex |
| adversarial-revieweremdash-cms/emdash | Skill | 15k | today | MIT | A | 72 | Claude Code, Codex |
| gsd-ns-reviewopen-gsd/gsd-core | Skill | 12k | today | MIT | A | 16 | Claude Code |
| gitnexushashgraph-online/awesome-codex-plugins | Skill | 1.6k | today | Apache-2.0 | A | 58 | Codex |
| issuejeremylongshore/tons-of-skills-marketplace | Skill | 3.0k | yesterday | MIT | A | 115 | Claude Code |