@itradingai/aiwiki 0.2.18 → 0.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +16 -12
  2. package/dist/src/app.js +9 -17
  3. package/dist/src/ingest.js +52 -27
  4. package/dist/src/lint.js +84 -1
  5. package/dist/src/payload.js +25 -10
  6. package/dist/src/wiki-entry.js +3 -3
  7. package/dist/src/workspace.js +18 -9
  8. package/docs/20260607-aiwiki-feature-pruning-plan.md +468 -0
  9. package/docs/20260607-aiwiki-long-term-operating-roadmap.md +409 -0
  10. package/docs/AGENT_HANDOFF.md +6 -7
  11. package/docs/FAQ.md +8 -2
  12. package/docs/README.md +8 -4
  13. package/docs/RELEASE.md +9 -14
  14. package/docs/ROADMAP.md +5 -0
  15. package/docs/SHOWCASE.md +19 -9
  16. package/docs/USAGE.md +23 -19
  17. package/docs/development-log.md +227 -0
  18. package/examples/demo-run/README.md +28 -0
  19. package/examples/demo-run/context-output.json +341 -0
  20. package/examples/demo-run/ingest-agent-output.txt +25 -0
  21. package/examples/demo-run/ingest-file-output.txt +23 -0
  22. package/examples/demo-run/input/agent-enriched-payload.json +88 -0
  23. package/examples/demo-run/input/local-article.md +5 -0
  24. package/examples/demo-run/lint-output.json +46 -0
  25. package/examples/demo-run/query-output.txt +54 -0
  26. package/examples/demo-run/setup-output.txt +9 -0
  27. package/examples/demo-run/status-output.txt +20 -0
  28. package/examples/obsidian-vault-sample/02-raw/articles/llm-wiki-notes.md +32 -0
  29. package/examples/obsidian-vault-sample/02-raw/articles/local-article.md +33 -0
  30. package/examples/obsidian-vault-sample/03-sources/article-cards/llm-wiki-notes.md +62 -0
  31. package/examples/obsidian-vault-sample/03-sources/article-cards/local-article.md +58 -0
  32. package/examples/obsidian-vault-sample/04-claims/_suggestions/llm-wiki-notes-claims.md +58 -0
  33. package/examples/obsidian-vault-sample/05-wiki/source-knowledge/llm-wiki-notes.md +103 -0
  34. package/examples/obsidian-vault-sample/05-wiki/source-knowledge/local-article.md +72 -0
  35. package/examples/obsidian-vault-sample/06-assets/_suggestions/llm-wiki-notes-assets.md +29 -0
  36. package/examples/obsidian-vault-sample/07-topics/ready/llm-wiki-notes-topics.md +29 -0
  37. package/examples/obsidian-vault-sample/08-outputs/outlines/llm-wiki-notes-outline.md +43 -0
  38. package/examples/obsidian-vault-sample/09-runs/20260608-160603905-085f05/payload.json +24 -0
  39. package/examples/obsidian-vault-sample/09-runs/20260608-160603905-085f05/processing-summary.md +56 -0
  40. package/examples/obsidian-vault-sample/09-runs/20260608-160603905-085f05/raw.md +33 -0
  41. package/examples/obsidian-vault-sample/09-runs/20260608-160603905-085f05/source-card.md +58 -0
  42. package/examples/obsidian-vault-sample/09-runs/20260608-160603905-085f05/wiki-entry.md +72 -0
  43. package/examples/obsidian-vault-sample/09-runs/20260608-160603980-89f570/creative-assets.md +29 -0
  44. package/examples/obsidian-vault-sample/09-runs/20260608-160603980-89f570/draft-outline.md +43 -0
  45. package/examples/obsidian-vault-sample/09-runs/20260608-160603980-89f570/payload.json +91 -0
  46. package/examples/obsidian-vault-sample/09-runs/20260608-160603980-89f570/processing-summary.md +67 -0
  47. package/examples/obsidian-vault-sample/09-runs/20260608-160603980-89f570/raw.md +32 -0
  48. package/examples/obsidian-vault-sample/09-runs/20260608-160603980-89f570/source-card.md +62 -0
  49. package/examples/obsidian-vault-sample/09-runs/20260608-160603980-89f570/topics.md +29 -0
  50. package/examples/obsidian-vault-sample/09-runs/20260608-160603980-89f570/wiki-entry.md +103 -0
  51. package/examples/obsidian-vault-sample/_system/index.md +37 -0
  52. package/examples/obsidian-vault-sample/_system/log.md +8 -0
  53. package/examples/obsidian-vault-sample/_system/purpose.md +31 -0
  54. package/examples/obsidian-vault-sample/_system/schemas/aiwiki-frontmatter.md +21 -0
  55. package/examples/obsidian-vault-sample/_system/templates/review-note.md +16 -0
  56. package/examples/obsidian-vault-sample/_system/templates/source-card.md +34 -0
  57. package/examples/obsidian-vault-sample/aiwiki.yaml +18 -0
  58. package/examples/obsidian-vault-sample/dashboards/AIWiki Home.md +31 -0
  59. package/examples/obsidian-vault-sample/dashboards/Recent Runs.md +10 -0
  60. package/examples/obsidian-vault-sample/dashboards/Review Queue.md +12 -0
  61. package/examples/obsidian-vault-sample/dashboards/Source Cards.md +10 -0
  62. package/examples/obsidian-vault-sample/dashboards/Topic Pipeline.md +10 -0
  63. package/examples/obsidian-vault-sample/dashboards/Wiki Entries.md +10 -0
  64. package/package.json +13 -2
  65. package/skill/LINT_PROTOCOL.md +6 -4
  66. package/skill/SKILL.md +12 -5
  67. package/docs/POSITIONING_CONTEXT_COMPILER_PLAN.md +0 -347
@@ -0,0 +1,34 @@
1
+ ---
2
+ aiwiki_id: ""
3
+ type: "source_card"
4
+ status: "to-review"
5
+ slug: ""
6
+ title: ""
7
+ source_url: ""
8
+ source_type: ""
9
+ created_at: ""
10
+ captured_at: ""
11
+ run_id: ""
12
+ source_card: ""
13
+ raw_note: ""
14
+ claims_note: ""
15
+ assets_note: ""
16
+ topics_note: ""
17
+ outline_note: ""
18
+ run_summary: ""
19
+ tags: ["aiwiki/source-card"]
20
+ ---
21
+
22
+ # 资料卡
23
+
24
+ ## Obsidian 链接
25
+
26
+ - 原文:
27
+ - Claim 建议:
28
+ - 素材建议:
29
+ - 选题:
30
+ - 大纲:
31
+ - 处理记录:
32
+
33
+ ## 摘要
34
+
@@ -0,0 +1,18 @@
1
+ product: aiwiki
2
+ schema_version: 1
3
+ created_at: "2026-06-08T16:06:03.826Z"
4
+
5
+ knowledge_base:
6
+ id: default
7
+ name: AIWiki
8
+ language: zh-CN
9
+
10
+ agent:
11
+ url_first: true
12
+ fetch_owner: host_agent
13
+ cli_fetch_webpage: false
14
+
15
+ review:
16
+ wiki_merge_policy: manual
17
+ claim_policy: suggest_only
18
+ asset_policy: suggest_only
@@ -0,0 +1,31 @@
1
+ # AIWiki 首页
2
+
3
+ AIWiki 的 Obsidian 入口。Dataview 是可选增强;未安装时仍可使用下方普通链接、Properties、Backlinks 和 Graph View。
4
+
5
+ ## 原生链接入口
6
+
7
+ - [[dashboards/Wiki Entries|Wiki 条目]]
8
+ - [[dashboards/Source Cards|资料卡]]
9
+ - [[dashboards/Review Queue|待审队列]]
10
+ - [[dashboards/Recent Runs|最近处理]]
11
+ - [[dashboards/Topic Pipeline|选题管线]]
12
+ - [[dashboards/Lint Report|结构检查]]
13
+ - [[_system/schemas/aiwiki-frontmatter|字段说明]]
14
+
15
+ ## 最近收录
16
+
17
+ ```dataview
18
+ TABLE status, source_url, captured_at, run_summary
19
+ FROM "03-sources/article-cards"
20
+ WHERE type = "source_card"
21
+ SORT captured_at DESC
22
+ ```
23
+
24
+ ## 待审队列
25
+
26
+ ```dataview
27
+ TABLE type, status, source_card, raw_note, run_summary
28
+ FROM "03-sources/article-cards" or "04-claims/_suggestions" or "06-assets/_suggestions" or "08-outputs/outlines"
29
+ WHERE status = "to-review"
30
+ SORT created_at DESC
31
+ ```
@@ -0,0 +1,10 @@
1
+ # 最近处理
2
+
3
+ 处理记录用于追溯每次宿主 Agent 入库的 payload、产物和告警。
4
+
5
+ ```dataview
6
+ TABLE status, source_url, source_card, raw_note, created_at
7
+ FROM "09-runs"
8
+ WHERE type = "processing_summary"
9
+ SORT created_at DESC
10
+ ```
@@ -0,0 +1,12 @@
1
+ # 待审队列
2
+
3
+ 未安装 Dataview 时,可直接打开 [[03-sources/article-cards]]、[[04-claims/_suggestions]]、[[06-assets/_suggestions]] 和 [[08-outputs/outlines]] 手工审阅。
4
+
5
+ ## 待审内容
6
+
7
+ ```dataview
8
+ TABLE type, source_url, source_card, raw_note, claims_note, assets_note, outline_note
9
+ FROM "03-sources/article-cards" or "04-claims/_suggestions" or "06-assets/_suggestions" or "08-outputs/outlines"
10
+ WHERE status = "to-review"
11
+ SORT captured_at DESC
12
+ ```
@@ -0,0 +1,10 @@
1
+ # 资料卡
2
+
3
+ 资料卡用于追踪来源、原文、Claim 建议、素材建议、选题和大纲。
4
+
5
+ ```dataview
6
+ TABLE status, source_url, wiki_entry, raw_note, captured_at
7
+ FROM "03-sources/article-cards"
8
+ WHERE type = "source_card"
9
+ SORT captured_at DESC
10
+ ```
@@ -0,0 +1,10 @@
1
+ # 选题管线
2
+
3
+ 选题和大纲是从资料卡继续写作的入口。
4
+
5
+ ```dataview
6
+ TABLE status, source_card, outline_note, source_url, created_at
7
+ FROM "07-topics/ready" or "08-outputs/outlines"
8
+ WHERE type = "topic_candidates" or type = "draft_outline"
9
+ SORT created_at DESC
10
+ ```
@@ -0,0 +1,10 @@
1
+ # Wiki 条目
2
+
3
+ AIWiki 每次成功入库都会生成 Wiki Entry。这里是知识层入口,不要求先经过 Review Queue 才能查询。
4
+
5
+ ```dataview
6
+ TABLE wiki_type, source_role, represents_user_view, quality, source_card, raw_file, updated_at
7
+ FROM "05-wiki"
8
+ WHERE type = "wiki_entry"
9
+ SORT updated_at DESC
10
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itradingai/aiwiki",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "type": "module",
5
5
  "description": "Agent-first AI knowledge base CLI for turning articles, links and notes into Obsidian-ready source cards, topics, outlines and reusable knowledge assets.",
6
6
  "license": "MIT",
@@ -38,8 +38,19 @@
38
38
  "LICENSE",
39
39
  "CONTRIBUTING.md",
40
40
  "SECURITY.md",
41
- "docs/*.md",
41
+ "docs/20260607-aiwiki-feature-pruning-plan.md",
42
+ "docs/20260607-aiwiki-long-term-operating-roadmap.md",
43
+ "docs/AGENT_HANDOFF.md",
44
+ "docs/FAQ.md",
45
+ "docs/OBSIDIAN_DATAVIEW_PLAN.md",
46
+ "docs/README.md",
47
+ "docs/RELEASE.md",
48
+ "docs/ROADMAP.md",
49
+ "docs/SHOWCASE.md",
50
+ "docs/USAGE.md",
51
+ "docs/development-log.md",
42
52
  "docs/architecture.svg",
53
+ "examples",
43
54
  "skill"
44
55
  ],
45
56
  "bin": {
@@ -9,17 +9,17 @@ Use this protocol when the user asks:
9
9
 
10
10
  ## Steps
11
11
 
12
- 1. Call:
12
+ 1. Call JSON lint first:
13
13
 
14
14
  ```bash
15
- aiwiki lint
15
+ aiwiki lint --json
16
16
  ```
17
17
 
18
- 2. When you need machine-readable triage, call:
18
+ 2. If `safe_fixes.only_safe_fixes` is true and the user allows cleanup, apply the built-in safe fix and rerun JSON lint:
19
19
 
20
20
  ```bash
21
+ aiwiki lint --fix-empty-dirs --json
21
22
  aiwiki lint --json
22
- aiwiki next
23
23
  ```
24
24
 
25
25
  3. Read the terminal report.
@@ -38,6 +38,7 @@ dashboards/Lint Report.md
38
38
  - `error`: broken structure such as a missing internal link.
39
39
  - `warning`: likely fix needed, such as missing source fields or stale fallback entries.
40
40
  - `info`: useful inventory, such as deterministic fallback count or duplicate titles.
41
+ - `safe_fixes`: machine-readable count of safe fixes available/applied; `only_safe_fixes` means all current issues are safe to apply with the supported fixer.
41
42
 
42
43
  ## Repair Guidance
43
44
 
@@ -47,3 +48,4 @@ Prefer small, traceable fixes:
47
48
  - Fix broken wikilinks.
48
49
  - Add missing `source_card` or `raw_file` paths.
49
50
  - Ask the host Agent to provide `analysis` for scaffold entries.
51
+ - Remove empty optional enhancement directories only through `aiwiki lint --fix-empty-dirs --json`; do not delete core directories, unknown directories, non-empty directories, or files.
package/skill/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: aiwiki
3
3
  description: Agent-first AIWiki workflow for turning one URL/body into local Wiki knowledge files.
4
4
  ---
5
5
 
6
- <!-- aiwiki-skill-version: 0.2.18 -->
6
+ <!-- aiwiki-skill-version: 0.2.19 -->
7
7
 
8
8
  # AIWiki Skill
9
9
 
@@ -132,7 +132,7 @@ Because AIWiki CLI does not call an LLM, high-quality summary and knowledge extr
132
132
  },
133
133
  "request": {
134
134
  "mode": "ingest",
135
- "outputs": ["source_card", "wiki_entry", "creative_assets", "topics", "draft_outline", "processing_summary"],
135
+ "outputs": ["source_card", "wiki_entry", "processing_summary"],
136
136
  "language": "zh-CN"
137
137
  }
138
138
  }
@@ -208,13 +208,20 @@ aiwiki query "<topic>"
208
208
 
209
209
  ## Lint Protocol
210
210
 
211
- When the user asks to整理 / 检查 / lint the knowledge base, call:
211
+ When the user asks to整理 / 检查 / lint the knowledge base, first call JSON lint:
212
212
 
213
213
  ```bash
214
- aiwiki lint
214
+ aiwiki lint --json
215
215
  ```
216
216
 
217
- Explain warnings and errors as structure-health feedback. Do not frame lint as a requirement that the user manually review every item.
217
+ If `safe_fixes.only_safe_fixes` is true and the user has allowed cleanup, apply the built-in safe fix and rerun JSON lint:
218
+
219
+ ```bash
220
+ aiwiki lint --fix-empty-dirs --json
221
+ aiwiki lint --json
222
+ ```
223
+
224
+ Only `remove_empty_optional_dir` is auto-safe today. It removes known empty optional enhancement directories and must not delete core directories, unknown directories, non-empty directories, or files. Explain warnings and errors as structure-health feedback. Do not frame lint as a requirement that the user manually review every item.
218
225
 
219
226
  ## Source Role
220
227
 
@@ -1,347 +0,0 @@
1
- # AIWiki 定位调整与产品方案
2
-
3
- 本文基于 `20260607-aiwiki定位.md` 的判断,并结合当前 AIWiki 仓库现状整理。结论是:文档大方向可取,但不能把 AIWiki 改成重学习、重记忆、重人工复习的 Knowledge MEMO。AIWiki 更适合继续做 Agent-first 本地上下文编译器。
4
-
5
- ## 一句话定位
6
-
7
- AIWiki 不是替代搜索,也不是替你读书,而是把你真正需要反复调用的资料、判断和输出,编译成 AI 能查询、能引用、能检查、能继续使用的本地知识资产。
8
-
9
- 更锋利的对外表达:
10
-
11
- > 公开知识交给搜索。
12
- > 私有判断、项目经验、输出风格、证据链,交给 AIWiki。
13
-
14
- ## 建议取舍判断
15
-
16
- | 文档建议 | 判断 | 原因 | 落地优先级 |
17
- | --- | --- | --- | --- |
18
- | 不把 AIWiki 宣传成普通个人知识库或资料索引 | 可取 | 当前 README 已强调 Agent-first 和本地 LLM-wiki 后端,但还可以更明确地区分搜索、收藏夹和上下文编译器 | P0 |
19
- | 保留 Markdown Wiki 形态 | 可取 | AIWiki 面向人和 Agent 协作,Markdown 的可读、可 diff、可回滚、可被 Agent 编辑是核心优势 | P0 |
20
- | 强化个人判断层 | 强烈可取 | 当前 payload 已有 `source_role=processing`,但产品心智和目录/命令输出还没有把 personal insight 变成一等资产 | P0 |
21
- | 强化输出资产层 | 强烈可取 | 当前已有 `source_role=output` 和 `represents_user_view=true` 边界,这是 AIWiki 最有差异化的一层 | P0 |
22
- | `context` 从资料检索升级为任务上下文包 | 强烈可取 | 当前 `context` 已是 JSON 结构,适合加 `mode` 和按任务分组的结果,不需要推倒重做 | P0 |
23
- | `query` 输出按资料类型分组 | 可取 | 这是低成本心智升级:从“搜索结果”变成“知识资产调度” | P1 |
24
- | `lint` 从结构检查升级为知识质量检查 | 可取 | 当前 lint 已有元数据边界、fallback、grounding 检查,可继续加入 insight/output/evidence 使用关系检查 | P1 |
25
- | `next` 从命令导航升级为加工建议 | 可取 | 适合帮助用户把资料推进到 insight、output、topic 或 review,而不是只提示下一条 CLI 命令 | P1 |
26
- | 新增 Retain / Review | 部分可取 | 可以做轻量回看,但不应成为主流程,也不要第一阶段引入 FSRS 或 Anki 式学习系统 | P2 |
27
- | 把 AIWiki 改成纯人脑内化工具 | 不建议 | 会偏离当前 Agent-first CLI 边界,也会让产品过重 | 不做 |
28
- | 引入多知识库、自动采集、内置网页抓取 | 不建议 | 与当前仓库 AGENTS.md 和 README 边界冲突;这些属于 AIWiki Pro 或宿主 Agent/服务层,不属于基础 CLI | 不做 |
29
-
30
- ## 产品原则
31
-
32
- 1. AIWiki 只沉淀值得复用的上下文,不收藏所有公开知识。
33
- 2. 外部资料默认不代表用户观点。
34
- 3. 用户自己的输出和判断比外部输入更值钱。
35
- 4. AIWiki CLI 不调用 LLM;高质量分析由宿主 Agent 提供,AIWiki 负责规范、落盘、追踪、检查。
36
- 5. 保持单知识库、单命令 `aiwiki`、本地 Markdown 的基本边界。
37
- 6. Review / Retain 是增强闭环,不是默认主流程。
38
-
39
- ## 三类知识资产模型
40
-
41
- ### 1. Source Knowledge:来源证据
42
-
43
- 用于保存外部文章、网页、报告、视频转写、书籍摘录等。
44
-
45
- 建议字段:
46
-
47
- ```yaml
48
- source_role: input
49
- wiki_type: source_knowledge
50
- represents_user_view: false
51
- ```
52
-
53
- 价值标准:
54
-
55
- - 是否能作为证据引用。
56
- - 是否能支撑观点或反驳观点。
57
- - 是否能生成选题、方案、脚本或研究方向。
58
- - 是否能和已有资料、判断、输出建立连接。
59
-
60
- ### 2. Personal Insight:个人判断
61
-
62
- 用于保存用户或宿主 Agent 帮用户整理出的判断、取舍、冲突、决策理由。
63
-
64
- 建议先复用现有 `source_role=processing`,并把 `wiki_type` 从宽泛的 `thought_note` 收窄为更明确的 `personal_insight` 或 `decision_note`。第一阶段可以兼容旧值。
65
-
66
- 建议字段:
67
-
68
- ```yaml
69
- type: insight_note
70
- source_role: processing
71
- wiki_type: personal_insight
72
- represents_user_view: true
73
- confidence: low | medium | high
74
- based_on:
75
- - 03-sources/article-cards/example.md
76
- - 05-wiki/source-knowledge/example.md
77
- used_for:
78
- - article
79
- - product_decision
80
- - client_solution
81
- - research
82
- ```
83
-
84
- 条目应回答:
85
-
86
- - 我认同什么,为什么。
87
- - 我反对什么,为什么。
88
- - 对项目、文章、产品或客户方案有什么启发。
89
- - 能否转成文章观点、产品决策或执行动作。
90
- - 和我已有判断是否冲突。
91
-
92
- ### 3. Output Knowledge:可复用输出
93
-
94
- 用于保存用户已经发布或交付过的文章、方案、PRD、README、报价、视频脚本、群内回答等。
95
-
96
- 建议字段:
97
-
98
- ```yaml
99
- source_role: output
100
- wiki_type: personal_knowledge
101
- represents_user_view: true
102
- ```
103
-
104
- 价值标准:
105
-
106
- - 能反映用户真实观点。
107
- - 能反映用户表达风格。
108
- - 能被新文章、新方案、新脚本复用。
109
- - 能回溯到支撑它的 source 和 insight。
110
-
111
- ## 命令方案
112
-
113
- ### `aiwiki context`
114
-
115
- 定位:从“相关资料包”升级为“任务上下文包”。
116
-
117
- 新增 `--mode`:
118
-
119
- ```bash
120
- aiwiki context "AI知识库是否还有必要" --mode write
121
- aiwiki context "AIWiki产品定位" --mode decide
122
- aiwiki context "Karpathy LLM Wiki" --mode research
123
- aiwiki context "我的公众号文章风格" --mode style
124
- aiwiki context "某个知识点" --mode learn
125
- ```
126
-
127
- 建议返回结构:
128
-
129
- ```json
130
- {
131
- "schema_version": "aiwiki.context.v2",
132
- "query": "AIWiki产品定位",
133
- "mode": "decide",
134
- "external_sources": [],
135
- "personal_insights": [],
136
- "past_outputs": [],
137
- "conflicts": [],
138
- "usable_arguments": [],
139
- "missing_context": [],
140
- "recommended_next_action": ""
141
- }
142
- ```
143
-
144
- 兼容策略:
145
-
146
- - 保留 v1 `matches` 结构一段时间。
147
- - v2 可以先在结果中新增字段,不立刻移除旧字段。
148
- - `--mode` 缺省为 `general`。
149
-
150
- ### `aiwiki query`
151
-
152
- 定位:给人看的知识资产摘要,不是普通搜索结果。
153
-
154
- 建议输出分组:
155
-
156
- ```text
157
- 外部资料
158
- - ...
159
-
160
- 个人判断
161
- - ...
162
-
163
- 已发布输出
164
- - ...
165
-
166
- 证据与冲突
167
- - ...
168
-
169
- 建议下一步
170
- - ...
171
- ```
172
-
173
- 优先级:
174
-
175
- - 命中 output 和 insight 时,展示在 source 前面。
176
- - source 只作为证据,不默认当成结论。
177
-
178
- ### `aiwiki lint`
179
-
180
- 定位:从文件结构健康检查升级为知识资产健康检查。
181
-
182
- 保留现有检查:
183
-
184
- - 缺少系统文件。
185
- - Source Card 没有 Wiki Entry。
186
- - Wiki Entry 缺少 source_card / raw_file。
187
- - fallback scaffold 过期。
188
- - grounding needs review。
189
- - `represents_user_view=true` 但不是 output。
190
- - 重复 URL、重复标题、断链。
191
-
192
- 新增质量检查:
193
-
194
- - 某主题只有 source,没有 insight。
195
- - 某 insight 没有 `based_on`。
196
- - 某 output 没有关联 source 或 insight。
197
- - source 被错误标记为代表用户观点。
198
- - claim 没有 source quote 或证据边界。
199
- - 某主题存在冲突观点但没有决策结论。
200
- - enriched entry 只有摘要,没有 reusable judgment / reusable knowledge。
201
-
202
- ### `aiwiki next`
203
-
204
- 定位:从命令导航升级为加工建议。
205
-
206
- 建议输出:
207
-
208
- ```text
209
- 当前最值得做:
210
- - 这 3 篇 source 只有摘要,没有个人判断。
211
- - 这个主题已有 5 条 source,可以生成主题页。
212
- - 这条 output 没有证据链,建议补 linked sources。
213
- - 这个观点和历史输出存在冲突,建议进入 review。
214
- ```
215
-
216
- ### `aiwiki review` 或 `aiwiki retain`
217
-
218
- 定位:轻量回看,不做重学习系统。
219
-
220
- 第一版只做候选生成:
221
-
222
- ```text
223
- 今日建议回看:
224
- - 3 条个人 insight
225
- - 2 条高价值 source knowledge
226
- - 1 条已输出文章中的核心观点
227
-
228
- 可生成卡片:
229
- - 观点卡
230
- - 证据卡
231
- - 反驳卡
232
- - 案例卡
233
- - 输出卡
234
- ```
235
-
236
- 暂不做:
237
-
238
- - FSRS。
239
- - 每日强制复习。
240
- - Anki 兼容。
241
- - 学习进度系统。
242
-
243
- ## README 与对外话术
244
-
245
- 建议把开头改得更锋利:
246
-
247
- ```text
248
- AIWiki 是一个 Agent-first 本地上下文编译器。
249
-
250
- 它不替代搜索,也不替你读书,而是把你真正需要反复调用的资料、判断和输出,编译成 AI 能查询、能引用、能检查、能继续使用的本地知识资产。
251
- ```
252
-
253
- “它解决什么”建议改成:
254
-
255
- - 公开资料搜索得到,但你的使用场景、判断和输出痕迹搜不到。
256
- - 链接和资料散在聊天记录里,后续很难被 Agent 复用。
257
- - AI 总结过一次内容,但没有沉淀成可追踪、可查询、可检查的上下文资产。
258
- - 想把来源证据、个人判断、选题、大纲和已输出内容放进同一个本地知识系统。
259
- - 想让宿主 Agent 负责理解内容,让 AIWiki 负责稳定落盘、连接和检查。
260
-
261
- 不建议继续主打:
262
-
263
- ```text
264
- 打造你的 AI 个人知识库
265
- ```
266
-
267
- 这个说法太泛,容易被理解成“AI 时代还要不要收藏夹”。
268
-
269
- ## 分阶段落地
270
-
271
- ### P0:定位与 schema 心智对齐
272
-
273
- 目标:不大改代码,先把产品定位和现有字段解释清楚。
274
-
275
- 任务:
276
-
277
- 1. 更新 README、FAQ、USAGE 的定位话术。
278
- 2. 在 docs 中新增“三类资产模型”说明。
279
- 3. 在 Agent handoff / skill 中要求宿主 Agent 区分 source、insight、output。
280
- 4. 明确 `source_role=input` 永远不默认代表用户观点。
281
- 5. 为 `processing` 角色补充 personal insight 示例 payload。
282
-
283
- 验收:
284
-
285
- - 新用户能在 README 前 30 秒理解 AIWiki 不是搜索替代品。
286
- - 文档能解释 source、insight、output 三层差异。
287
- - 不引入新命令、不破坏旧 payload。
288
-
289
- ### P1:任务上下文与质量检查
290
-
291
- 目标:让 AIWiki 从“能查到资料”升级为“能为任务组织上下文”。
292
-
293
- 任务:
294
-
295
- 1. `context` 增加 `--mode`。
296
- 2. `context` 输出新增 `external_sources`、`personal_insights`、`past_outputs`、`conflicts`、`usable_arguments`、`missing_context`。
297
- 3. `query` 输出按资产类型分组。
298
- 4. `lint` 增加 insight/output/evidence 质量检查。
299
- 5. `next` 增加加工建议。
300
-
301
- 验收:
302
-
303
- - 同一个 query 在 `write`、`decide`、`research`、`style` 下返回不同的建议结构。
304
- - 有 insight/output 时优先暴露,不被 source 淹没。
305
- - `lint` 能指出“只有资料、没有个人判断”和“输出没有证据链”。
306
-
307
- ### P2:轻量回看闭环
308
-
309
- 目标:吸收 Retain 思想,但不把 AIWiki 变成学习软件。
310
-
311
- 任务:
312
-
313
- 1. 新增 `review` 或 `retain` 的候选生成命令。
314
- 2. 支持观点卡、证据卡、反驳卡、案例卡、输出卡。
315
- 3. Review Queue 只作为入口,不成为默认强制流程。
316
-
317
- 验收:
318
-
319
- - 命令能生成今日回看候选。
320
- - 不需要用户维护复杂学习计划。
321
- - 不引入 FSRS 或重型记忆系统。
322
-
323
- ## 不做清单
324
-
325
- - 不做通用网页抓取。
326
- - 不做多知识库。
327
- - 不做 CLI 内置 LLM。
328
- - 不做默认人工审核流程。
329
- - 不把 Review Queue 变成强制主流程。
330
- - 不把 AIWiki 改成 Anki 或 Knowledge MEMO。
331
- - 不用 `aiwiki-pro` 作为用户命令。
332
-
333
- ## 推荐任务拆分
334
-
335
- 1. `AIWIKI-POS-001`:更新 README / FAQ / USAGE 定位话术。
336
- 2. `AIWIKI-POS-002`:补充三类资产模型文档和示例 payload。
337
- 3. `AIWIKI-CTX-001`:为 `context` 增加 `--mode` 和 v2 结果字段。
338
- 4. `AIWIKI-QRY-001`:让 `query` 按 source / insight / output 分组展示。
339
- 5. `AIWIKI-LINT-001`:增加知识质量 lint。
340
- 6. `AIWIKI-NEXT-001`:让 `next` 输出加工建议。
341
- 7. `AIWIKI-REV-001`:设计轻量 review / retain 候选生成。
342
-
343
- ## 最终判断
344
-
345
- 这份定位文档对 AIWiki 是利好。它指出了“普通个人知识库/资料索引”在 AI 时代价值下降,这个判断应该接受;但它没有否定 AIWiki 的 Agent-first 本地上下文后端方向。真正可取的调整,是把 AIWiki 从“存知识”进一步收窄成“存上下文、判断和使用痕迹”。
346
-
347
- AIWiki 下一步最该做的不是扩功能,而是把已有地基讲清楚、排出优先级,然后补齐 personal insight、output knowledge、task context 和 quality lint 这四块。