一键导入
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 页面并帮你完成安装。
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.
基于 SOC 职业分类
| 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.