dto-organizer
Skill1 starsChanged 7 months agoMITView on GitHub
Use this skill when the user wants to inventory API request and response shapes, generate DTO documentation, or compare current schemas with earlier docs.
Files
DTO Inventory Builder
把專案中的 API request / response 結構整理成可讀文件,方便維護、review 與跨團隊溝通。
Default Output
- 路徑:
docs/DTOs/DTO_{YYYY-MM-DD}.md - 如果目錄不存在,可以建立
Operating Principles
- 以現有程式碼與 schema 為準,不憑空補欄位定義
- 欄位語意不清時要標記問題,而不是自行猜測
- 同一份文件內盡量統一欄位命名與型別描述方式
- 共用型別要抽出整理,避免同樣內容重複出現
Workflow
1. Discover endpoints and schemas
搜尋專案中的:
- router / controller / handler
- request schema
- response schema
- DTO class、type、interface
- 相關 decorator、annotation、serializer 定義
先列出找到的端點範圍,必要時請使用者補充遺漏來源。
2. Check existing DTO docs
查看 docs/DTOs/ 是否已有舊文件。
- 如果是第一次產生,標記為新建文件
- 如果已有舊版,讀最新一份作為比對基準,整理新增、刪除、變更的概要
3. Build endpoint sections
每個端點至少整理:
- method
- path
- request fields
- response fields
- 欄位型別
- 是否必要
- 欄位說明
如果遇到巢狀結構,展開到可讀程度,不要只寫一個模糊型別名稱。
4. Extract shared types
將跨端點重複出現的結構整理到共用型別區塊,減少文件重複與維護成本。
5. Flag documentation risks
主動指出:
- 同名欄位但語意不同
- 缺少說明的欄位
- 結構不一致的 payload
- 明顯難以維護的 schema 設計
如果問題需要改程式碼才能解決,先向使用者說明,再決定是否另開修改工作。
6. Write the document
輸出完成後,回報:
- 產生的檔案路徑
- 涵蓋的端點數
- 尚未釐清的欄位或風險
Optional Scope Input
如果使用者有提供額外參數,可當作篩選範圍,例如特定資料夾、模組或端點。
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- commitSkill
- create-prSkill
- create-skillSkill
- finalize-skillSkill
- import-plugin-skillSkill
- install-manager-skillSkill
- skill-review-packetSkill
- update-skillSkill
- commitSkill
- create-prSkill
- create-skillSkill
- dto-organizerSkill
- finalize-skillSkill
- import-plugin-skillSkill
- install-manager-skillSkill
- skill-review-packetSkill
- update-skillSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

