baliaga-repo/vibe-tools/modular-refactor

Claude Code and agent skill by baliaga-repo/vibe-tools

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Step-by-step procedure and strategies for incremental Python refactoring to break monolithic scripts into clean, modular, token-efficient, and backwards-compatible (zero-regression) architectures. Activate when handling long files (>300 lines) or upon refactoring requests.

Install

npx vskill@latest install baliaga-repo/vibe-tools/modular-refactor

SKILL.md

The same SKILL.md was published earlier as baliaga-repo/vibe-tools/modular-refactor.

Skill: Modular Refactor

Decompose monolithic Python scripts into clean, modular, and token-efficient architectures.

Core Principles

  1. Zero Regression: Preserve original entry points (batch scripts, CLI, Resolve shortcuts).
  2. Facade Pattern: Re-export relocated functions/classes in the legacy file (from module import symbol) for backwards compatibility.
  3. Incremental: Migrate one boundary/domain at a time.

Workflow

  1. Dependency Mapping: Check call graphs using graphify query "function dependencies in <file>". Identify constants, pure utilities, side-effects, and entry points.
  2. Package Scaffolding: Create package folder with __init__.py and dedicated submodules (config.py, bridge.py, processor.py, handlers.py).
  3. Extract & Facade: Move logic to submodules, add Indonesian docstrings/type hints, and re-export symbols in legacy file.
  4. Graphify Refresh: Run graphify extract . --code-only and notify user.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

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/baliaga-repo/vibe-tools/modular-refactor/badge)](https://verified-skill.com/skills/baliaga-repo/vibe-tools/modular-refactor)

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