MCPInstall

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
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads yuque-personal-stale-detector automatically when relevant.

  3. 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 bases
  • yuque_get_repo_toc — Get the table of contents with document metadata
  • yuque_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 title
  • slug — Document identifier
  • updated_at — Last update timestamp
  • created_at — Creation timestamp

Step 3: Classify Documents by Freshness

Calculate the age of each document (days since last update) and classify:

CategoryAgeEmoji
🟢 新鲜 (Fresh)< 90 daysRecently updated, likely current
🟡 老化 (Aging)90-180 daysMay need review
🟠 陈旧 (Stale)180-365 daysLikely needs update
🔴 过期 (Expired)> 365 daysHigh 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-group plugin

Error Handling

SituationAction
yuque_list_repos returns emptyAsk user for the exact repo name or ID
yuque_get_repo_toc returns emptyInform 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 timeoutRetry once, then inform user of connectivity issue
All documents are freshCongratulate the user on maintaining a healthy knowledge base!
Knowledge base has >100 docsUse 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

View all →

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.

Docs & Writing655 installs

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.

338 installs

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.

Docs & Writing325 installs

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.

292 installs

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.

Docs & Writing257 installs

Open the skill to read its SKILL.md instructions.

240 installs

Popular other skills

View category →

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.

1.3M installs

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.

1M installs

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

778.4K installs

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

508.9K installs

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

459.7K installs

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

447.9K installs