
yuque-personal-stale-detector
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.
- Installs
- 156
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/yuque/yuque-plugin --skill yuque-personal-stale-detector- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads yuque-personal-stale-detector automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Stale Detector — Yuque Knowledge Base Freshness Check
Scan your Yuque knowledge bases to detect documents that haven't been updated for a long time and may contain outdated information, helping you maintain a healthy and accurate knowledge base.
When to Use
- User wants to find outdated documents in their knowledge base
- User says "检查一下哪些文档过期了", "find stale docs", "我的知识库有哪些需要更新"
- User wants to do periodic knowledge base maintenance
- User says "帮我做个知识库健康检查", "哪些文档很久没更新了"
Required MCP Tools
All tools are from the yuque-mcp server:
yuque_list_repos— List personal knowledge basesyuque_get_repo_toc— Get the table of contents with document metadatayuque_get_doc— Read document content to check for staleness signals
Workflow
Step 1: Select Knowledge Base
If the user specifies a repo, use it directly. Otherwise, list available repos:
Tool: yuque_list_repos
Parameters:
type: "user"
Let the user pick which repo(s) to scan, or scan all if requested.
Step 2: Get Document List with Metadata
For each repo, get the table of contents:
Tool: yuque_get_repo_toc
Parameters:
repo_id: "<namespace>"
Extract from each document entry:
title— Document titleslug— Document identifierupdated_at— Last update timestampcreated_at— Creation timestamp
Step 3: Classify Documents by Freshness
Calculate the age of each document (days since last update) and classify:
| 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 |
Step 4: Deep Scan Suspicious Documents (Optional)
For documents classified as 🟠 or 🔴, optionally read their content to check for additional staleness signals:
Tool: yuque_get_doc
Parameters:
repo_id: "<namespace>"
doc_id: "<slug>"
Look for:
- Version references — Mentions of specific software versions that may be outdated
- Date references — Hardcoded dates like "2023年计划", "Q1 目标"
- Broken patterns — References to tools, APIs, or processes that may have changed
- Temporal language — "目前", "最近", "即将" that imply time-sensitive content
Limit deep scanning to 5-10 documents to avoid excessive API calls.
Step 5: Generate Report
## 🔍 知识库健康检查报告
### 📚 扫描范围
- **知识库**:「知识库名称」
- **文档总数**: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 板块有周期性更新"]
Guidelines
- Always answer in the same language the user used (Chinese or English)
- Be helpful, not alarming — old documents aren't necessarily bad (some content is evergreen)
- Distinguish between time-sensitive content (API docs, process guides) and evergreen content (principles, tutorials)
- Provide actionable suggestions — don't just list stale docs, suggest what to do about them
- When deep scanning, highlight specific outdated references (version numbers, dates, deprecated tools)
- This skill scans personal repos — for team repos, use the corresponding skill in the
yuque-groupplugin
Error Handling
| Situation | Action |
|---|---|
yuque_list_repos returns empty | Ask user for the exact repo name or ID |
yuque_get_repo_toc returns empty | Inform user the knowledge base appears to be empty |
yuque_get_doc fails (404) | Note the document may have been deleted (itself a finding!) |
yuque_get_doc fails (403) | 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 |
FAQ
What does the yuque-personal-stale-detector skill do?
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.
How do I install yuque-personal-stale-detector?
Run npx skills add https://github.com/yuque/yuque-plugin --skill yuque-personal-stale-detector in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/yuque-personal-stale-detector/ (personal) or .claude/skills/yuque-personal-stale-detector/ (project).
Which AI agents can use yuque-personal-stale-detector?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is yuque-personal-stale-detector safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains yuque-personal-stale-detector?
It is published by yuque in yuque/yuque-plugin. It has 156 recorded installs.
More from yuque/yuque-plugin
yuque-personal-knowledge-connect
yuque/yuque-plugin
Discover connections between documents, build knowledge networks, and establish bidirectional links across your personal Yuque knowledge base. For personal/individual use — operates on your own docs.
yuque-personal-smart-search
yuque/yuque-plugin
Search your personal Yuque knowledge bases with natural language queries and provide summarized answers with key points and source links. For personal/individual use — searches across your own documents.
yuque-personal-reading-digest
yuque/yuque-plugin
Quickly distill Yuque documents into structured reading digests with key takeaways, summaries, and reading notes. For personal/individual use — reads from your own knowledge bases.
yuque-personal-smart-summary
yuque/yuque-plugin
Generate intelligent summaries for Yuque knowledge bases or multiple documents, providing a quick overview of content landscape and key insights. For personal/individual use — summarizes your own knowledge bases.
yuque-personal-style-extract
yuque/yuque-plugin
Analyze the writing style of Yuque documents and extract style characteristics including structure, tone, vocabulary, and formatting patterns. For personal/individual use — analyzes your own documents.
yuque-personal-daily-capture
yuque/yuque-plugin
Open the skill to read its SKILL.md instructions.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.