一键导入
wittsrc-timeline
从 Brain Pages 中提取时间线数据,生成概念演变/人物活动时间/手稿写作历史的时间线视图。 用于蒸馏 Step 2 心智模型中的"版本"和"演变"字段。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
从 Brain Pages 中提取时间线数据,生成概念演变/人物活动时间/手稿写作历史的时间线视图。 用于蒸馏 Step 2 心智模型中的"版本"和"演变"字段。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
对 Brain Pages 执行分级实体富化。 Tier 3(单次提及)→ Tier 2(3次提及或跨来源)→ Tier 1(8次提及或核心人物/概念)。 从 SEP/IEP 百科、Gutenberg 简介中提取补充信息。
知识图谱遍历:基于抽取的 typed links(cites/evolves_to/contradicts/influenced_by) 执行递归图查询。回答关系型问题,如"Ms-114 和 Ms-152 之间有什么关系"、 "语言游戏概念是如何演变的"。
将 Wittgenstein 语料(WittSrc/Clarino/Gutenberg)导入 Brain Pages。 识别文件类型,按规则路由到 brain/ 目录(works/concepts/people/timelines), 执行 chunking、embedding 和去重。
零 LLM 抽取 Wittgenstein 文本中的实体引用,生成 typed links 构建知识图谱。 通过正则匹配手稿编号、人名、哲学概念,生成 cites/evolves_to/contradicts/influenced_by 关系。
维护 Brain 健康状态:检查孤儿页(无入链)、死链接(目标不存在)、 过期页(90天未更新)、引用审计和标签一致性。
混合搜索:结合向量检索(pgvector)、关键词检索(tsvector)和 Reciprocal Rank Fusion(RRF), 对 Wittgenstein Brain 进行多层检索。支持意图分类、多查询扩展、编译真理提升。
| name | wittsrc-timeline |
| version | 1.0.0 |
| description | 从 Brain Pages 中提取时间线数据,生成概念演变/人物活动时间/手稿写作历史的时间线视图。 用于蒸馏 Step 2 心智模型中的"版本"和"演变"字段。 |
| triggers | ["时间线","timeline","演变","evolution","什么时候","when did","手稿写作历史"] |
| tools | ["wittsrc-timeline"] |
| mutating | false |
从 Brain Pages 的 timeline 区域(--- 分隔线后)提取结构化时间线,
为概念演变分析和 Persona 版本管理提供数据支撑。
Brain Page 中的 timeline 区域遵循固定格式:
---
type: concept
title: Language Game
period: [1930, 1951]
---
... compiled truth above ...
---
## Timeline
- 1930-01: First occurrence in Ms-112, used tentatively
- 1933-01: Fully developed in Ms-152
- 1937-01: Appears in Ts-212 (Big Typescript)
- 1945-01: Last revision before death
- 1953-01: Published posthumously in PI §1-7
// 时间线条目正则
const TIMELINE_ENTRY = /^-\s*(\d{4}(?:-\d{2})?(?:-\d{2})?):\s*(.+)$/gm;
// 支持格式:
// - 1930-01: Event description
// - 1930: Event description
// - 1930-01-15: Event description
| 类型 | 来源 | 示例 |
|---|---|---|
work-timeline | 手稿写作时间 | Ms-114 写于 1912-1916 |
concept-timeline | 概念演变 | 语言游戏 1930→1953 |
person-timeline | 人物活动时间 | Russell 1912 访剑桥 |
period-timeline | 哲学时期 | 早期/过渡/后期分界 |
# 生成单个概念的时间线
bun run scripts/wittsrc-timeline.ts concept-language-game
# 生成所有概念的时间线
bun run scripts/wittsrc-timeline.ts --all --type concept
# 生成手稿写作时间线
bun run scripts/wittsrc-timeline.ts --all --type work
# 生成哲学时期分界时间线
bun run scripts/wittsrc-timeline.ts --periods
# 比较两个概念的时间线重叠
bun run scripts/wittsrc-timeline.ts concept-language-game concept-private-language --compare
{
"slug": "concept-language-game",
"title": "Language Game",
"type": "concept",
"span": [1930, 1953],
"entries": [
{ "date": "1930-01", "event": "First occurrence in Ms-112", "slug": "work-ms-112", "confidence": 0.95 },
{ "date": "1933-01", "event": "Fully developed in Ms-152", "slug": "work-ms-152", "confidence": 0.90 },
{ "date": "1937-01", "event": "Appears in Ts-212", "slug": "work-ts-212", "confidence": 0.92 },
{ "date": "1953-01", "event": "Published in PI §1-7", "slug": "work-pi", "confidence": 1.0 }
],
"gaps": [
{ "start": "1933-01", "end": "1937-01", "duration": "4 years" }
]
}
每个心智模型的 evidence 字段需要按时间排序:
interface MentalModel {
// ...
timeline: Array<{
year: number;
quote: string;
source: string;
interpretation: string;
}>;
}
时间线工具帮助填充这个字段:
时间线也用于跟踪 Persona 自身的版本演化:
## WittSrc Brain 更新时间线
- 2026-04-20: 初始导入 WittSrc 140 手稿
- 2026-04-21: 抽取首批链接,生成引用图
- 2026-05-01: 集成 SEP/IEP 百科富化
- 2026-05-15: 完成所有 162 份 Nachlass 覆盖