AGENT SKILL

知识资料管理

Librarian

暂无简介

适用职业知识工作者
License 许可
MIT
所属仓库
matt-fell-ai/PAI
最近更新
2025-12-20
Stars
★ 1
Forks
0

02 资源文件 8

03 SKILL.md 正文

Librarian Skill - Semantic Memory & Knowledge Retrieval

name description
librarian Deep search and retrieval across the entire PAI knowledge base (History, Skills, Memory). USE WHEN you need to find past solutions, conceptually related code, or project context.

The Key Insight

History is useless if you can't find the right moment. Librarian provides a "Search Layer" above raw files. It understands that "OAuth" and "Authentication" are related, ensuring you never rebuild a wheel you've already perfected.

Usage

Concept Search

pai run Librarian search "How do I handle state?"

Context Retrieval

pai run Librarian context "project-x"

How it Works

It builds a local index of the History/ system. It utilizes ripgrep (if available) or Python's os.walk with weighted keyword matching to find the most relevant files across different subdirectories (Sessions, Learnings, Execution).

Strategic Value

  • Zero-Waste Development: Instantly find how you solved a similar problem 3 months ago.
  • Onboarding: Quickly get up to speed on a project's history by searching for the "Story".
  • Concept Linking: Automatically links new tasks to past relevant decisions.

04 同仓库更多 Skills