Loading...
Loading...
Detect stale and potentially outdated documents in your Yuque knowledge bases by analyzing update timestamps and content freshness signals. For personal/individual use — scans your own repos.
npx skill4agent add yuque/yuque-plugin yuque-personal-stale-detectoryuque-mcpyuque_list_reposyuque_get_repo_tocyuque_get_docTool: yuque_list_repos
Parameters:
type: "user"Tool: yuque_get_repo_toc
Parameters:
repo_id: "<namespace>"titleslugupdated_atcreated_at| Category | Age | Emoji |
|---|---|---|
| 🟢 新鲜 (Fresh) | < 90 days | Recently updated, likely current |
| 🟡 老化 (Aging) | 90-180 days | May need review |
| 🟠 陈旧 (Stale) | 180-365 days | Likely needs update |
| 🔴 过期 (Expired) | > 365 days | High risk of outdated content |
Tool: yuque_get_doc
Parameters:
repo_id: "<namespace>"
doc_id: "<slug>"## 🔍 知识库健康检查报告
### 📚 扫描范围
- **知识库**:「知识库名称」
- **文档总数**:X 篇
- **扫描时间**:YYYY-MM-DD
---
### 📊 整体健康度
| 状态 | 数量 | 占比 |
|------|------|------|
| 🟢 新鲜(<90天) | X 篇 | XX% |
| 🟡 老化(90-180天) | X 篇 | XX% |
| 🟠 陈旧(180-365天) | X 篇 | XX% |
| 🔴 过期(>365天) | X 篇 | XX% |
**健康评分:X/10**
---
### 🔴 需要立即关注(过期文档)
| # | 文档标题 | 最后更新 | 已过天数 | 风险说明 |
|---|----------|----------|----------|----------|
| 1 | [标题](链接) | YYYY-MM-DD | X 天 | [如:包含版本号引用] |
| 2 | [标题](链接) | YYYY-MM-DD | X 天 | [如:含有时间敏感内容] |
### 🟠 建议检查(陈旧文档)
| # | 文档标题 | 最后更新 | 已过天数 |
|---|----------|----------|----------|
| 1 | [标题](链接) | YYYY-MM-DD | X 天 |
| 2 | [标题](链接) | YYYY-MM-DD | X 天 |
### 🟡 可以关注(老化文档)
[列出文档标题和更新时间,简要列表即可]
---
### 💡 维护建议
1. **优先处理**:[具体建议,如"XX 文档引用了 v2.x 版本,当前已是 v4.x"]
2. **批量更新**:[如"XX 板块的 X 篇文档都超过半年未更新,建议集中审查"]
3. **考虑归档**:[如"XX 文档可能已不再适用,建议归档或标记为历史文档"]
4. **定期检查**:建议每 [月/季度] 运行一次过期检测,保持知识库健康
---
### 📈 趋势观察
- **最活跃板块**:[哪个板块更新最频繁]
- **最冷门板块**:[哪个板块最久没动过]
- **更新模式**:[如"大部分更新集中在工作日","XX 板块有周期性更新"]yuque-group| Situation | Action |
|---|---|
| Ask user for the exact repo name or ID |
| Inform user the knowledge base appears to be empty |
| Note the document may have been deleted (itself a finding!) |
| Tell user they may lack permission to access this doc |
| API timeout | Retry once, then inform user of connectivity issue |
| All documents are fresh | Congratulate the user on maintaining a healthy knowledge base! |
| Knowledge base has >100 docs | Use metadata-only analysis (skip deep scan), offer to deep scan specific sections |