ワンクリックで
refactor-modularization
Comprehensive workflow for breaking down large monolith files into a clean, maintainable, and modular architecture.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Comprehensive workflow for breaking down large monolith files into a clean, maintainable, and modular architecture.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Technical workflow for improving the stability, performance, and accuracy of process management and memory operations.
Workflow for upgrading the CustomTkinter interface to a premium, Windows 11-style aesthetic with rich animations and responsive layouts.
| name | Refactor & Modularization |
| description | Comprehensive workflow for breaking down large monolith files into a clean, maintainable, and modular architecture. |
This skill provides a systematic approach to decomposing monolithic Python applications (like main.py) into a structured package with clearly defined responsibilities.
Before moving any code, analyze the existing monolith:
Create the standard package structure:
src/
cryotask/
__init__.py
core/ # System-level operations (Suspend/Trim)
ui/ # UI Components and Main Window
models/ # Data structures (Presets, Process Info)
utils/ # Helpers
persistence/ # JSON storage logic
Extract code in the following order to minimize breakage:
win32api and psutil calls into a ProcessManager class..json loading/saving logic.App class into smaller frame or widget classes.main.py (or src/cryotask/cli.py) as the entry point.assets/ are still correctly resolved via sys._MEIPASS (for PyInstaller compatibility).build.py and .spec files are updated to reflect the new structure.context or state object.Created by Antigravity - Optimized for CryoTask Upgrade.