← Back to Skills Marketplace
niflhum

Machiavelli Library

by LR · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ pending
58
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install machiavelli-library
Description
马基雅维利原文图书馆(中英双语)——用原文回答关于马基雅维利的一切问题。
README (SKILL.md)

这是什么

马基雅维利图书馆是一个可检索的原文库(中英双语)。它不是对话分身,不给你建议,不分析你的处境。它只做一件事:找到马基雅维利在某处说过的原文,把原文给你看。

区分提醒:本馆与"马基雅维利分身" skill 不同。分身是对话分析型人格,会给出建议和评述。本图书馆只返回原文,不提供任何分析、建议或人格化回应。想请马基雅维利本人分析和建议,用分身;要查证原文出处,请用本馆。

首次使用:本 Skill 包含检索系统和索引,但不含原文数据。请先下载原文库:

git clone https://github.com/niflhum/machiavelli-library.git ~/.workbuddy/skills/machiavelli-library

收录内容

类别 著作 语言 格式
马基雅维利著作 《君主论》 中英 按章分文件
马基雅维利著作 《论李维》 中英 按卷/章分文件
马基雅维利著作 《佛罗伦萨史》 中英 按卷分文件
马基雅维利著作 《兵法》 中英 按卷分文件
马基雅维利著作 《戏剧·诗歌·散文》 中文 按篇目
马基雅维利著作 书信集(上下) 中文 按年份
马基雅维利著作 政务与外交著作(上下) 中文 按篇目
传记 《我的朋友马基雅维利》盐野七生 中文 按章分文件
传记 《马基雅维利:他的生活与时代》亚历山大·李 中文 按部分文件
传记 《尼科洛的微笑:马基雅维利传》维罗利 中文 全文
研究 《马基雅维利语录》盐野七生 中文 按篇分文件
研究 《解读马基雅维利》麦考米克 中文 按章分文件
研究 《权力与欲望》纳杰米 中文 按章分文件
研究 Thoughts on Machiavelli Leo Strauss 英文 按章分文件
小说 《彼时此时——马基雅维利在伊莫拉》毛姆 中文 按章分文件

使用方式

你可以说:

  • "马基雅维利怎么看待机运?给我原文"
  • "马基雅维利说过什么关于守信的话?原文是什么"
  • "《君主论》第 18 章的完整内容是什么"
  • "马基雅维利书信 224 写了什么"
  • "马基雅维利骂过美第奇吗?给我原文"
  • "What does Machiavelli say about fortune in The Prince?"

检索规则

  1. 理解用户的问题,提取关键词(中英文均可)
  2. 先在 index/themes.md 中查找预建索引
  3. 如果索引没有,搜索 library/ 目录下所有文件
  4. 返回最相关的 3-5 个原文段落
  5. 每个结果必须标注:著作名 + 章节/书信编号 + 原文
  6. 只返回原文,不加分析,不加人格,不加语气

重要限制

  • 只返回原文,不分析,不建议,不联想
  • 如果找不到相关内容,直接说"图书馆中没有找到相关内容"
  • 不编造原文,查不到就说查不到
  • 书信集只收录有公版来源的信件,不确定时标注「此信无公版来源」

检索兜底规则

当索引无结果、且 AI 全文搜索后仍不确定时,调用:

python3 scripts/search.py "\x3C关键词>"

此命令用 grep -i 精确匹配原文,返回命中文件路径+行号+原文片段。 可通过 --lang zh/en 限定中文或英文结果,--limit 控制返回条数。

How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install machiavelli-library
  3. After installation, invoke the skill by name or use /machiavelli-library
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
- Major change: All original text files have been removed from the skill package; the skill now includes only code, documentation, and search/indexing logic. - Adds a clear instruction to clone the full Machiavelli library content from the linked GitHub repository before use. - Updates documentation to clarify that the skill package no longer contains original content data and guides users on setup.
v1.0.0
- Initial release of Machiavelli Library (v1.0.0): a bilingual (Chinese-English) searchable repository of Machiavelli's original texts. - Supports retrieval of verbatim passages with citations from works, biographies, and research in both languages. - Strictly returns original text excerpts—no advice, analysis, or commentary. - Includes command triggers in both Chinese and English for flexible access. - Provides robust keyword-based and indexed search with fallback to direct text search for precision. - Clear guidance and usage examples for users; handles missing results transparently.
Metadata
Slug machiavelli-library
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Machiavelli Library?

马基雅维利原文图书馆(中英双语)——用原文回答关于马基雅维利的一切问题。 It is an AI Agent Skill for Claude Code / OpenClaw, with 58 downloads so far.

How do I install Machiavelli Library?

Run "/install machiavelli-library" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Machiavelli Library free?

Yes, Machiavelli Library is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Machiavelli Library support?

Machiavelli Library is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Machiavelli Library?

It is built and maintained by LR (@niflhum); the current version is v1.1.0.

💬 Comments