Smart Summary logo

Smart Summary

Organization
yuque
smart-summary

Summarize a Yuque document or knowledge base at one-line, key-point, or detailed granularity. Use when the user wants a quick overview of a document or repo; trigger phrases include “帮我总结一下这篇文档”, “这个知识库讲了什么”, and “summarize this doc”.

Overview

Publisheryuque
Repositoryyuque-ecosystem
Skill namesmart-summary
Stars
238
Forks
20
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by yuque on GitHub. Read the source before you install it.

Installation

Install the Smart Summary AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/yuque/yuque-ecosystem/tree/main/skills/smart-summary
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yuque/yuque-ecosystem.git /tmp/yuque-ecosystem
mkdir -p .claude/skills
cp -r /tmp/yuque-ecosystem/skills/smart-summary .claude/skills/smart-summary
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Smart Summary in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Smart Summary on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Smart Summary is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Smart Summary — Yuque Document & Knowledge Base Summarization

Generate summaries at different granularity levels for any Yuque document or entire knowledge base. Supports one-liner, key points extraction, and detailed summary modes.

When to Use

  • User wants a quick summary of a Yuque document or knowledge base
  • User says "帮我总结一下这篇文档", "summarize this doc", "这个知识库讲了什么"
  • User shares a Yuque document link and asks for a summary
  • User wants to quickly understand the content of a repo without reading everything

Required MCP Tools

All tools are from the yuque-mcp server:

  • yuque_get_doc — Read full document content by slug/id
  • yuque_get_book — Get knowledge base metadata
  • yuque_list_docs — List all documents in a knowledge base
  • yuque_get_toc — Get the table of contents of a knowledge base

Workflow

Step 1: Identify the Target

Determine what the user wants summarized:

Case A — Single Document: The user provides a document link or specifies a document by name. Extract repo_id (namespace) and doc_id (slug) from the link.

Yuque doc URL pattern: https://www.yuque.com/{namespace}/{slug}

Case B — Entire Knowledge Base: The user provides a knowledge base link or name. Extract repo_id (namespace).

Yuque repo URL pattern: https://www.yuque.com/{namespace}

If the user's input is ambiguous, ask: "你想总结单篇文档还是整个知识库?"

Step 2: Determine Summary Granularity

Check if the user specified a granularity level. If not, default to key points.

LevelTrigger PhrasesOutput
one-liner (一句话摘要)"一句话总结", "简单说说", "TL;DR"1 sentence, ≤50 words
key-points (要点提取)"要点", "关键点", "summarize" (default)5-10 bullet points
detailed (详细摘要)"详细总结", "完整摘要", "deep summary"Structured multi-section summary

Step 3: Fetch Content

For a single document:

Tool: yuque_get_doc
Parameters:
  repo_id: "<namespace>"
  doc_id: "<slug>"

For an entire knowledge base:

First, get the TOC to understand the structure:

Tool: yuque_get_toc
Parameters:
  repo_id: "<namespace>"

Then list all documents:

Tool: yuque_list_docs
Parameters:
  repo_id: "<namespace>"

For knowledge base summaries, read up to 10 key documents (prioritize by TOC order and recent updates). Do NOT try to read every document in a large repo.

Tool: yuque_get_doc
Parameters:
  repo_id: "<namespace>"
  doc_id: "<slug>"

If yuque_get_doc returns a 404, skip the document and note it may have been deleted. If yuque_get_doc returns a 403, note the user may lack permission.

Step 4: Generate Summary

One-liner format:

markdown
📝 **一句话摘要**:[一句话概括文档/知识库的核心内容]

Key-points format:

markdown
## 📋 要点摘要

**文档**:[文档标题](文档链接)
**知识库**:[知识库名称]
**更新时间**:YYYY-MM-DD

### 核心要点

1. **[要点标题]**:[简要说明,1-2 句话]
2. **[要点标题]**:[简要说明,1-2 句话]
3. **[要点标题]**:[简要说明,1-2 句话]
...

### 一句话总结

[用一句话概括全文核心观点]

Detailed format:

markdown
## 📖 详细摘要

**文档**:[文档标题](文档链接)
**知识库**:[知识库名称]
**更新时间**:YYYY-MM-DD
**字数**:约 X 字

### 背景与目的

[文档的背景、写作目的,2-3 句话]

### 主要内容

#### [章节 1 标题]
[该章节的核心内容摘要]

#### [章节 2 标题]
[该章节的核心内容摘要]

...

### 核心结论

- [结论 1]
- [结论 2]
- [结论 3]

### 一句话总结

[用一句话概括全文]

For knowledge base summaries, use this format:

markdown
## 📚 知识库摘要

**知识库**:[知识库名称](知识库链接)
**文档数量**:X 篇
**最近更新**:YYYY-MM-DD

### 知识库概览

[2-3 句话描述这个知识库的主题和用途]

### 内容结构

1. **[分类/目录 1]**(X 篇):[简要描述]
2. **[分类/目录 2]**(X 篇):[简要描述]
...

### 重点文档

1. [文档标题](链接) — [一句话描述]
2. [文档标题](链接) — [一句话描述]
3. [文档标题](链接) — [一句话描述]

Guidelines

  • Always answer in the same language the user used (Chinese or English)
  • For knowledge base summaries, focus on structure and key documents rather than trying to summarize every single doc
  • Preserve the original document's terminology and key concepts
  • If the document is very short (< 100 words), just present the content directly instead of summarizing
  • Never fabricate content not present in the original document
  • Include links back to the original document(s) so the user can read the full source
  • When summarizing a knowledge base, respect the TOC order as it reflects the author's intended structure

Error Handling

SituationAction
Document not found (404)Inform user the document may have been deleted or the link is incorrect
Permission denied (403)Tell user they may lack permission to access this document
Knowledge base is emptyInform user: "这个知识库目前没有文档"
Knowledge base has 50+ docsRead only the top 10 by TOC order, note that summary covers key documents only
Document content is emptySkip and note: "该文档内容为空"
API timeoutRetry once, then inform user of connectivity issue

Frequently asked questions

What does the Smart Summary AI skill do?

Summarize a Yuque document or knowledge base at one-line, key-point, or detailed granularity. Use when the user wants a quick overview of a document or repo; trigger phrases include “帮我总结一下这篇文档”, “这个知识库讲了什么”, and “summarize this doc”.

Why use Smart Summary on TypingMind?

Because you install it once and use it with any model. Smart Summary is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Smart Summary in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/yuque/yuque-ecosystem/tree/main/skills/smart-summary. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Smart Summary?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Smart Summary?

As many as you like. As long as a model supports skills, you can use Smart Summary with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Smart Summary AI skill free?

Yes. It is published on GitHub by yuque under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇