evnict-kit 0.2.2 → 0.2.4
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.
- package/README.md +39 -2
- package/bin/cli.js +7 -1
- package/package.json +1 -1
- package/scripts/patch-workflows.js +142 -0
- package/scripts/postinstall.js +1 -1
- package/src/commands/init.js +18 -9
- package/src/commands/sync.js +317 -0
- package/src/commands/upgrade.js +7 -1
- package/src/utils/config.js +2 -2
- package/templates/GETTING-STARTED.md +23 -2
- package/templates/content/skills/evnict-kit-bug-fix/SKILL.md +1 -1
- package/templates/content/skills/evnict-kit-git-worktrees/SKILL.md +0 -2
- package/templates/content/skills/evnict-kit-onboard/SKILL.md +0 -1
- package/templates/content/skills/evnict-kit-spec/SKILL.md +1 -1
- package/templates/content/skills/evnict-kit-wiki/SKILL.md +16 -54
- package/templates/content/workflows/evnict-kit-archive-wiki.md +4 -5
- package/templates/content/workflows/evnict-kit-attt.md +1 -1
- package/templates/content/workflows/evnict-kit-bug-fix.md +1 -1
- package/templates/content/workflows/evnict-kit-feature-large.md +2 -2
- package/templates/content/workflows/evnict-kit-feature-small.md +1 -1
- package/templates/content/workflows/evnict-kit-init-wiki.md +18 -47
- package/templates/content/workflows/evnict-kit-wiki-archive-feature.md +2 -3
- package/templates/content/workflows/evnict-kit-wiki-query.md +3 -3
- package/templates/content/workflows/evnict-kit-wiki-scan-project.md +3 -4
- package/templates/skills/evnict-kit-bug-fix/SKILL.md +1 -1
- package/templates/skills/evnict-kit-create-component/SKILL.md +23 -0
- package/templates/skills/evnict-kit-create-page/SKILL.md +23 -0
- package/templates/skills/evnict-kit-frontend-design/SKILL.md +161 -0
- package/templates/skills/evnict-kit-spec/SKILL.md +1 -1
- package/templates/skills/evnict-kit-wiki/SKILL.md +16 -54
- package/templates/wiki/AGENTS.md +280 -0
- package/templates/wiki/CLAUDE.md +280 -0
- package/templates/wiki/FAQ.md +168 -0
- package/templates/wiki/README.md +272 -35
- package/templates/wiki/config.example.yaml +145 -17
- package/templates/wiki/scripts/run-wiki.sh +17 -0
- package/templates/wiki/scripts/setup-scheduler.ps1 +29 -0
- package/templates/wiki/skills/llm-wiki/SKILL.md +341 -0
- package/templates/wiki/wiki/INDEX.md +9 -0
- package/templates/wiki/wiki/INDEX.template.md +29 -0
- package/templates/wiki/wiki/LOG.md +3 -0
- package/templates/wiki/wiki/LOG.template.md +7 -0
- package/templates/wiki/wiki-viewer.html +408 -0
- package/templates/workflows/antigravity/evnict-kit-archive-wiki.md +24 -5
- package/templates/workflows/antigravity/evnict-kit-attt.md +21 -1
- package/templates/workflows/antigravity/evnict-kit-bug-fix.md +24 -1
- package/templates/workflows/antigravity/evnict-kit-feature-large.md +26 -2
- package/templates/workflows/antigravity/evnict-kit-feature-small.md +24 -1
- package/templates/workflows/antigravity/evnict-kit-handoff.md +23 -0
- package/templates/workflows/antigravity/evnict-kit-implement.md +23 -0
- package/templates/workflows/antigravity/evnict-kit-init-check.md +20 -0
- package/templates/workflows/antigravity/evnict-kit-init-context.md +20 -0
- package/templates/workflows/antigravity/evnict-kit-init-rules.md +20 -0
- package/templates/workflows/antigravity/evnict-kit-init-wiki.md +26 -8
- package/templates/workflows/antigravity/evnict-kit-plan.md +24 -0
- package/templates/workflows/antigravity/evnict-kit-review.md +20 -0
- package/templates/workflows/antigravity/evnict-kit-spec-archive.md +20 -0
- package/templates/workflows/antigravity/evnict-kit-wiki-archive-feature.md +22 -3
- package/templates/workflows/antigravity/evnict-kit-wiki-query.md +23 -3
- package/templates/workflows/antigravity/evnict-kit-wiki-scan-project.md +23 -4
- package/templates/workflows/claude/evnict-kit-archive-wiki.md +24 -5
- package/templates/workflows/claude/evnict-kit-attt.md +21 -1
- package/templates/workflows/claude/evnict-kit-bug-fix.md +24 -1
- package/templates/workflows/claude/evnict-kit-feature-large.md +26 -2
- package/templates/workflows/claude/evnict-kit-feature-small.md +24 -1
- package/templates/workflows/claude/evnict-kit-handoff.md +23 -0
- package/templates/workflows/claude/evnict-kit-implement.md +23 -0
- package/templates/workflows/claude/evnict-kit-init-check.md +20 -0
- package/templates/workflows/claude/evnict-kit-init-context.md +20 -0
- package/templates/workflows/claude/evnict-kit-init-rules.md +20 -0
- package/templates/workflows/claude/evnict-kit-init-wiki.md +25 -7
- package/templates/workflows/claude/evnict-kit-plan.md +24 -0
- package/templates/workflows/claude/evnict-kit-review.md +20 -0
- package/templates/workflows/claude/evnict-kit-spec-archive.md +20 -0
- package/templates/workflows/claude/evnict-kit-wiki-archive-feature.md +22 -3
- package/templates/workflows/claude/evnict-kit-wiki-query.md +23 -3
- package/templates/workflows/claude/evnict-kit-wiki-scan-project.md +23 -4
- package/templates/wiki/package.json +0 -17
- package/templates/wiki/raw/notes/.gitkeep +0 -1
- package/templates/wiki/scripts/ingest.js +0 -66
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: llm-wiki
|
|
3
|
+
description: Xây dựng và duy trì knowledge base cá nhân theo pattern LLM Wiki (Karpathy). Hỗ trợ init, ingest, query, lint, discover, run, digest, pain-rank.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# LLM Wiki — Claude Code Skill
|
|
7
|
+
|
|
8
|
+
Hệ thống knowledge base cá nhân. LLM xây dựng và duy trì wiki từ nguồn thô.
|
|
9
|
+
Dựa trên pattern của Andrej Karpathy, mở rộng với auto-discovery.
|
|
10
|
+
|
|
11
|
+
## Sub-commands
|
|
12
|
+
|
|
13
|
+
Skill này hỗ trợ các sub-commands sau. Parse argument đầu tiên để xác định command:
|
|
14
|
+
|
|
15
|
+
| Command | Mô tả | Ví dụ |
|
|
16
|
+
|---------|-------|-------|
|
|
17
|
+
| `init` | Tạo wiki mới cho một chủ đề | `/llm-wiki init "AI Agents"` |
|
|
18
|
+
| `ingest` | Xử lý nguồn mới trong raw/ | `/llm-wiki ingest` |
|
|
19
|
+
| `query` | Hỏi đáp dựa trên wiki | `/llm-wiki query "So sánh RAG vs Wiki"` |
|
|
20
|
+
| `lint` | Kiểm tra sức khỏe wiki | `/llm-wiki lint` |
|
|
21
|
+
| `discover` | Tự tìm nguồn mới | `/llm-wiki discover` |
|
|
22
|
+
| `run` | Chạy full cycle: discover → ingest → lint | `/llm-wiki run` |
|
|
23
|
+
| `status` | Xem trạng thái wiki | `/llm-wiki status` |
|
|
24
|
+
| `digest` | Daily brief — tóm tắt thay đổi wiki 24h | `/llm-wiki digest` |
|
|
25
|
+
| `pain-rank` | Xếp hạng pain points theo cơ hội kinh doanh | `/llm-wiki pain-rank` |
|
|
26
|
+
|
|
27
|
+
Nếu không có sub-command → hiển thị trạng thái và hỏi user muốn làm gì.
|
|
28
|
+
|
|
29
|
+
## Thư mục gốc
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
WIKI_ROOT = <current working directory>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Xác định WIKI_ROOT bằng cách tìm folder chứa CLAUDE.md + config.yaml + wiki/ + raw/. Thường là thư mục project hiện tại.
|
|
36
|
+
|
|
37
|
+
Luôn đọc `WIKI_ROOT/CLAUDE.md` trước khi thực hiện bất kỳ command nào — đó là schema quy định mọi quy tắc.
|
|
38
|
+
|
|
39
|
+
## Command: init
|
|
40
|
+
|
|
41
|
+
**Mục đích:** Khởi tạo wiki mới hoặc thêm topic mới vào wiki hiện tại.
|
|
42
|
+
|
|
43
|
+
**Quy trình:**
|
|
44
|
+
1. Đọc `CLAUDE.md` và `config.yaml`
|
|
45
|
+
2. Nếu argument là topic mới → thêm vào `config.yaml` → topics
|
|
46
|
+
3. Nếu wiki chưa có folder structure → tạo theo CLAUDE.md
|
|
47
|
+
4. Ghi LOG.md
|
|
48
|
+
|
|
49
|
+
**Ví dụ:**
|
|
50
|
+
```
|
|
51
|
+
/llm-wiki init "Rust Programming"
|
|
52
|
+
→ Thêm topic "Rust Programming" vào config.yaml
|
|
53
|
+
→ Keywords tự sinh: ["Rust language", "Rust programming", "cargo", "rustc"]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Command: ingest
|
|
57
|
+
|
|
58
|
+
**Mục đích:** Xử lý mọi file mới/chưa xử lý trong `raw/`.
|
|
59
|
+
|
|
60
|
+
**Quy trình:**
|
|
61
|
+
1. Đọc `CLAUDE.md` (schema & quy tắc)
|
|
62
|
+
2. Đọc `.discoveries/history.json` → lấy danh sách đã xử lý
|
|
63
|
+
3. Scan `raw/` → tìm file chưa có trong history
|
|
64
|
+
4. Với mỗi file mới:
|
|
65
|
+
a. Đọc nội dung (dùng Read cho text, WebFetch cho URL, PDF reader cho PDF)
|
|
66
|
+
b. Tạo source summary → `wiki/sources/`
|
|
67
|
+
c. Trích xuất entities → tạo/cập nhật `wiki/entities/`
|
|
68
|
+
d. Trích xuất concepts → tạo/cập nhật `wiki/concepts/`
|
|
69
|
+
e. Thêm cross-references `[[links]]` vào các trang liên quan
|
|
70
|
+
f. Phát hiện contradictions → ghi chú vào trang liên quan
|
|
71
|
+
5. Cập nhật `wiki/INDEX.md`
|
|
72
|
+
6. Ghi `wiki/LOG.md`
|
|
73
|
+
7. Cập nhật `.discoveries/history.json`
|
|
74
|
+
|
|
75
|
+
**Quy tắc QUAN TRỌNG:**
|
|
76
|
+
- KHÔNG BAO GIỜ sửa file trong `raw/`
|
|
77
|
+
- Mỗi source có thể ảnh hưởng 5-15 wiki pages
|
|
78
|
+
- Luôn trích dẫn nguồn: `[Nguồn: filename](../raw/path)`
|
|
79
|
+
- Nếu thông tin mới mâu thuẫn với cũ → giữ cả hai, ghi rõ
|
|
80
|
+
- Không bịa thông tin — chỉ viết những gì có trong raw sources
|
|
81
|
+
- Batch size theo config.yaml → `schedule.ingest.batch_size`
|
|
82
|
+
|
|
83
|
+
## Command: query
|
|
84
|
+
|
|
85
|
+
**Mục đích:** Hỏi đáp dựa trên nội dung wiki.
|
|
86
|
+
|
|
87
|
+
**Quy trình:**
|
|
88
|
+
1. Đọc `wiki/INDEX.md` → tìm trang liên quan đến câu hỏi
|
|
89
|
+
2. Đọc các trang wiki liên quan (đọc đủ context, không chỉ 1-2 trang)
|
|
90
|
+
3. Tổng hợp câu trả lời với citations `[[trang-wiki]]`
|
|
91
|
+
4. Nếu câu trả lời có giá trị phân tích → lưu vào `wiki/syntheses/` hoặc `outputs/`
|
|
92
|
+
5. Ghi LOG.md
|
|
93
|
+
|
|
94
|
+
**Quy tắc:**
|
|
95
|
+
- Trả lời DỰA TRÊN WIKI, không dùng kiến thức bên ngoài
|
|
96
|
+
- Nếu wiki thiếu thông tin → nói rõ và gợi ý topic cần discover
|
|
97
|
+
- So sánh, phân tích → tự động lưu thành synthesis page
|
|
98
|
+
- Format đầu ra linh hoạt: markdown, bảng so sánh, bullet points
|
|
99
|
+
|
|
100
|
+
**Ví dụ:**
|
|
101
|
+
```
|
|
102
|
+
/llm-wiki query "So sánh RAG truyền thống vs LLM Wiki pattern"
|
|
103
|
+
→ Đọc INDEX.md → tìm trang về RAG, LLM Wiki
|
|
104
|
+
→ Đọc các trang liên quan
|
|
105
|
+
→ Tạo bảng so sánh
|
|
106
|
+
→ Lưu vào wiki/syntheses/rag-vs-llm-wiki.md
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Command: lint
|
|
110
|
+
|
|
111
|
+
**Mục đích:** Kiểm tra sức khỏe wiki, phát hiện vấn đề.
|
|
112
|
+
|
|
113
|
+
**Quy trình:**
|
|
114
|
+
1. Đọc toàn bộ `wiki/INDEX.md`
|
|
115
|
+
2. Scan mọi file trong `wiki/`
|
|
116
|
+
3. Kiểm tra:
|
|
117
|
+
- **Contradictions**: thông tin mâu thuẫn giữa các trang
|
|
118
|
+
- **Orphans**: trang không ai link đến
|
|
119
|
+
- **Missing pages**: `[[link]]` trỏ đến trang chưa tồn tại
|
|
120
|
+
- **Stale claims**: thông tin cũ bị nguồn mới bác bỏ
|
|
121
|
+
- **Broken links**: link đến raw source không còn tồn tại
|
|
122
|
+
- **Gaps**: lĩnh vực quan trọng thiếu coverage
|
|
123
|
+
- **Quality**: trang quá ngắn, thiếu sources, thiếu cross-refs
|
|
124
|
+
4. Tạo báo cáo → `outputs/lint-YYYY-MM-DD.md`
|
|
125
|
+
5. Cập nhật `.discoveries/gaps.json` (cho discover dùng)
|
|
126
|
+
6. Ghi LOG.md
|
|
127
|
+
7. Nếu `config.yaml → schedule.lint.auto_fix = true` → tự sửa lỗi đơn giản
|
|
128
|
+
|
|
129
|
+
**Output format:**
|
|
130
|
+
```markdown
|
|
131
|
+
# Lint Report — YYYY-MM-DD
|
|
132
|
+
|
|
133
|
+
## Tóm tắt
|
|
134
|
+
- Tổng trang: N
|
|
135
|
+
- Contradictions: N
|
|
136
|
+
- Orphans: N
|
|
137
|
+
- Missing pages: N
|
|
138
|
+
- Gaps: N
|
|
139
|
+
|
|
140
|
+
## Chi tiết
|
|
141
|
+
### Contradictions
|
|
142
|
+
...
|
|
143
|
+
### Đề xuất
|
|
144
|
+
- Tạo trang mới: [danh sách]
|
|
145
|
+
- Tìm nguồn cho: [danh sách gaps]
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Command: discover
|
|
149
|
+
|
|
150
|
+
**Mục đích:** Tự động tìm nguồn mới từ internet.
|
|
151
|
+
|
|
152
|
+
**Quy trình:**
|
|
153
|
+
1. Đọc `config.yaml` → topics, feeds, discovery settings
|
|
154
|
+
2. Đọc `.discoveries/gaps.json` → knowledge gaps cần lấp
|
|
155
|
+
3. Đọc `.discoveries/history.json` → tránh trùng lặp
|
|
156
|
+
4. Thực hiện theo strategies trong config:
|
|
157
|
+
a. **reddit_scan**: WebSearch `site:reddit.com` theo subreddits + keywords trong config.yaml → tìm pain points, use cases, ý tưởng. Lưu vào `raw/reddit/YYYY-MM-DD-slug.md`. Trích xuất: vấn đề gốc, giải pháp được đề xuất, upvotes, sentiment.
|
|
158
|
+
b. **github_trending**: WebSearch GitHub trending repos theo languages/topics filter
|
|
159
|
+
c. **github_watch**: Kiểm tra repos/orgs/people trong config → new releases, new repos
|
|
160
|
+
d. **web_search**: WebSearch theo keywords của mỗi topic
|
|
161
|
+
e. **feed_poll**: Kiểm tra RSS feeds, Hacker News
|
|
162
|
+
f. **gap_fill**: WebSearch theo gaps từ lint
|
|
163
|
+
g. **snowball**: Đọc references trong wiki → follow links chưa có
|
|
164
|
+
5. Với mỗi nguồn tìm được:
|
|
165
|
+
a. Kiểm tra dedup (URL, title)
|
|
166
|
+
b. WebFetch nội dung
|
|
167
|
+
c. Lưu vào `raw/articles/YYYY-MM-DD-slug.md` với frontmatter:
|
|
168
|
+
```yaml
|
|
169
|
+
---
|
|
170
|
+
title: "Tiêu đề"
|
|
171
|
+
url: "https://..."
|
|
172
|
+
discovered: YYYY-MM-DD
|
|
173
|
+
topic: "tên topic"
|
|
174
|
+
---
|
|
175
|
+
```
|
|
176
|
+
6. Cập nhật `.discoveries/history.json`
|
|
177
|
+
7. Ghi LOG.md
|
|
178
|
+
8. **Tự động trigger ingest** cho nguồn mới
|
|
179
|
+
|
|
180
|
+
**Quy tắc:**
|
|
181
|
+
- Tối đa sources theo `config.yaml → schedule.discover.max_sources`
|
|
182
|
+
- Ưu tiên: gaps > reddit pain points > trending > feeds
|
|
183
|
+
- Chỉ lấy nội dung chất lượng (bài viết sâu, papers, guides, high-upvote posts)
|
|
184
|
+
- Skip: quảng cáo, listicles nông, nội dung trùng lặp
|
|
185
|
+
- Reddit posts: trích xuất pain point + giải pháp, phân loại theo domain (business, dev, consumer)
|
|
186
|
+
- Lưu reddit vào `raw/reddit/` (tách riêng khỏi `raw/articles/`)
|
|
187
|
+
|
|
188
|
+
## Command: run
|
|
189
|
+
|
|
190
|
+
**Mục đích:** Chạy full cycle tự động.
|
|
191
|
+
|
|
192
|
+
**Quy trình:**
|
|
193
|
+
```
|
|
194
|
+
discover → ingest → lint → (nếu có gaps mới → discover lại)
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
1. Chạy `discover` → tìm nguồn mới (Reddit, GitHub trending, web search)
|
|
198
|
+
2. Chạy `ingest` → xử lý mọi file mới trong raw/
|
|
199
|
+
3. Chạy `lint` → kiểm tra sức khỏe
|
|
200
|
+
4. Nếu lint phát hiện critical gaps → chạy thêm 1 vòng discover+ingest
|
|
201
|
+
5. Tạo summary report → `outputs/run-YYYY-MM-DD.md`
|
|
202
|
+
6. Ghi LOG.md
|
|
203
|
+
|
|
204
|
+
**Giới hạn:** Tối đa 2 vòng discover-ingest để tránh vòng lặp vô hạn.
|
|
205
|
+
|
|
206
|
+
## Command: status
|
|
207
|
+
|
|
208
|
+
**Mục đích:** Hiển thị trạng thái wiki hiện tại.
|
|
209
|
+
|
|
210
|
+
**Output:**
|
|
211
|
+
```
|
|
212
|
+
LLM Wiki Status
|
|
213
|
+
═══════════════
|
|
214
|
+
Wiki: My LLM Wiki
|
|
215
|
+
Topics: 3 (LLM Agents, Claude Code, AI Engineering)
|
|
216
|
+
Raw sources: N files
|
|
217
|
+
Wiki pages: N pages (E entities, C concepts, S sources, Y syntheses)
|
|
218
|
+
Last ingest: YYYY-MM-DD
|
|
219
|
+
Last lint: YYYY-MM-DD
|
|
220
|
+
Last discover: YYYY-MM-DD
|
|
221
|
+
Knowledge gaps: N
|
|
222
|
+
Orphan pages: N
|
|
223
|
+
Health: Good | Warning | Needs Attention
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## Command: digest
|
|
227
|
+
|
|
228
|
+
**Mục đích:** Tạo daily brief — tóm tắt mọi thay đổi wiki trong 24h, highlights insights mới.
|
|
229
|
+
|
|
230
|
+
**Quy trình:**
|
|
231
|
+
1. Đọc `wiki/LOG.md` → lọc entries trong 24h qua
|
|
232
|
+
2. Đọc các trang wiki mới/cập nhật trong khoảng thời gian đó
|
|
233
|
+
3. Tổng hợp thành báo cáo ngắn gọn
|
|
234
|
+
|
|
235
|
+
**Output format:**
|
|
236
|
+
```markdown
|
|
237
|
+
# Daily Digest — YYYY-MM-DD
|
|
238
|
+
|
|
239
|
+
## Nguồn mới (N)
|
|
240
|
+
- [tên nguồn] — 1 dòng tóm tắt
|
|
241
|
+
|
|
242
|
+
## Wiki pages mới (N)
|
|
243
|
+
- [tên trang] — 1 dòng mô tả
|
|
244
|
+
|
|
245
|
+
## Top 3 Insights
|
|
246
|
+
1. [Insight quan trọng nhất — trích từ syntheses hoặc cross-references mới]
|
|
247
|
+
2. [Insight thứ hai]
|
|
248
|
+
3. [Insight thứ ba]
|
|
249
|
+
|
|
250
|
+
## Pain Points mới phát hiện (từ Reddit)
|
|
251
|
+
| Pain Point | Domain | Upvotes | Cơ hội |
|
|
252
|
+
|------------|--------|---------|--------|
|
|
253
|
+
| ... | ... | ... | ... |
|
|
254
|
+
|
|
255
|
+
## Knowledge Gaps cần lấp
|
|
256
|
+
- [gap 1]
|
|
257
|
+
- [gap 2]
|
|
258
|
+
|
|
259
|
+
## Thống kê
|
|
260
|
+
- Wiki: N pages (+X hôm nay)
|
|
261
|
+
- Sources: N (+Y hôm nay)
|
|
262
|
+
- Health: Good/Warning
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Lưu vào: `outputs/digest-YYYY-MM-DD.md`
|
|
266
|
+
|
|
267
|
+
## Command: pain-rank
|
|
268
|
+
|
|
269
|
+
**Mục đích:** Xếp hạng pain points từ Reddit và các nguồn khác theo tiềm năng kinh doanh.
|
|
270
|
+
|
|
271
|
+
**Quy trình:**
|
|
272
|
+
1. Đọc tất cả files trong `raw/reddit/`
|
|
273
|
+
2. Đọc `wiki/concepts/ai-pain-points.md` và `wiki/concepts/micro-saas-pattern.md`
|
|
274
|
+
3. Trích xuất mọi pain point đã thu thập
|
|
275
|
+
4. Scoring mỗi pain point theo 5 tiêu chí
|
|
276
|
+
|
|
277
|
+
**Scoring Framework (mỗi tiêu chí 1-10, tổng max 50):**
|
|
278
|
+
|
|
279
|
+
| Tiêu chí | Mô tả | Trọng số |
|
|
280
|
+
|----------|-------|----------|
|
|
281
|
+
| **Urgency** | Người dùng cần giải pháp ngay? Hay "nice to have"? | x2 |
|
|
282
|
+
| **Market Size** | Bao nhiêu người/doanh nghiệp có vấn đề này? | x2 |
|
|
283
|
+
| **Willingness to Pay** | Sẵn sàng trả tiền? Đang trả cho alternatives? | x3 |
|
|
284
|
+
| **AI Solvability** | AI/LLM có thể giải quyết tốt không? | x2 |
|
|
285
|
+
| **Competition** | Ít cạnh tranh = điểm cao | x1 |
|
|
286
|
+
|
|
287
|
+
**Output format:**
|
|
288
|
+
```markdown
|
|
289
|
+
# Pain Point Ranking — YYYY-MM-DD
|
|
290
|
+
|
|
291
|
+
## Top 10 Cơ hội
|
|
292
|
+
|
|
293
|
+
| Rank | Pain Point | Domain | Score | Urgency | Market | WTP | AI-Fit | Comp |
|
|
294
|
+
|------|-----------|--------|-------|---------|--------|-----|--------|------|
|
|
295
|
+
| 1 | ... | B2B | 42/50 | 9 | 8 | 9 | 8 | 8 |
|
|
296
|
+
| 2 | ... | Consumer | 38/50 | 7 | 9 | 7 | 9 | 6 |
|
|
297
|
+
|
|
298
|
+
## Chi tiết Top 3
|
|
299
|
+
|
|
300
|
+
### #1: [Tên Pain Point] — Score: 42/50
|
|
301
|
+
- **Vấn đề:** [Mô tả cụ thể]
|
|
302
|
+
- **Target user:** [Ai có vấn đề này]
|
|
303
|
+
- **Giải pháp đề xuất:** [MVP concept]
|
|
304
|
+
- **Revenue model:** [Cách kiếm tiền]
|
|
305
|
+
- **Nguồn Reddit:** [Links/upvotes]
|
|
306
|
+
- **Next step:** [Hành động cụ thể tiếp theo]
|
|
307
|
+
|
|
308
|
+
### #2: ...
|
|
309
|
+
### #3: ...
|
|
310
|
+
|
|
311
|
+
## Idea-to-Spec Pipeline (cho #1)
|
|
312
|
+
- Problem Statement: ...
|
|
313
|
+
- Target User Persona: ...
|
|
314
|
+
- MVP Features (3-5): ...
|
|
315
|
+
- Tech Stack Suggestion: ...
|
|
316
|
+
- Estimated effort: ... (human) / ... (CC)
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
Lưu vào: `outputs/pain-rank-YYYY-MM-DD.md`
|
|
320
|
+
|
|
321
|
+
**Quy tắc:**
|
|
322
|
+
- Chỉ rank pain points CÓ TRONG WIKI — không bịa thêm
|
|
323
|
+
- Scoring phải giải thích lý do cho mỗi điểm số
|
|
324
|
+
- Top 1 luôn kèm Idea-to-Spec pipeline
|
|
325
|
+
- Cross-reference với [[micro-saas-pattern]], [[saas-unbundling]], [[ai-pain-points]]
|
|
326
|
+
|
|
327
|
+
## Ngôn ngữ & Format
|
|
328
|
+
|
|
329
|
+
- Wiki content: **tiếng Việt có dấu** (thuật ngữ kỹ thuật giữ tiếng Anh)
|
|
330
|
+
- File names: tiếng Anh, kebab-case
|
|
331
|
+
- Frontmatter: tiếng Anh
|
|
332
|
+
- Wiki links: `[[kebab-case-name]]`
|
|
333
|
+
- Cross-refs: mỗi trang ít nhất 2 links đến trang khác
|
|
334
|
+
- Citations: `[Nguồn: filename](../raw/path)`
|
|
335
|
+
|
|
336
|
+
## Error Handling
|
|
337
|
+
|
|
338
|
+
- Nếu WebFetch/WebSearch fail → ghi lỗi vào LOG.md, skip nguồn đó, tiếp tục
|
|
339
|
+
- Nếu file raw không đọc được (binary, corrupted) → skip, ghi LOG
|
|
340
|
+
- Nếu wiki quá lớn cho context → đọc INDEX.md trước, chỉ đọc trang liên quan
|
|
341
|
+
- Nếu config.yaml thiếu field → dùng giá trị mặc định trong CLAUDE.md
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Wiki Index
|
|
2
|
+
|
|
3
|
+
> Catalog of all wiki pages. Auto-updated on every ingest.
|
|
4
|
+
> Read this file first when answering queries to find relevant pages.
|
|
5
|
+
|
|
6
|
+
**Total pages:** 0
|
|
7
|
+
**Last updated:** —
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Entities
|
|
12
|
+
<!-- People, orgs, tools, projects -->
|
|
13
|
+
|
|
14
|
+
_No pages yet._
|
|
15
|
+
|
|
16
|
+
## Concepts
|
|
17
|
+
<!-- Concepts, patterns, methodologies -->
|
|
18
|
+
|
|
19
|
+
_No pages yet._
|
|
20
|
+
|
|
21
|
+
## Sources
|
|
22
|
+
<!-- Summary of each raw source -->
|
|
23
|
+
|
|
24
|
+
_No pages yet._
|
|
25
|
+
|
|
26
|
+
## Syntheses
|
|
27
|
+
<!-- Cross-source analyses, comparisons -->
|
|
28
|
+
|
|
29
|
+
_No pages yet._
|