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/refactor

SKILL.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

bash
bin/simple duplicate-check <dir> # Semantic duplication by default
bin/simple duplicate-check <dir> --semantic-threshold 0.92 # Tighten semantic matching
bin/simple duplicate-check <dir> --format json # Machine-readable semantic report

Fix: extract shared helpers, use parameter objects for repeated param lists (3+).

Phase 3: Coupling Measurement

MetricTarget
CBO (coupled classes)< 8
Fan-out (dependencies)< 10
SCC cycles0
RFC (methods + called)< 50
LCOM (cohesion)Close to 0

Layer violations: deps must flow downward through src/compiler/NN.name/ layers.

bash
bin/simple query workspace-symbols --query <symbol> # Find symbols
bin/simple query references <file> <line> # Trace dependencies

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

bash
bin/simple test && bin/simple build lint && bin/simple build check

Run after EACH phase. NEVER skip failing tests. Fix refactoring, not tests.

Workflow

  1. Scan: duplication checker, file sizes, coupling metrics
  2. Plan: list issues, prioritize by impact
  3. Confirm: show plan to user, get approval
  4. Fix: one file at a time
  5. Verify: tests after each change
  6. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ormastes/simple/refactor/badge)](https://verified-skill.com/skills/ormastes/simple/refactor)

Something wrong with this skill or its page? Tell us.