⚡ Copied to clipboard!
⚡ EggDiva Playbook
🏠 Home

EggDiva IDE Operational Playbook EggDiva IDE 實戰操作指南與系統手冊 EggDiva IDE 实战操作指南与系统手册

A complete, step-by-step engineering tutorial for mastering multi-file AI stream compilation, compositional inclusions (:-:), non-destructive versioning, and multi-directory orchestration.

本手冊提供完整步驟教學,協助您掌握 AI 多檔案串流編譯、無縫模組嵌入 (:-:)、無損版本疊代去重,以及多視窗跨目錄平行開發流程。

本手册提供完整步骤教学,协助您掌握 AI 多文件串流编译、无缝模块嵌入 (:-:)、无损版本迭代去重,以及多窗口跨目录平行开发流程。

Purpose 1: Rapid Multi-File AI "Vibe Coding" Bootstrap 用途一:AI「Vibe Coding」多檔案架構極速孵化 用途一:AI“Vibe Coding”多文件架构极速孵化

WORKFLOW #01
When to use: You want an AI assistant (Gemini, ChatGPT, Claude) to generate an entire multi-file web application (e.g., database config, API endpoint, and frontend UI) in a single response and deploy all files to disk in one click. 適用情境:當您希望 AI 助手在單次回覆中同時生成多個檔案(例如:設定檔、API 與前端介面),並透過一次點擊瞬間在伺服器端展開所有實體檔案與版本母檔。 适用情境:当您希望 AI 助手在单次回复中同时生成多个文件(例如:配置文件、API 与前端界面),并通过一次点击瞬间在服务器端展开所有实体文件与版本母档。
Starter Multi-File Flowgen Stream
app_config.php:=:
<?php
$appTitle = "Nexus AI Portal";
$version  = "1.0.0";
?>
:==:






app_index.php:=:
<?php
require_once 'app_config.php';
echo "<h1>{$appTitle} (v{$version})</h1>";
?>
:==:






app_index_20261030.php:=:
:==:

Purpose 2: Compositional Inclusions (:-:) for Single-File Compilation 用途二:使用嵌入標記 (:-:) 進行無縫模組組裝 用途二:使用嵌入标记 (:-:) 进行无缝模块组装

WORKFLOW #02
When to use: You want to write clean, modular code blocks (like a shared header, database connection, or utility library) and have EggDiva physically inline them into target files at compile-time (up to 5 levels deep). 適用情境:在單一扁平目錄中開發時,將共用設定、資料庫連線或 UI 元件拆分為獨立區塊,並在編譯時由 EggDiva 自動將原始碼實體嵌入目標檔案中(支援最多 5 層巢狀嵌入)。 适用情境:在单一扁平目录中开发时,将共用设定、数据库连线或 UI 元件拆分为独立区块,并在编译时由 EggDiva 自动将源代码实体嵌入目标文件中(支持最多 5 层嵌套嵌入)。
Compositional Inclusion Example
svc_msg_config.php:=:
// Common configuration parameters
$channel = "AMDT_SECURE_BUS";
:==:






svc_msg_api.php:=:
<?php
:-:svc_msg_config.php
echo "Messaging system initialized on: " . $channel;
?>
:==:






svc_msg_api_20261030.php:=:
:==:

Purpose 3: Non-Destructive "Vibe Iteration" & Stream Deduplication 用途三:無損版本疊代測試與一鍵串流去重 用途三:无损版本迭代测试与一键串流去重

WORKFLOW #03
When to use: You have a working file (`api.php` V1) in your stream, and you ask the AI to generate an experimental V2 of `api.php`. Instead of deleting V1, you append V2 near the bottom to test it safely. 適用情境:當您已有穩定運作的舊版區塊(V1),想測試 AI 新寫好的新版區塊(V2)時,無需刪除舊版,直接將 V2 附加在母檔上方進行覆蓋測試。 适用情境:当您已有稳定运作的旧版区块(V1),想测试 AI 新写好的新版区块(V2)时,无需删除旧版,直接将 V2 附加在母档上方进行覆盖测试。

Purpose 4: Surgical Block Inspection, Live Modal Editing & Hot-Injection 用途四:區塊精準檢索、彈窗內即時編輯與熱注入 用途四:区块精准检索、弹窗内即时编辑与热注入

WORKFLOW #04
When to use: You are working with a large `__filemother` or searching across multiple streams via Partial Search, and you want to quickly tweak a single file block and inject it right above your active motherfile checkpoint. 適用情境:在大型專案或透過左側「部分關鍵字搜尋 (Partial Search)」找到特定區塊後,直接在彈窗中修改代碼,並一鍵注入主編輯區最下方的母檔區塊正上方。 适用情境:在大型项目或通过左侧“部分关键字搜索 (Partial Search)”找到特定区块后,直接在弹窗中修改代码,并一键注入主编辑区最下方的母档区块正上方。

Purpose 5: Rearranging File Sequence & Physical Backup Rollback 用途五:調整檔案排列順序與實體備份安全還原 用途五:调整文件排列顺序与实体备份安全还原

WORKFLOW #05
When to use: You need to reorder blocks so that an included file (`:-:`) sits above its caller, or you need to undo a compilation by restoring the physical pre-overwrite backup copy of your `__filemother`. 適用情境:需要調整串流中各檔案的前後順序(確保被 `:-:` 嵌入的檔案位於上方),或在編譯後發現錯誤、需要將被覆蓋前的母檔備份還原至編輯器。 适用情境:需要调整串流中各文件的前后顺序(确保被 `:-:` 嵌入的文件位于上方),或在编译后发现错误、需要将被覆盖前的母档备份还原至编辑器。

Purpose 6: Stateless Multi-Tab Parallel Engineering Across Folders 用途六:無狀態多視窗、跨資料夾平行專案開發 用途六:无状态多窗口、跨文件夹平行项目开发

WORKFLOW #06
When to use: You are building multiple microservices or separate projects across different server directories (`/var/www/proj_a`, `/var/www/proj_b`) in different browser tabs at the exact same time. 適用情境:同時開啟多個瀏覽器分頁,在不同資料夾(甚至 EggDiva 家目錄以外的外部系統路徑)平行開發多個微服務或專案。 适用情境:同时打开多个浏览器标签页,在不同文件夹(甚至 EggDiva 主目录以外的外部系统路径)平行开发多个微服务或项目。

Quick Reference: Feature & Purpose Matrix EggDiva 功能與開發目的速查矩陣 EggDiva 功能与开发目的速查矩阵

CHEAT SHEET
Tool / Button Location Primary Engineering Purpose
⚡ Compile Architecture Command Deck / Ctrl+Enter Parses stream, expands :-: inclusions, writes physical files, saves .eggdiva_bak_* backup, and updates __filemother.
[+ New Block (Above Motherfile)] Quick Insert Bar Splices a new Flowgen block template directly above the final motherfile checkpoint block.
✨ Deduplicate Stream Command Deck Merges duplicate file blocks (keeping first-occurrence position and last-occurrence code) directly into the main editor.
🔀 Rearrange Order Command Deck Opens interactive modal to move file blocks Up/Down/Top/Bottom before compiling.
⚡ Inject Edited Block Block Inspector Modal Lights up when you edit code inside the Inspector popup; injects the modified block right above the motherfile.
⎌ Reverse (Undo Changes) Post-Compile Banner Loads the physical pre-overwrite backup copy of the __filemother into the editor for safe review and re-compilation.
Workspace Files Middle Sidebar Opens Directory Viewer with multi-sort (Name, Type, Size, Time), raw file inspection, and password-protected batch delete.