Agent skill

Smart Search

by yuque in yuque/yuque-ecosystem

Search personal Yuque knowledge bases with natural-language queries and synthesize answers with source links.

MITAuto-check passedKnowledge Management

Install Smart Search

skills CLI
$ npx skills add yuque/yuque-ecosystem --skill smart-search -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yuque/yuque-ecosystem smart-search --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yuque/yuque-ecosystem.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/smart-search .claude/skills/smart-search && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
smart-search
GitHub stars
228
Token cost
~993 tokens
SKILL.md length
419 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Search personal Yuque knowledge bases with natural-language queries and synthesize answers with source links.

  • Works in 5 steps: Extract Search Keywords → Search Documents → Filter and Rank Results → …
  • The user wants to find information in their own documents
  • SKILL.md covers When to Use, Required MCP Tools, Workflow and Guidelines, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Smart Search is an agent skill from yuque/yuque-ecosystem. Search personal Yuque knowledge bases with natural-language queries and synthesize answers with source links. Use when the user wants to find information in their own documents; trigger phrases include “搜一下我的文档”, “我的知识库里有没有...”, “搜索我的语雀/知识库”, and “search my Yuque”.

Its SKILL.md is about 990 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires the yuque-mcp MCP server connected with a personal Yuque token

It sits in Knowledge Management, covering Knowledge bases. The repository describes itself as: Yuque AI Ecosystem — MCP Server, Skills & Plugin for Yuque (语雀). The licence is MIT.

When your agent uses it

  • The user wants to find information in their own documents
  • Trigger phrases include 搜一下我的文档
  • Search my Yuque

Example prompts

  • “搜一下我的文档”
  • “我的知识库里有没有...”
  • “搜索我的语雀/知识库”
  • “/smart-search”

Requirements

  • Compatibility (from SKILL.md): Requires the yuque-mcp MCP server connected with a personal Yuque token

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Extract Search Keywords
  2. Search Documents
  3. Filter and Rank Results
  4. Read Document Content
  5. Synthesize and Respond

What it can do on your machine

Read from SKILL.md and the folder at commit 2959228. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires the yuque-mcp MCP server connected with a personal Yuque token

    From compatibility in the SKILL.md frontmatter.

Context cost

Smart Search loads about 993 tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 419 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~993

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yuque/yuque-ecosystem at commit 2959228, republished under its MIT licence (© yuque). 419 words, ~993 tokens.

Download SKILL.mdSave it as .claude/skills/smart-search/SKILL.md (or your agent's skills folder).
name
smart-search
description
Search personal Yuque knowledge bases with natural-language queries and synthesize answers with source links. Use when the user wants to find information in their own documents; trigger phrases include “搜一下我的文档”, “我的知识库里有没有...”, “搜索我的语雀/知识库”, and “search my Yuque”.
compatibility
Requires the yuque-mcp MCP server connected with a personal Yuque token
license
MIT
metadata.author
yuque
metadata.version
2.0

Smart Search — Yuque Personal Knowledge Base Search & Q&A

Search across your personal Yuque knowledge bases using natural language, read relevant documents, and synthesize a clear answer with references.

When to Use

  • User asks a question that might be answered by their personal Yuque docs
  • User wants to find specific information in their own knowledge base
  • User says "搜一下我的文档", "search my Yuque", "我的知识库里有没有..."

Required MCP Tools

All tools are from the yuque-mcp server:

  • yuque_search — Search documents by keyword
  • yuque_get_doc — Read full document content by slug/id

Workflow

Step 1: Extract Search Keywords

From the user's natural language query, extract 1-3 concise Chinese keywords. Yuque search works best with short, specific terms.

Examples:

  • "我的部署流程文档在哪?" → keywords: 部署流程
  • "How do I handle error logging?" → keywords: 错误日志 or 日志处理
  • "我之前写的技术评审笔记" → keywords: 技术评审
Step 2: Search Documents

Call yuque_search with the extracted keywords:

Tool: yuque_search
Parameters:
  query: "<keywords>"
  type: "doc"

If the search returns no results:

  1. Try alternative keywords (synonyms, broader terms)
  2. Try splitting compound terms (e.g., "部署流程" → "部署" or "流程")
  3. If still no results, tell the user honestly: "在你的语雀知识库中未找到相关文档,建议尝试其他关键词或确认文档是否存在。"
Step 3: Filter and Rank Results

From the search results, select the top 3-5 most relevant documents based on:

  • Title relevance to the query
  • Document update time (prefer recent)
  • Repository context (focus on user's personal repos)
Step 4: Read Document Content

For each selected document, fetch the full content:

Tool: yuque_get_doc
Parameters:
  repo_id: "<namespace>"    # e.g., "username/my-notes" (from search result's book.namespace)
  doc_id: "<slug>"          # e.g., "api" (from search result's target.slug)

Note: The search result contains nested data. Extract these key fields:

  • target.slug → use as doc_id
  • target.book.namespace → use as repo_id
  • target.title → document title
  • target.updated_at → last update time

Read up to 3 documents. If the first document fully answers the question, you may skip the rest.

Show full SKILL.md (157 more words)Show less
Step 5: Synthesize and Respond

Compose the answer in the following format:

markdown
## 回答

[直接回答用户的问题,2-4 句话,简洁明了]

## 关键要点

- **要点 1**:[从文档中提取的关键信息]
- **要点 2**:[从文档中提取的关键信息]
- **要点 3**:[从文档中提取的关键信息]

## 参考文档

1. [文档标题](文档链接) — 来自「知识库名称」,更新于 YYYY-MM-DD
2. [文档标题](文档链接) — 来自「知识库名称」,更新于 YYYY-MM-DD

Guidelines

  • Always answer in the same language the user used (Chinese or English)
  • Quote specific content from documents when relevant — use > blockquotes
  • If documents contain conflicting information, note the discrepancy and mention which doc is more recent
  • If the answer is only partially found, say what you found and what's missing
  • Never fabricate information not present in the documents
  • Include document links so the user can read the full source
  • This skill searches the knowledge bases accessible to the configured Yuque token

Error Handling

SituationAction
yuque_search returns emptyTry alternative keywords, then inform user
yuque_get_doc fails (404)Skip this doc, note it may have been deleted
yuque_get_doc fails (403)Tell user they may lack permission to access this doc
API timeoutRetry once, then inform user of connectivity issue
Too many resultsFocus on top 3 by relevance, mention there are more results available

© yuque, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/smart-search of yuque/yuque-ecosystem.

Open the folder on GitHubat commit 2959228

Compare with similar skills

Smart Search next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Smart Search compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Smart Search this skillyuque/yuque-ecosystem228—~993Automated safety check: PassMIT
Capture Conversationoutline/outline41k—~474Automated safety check: PassCustom licence
Project CairniBlinkQ/project-cairn2352 repos~861Automated safety check: PassMIT
LLM Wiki Knowledge GraphEgonex-AI/Understand-Anything86k1 repos~1.5kAutomated safety check: PassMIT
Find And Citeoutline/outline41k—~537Automated safety check: PassCustom licence
Xhs Virtual Productchenjin-cmd/xhs-virtual-product727—~862Automated safety check: PassMIT

Similar skills

  • Capture Conversation

    outline/outline

    Save the current conversation, a decision, or a set of notes as a document in an Outline collection; use when the user wants to keep what was discussed in their knowledge base.

    41k GitHub stars~474 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Project Cairn

    iBlinkQ/project-cairn

    Standardize how an AI-collaboration project turns work into reusable knowledge.

    235 GitHub starsUsed in 2 repos~861 tokens
    Knowledge ManagementAuto-check passed
  • LLM Wiki Knowledge Graph

    Egonex-AI/Understand-Anything

    Detects a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit relationships and topic clusters.

    86k GitHub starsUsed in 1 repo~1.5k tokens
    Knowledge ManagementAuto-check passed
  • Find And Cite

    outline/outline

    Answer questions from the Outline knowledge base with quotes and links to the source documents; use when the user asks what the team knows, documented, or decided about a topic.

    41k GitHub stars~537 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    727 GitHub stars~862 tokensUpdated 7 days ago
    Knowledge ManagementAuto-check passed
  • Openkb

    VectifyAI/OpenKB

    A skill your agent uses when the user asks about content in their OpenKB knowledge base — research topics, concepts compiled from their documents, cross-document synthesis — or mentions openkb, an…

    4.7k GitHub starsUsed in 1 repo~2k tokens
    Knowledge ManagementAuto-check: warnings

More from yuque/yuque-ecosystem

All 8 skills in this repo
  • Daily Capture

    yuque/yuque-ecosystem

    Capture fleeting ideas in Yuque and periodically organize them into structured thematic notes.

    228 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Knowledge Connect

    yuque/yuque-ecosystem

    Analyze Yuque documents to uncover related topics, complementary notes, and cross-reference opportunities.

    228 GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Note Refine

    yuque/yuque-ecosystem

    Polish rough Yuque notes into structured, readable documents while preserving their meaning.

    228 GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Reading Digest

    yuque/yuque-ecosystem

    Extract core insights, golden quotes, and action items from articles, then create structured Yuque reading notes.

    228 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Smart Summary

    yuque/yuque-ecosystem

    Summarize a Yuque document or knowledge base at one-line, key-point, or detailed granularity.

    228 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Stale Detector

    yuque/yuque-ecosystem

    Scan a Yuque knowledge base for stale or outdated documents and recommend updates or archiving.

    228 GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Smart Search

What does Smart Search do?

Search personal Yuque knowledge bases with natural-language queries and synthesize answers with source links. Smart Search is an agent skill from yuque/yuque-ecosystem. Search personal Yuque knowledge bases with natural-language queries and synthesize answers with source links.

When should I use Smart Search?

Smart Search fits situations like: the user wants to find information in their own documents; trigger phrases include 搜一下我的文档; search my Yuque.

How do I install Smart Search in Claude Code?

Run `npx skills add yuque/yuque-ecosystem --skill smart-search -a claude-code`. Or copy the skill folder (skills/smart-search in yuque/yuque-ecosystem) into .claude/skills/smart-search in your project. Claude Code loads it when a task matches its description.

How do I install Smart Search in Codex?

Run `npx skills add yuque/yuque-ecosystem --skill smart-search -a codex`. Or copy the skill folder (skills/smart-search in yuque/yuque-ecosystem) into .agents/skills/smart-search in your project. Codex loads it when a task matches its description.

Can I use Smart Search in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yuque/yuque-ecosystem --skill smart-search -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/smart-search, .gemini/skills/smart-search, .github/skills/smart-search and .opencode/skills/smart-search in your project.

What does Smart Search need to run?

SKILL.md names no scripts, command-line tools or credentials: Smart Search is instructions for the agent only. Compatibility (from SKILL.md): Requires the yuque-mcp MCP server connected with a personal Yuque token.

Does Smart Search access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Smart Search safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Smart Search use?

Smart Search is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Smart Search use?

About 993 tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Smart Search?

Skills that share tags, products or a category with Smart Search: Capture Conversation (outline/outline, 41k stars), Project Cairn (iBlinkQ/project-cairn, 235 stars), LLM Wiki Knowledge Graph (Egonex-AI/Understand-Anything, 86k stars) and Find And Cite (outline/outline, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Smart Search?

yuque (a GitHub organization) maintains it in yuque/yuque-ecosystem, which has 228 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on July 15, 2026.

Source: yuque/yuque-ecosystem on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.