Docs — Quản lý documentation
Tạo, cập nhật, và tóm tắt documentation tự động từ codebase.Cú pháp
Bảng tham chiếu nhanh
| Lệnh | Mô tả | Use case |
|---|---|---|
/docs:init | Scan codebase + tạo docs ban đầu | Project mới, chưa có docs |
/docs:update | Phân tích changes + update docs | Sau khi implement features |
/docs:summarize | Tóm tắt codebase | Cần overview nhanh |
/llms | Generate llms.txt (llmstxt.org spec) | Cho AI tools đọc docs dễ hơn |
Luồng hoạt động
/docs:init
/docs:update
/llms — Generate llms.txt
Tạo filellms.txt theo spec llmstxt.org — giúp AI tools (Claude, GPT) hiểu codebase nhanh hơn.
llms.txt chứa structured summary của project: architecture, key files, API endpoints, conventions.
Docs-seeker — Tìm docs thư viện
Ví dụ thực tế
- /docs:init
- /docs:update
Khi nào dùng / không dùng
| Dùng | Không dùng |
|---|---|
| Project mới cần docs | Viết blog/marketing content (dùng /write) |
| Sau sprint, cập nhật docs | Tạo PRD (dùng /prd) |
| Tạo llms.txt cho AI consumption | Viết test plan (dùng /test-plan) |
| Tìm docs thư viện bên ngoài | Tìm code trong project (dùng /scout) |