
Claude、Cursor 和 Copilot 技能,自动化 Karpathy LLM Wiki 工作流程:将网页、GitHub 和 YouTube URL 导入一个结构良好、可引用、交叉引用的知识库,并自动......
概览
这是一种多编辑技能,可以自动化Karpathy大型语言模型Wiki模式:插入URL,获取一个本地、可引用、交叉引用的维基,供代理在回答前阅读。 Claude Code(斜杠命令)、GitHub Copilot 和 Cursor(安装技能 + 遵循相同的工作流程;见下文)。 pin-LLM-wiki 将外部资源转化为持久的知识库: - 原始文件/保留原始来源的不可篡改记录。- 维基/保存有摘要的维基链接页面,引用原始文件。- AGENTS.md 告诉人工智能代理在回答域名问题前先查阅维基。- inbox.md 为人类和代理提供一个简单的未来来源队列。 结果是一个仓库本地内存层:可以在 git 中审查,代理可查询,且更不依赖于一个聊天中恰好能涵盖的上下文。 使用技能CLI:(project)或(global,例如~/.cursor/skills)。项目安装会落在(Cursor, Copilot, ...)和(Claude Code)中——而不是./skills/(该路径仅为该仓库的包布局)。
概述(AI 翻译)
这是一种多编辑技能,可以自动化Karpathy大型语言模型Wiki模式:插入URL,获取一个本地、可引用、交叉引用的维基,供代理在回答前阅读。
运行地点: Claude Code(斜杠命令)、GitHub Copilot 和 Cursor(安装技能 + 遵循相同工作流程;见下文)。
为什么要用它
pin-llm-wiki 将外部资源转化为持久的知识库:
raw/保留原始源的不可变捕获。wiki/包含摘要的维基链接页面,引用回原始文件。AGENTS.md告诉 AI 代理在回答域名问题前先查阅维基。inbox.md为人类和代理提供了未来源的简单队列。
结果是一个仓库本地内存层:可以在 git 中审查,代理可查询,且更不依赖于一个聊天中恰好能涵盖的上下文。
安装
使用 skills CLI: [npx skills@latest add ndjordjevic/pin-llm-wiki(项目)或 [-g(全局,例如 ~/.cursor/skills)。项目安装在 .agents/skills/(光标、副驾驶等)和 .claude/skills/(Claude 代码)——不在 ./skills/(该路径仅为该仓库的包布局)。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
pin-llm-wiki
A multi-editor skill that automates the Karpathy LLM Wiki pattern: drop in URLs, get a local, citable, cross-referenced wiki that agents can read before answering.
Where it runs: Claude Code (slash commands), GitHub Copilot and Cursor (install the skill + follow the same workflows; see below).
Why use it
pin-llm-wiki turns external sources into a durable knowledge base:
raw/keeps immutable captures of the original sources.wiki/holds summarized, wikilinked pages with citations back to raw files.AGENTS.mdtells AI agents to consult the wiki before answering domain questions.inbox.mdgives humans and agents a simple queue for future sources.
The result is a repo-local memory layer: reviewable in git, queryable by agents, and less dependent on whatever context happens to fit in one chat.
Install
Use the skills CLI: npx skills@latest add ndjordjevic/pin-llm-wiki (project) or -g (global, e.g. ~/.cursor/skills). Project installs land in .agents/skills/ (Cursor, Copilot, …) and .claude/skills/ (Claude Code)—not in ./skills/ (that path is only this repo’s package layout).
For Claude Code + Cursor + Copilot in one repo, create .claude first so the CLI can install one real copy under .agents/skills/ and symlink Claude Code to it.
mkdir -p .claude
npx skills@latest add ndjordjevic/pin-llm-wiki \
--agent claude-code --agent cursor --agent github-copilot -y
npx skills@latest add ndjordjevic/pin-llm-wiki -g # global
Use --agent … for a predictable layout in agent terminals. --list, skills.sh, npx skills@latest add --help.
Update
Refresh the skill files from GitHub. Scope should match how you installed:
# Project install: from that repo’s root, or force project scope
npx skills@latest update pin-llm-wiki -p
# Global install
npx skills@latest update pin-llm-wiki -g
Use -y to skip interactive scope prompts (the CLI can auto-pick project vs global when only one applies). skills update may recreate agent directories you do not use; delete those folders if you want a minimal tree. See npx skills@latest update --help.
Quickstart
Inside the repo that should become a wiki:
/pin-llm-wiki init
/pin-llm-wiki ingest https://github.com/org/repo
/pin-llm-wiki queue https://example.com
/pin-llm-wiki ingest
/pin-llm-wiki lint
After init, follow the generated wiki’s AGENTS.md; it is the operating manual for agents working in that knowledge base.
Commands
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add ndjordjevic/pin-llm-wiki