1549171506/shizhengmubangai1/prefill
Claude Code and agent skill by 1549171506/shizhengmubangai1
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
用领域基础知识填充 wiki/foundations/,避免后续 /ingest 为教科书材料创建重复的 concept 页面
Install
npx vskill@latest install 1549171506/shizhengmubangai1/prefillSKILL.md
The same SKILL.md was published earlier as skyllwt/autosci/prefill.
/prefill
将领域基础知识(奠基性方法、common practice、标准架构)作为终端页面沉淀到wiki/foundations/。Foundations 设计上单向:其他页面可以链接到 foundation,foundation 不写反向链接。
Trigger
手动:/prefill [domain] 或 /prefill --add "概念名"。
Inputs
domain(位置参数,可选):研究领域 —general/NLP/CV/ML Systems/Robotics之一。未指定时从wiki/topics/标签推断;若 topics 为空则提示用户。--add "<概念>":跳过 catalog,直接为单个概念建立 foundation。
Outputs
wiki/foundations/{slug}.md— 每个种子一页- 更新的
wiki/index.md(由rebuild-index重生成 foundations 段落) wiki/log.md一条记录
Wiki Interaction
读取
wiki/topics/*.md— 用于推断 domain(未指定时)wiki/foundations/*.md— 跳过已存在的 foundation(幂等).claude/skills/prefill/foundations-catalog.yaml— 种子列表
写入
wiki/foundations/{slug}.md(仅新建,从不覆盖)wiki/index.md(通过tools/research_wiki.py rebuild-index)wiki/log.md(通过tools/research_wiki.py log)
Workflow
前置条件:当前目录包含 wiki/、tools/、.claude/。WIKI_ROOT=wiki/。
Step 1: 确定 domain
- 用户传入
domain→ 直接使用。 - 否则若处于
--add模式 → 默认general,除非用户额外指定。 - 否则:读取
wiki/topics/*.md的 frontmattertags;若能识别出主导 domain 则用之,否则提示用户。
Step 2: 加载种子
- Catalog 模式:读取
.claude/skills/prefill/foundations-catalog.yaml,取domains.{domain}下所有条目,并叠加domains.general的全部条目(general foundations 适用所有领域)。 - `--add` 模式:构造单一种子
{slug: <slugified concept>, title: <concept>, summary: ""}。Slug 用python3 tools/research_wiki.py slug "<concept>"生成。
对每个种子,若 wiki/foundations/{slug}.md 已存在则跳过(不覆盖、不警告)。
Step 3: 从 Wikipedia 拉取背景
对每个剩余种子调用 tools/fetch_wikipedia.py:
- summary 调用返回
{title, extract, url}。 - sections 调用返回
[{index, line, level}, ...]— 选取line包含Variants/Types/Architecture/History/Limitations/Applications的章节(大小写不敏感子串匹配)。 - 任意调用退出码为
2表示页面不存在 — 该种子回退到 LLM 知识,生成的 frontmatter 中source_url: ""。
Step 4: 组装 foundation 页面
按下方模板渲染。Wikipedia 来源的内容与 LLM 生成的内容需视觉上区分:纯 LLM 段落以 (LLM analysis) 标注。
每页写入 wiki/foundations/{slug}.md。
Step 5: 刷新导航和日志
Step 6: 报告
打印分组摘要:
提醒用户:后续 /ingest 会与这些 foundation 去重,遇到匹配概念时创建 [[foundation-slug]] 链接而非新建 concept 页面。
Constraints
- foundations 是终端节点:foundation 页面禁止写
key_papers、related_concepts或任何外向引用字段。其他页面可链入。 - 从不覆盖已存在的
wiki/foundations/{slug}.md(幂等)。 - 来源区分:Wikipedia 内容与 LLM 内容必须在页面正文中视觉上区分。
- catalog 是建议性的:seed YAML 由人工维护、不完整,用户可无需改代码自行扩展。
- 仅写入 `wiki/foundations/`:不会创建
papers/、concepts/、topics/等目录下的页面。
Error Handling
- `wiki/foundations/` 不存在:先运行
python3 tools/research_wiki.py init wiki/。 - Wikipedia 404:记录缺失页面,该种子回退 LLM 知识(
source_url: "")。 - 网络失败:打印失败的种子,继续处理其余种子,不中断整个批次。
- catalog 文件缺失:报错并指向
.claude/skills/prefill/foundations-catalog.yaml。
Dependencies
工具(通过 Bash)
python3 tools/fetch_wikipedia.py summary|sections|section|wikitext "<title>" [--index N]python3 tools/research_wiki.py slug "<title>"python3 tools/research_wiki.py rebuild-index wiki/python3 tools/research_wiki.py log wiki/ "<message>"
Catalog
.claude/skills/prefill/foundations-catalog.yaml
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingDesktop/123/empiricalwiki/i18n/zh/skills/prefill/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/1549171506/shizhengmubangai1/prefill)