pin-llm-wiki
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese/pin-llm-wiki
/pin-llm-wiki
Automates Karpathy's LLM wiki pattern: drop URLs in , the skill fetches, ingests, and maintains a cited, agent-readable knowledge base.
inbox.md自动化Karpathy的LLM维基模式:将URL放入,该Skill会抓取、提取内容并维护一个带引用、可供Agent读取的知识库。
inbox.mdTrigger phrases
触发语
- (with subcommands:
/pin-llm-wiki,init,ingest,lint,queue)remove - “Pin this YouTube video to my LLM wiki”
- “Ingest these research links into my wiki”
- “Run pin-llm-wiki lint on this knowledge base”
- “Queue these URLs, then batch-process the inbox”
- “Initialize a new Karpathy-style wiki with pin-llm-wiki”
inbox.md (human drops URLs)
↓ fetch
raw/ (immutable source captures)
↓ ingest
wiki/ (LLM-maintained, cited, linked)
↓ lint
a healthy, queryable knowledge base- (包含子命令:
/pin-llm-wiki、init、ingest、lint、queue)remove - “将这个YouTube视频固定到我的LLM维基”
- “将这些研究链接提取到我的维基中”
- “对这个知识库运行pin-llm-wiki检查”
- “将这些URL加入队列,然后批量处理收件箱”
- “使用pin-llm-wiki初始化一个新的Karpathy风格维基”
inbox.md (用户添加URL)
↓ 抓取
raw/ (不可变的源内容快照)
↓ 提取
wiki/ (由LLM维护、带引用、带链接)
↓ 检查
一个健康、可查询的知识库Phase 1 subcommands
第一阶段子命令
| Command | Status |
|---|---|
| implemented |
| implemented (single-URL form auto-queues if URL is not already in inbox) |
| implemented |
| implemented |
| implemented |
| 命令 | 状态 |
|---|---|
| 已实现 |
| 已实现(单URL形式会自动将URL加入队列,如果该URL尚未在收件箱中) |
| 已实现 |
| 已实现 |
| 已实现 |
Skill directory
Skill目录
This SKILL.md and all sibling files (, , , , , , ) live inside the skill directory: , , , or the project-local / / equivalents. In this repository the canonical copy is . All and sibling-file paths in this skill are relative to whichever skill directory the loading tool used.
ingest.mdinit.mdlint.mdremove.mdqueue.mdingest-protocol.mdtemplates/...~/.claude/skills/pin-llm-wiki/~/.copilot/skills/pin-llm-wiki/~/.cursor/skills/pin-llm-wiki/.claude/skills/.copilot/skills/.cursor/skills/skills/pin-llm-wiki/templates/...本SKILL.md及所有同级文件(、、、、、、)位于Skill目录中:、、,或项目本地的 / / 等效目录。在本仓库中,标准副本位于****。本Skill中的所有和同级文件路径均相对于加载工具所使用的Skill目录。
ingest.mdinit.mdlint.mdremove.mdqueue.mdingest-protocol.mdtemplates/...~/.claude/skills/pin-llm-wiki/~/.copilot/skills/pin-llm-wiki/~/.cursor/skills/pin-llm-wiki/.claude/skills/.copilot/skills/.cursor/skills/skills/pin-llm-wiki/templates/...Dispatch
调度流程
- Identify the subcommand from the invocation args (the first word after ).
/pin-llm-wiki - Route — read the sibling file in this skill directory and follow its instructions exactly:
- →
init(no Guard required — it scaffolds the wiki)init.md - →
ingest(with or without a URL arg)ingest.md - →
lintlint.md - →
removeremove.md - →
queuequeue.md
- Guard (every subcommand except ): confirm
initexists in the current working directory. If absent, stop with: "No wiki found here (.pin-llm-wiki.ymlmissing). Run.pin-llm-wiki.ymlto scaffold one first." Subcommand files repeat this check by reference; you only need to enforce it once per invocation./pin-llm-wiki init - Do not proceed beyond this dispatch step before reading the target file.
- 从调用参数中识别子命令(后的第一个单词)。
/pin-llm-wiki - 路由——读取本Skill目录中的同级文件并严格遵循其说明:
- →
init(无需Guard——它会搭建维基框架)init.md - →
ingest(带或不带URL参数)ingest.md - →
lintlint.md - →
removeremove.md - →
queuequeue.md
- **Guard(除外的所有子命令):**确认当前工作目录中存在
init。如果不存在,停止操作并提示:*“未在此处找到维基(缺少.pin-llm-wiki.yml)。请先运行.pin-llm-wiki.yml来搭建一个。”*子命令文件会引用此检查,你只需在每次调用时执行一次即可。/pin-llm-wiki init - 在读取目标文件之前,不要进行此调度步骤之后的操作。
Git policy (canonical)
Git规范(标准)
Never run or after any subcommand — , , , , , , or any auto-fix — unless the human explicitly asked to commit in this conversation. Subcommand files reference this policy without restating it. The wiki's own carries the same rule for downstream agents.
git commitgit pushinitingestrefreshlintremovequeueAGENTS.md任何子命令执行后,绝不要运行或——包括、、、、、或任何自动修复操作——除非用户在本次对话中明确要求提交。子命令文件会引用此规范但不会重复说明。维基自身的也为下游Agent规定了相同规则。
git commitgit pushinitingestrefreshlintremovequeueAGENTS.md