← Back to list

refactoring-01-project-structure
by Silviase
⭐ 0🍴 0📅 Jan 15, 2026
SKILL.md
name: refactoring-01-project-structure description: Use when refactoring Python research code to improve project structure, modularity, and entrypoints.
Refactoring 01: Project Structure
Goal
Create a clear, modular structure where notebooks and scripts are thin and core logic lives in importable modules.
Sequence
- Order: 01
- Previous: refactoring-00-preflight-assessment
- Next: refactoring-02-dependencies-env
Workflow
- Identify entrypoints (notebooks, scripts, CLI) and the core logic they call.
- Success: Entrypoints and their core modules are mapped.
- Move core logic into a
src/<package>/module; keep entrypoints as orchestration only.- Success: Entrypoints import module functions and contain minimal glue code.
- Standardize imports and add
__init__.pyfiles for clean module boundaries.- Success: Imports resolve without relative import hacks.
- Separate concerns: data loading, preprocessing, modeling, evaluation, and visualization modules.
- Success: Modules align to concerns with clear boundaries.
- Keep notebooks, but replace copied logic with imports from the module layer.
- Success: Notebooks run using imports, not duplicated logic.
Guardrails
- Preserve behavior; avoid algorithm changes unless requested.
- Keep diffs small and mechanical when moving code.
- Do not introduce new dependencies unless needed for the refactor.
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon