Inspeksi codebase yang tidak familiar
Gunakan IBM Bob untuk dengan cepat memahami aplikasi yang tidak familiar - tujuan, struktur proyek, arsitektur, tech stack, komponen utama, cakupan test, dan model deployment - tanpa mengandalkan dokumentasi lama atau menunggu rekan tim.
Produktif di codebase yang tidak familiar biasanya berarti berjam-jam membaca kode, mencari dokumentasi, dan meminta konteks dari rekan tim. Dalam tutorial ini, kamu menggunakan Bob dalam Ask mode untuk secara sistematis menginterogasi codebase Galaxium Travels dan mengekstrak gambaran lengkap aplikasi. Kamu kemudian beralih ke Agent mode untuk menyimpan semua yang ditemukan Bob ke dalam referensi Markdown persisten.
Prasyarat
Setup workspace-mu
Clone repository Galaxium Travels
git clone https://github.com/IBM/galaxium-travels.gitBuka proyek contoh
Di Bob IDE, buka folder galaxium-travels.
Inisialisasi konteks proyek
Jalankan perintah /init agar Bob membaca proyek dan menghasilkan file konteks AGENTS.md.
/initBeralih ke Ask mode
Pilih Ask di pemilih mode di bawah field input chat. Ask mode bersifat read-only sepenuhnya.
Pahami tujuan aplikasi dan struktur proyek
What is the purpose of this application? Describe the project structure,
the high-level architecture, and the main responsibilities of each top-level
directory.Analisis tech stack
Analyze the tech stack for the entire application. For each service, list the
programming language, runtime version requirements, framework, key libraries,
database, and build/test tooling.Petakan komponen utama
Identify the key components of this application and explain how they interact.
Reference @booking_system_frontend/src/services,
@booking_system_backend/server.py,
@booking_system_backend/services,
@booking_system_backend/models.py,
and @booking_system_inventory_hold_service/src/main/java/com/galaxium/holdservice.
Describe the component responsibilities, the data flow for the booking
lifecycle, and any cross-service contracts I need to know before modifying
the codebase.Nilai cakupan unit test
Analyze the unit test suites across all three services. Reference
@booking_system_backend/tests,
@booking_system_inventory_hold_service/src/test,
and @booking_system_frontend/src.
For each service, describe what is tested, which testing framework is used,
what the test structure looks like, and identify any obvious gaps where
critical logic appears to be untested.Simpan temuanmu ke repository
Beralih ke Agent mode dan minta Bob mengkonsolidasikan semua yang ditemukannya ke dalam satu file Markdown.
Create a file called docs/ONBOARDING.md.
Create one section for each of these topics:
1. Application overview
2. Tech stack analysis
3. Key components and their interactions
4. Unit test coverage analysis
5. Deployment model analysis
Populate each section with everything you discovered in this session.
Use clear headings, Mermaid diagrams, and tables where appropriate.Langkah selanjutnya
- Ikuti tutorial Plan and implement complex features.
- Baca Bob best practices.
Standarisasi perilaku Bob
Standarisasi perilaku Bob di seluruh tim menggunakan file rules level proyek yang memberitahu Bob untuk mendokumentasikan kodenya dan mengingat tindakan sebelumnya.
Hasilkan diagram arsitektur
Gunakan IBM Bob untuk menganalisis codebase Galaxium Travels dan menghasilkan diagram UML class, sequence diagram, dan use case diagram Mermaid.