wiki-ingest
它能做什么
这个工具可以把原始文档中的信息整理成 Wiki 中相互关联的知识。它会为来源、概念和摘要创建页面,并确保所有内容都建立了链接,且正确标注了出处。
适用场景
- ✓当你被分配了把新文档添加到 Wiki 的任务时。
- ✓当你需要把文本文件转换为有条理的 Wiki 格式时。
- ✓当你希望新信息被正确引用,并与已有知识相互链接时。
技能链接
https://github.com/paperclipai/paperclip/blob/master/packages/plugins/plugin-llm-wiki/skills/wiki-ingest/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把 'raw/my_document.txt' 中的文档导入 Wiki。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会读取文档,检查 Wiki 中已有的内容以避免重复,然后为这些内容创建新页面。它还会在页面之间添加链接,并更新主索引。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Wiki Ingest
Turn one source document into durable, interlinked wiki knowledge.
Inputs
- An operation issue with
operationType: "ingest"assigned to you. - A
raw/path mentioned in the issue body (always treatraw/as immutable). - The operation issue's target
wikiId,spaceSlug, and space root (otherwise stop and surface the missing config to the requester).
Workflow
- Read context first.
- Read the target space's
AGENTS.mdfor page conventions (filenames, frontmatter, voice, citation style). - Read the target space's
wiki/index.mdto see what already exists. - Read the target space's last ~20 entries of
wiki/log.mdto avoid re-ingesting a source or re-resolving a contradiction someone else already filed.
- Read the target space's
- Read the source end to end with
wiki_read_source, passing the operation issue'swikiIdandspaceSlug. Do not skim. Note the source's structure, claims, dates, and anything that contradicts existing pages. - Plan, then confirm — but only if the user is in the loop. If the operation came from a routine (no live user), proceed. If a user is asking interactively, summarise the 3–5 takeaways you intend to file and ask which to emphasise before writing.
- Write the source page at
wiki/sources/<slug>.md— ~300–800 words, frontmatter per the wiki schema, neutral voice, key claims with quoted excerpts where they carry weight. The source page is the canonical citation target for everything else this skill writes. - Update or create downstream pages in
entities/,concepts/, andsynthesis/. A typical ingest touches 5–15 pages; resist creating pages for ideas that only appear once. - Wire the cross-links. Every claim that comes from the source cites it as
(see [[wiki/sources/<slug>]]). Every entity / concept mentioned by name on more than one page links to its dedicated page. - Flag contradictions; do not silently overwrite. When new material disagrees with an existing page, append a
> ⚠ contradicted by [[wiki/sources/<slug>]] (YYYY-MM-DD)callout to the older page and note the conflict in the log. - Refresh
wiki/index.mdwith one-line summaries for any new pages. - Append a log entry in
wiki/log.md:## [YYYY-MM-DD] ingest | <source title> - source: raw/<filename> - new pages: [[...]], [[...]] - updated pages: [[...]], [[...]] - notes: <one-line synthesis or open question>
Voice
- Terse, factual, neutral. Reference material, not narrative.
- No "Today I learned" or "This is interesting because" framing.
- Quote the source verbatim when paraphrasing would lose precision.
Verification
Before closing the operation issue:
- Source page exists at
wiki/sources/<slug>.mdwith valid frontmatter and asources:field pointing to the raw path. - Every new or updated page links back to the source page or a downstream page that does.
-
wiki/index.mdlists every new page under the right category with a one-line summary. -
wiki/log.mdhas the ingest entry with the exact filename heading format (sogrep "^## \[" wiki/log.mdkeeps working). - Any contradiction between the new source and an older page is annotated, not silently overwritten.
- No file under
raw/was modified.
Tools
wiki_list_sources, wiki_read_source, wiki_search, wiki_read_page, wiki_write_page. Always include the operation issue's wikiId and spaceSlug.
常见问题
如果新文档与 Wiki 中已有的内容相矛盾怎么办?
工具不会删除旧信息,而是在旧页面上添加备注,说明存在矛盾以及新信息的位置。
工具怎么知道该如何组织页面?
它会读取 Wiki 空间的格式和风格约定,例如 'AGENTS.md' 文件,确保新页面遵循既定的规范。
什么是“实体页面”和“概念页面”?
实体页面指文档中提到的具体人物、地点或组织。概念页面则解释文档涵盖的一般性概念或主题。
详情
作者的原始描述
Use when an operation issue asks to ingest a captured `raw/` source into the LLM Wiki, or the user says "ingest <slug>". Create durable source, entity, concept, synthesis, index, and log pages; use paperclip-distill for Paperclip bundles.
repo: paperclipai/paperclip
热度
- GitHub 星标
- 103k
- 排名
- #792
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …