query-sub-agent
Installation
SKILL.md
Query Sub-agent Skill
觸發時機
- analyze-frame 判定 frame_type=InformationDisplayFrame 時
- 需要建立/修改 Query Side (讀模型) 的查詢、投影時
- saga-orchestrator 分派 Query 類型任務時
核心任務
- 讀取規格目錄結構(frame.yaml, machine/)
- 設計/驗證 CQRS Query Side 的查詢處理器與讀模型
- 產出程式碼骨架或審查既有實作
- 確保查詢效能與快取策略
規格目錄讀取
Related skills
More from knowlet/skills
multi-model-reviewer
協調多個 AI 模型(ChatGPT、Gemini、Codex、QWEN、Claude)進行三角驗證,確保「Specification == Program == Test」一致性。過濾假警報後輸出報告,大幅減少人工介入時間。
13enforce-contract
單元測試與代碼提交前觸發。掃描並驗證方法的 pre-conditions、post-conditions 與 invariants,透過契約式設計減少 AI 幻覺。
10spec-compliance-validator
驗證規格檔案的完整性與一致性,確保所有必要的規格元素都已定義且符合標準格式。
10arch-guard
進行代碼重構或新增模組時觸發。確保程式碼符合 Clean Architecture + DDD + CQRS 的層次關係,防止架構腐化。
9code-reviewer
Automated code review that checks code quality, Clean Architecture compliance, DDD patterns, coding standards, and spec traceability.
9saga-orchestrator
處理跨 Frame 的複雜業務流程,協調多個 Sub-agent (command/query/reactor) 完成 Saga/Choreography 模式的分散式交易。當需求涉及多個狀態變更、事件反應與查詢的組合時使用。
9