ormastes/simple/refactor
Claude Code and agent skill by ormastes/simple
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install ormastes/simple/refactorSKILL.md
The same SKILL.md was published earlier as ormastes/simple/refactor.
Refactor Skill
Phase 1: File Size & Structure
- Source files: 800 lines max. Split oversized files with meaningful names (NOT
xx_1.spl) - Update all imports after splitting. Confirm each deletion/move with user.
- Intentional exceptions:
#![allow(large_file)] # Intentional: <reason>
Phase 2: Duplication Removal
Fix: extract shared helpers, use parameter objects for repeated param lists (3+).
Phase 3: Coupling Measurement
| Metric | Target | |
|---|---|---|
| CBO (coupled classes) | < 8 | |
| Fan-out (dependencies) | < 10 | |
| SCC cycles | 0 | |
| RFC (methods + called) | < 50 | |
| LCOM (cohesion) | Close to 0 |
Layer violations: deps must flow downward through src/compiler/NN.name/ layers.
Phase 4: Big-O Analysis
For each public function, identify complexity. Flag O(n^2)+:
- Nested loops over same collection -> hash lookup
- String concat in loops -> builder
arr + [item]in loops ->.push()- Re-reading files/recomputing in loops -> cache/hoist
Phase 5: Test Verification
Run after EACH phase. NEVER skip failing tests. Fix refactoring, not tests.
Workflow
- Scan: duplication checker, file sizes, coupling metrics
- Plan: list issues, prioritize by impact
- Confirm: show plan to user, get approval
- Fix: one file at a time
- Verify: tests after each change
- Report: before/after metrics
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexamples/05_stdlib/spipe/doc/00_llm_process/skill_command/skills/pipe/impl/refactor/skill.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ormastes/simple/refactor)