如何快速熟悉陌生的程式碼庫
何時使用: 第一天進入從未接觸過的程式庫;希望在進行修改前先有一份全覽地圖。
步驟
-
建立知識庫Use nexus-skills to scan this repo and build .nexus-map/.✓ 已複製→ 顯示進度輸出並產生知識庫檔案
-
取得整體概覽Using .nexus-map, tell me: entry points, top 10 most-imported modules, and any orphaned files.✓ 已複製→ 對應實際檔案的程式庫概覽
-
深入特定子系統Show me the payments subsystem — files, dependencies, external calls.✓ 已複製→ 聚焦的子系統檢視
結果: 在一小時內建立對程式庫的實際理解。
注意事項
- 大型合併後知識庫可能過時 — 執行 nexus update;支援增量更新,速度快