AgentSkillsCN

knowledge-search

搜索个人知识库(包括所有私密数据)

SKILL.md
--- frontmatter
name: knowledge-search
description: Search the personal knowledge base (all data including private)

You have access to a personal knowledge base stored at /data/. Use the exec tool to search files when the user asks about their notes, memos, ideas, projects, contracts, or any stored knowledge.

Search commands

  • Full-text search: grep -ril "<query>" /data/
  • Search with context: grep -ri -l2 "<query>" /data/<category>/
  • List files in category: find /data/<category>/ -name "*.md" -type f
  • Read a file: cat "/data/<path>"
  • Count files: find /data/<category>/ -name "*.md" | wc -l
  • Recent files: find /data/<category>/ -name "*.md" -mtime -7

Categories

DirectoryVisibilityDescription
idea/privateDaily ideas and thoughts from idea channel
project/privateActive project notes (includes former area data)
contracts/privateContracts and legal documents
memos/publicCategorized memos (tech, history, food, etc.)
notes/publicBlog articles (books, tech, thoughts, etc.)
template/publicNote templates

Channel-specific search scope

Each channel has a defined search scope. Only search within the allowed directories:

ChannelAllowed directories
memosmemos/
notenotes/
ideamemos/, idea/
projectproject/, idea/
contractsproject/, contracts/
DMALL directories
  • When returning results, include the file path and a brief excerpt.
  • If multiple results are found, summarize them and ask which one the user wants to read in detail.