技能图书管理员MCP服务器——每个安装的技能都需要代币;图书管理员会让你的整个收藏不在代理上下文中。
概览
“我敢肯定你比互联网更清楚自己需要什么才能变得更好。用Claude Code的最佳工作流程是什么?安装技能,然后你自己挑最好的?越多越好?少即是多?” 答案是:每安装一个技能都需要消耗代币,并且增加了触发的模糊性——50个技能描述重叠,触发错误的技能;而8个锐利技能,触发几乎是确定性的。 但馆藏里有~3,000本。所以不要安装任何一个,而是给馆藏找个图书管理员。 - find_skill(意图)→图书管理员推荐 - 代理使用该技能,完成工作 - report_outcome(技能,已操作:真/假,注释)→图书管理员记录 “诗意的部分:图书管理员本身就是策划循环。记录每一个查询,以及哪些被选中、哪些被忽略——那些永远不会显现的技能是你的杀手候选,完全不匹配的查询是你的空白。这个收藏会根据自身的使用数据进行优化。
概述(AI 翻译)
一个技能图书管理员MCP服务器——你的代理人不再把整个技能集合放在上下文中,而是开始要求那本正确的书。
事情的开始
聊天中有一个问题:
“我相信你比互联网更清楚你需要什么才能变得更好。使用 Claude Code 的最佳工作流程是什么?安装技能,然后你自己选最好的?越多越好?少即是多?”
答案是:少即是多。 每个安装技能都需要消耗代币,并且增加了触发的模糊性——50个技能描述重叠,触发错误的技能;而8个尖锐技能,触发几乎是确定性的。
但馆藏里有~3,000本。所以不要安装任何一个,而是给馆藏找个图书管理员。
find_skill(intent)→图书管理员推荐- 代理使用技能,完成工作
report_outcome(skill, worked: true/false, note)→图书管理员记录
“诗意的部分:图书管理员本身就是策划循环。记录每条查询,以及哪些被选中、哪些被忽略——那些永远不会显现的技能是你的杀手候选,完全不匹配的查询就是你的空白。这个收藏会根据自身的使用数据进行优化。”
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
the_librarian
A skill librarian MCP server — your agents stop carrying the whole skill collection in context and start asking for the one right book.
How it started
One question in a chat:
“I’m sure you know better than the internet what you need to get better. What’s the best workflow with Claude Code? Installing skills and just you pick the best? More the better? Less is more?”
The answer: less is more. Every installed skill costs tokens and adds triggering ambiguity — with 50 skills, descriptions overlap and the wrong one fires; with 8 sharp ones, triggering is nearly deterministic.
But the collection had ~3,000. So instead of installing any of them: give the collection a librarian.
librarian_find(intent)→ librarian recommends- agent uses the skill, does the work
librarian_report(skill, worked: true/false, note)→ librarian logs it
“The poetic part: the librarian is itself the curation loop. Log every query and what got picked vs ignored — skills that never surface are your kill candidates, queries that match nothing are your gaps. The collection optimizes itself from its own usage data.”
“So the full shape: SQLite (skills, embeddings, query log, outcome log) + FastMCP + two read tools + one write tool. Maybe 300 lines of Python. It’s small, it’s one thing, and it compounds.”
It’s 1067 lines now. Scope creep found even the librarian. The original conversation — typed poolside on a phone, typos preserved on purpose — is in ORIGIN.md.
What it is
A local-first MCP server that acts as a librarian between coding agents and a large skill collection. The collection stays raw markdown on disk — agents never load it into context. They describe what they’re trying to do in plain language; the librarian finds the skills whose meaning matches (semantic search — no keyword guessing), makes sure the shortlist isn’t three flavors of the same thing, avoids repeating what it just recommended, optionally lets Apple’s on-device model deliberate over the finalists — and learns from what agents report back.
Core principle: agents read recommendations, write only outcomes. They never edit skills, weights, or rankings. Curation decisions stay with the human, informed by librarian_stats.
Every stage is local and free: Ollama embeddings, SQLite, and (optionally) Apple Intelligence.
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add aka-kika/the-librarian