--- name: source_discovery phase: source_discover description: Guidance for discovering, auditing, and documenting the existing pre-emptive source environment before target migration. --- # Phase 0a: Existing Source Environment Discovery Skill When auditing and discovering an existing pre-emptive source environment: 1. **Assess As-Is Architecture**: Analyze existing workloads, on-premises applications, legacy infrastructure, or existing cloud provider setups. 2. **Identify Existing Components**: - Monolithic / legacy application services & ingress endpoints. - Self-hosted database engines (e.g. MySQL, PostgreSQL, Oracle) or legacy file shares. - Traditional messaging queues (e.g. RabbitMQ, ActiveMQ). - Network topology, firewall rules, and authentication mechanisms. 3. **Capture Source Metrics & Pain Points**: - Current scale, capacity constraints, downtime risks, and operational bottlenecks. - Security vulnerabilities, compliance gaps, and maintenance costs. 4. **Document Source Architecture**: - Produce a clear `docs/source-architecture.md` baseline documenting the "Before" state. - Render a Mermaid diagram representing the existing source topology (`source-architecture.mmd`).