docs-curate
Sắp xếp gọn kho tài liệu LOCAL (llmwiki/html/ + wiki/sources/draft/) khi phình to. Ba tầng — PROMOTE bản chất quý lên wiki ADR/concept (travel, sống sót clone), ARCHIVE render ephemeral (cặp proposal đã xong, bản bị thay thế, report cũ → archive/), KEEP canonical — rồi RE-INDEX đầy đủ. Trigger khi "dọn docs", "sắp xếp/merge tài liệu", "tidy docs", "html/draft quá nhiều", "/docs-curate".
How do I install this agent skill?
npx skills add https://github.com/rheinmir/setup --skill docs-curateIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides a workflow for organizing local documentation by archiving older files and promoting valuable insights to a permanent wiki. It uses local Python tools to manage file organization and indexing.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Skill: docs-curate
When to use
llmwiki/html/hoặcwiki/sources/draft/tích luỹ quá nhiều file local (sau một đợt làm việc dài sinh nhiều report/proposal).- Cảm thấy "tài liệu quý nhưng lộn xộn / khó tìm / có thể mất khi clone".
Vì sao 3 tầng (không chỉ "merge")
Merge HTML local lại vẫn LOCAL → vẫn mất khi kéo repo ở máy khác (file html/draft là gitignored). Cái "quý" thật sự là quyết định thiết kế / bài học / pattern — nó phải lên wiki (travel + được commit). Còn render (html, draft report) là ephemeral → archive. Tool tất định lo phân loại + dời + index; phần đọc-hiểu để promote là việc của bạn (agent).
Steps
- Plan (dry-run, không đụng file):
python3 fdk/tools/docs-curate.py plan # in 3 tầng KEEP / ARCHIVE / PROMOTE? - PROMOTE bản chất QUÝ vào wiki — LÀM TRƯỚC khi archive (phán đoán của agent):
- Với mỗi mục
PROMOTE?và mỗi draft trong cặp proposalARCHIVE: đọc nội dung. Nếu chứa quyết định/bài học/pattern chưa có trong wiki → viết thành:llmwiki/wiki/sources/adr/ADR-NNN-<slug>.mdcho một QUYẾT ĐỊNH, hoặcllmwiki/wiki/concepts/<slug>.mdcho một KHÁI NIỆM/pattern. Đúng frontmatter YAML (type:…) +## Origin(trỏ draft/commit nguồn). Cập nhậtwiki/index.md+wiki/log.md.
- Đã có trong wiki/git rồi → bỏ qua, chỉ để archive.
- KHÔNG promote thứ tầm thường (report tiến độ, render trùng). Chỉ cái "đáng cho máy/người khác đọc".
- Với mỗi mục
- Apply (dời ARCHIVE theo CHỨC NĂNG + tự re-index):
python3 fdk/tools/docs-curate.py apply # archive theo nhóm + reorg file đã-archive + reindex- Archive KHÔNG để phẳng: gom vào
archive/<nhóm>/theo chức năng —proposals/(cặp draft+seq),superseded/(bản bị thay thế),analysis/(phân tích cân nhắc promote),reports/. - Sắp xếp cả file ĐÃ archive từ trước (file phẳng ở gốc archive → dồn vào đúng nhóm) — kể cả đã vào archive rồi.
- Index cả archive: sinh
llmwiki/html/archive/INDEX.md(chỉ mục theo nhóm, vẫn tìm lại được) +index.htmldashboard (active) +wiki/index.md(R3). - Chỉ muốn sắp-xếp-lại + index archive (không archive thêm gì):
python3 fdk/tools/docs-curate.py reindex. - Tuỳ chỉnh số mốc-ngày giữ active:
apply --keep-dates 3.
- Archive KHÔNG để phẳng: gom vào
- Verify + commit: xác nhận
index.html(active) +archive/INDEX.md(archive theo nhóm) mới +wiki/index.mdkhông lệch R3 (dev framework → chạyfdk-gate). Commit gồm: ADR/concept mới promote (archive/ + index là local gitignored). Appendlog.md.
Rules
- PROMOTE trước ARCHIVE — tuyệt đối đừng archive một draft chứa bản chất quý mà chưa kịp lên wiki (local gitignored → mất là mất thật).
- Archive = DỜI, KHÔNG XOÁ — file vào
archive/, giữ nguyên (vẫn là tài liệu quý, chỉ ra khỏi workspace active). - Canonical (
overstack.html,index.html,*-cheatsheet,*-health-dashboard) KHÔNG bao giờ archive. - Phân vai rõ: tool = phân loại/dời/re-index (tất định); agent = promote (đọc-hiểu). Không lẫn.
- Mọi wiki entry mới có
## Origin; cập nhậtwiki/index.md+wiki/log.md(rule R2/R3).
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/rheinmir/setup/docs-curate">View docs-curate on skillZs</a>