Script Directory Consolidation Plan

Current State Analysis

Existing Script Directories:

Consolidation Strategy

1. Standardize Directory Names

2. Organize by Functional Categories

it-journey/scripts/ Structure:

scripts/
├── README.md                    # Main documentation
├── core/                        # Core utilities
│   ├── version-manager.sh       # Unified version management
│   ├── environment-setup.sh     # Environment configuration
│   └── git-hooks.sh            # Git automation
├── development/                 # Development tools
│   ├── build/
│   │   ├── create-dockerfile.sh
│   │   ├── create-gemfile.sh
│   │   └── build-site.sh
│   ├── content/
│   │   ├── jupyter-to-markdown.sh
│   │   └── append-feature.py
│   └── testing/
│       └── cibuild
├── deployment/                  # Deployment automation
│   └── update-settings.sh
└── legacy/                     # Deprecated scripts
    ├── zer0.sh
    ├── zer0.py
    └── zer0_md_to_sh.py

3. Eliminate Redundancies

Version Management Consolidation:

Setup Script Consolidation:

4. Refactoring Guidelines

Follow IT-Journey Principles:

Script Standards:

Implementation Plan

Phase 1: Directory Restructuring

  1. Create new organized directory structure
  2. Move existing scripts to appropriate categories
  3. Update all path references

Phase 2: Script Consolidation

  1. Merge redundant version management scripts
  2. Consolidate setup and environment scripts
  3. Refactor common utility functions

Phase 3: Enhancement

  1. Add standardized headers to all scripts
  2. Implement consistent error handling
  3. Update documentation and READMEs

Phase 4: Integration

  1. Update CI/CD workflows to use new paths
  2. Test all script functionality
  3. Archive legacy scripts safely

Benefits