baliaga-repo/vibe-tools/modular-refactor
Claude Code and agent skill by baliaga-repo/vibe-tools
Trust tier 2
- community
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-refactorSKILL.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
- Zero Regression: Preserve original entry points (batch scripts, CLI, Resolve shortcuts).
- Facade Pattern: Re-export relocated functions/classes in the legacy file (
from module import symbol) for backwards compatibility. - Incremental: Migrate one boundary/domain at a time.
Workflow
- Dependency Mapping: Check call graphs using
graphify query "function dependencies in <file>". Identify constants, pure utilities, side-effects, and entry points. - Package Scaffolding: Create package folder with
__init__.pyand dedicated submodules (config.py,bridge.py,processor.py,handlers.py). - Extract & Facade: Move logic to submodules, add Indonesian docstrings/type hints, and re-export symbols in legacy file.
- Graphify Refresh: Run
graphify extract . --code-onlyand 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
- SKILL.md in the repositoryCheckingskills/modular-refactor/SKILL.md
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
[](https://verified-skill.com/skills/baliaga-repo/vibe-tools/modular-refactor)