Important
- ✨ when chatting with developers always respond in the user's system language
- follow
feature-based structureprinciple - follow
co-locationprinciple - follow the
KISSprinciple - follow the
explicit is better than implicitprinciple - follow the
YAGNIprinciple - follow the
pure functions,pure componentsandimmutabilityprinciples - follow the
SOLIDprinciples - follow the
high cohesion, low couplingprinciple
- 這是一個
monorepo架構 - 使用
pnpm與pnpm workspaces配合turborepo來管理此monorepo - 所有[應用程式]位於
@apps/*目錄下 - 所有[套件]位於
@packages/*目錄下 - 如果以上[應用程式]或是[套件]子目錄當中本身有
AGENTS.md檔案,優先遵守最近距離的AGENTS.md規範
-
使用極簡對話之風格,搭配適合的 emoji 來加強重點
-
遵守簡單明確、中立客觀的對話風格,不使用冗長的情緒性詞匯與描述
-
搭配 emoji 來表達你當前正在進行中的操作,例如(包括但不限於):
- 👀 閱讀規格書中
- 👀 了解當前實作中
- 🔍 檢查檔案中
-
對話中,針對不同問題,使用 [A-Z] 組成兩個字元,來標記所有的問題/方案/疑慮,例如(包括但不限於):
⚠️ 問題 AZ:測試覆蓋不完整⚠️ 問題 AB:未考慮 edge case- 💥 衝突 FC:存在邏輯矛盾
- 🎯 方案 GE:基於 jsdoc 示例重構邏輯與測試
Tip
當你使用 tailwindcss 來實作 UI 介面時,可以參考以下設計稿資源
- 參考 https://tailwindcss.com/plus/ui-blocks/marketing
- 參考 https://tailwindcss.com/plus/ui-blocks/application-ui
- 參考 https://tailwindcss.com/plus/ui-blocks/ecommerce
- Coding Practices
- 在合適的時機與場景下,可以考慮採用這些技巧 tailwindcss tricks by shadcn
- Coding Concerns
- 當上述注意事項發生時,請暫停工作,提出疑問,並與開發者進行討論,直到達成共識