什麼是 spa-routes?
SPA路線及特色結構。在 src/routes 中新增或修改 SPA 路由、定義新路由段或將路由邏輯移至 src/features 時使用。介紹如何保持路由精簡以及如何在路由和功能之間劃分檔案。 來源:lobehub/lobehub。
SPA路線及特色結構。在 src/routes 中新增或修改 SPA 路由、定義新路由段或將路由邏輯移至 src/features 時使用。介紹如何保持路由精簡以及如何在路由和功能之間劃分檔案。
透過命令列快速安裝 spa-routes AI 技能到你的開發環境
來源:lobehub/lobehub。
This project uses a roots vs features split: src/routes/ only holds page segments; business logic and UI live in src/features/ by domain.
| layout/index.tsx or layout.tsx | Layout for this segment: wrap with , optional shell (e.g. sidebar + main). Should be thin: prefer re-exporting or composing from @/features/. | | index.tsx or page.tsx | Page entry for this segment. Only import from features and render; no business logic. |
| [param]/index.tsx (e.g. [id], [cronId]) | Dynamic segment page. Same rule: thin, delegate to features. |
SPA路線及特色結構。在 src/routes 中新增或修改 SPA 路由、定義新路由段或將路由邏輯移至 src/features 時使用。介紹如何保持路由精簡以及如何在路由和功能之間劃分檔案。 來源:lobehub/lobehub。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/lobehub/lobehub --skill spa-routesSPA路線及特色結構。在 src/routes 中新增或修改 SPA 路由、定義新路由段或將路由邏輯移至 src/features 時使用。介紹如何保持路由精簡以及如何在路由和功能之間劃分檔案。 來源:lobehub/lobehub。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/lobehub/lobehub --skill spa-routes 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/lobehub/lobehub