スキル一覧に戻る
Silviase

refactoring-01-project-structure

by Silviase

0🍴 0📅 2026年1月15日
GitHubで見るManusで実行

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__.py files 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.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です