Skip to content

refactor: reorganize automation directory structure#3164

Merged
MarkusNeusinger merged 2 commits intomainfrom
claude/cleanup-repo-structure-SAvJ2
Jan 3, 2026
Merged

refactor: reorganize automation directory structure#3164
MarkusNeusinger merged 2 commits intomainfrom
claude/cleanup-repo-structure-SAvJ2

Conversation

@MarkusNeusinger
Copy link
Copy Markdown
Owner

Reorganize directory structure to better separate concerns:

  • automation/ → Only workflow-specific scripts used by GitHub Actions
  • scripts/ → One-time migrations and manual utilities
  • core/generators/ → Reusable business logic components

Changes:

  • Move one-time migration scripts to scripts/:

    • backfill_review_metadata.py
    • fix_library_versions.py
    • migrate_metadata_format.py
    • migrate_to_new_structure.py
    • upgrade_specs.py
    • upgrade_specs_ai.py
  • Move reusable generators to core/generators/:

    • plot_generator.py (from automation/generators/)
  • Update imports in tests and documentation

  • Update repository.md with new directory structure

  • Add sections explaining automation/ vs scripts/ principles

All tests pass successfully.

claude added 2 commits January 3, 2026 12:32
Reorganize directory structure to better separate concerns:
- automation/ → Only workflow-specific scripts used by GitHub Actions
- scripts/ → One-time migrations and manual utilities
- core/generators/ → Reusable business logic components

Changes:
- Move one-time migration scripts to scripts/:
  - backfill_review_metadata.py
  - fix_library_versions.py
  - migrate_metadata_format.py
  - migrate_to_new_structure.py
  - upgrade_specs.py
  - upgrade_specs_ai.py

- Move reusable generators to core/generators/:
  - plot_generator.py (from automation/generators/)

- Update imports in tests and documentation
- Update repository.md with new directory structure
- Add sections explaining automation/ vs scripts/ principles

All tests pass successfully.
Update internal documentation in migration scripts to reflect
new paths in scripts/ directory instead of automation/scripts/.
Copilot AI review requested due to automatic review settings January 3, 2026 12:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reorganizes the repository's directory structure to better separate concerns between workflow automation, one-time migration scripts, and reusable business logic. The primary goal is to clarify the purpose of different script types and improve maintainability.

Key Changes:

  • Move reusable plot generation utilities from automation/generators/ to core/generators/
  • Move one-time migration scripts to a new scripts/ directory
  • Update documentation to explain the principles behind automation/ vs scripts/ separation

Reviewed changes

Copilot reviewed 6 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/unit/core/generators/test_plot_generator.py Updated import path to reflect plot_generator move to core.generators
scripts/upgrade_specs_ai.py New file: AI-powered spec upgrader using Claude (moved from automation)
scripts/upgrade_specs.py New file: Structural spec version upgrader (moved from automation)
scripts/migrate_to_new_structure.py Updated usage documentation path from automation/scripts to scripts/
scripts/migrate_metadata_format.py Updated usage documentation path from automation/scripts to scripts/
scripts/fix_library_versions.py New file: Library version synchronization script (moved from automation)
scripts/backfill_review_metadata.py Updated usage documentation paths from automation/scripts to scripts/
docs/concepts/claude-skill-plot-generation.md Updated example import path from automation.generators to core.generators
docs/architecture/repository.md Added detailed documentation of new directory structure and separation principles
core/generators/plot_generator.py New file: Reusable plot code generator moved from automation (now in core)
core/generators/init.py New file: Package initialization for core.generators module

@MarkusNeusinger MarkusNeusinger merged commit 4312966 into main Jan 3, 2026
12 checks passed
@MarkusNeusinger MarkusNeusinger deleted the claude/cleanup-repo-structure-SAvJ2 branch January 3, 2026 12:41
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants