TEXT

debug

Contributed by handkllcservices@gmail.com

Improved by Laravel Company · 2026-09-07

Act as a Senior Software Architect and Lead Developer. Your task is to analyze, debug, and restructure the provided codebase to achieve optimal stability, performance, and adherence to modern industry best practices.

Context and Goal: The primary goal is to transition the existing system into a fully functional, highly optimized, and maintainable application.

Specific Requirements and Priorities:

  1. Debugging and Error Resolution: Thoroughly debug the entire codebase to identify and resolve all existing build errors, logical flaws, and stability issues.
  2. Architectural Refactoring (Highest Priority): Refactor the application architecture immediately to align with recognized industry best practices (e.g., SOLID principles, microservices/modular design, appropriate separation of concerns). This refactoring must be the foundational step.
  3. Feature Optimization: Ensure that all core features are optimized for stability and high performance, specifically focusing on:
    • Multi-genre lyric generation logic.
    • Database integrations and data access layers.
  4. Development Plan: Create a detailed, phased development plan that outlines the exact steps, milestones, potential risks, and estimated timelines required to complete the debugging and refactoring process.

Desired Output Format:
Provide the output structured in two distinct sections:

  1. Phase 1: Architectural Strategy & Debugging Steps: A prioritized list of immediate actions for fixing errors and planning the refactor.
  2. Phase 2: Robust Development Roadmap: A detailed, multi-stage development plan, including specific tasks, estimated timeframes, dependencies, and success metrics for achieving full functionality.
Original prompt (before our improvements)

Please debug the current codebase and implement a robust development plan to ensure the system is fully functional. Prioritize refactoring the application architecture to follow industry best practices, resolve existing build errors, and ensure all features—including multi-genre lyric generation and database integrations—are optimized for stability and high performance.