@zosmaai/pi-llm-wiki 0.1.2 → 0.1.6
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/.coderabbit.yaml +43 -0
- package/.github/workflows/ci.yml +2 -2
- package/.github/workflows/codeql.yml +39 -0
- package/.github/workflows/release.yml +3 -1
- package/README.md +39 -39
- package/assets/README.md +3 -3
- package/assets/architecture.md +1 -1
- package/package.json +5 -11
- package/prompts/wiki-digest.md +1 -1
- package/prompts/wiki-discover.md +2 -2
- package/prompts/wiki-ingest.md +2 -2
- package/prompts/wiki-init.md +2 -2
- package/prompts/wiki-lint.md +1 -1
- package/prompts/wiki-query.md +2 -2
- package/prompts/wiki-run.md +6 -6
- package/prompts/wiki-status.md +1 -1
- package/skills/llm-wiki/SKILL.md +16 -16
- package/skills/llm-wiki/templates/DASHBOARD.md +2 -2
- package/test/llm-wiki.test.ts +1 -1
package/.coderabbit.yaml
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# CodeRabbit AI Code Review Configuration
|
|
2
|
+
# Docs: https://docs.coderabbit.ai/guides/configure-coderabbit
|
|
3
|
+
|
|
4
|
+
language: en-US
|
|
5
|
+
early_access: false
|
|
6
|
+
reviews:
|
|
7
|
+
profile: assertive
|
|
8
|
+
request_changes_workflow: true
|
|
9
|
+
high_level_summary: true
|
|
10
|
+
poem: false
|
|
11
|
+
review_status: true
|
|
12
|
+
collapse_walkthrough: false
|
|
13
|
+
auto_review:
|
|
14
|
+
enabled: true
|
|
15
|
+
ignore_title_keywords:
|
|
16
|
+
- "chore"
|
|
17
|
+
- "WIP"
|
|
18
|
+
- "wip"
|
|
19
|
+
drafts: false
|
|
20
|
+
base_branches:
|
|
21
|
+
- main
|
|
22
|
+
path_instructions:
|
|
23
|
+
- path: "extensions/**/*.ts"
|
|
24
|
+
instructions: |
|
|
25
|
+
Review TypeScript extension files for pi coding agent. Check that:
|
|
26
|
+
1. Tools use pi.registerTool() with TypeBox schemas
|
|
27
|
+
2. Error handling uses try/catch with proper messages
|
|
28
|
+
3. Unused parameters use underscore prefix or are removed
|
|
29
|
+
4. File exports a default function receiving ExtensionAPI
|
|
30
|
+
- path: "skills/**/SKILL.md"
|
|
31
|
+
instructions: |
|
|
32
|
+
Review SKILL.md for pi. Verify:
|
|
33
|
+
1. Frontmatter follows Agent Skills spec (name, description)
|
|
34
|
+
2. Workflows are clearly documented with steps
|
|
35
|
+
3. Golden rules and conventions are explicit
|
|
36
|
+
- path: "prompts/**/*.md"
|
|
37
|
+
instructions: |
|
|
38
|
+
Review prompt templates. Verify:
|
|
39
|
+
1. Frontmatter has description, args, section, topLevelCli
|
|
40
|
+
2. Instructions are actionable and clear
|
|
41
|
+
|
|
42
|
+
chat:
|
|
43
|
+
auto_reply: true
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: "CodeQL"
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: "0 6 * * 1" # Every Monday at 6 AM
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
analyze:
|
|
13
|
+
name: Analyze (${{ matrix.language }})
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
security-events: write
|
|
17
|
+
packages: read
|
|
18
|
+
actions: read
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
strategy:
|
|
22
|
+
fail-fast: false
|
|
23
|
+
matrix:
|
|
24
|
+
include:
|
|
25
|
+
- language: javascript-typescript
|
|
26
|
+
build-mode: none
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
|
|
31
|
+
- uses: github/codeql-action/init@v3
|
|
32
|
+
with:
|
|
33
|
+
languages: ${{ matrix.language }}
|
|
34
|
+
build-mode: ${{ matrix.build-mode }}
|
|
35
|
+
queries: security-and-quality
|
|
36
|
+
|
|
37
|
+
- uses: github/codeql-action/analyze@v3
|
|
38
|
+
with:
|
|
39
|
+
category: "/language:${{ matrix.language }}"
|
|
@@ -39,7 +39,9 @@ jobs:
|
|
|
39
39
|
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
|
|
40
40
|
|
|
41
41
|
- name: Update package.json version
|
|
42
|
-
run:
|
|
42
|
+
run: |
|
|
43
|
+
node -e "const p=require('./package.json'); p.version='${{ steps.version.outputs.VERSION }}'; require('fs').writeFileSync('./package.json', JSON.stringify(p, null, 2)+'\n')"
|
|
44
|
+
npx biome check --fix package.json 2>&1
|
|
43
45
|
|
|
44
46
|
- name: Generate Release Notes
|
|
45
47
|
id: notes
|
package/README.md
CHANGED
|
@@ -53,14 +53,14 @@ Every `[[wikilink]]` the LLM creates becomes a visible connection in Obsidian's
|
|
|
53
53
|
│ ├── wiki_discover_sources Find new source material from the web
|
|
54
54
|
│ └── wiki_watch Schedule auto-updates
|
|
55
55
|
└── 💬 prompts/ ← 8 slash commands:
|
|
56
|
-
├── /wiki
|
|
57
|
-
├── /wiki
|
|
58
|
-
├── /wiki
|
|
59
|
-
├── /wiki
|
|
60
|
-
├── /wiki
|
|
61
|
-
├── /wiki
|
|
62
|
-
├── /wiki
|
|
63
|
-
└── /wiki
|
|
56
|
+
├── /wiki-init Initialize a new wiki
|
|
57
|
+
├── /wiki-ingest Process new sources
|
|
58
|
+
├── /wiki-query Ask questions against the wiki
|
|
59
|
+
├── /wiki-lint Health check
|
|
60
|
+
├── /wiki-discover Auto-discover sources
|
|
61
|
+
├── /wiki-run Full cycle (discover → ingest → lint)
|
|
62
|
+
├── /wiki-status Wiki health overview
|
|
63
|
+
└── /wiki-digest Daily/weekly summary
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
---
|
|
@@ -116,7 +116,7 @@ pi
|
|
|
116
116
|
Then inside pi:
|
|
117
117
|
|
|
118
118
|
```
|
|
119
|
-
/wiki
|
|
119
|
+
/wiki-init "AI Engineering"
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
This creates your wiki directory structure and template files.
|
|
@@ -132,7 +132,7 @@ Drop content into `raw/`:
|
|
|
132
132
|
### 3️⃣ Ingest
|
|
133
133
|
|
|
134
134
|
```
|
|
135
|
-
/wiki
|
|
135
|
+
/wiki-ingest
|
|
136
136
|
```
|
|
137
137
|
|
|
138
138
|
The LLM reads every new source, creates wiki pages, cross-references everything, and builds the index. A single source typically generates 5-15 wiki pages (summary + entities + concepts + cross-refs).
|
|
@@ -140,7 +140,7 @@ The LLM reads every new source, creates wiki pages, cross-references everything,
|
|
|
140
140
|
### 4️⃣ Query
|
|
141
141
|
|
|
142
142
|
```
|
|
143
|
-
/wiki
|
|
143
|
+
/wiki-query What are the key patterns in modern AI engineering?
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
The LLM answers from your wiki, not from general knowledge — giving you answers grounded in your curated sources.
|
|
@@ -149,10 +149,10 @@ The LLM answers from your wiki, not from general knowledge — giving you answer
|
|
|
149
149
|
|
|
150
150
|
```bash
|
|
151
151
|
# Auto-update daily at 8 AM
|
|
152
|
-
/wiki
|
|
152
|
+
/wiki-run --schedule daily
|
|
153
153
|
|
|
154
154
|
# Or run manually anytime
|
|
155
|
-
/wiki
|
|
155
|
+
/wiki-run
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
---
|
|
@@ -160,7 +160,7 @@ The LLM answers from your wiki, not from general knowledge — giving you answer
|
|
|
160
160
|
## 🏗️ Architecture
|
|
161
161
|
|
|
162
162
|
<p align="center">
|
|
163
|
-
<img src="https://raw.githubusercontent.com/zosmaai/pi-llm-wiki/
|
|
163
|
+
<img src="https://raw.githubusercontent.com/zosmaai/pi-llm-wiki/main/assets/screenshot.png" alt="LLM Wiki Architecture" width="90%">
|
|
164
164
|
</p>
|
|
165
165
|
|
|
166
166
|
<p align="center">
|
|
@@ -213,14 +213,14 @@ my-wiki/
|
|
|
213
213
|
|
|
214
214
|
| Command | Description | Example |
|
|
215
215
|
| ---------------- | ------------------- | ----------------------------------------- |
|
|
216
|
-
| `/wiki
|
|
217
|
-
| `/wiki
|
|
218
|
-
| `/wiki
|
|
219
|
-
| `/wiki
|
|
220
|
-
| `/wiki
|
|
221
|
-
| `/wiki
|
|
222
|
-
| `/wiki
|
|
223
|
-
| `/wiki
|
|
216
|
+
| `/wiki-init` | Create a new wiki | `/wiki-init "Rust Programming"` |
|
|
217
|
+
| `/wiki-ingest` | Process new sources | `/wiki-ingest raw/articles/my-article.md` |
|
|
218
|
+
| `/wiki-query` | Ask a question | `/wiki-query "Compare RAG vs LLM Wiki"` |
|
|
219
|
+
| `/wiki-lint` | Health check | `/wiki-lint --fix` |
|
|
220
|
+
| `/wiki-discover` | Find new sources | `/wiki-discover --topic "AI agents"` |
|
|
221
|
+
| `/wiki-run` | Full cycle | `/wiki-run --schedule daily` |
|
|
222
|
+
| `/wiki-status` | Show health | `/wiki-status` |
|
|
223
|
+
| `/wiki-digest` | Daily summary | `/wiki-digest --period weekly` |
|
|
224
224
|
|
|
225
225
|
---
|
|
226
226
|
|
|
@@ -243,7 +243,7 @@ These tools handle the scaffolding and bookkeeping so the LLM can focus on the a
|
|
|
243
243
|
## 📓 Using with Obsidian
|
|
244
244
|
|
|
245
245
|
<p align="center">
|
|
246
|
-
<img src="https://raw.githubusercontent.com/zosmaai/pi-llm-wiki/
|
|
246
|
+
<img src="https://raw.githubusercontent.com/zosmaai/pi-llm-wiki/main/assets/knowledge-graph.png" alt="Knowledge Graph" width="90%">
|
|
247
247
|
</p>
|
|
248
248
|
|
|
249
249
|
<p align="center">
|
|
@@ -284,7 +284,7 @@ Best for: Competitive intelligence, market research, customer insights, internal
|
|
|
284
284
|
- **Change detection** — Re-check competitor sources for pricing, feature, and positioning changes
|
|
285
285
|
- Confidence levels in frontmatter: `high | medium | low`
|
|
286
286
|
- Slack/email thread exports as sources
|
|
287
|
-
- Generate battlecards with `/wiki
|
|
287
|
+
- Generate battlecards with `/wiki-query "Create a battlecard for Competitor X"`
|
|
288
288
|
|
|
289
289
|
---
|
|
290
290
|
|
|
@@ -294,9 +294,9 @@ Keep your wiki current without thinking about it:
|
|
|
294
294
|
|
|
295
295
|
```bash
|
|
296
296
|
# Inside pi
|
|
297
|
-
/wiki
|
|
298
|
-
/wiki
|
|
299
|
-
/wiki
|
|
297
|
+
/wiki-run --schedule daily # Discover → ingest → lint every day at 8 AM
|
|
298
|
+
/wiki-run --schedule weekly # Every Monday at 9 AM
|
|
299
|
+
/wiki-run --schedule hourly # Every hour (for fast-moving topics)
|
|
300
300
|
```
|
|
301
301
|
|
|
302
302
|
The scheduler uses pi's built-in `schedule_prompt` system. All operations run in the background and the wiki stays updated.
|
|
@@ -308,32 +308,32 @@ The scheduler uses pi's built-in `schedule_prompt` system. All operations run in
|
|
|
308
308
|
### Research Wiki
|
|
309
309
|
|
|
310
310
|
```bash
|
|
311
|
-
/wiki
|
|
311
|
+
/wiki-init "LLM Agents"
|
|
312
312
|
# Drop 5 papers into raw/papers/
|
|
313
|
-
/wiki
|
|
313
|
+
/wiki-ingest
|
|
314
314
|
# Creates ~30-50 wiki pages (entities, concepts, cross-refs)
|
|
315
|
-
/wiki
|
|
316
|
-
/wiki
|
|
315
|
+
/wiki-query "What are the main approaches to tool use in LLM agents?"
|
|
316
|
+
/wiki-lint
|
|
317
317
|
```
|
|
318
318
|
|
|
319
319
|
### Book Companion
|
|
320
320
|
|
|
321
321
|
```bash
|
|
322
|
-
/wiki
|
|
322
|
+
/wiki-init "Dune" --mode personal
|
|
323
323
|
# Drop chapter notes into raw/notes/
|
|
324
|
-
/wiki
|
|
325
|
-
/wiki
|
|
326
|
-
/wiki
|
|
324
|
+
/wiki-ingest raw/notes/ch01-opening-test.md
|
|
325
|
+
/wiki-query "Who are the main factions and what do they want?"
|
|
326
|
+
/wiki-query "Create a timeline of events up to Chapter 5"
|
|
327
327
|
```
|
|
328
328
|
|
|
329
329
|
### Competitive Intelligence
|
|
330
330
|
|
|
331
331
|
```bash
|
|
332
|
-
/wiki
|
|
332
|
+
/wiki-init "PM Tool Market" --mode company
|
|
333
333
|
# Drop competitor landing pages, reviews, pricing pages
|
|
334
|
-
/wiki
|
|
335
|
-
/wiki
|
|
336
|
-
/wiki
|
|
334
|
+
/wiki-ingest
|
|
335
|
+
/wiki-query "Create a comparison table of Linear, Notion, and Jira"
|
|
336
|
+
/wiki-run --schedule weekly
|
|
337
337
|
```
|
|
338
338
|
|
|
339
339
|
---
|
package/assets/README.md
CHANGED
|
@@ -4,10 +4,10 @@ Placeholder for gallery screenshots.
|
|
|
4
4
|
|
|
5
5
|
To generate a screenshot:
|
|
6
6
|
|
|
7
|
-
1. Create a wiki using `/wiki
|
|
8
|
-
2. Add a few sources and run `/wiki
|
|
7
|
+
1. Create a wiki using `/wiki-init`
|
|
8
|
+
2. Add a few sources and run `/wiki-ingest`
|
|
9
9
|
3. Open `wiki/` in Obsidian for the graph view screenshot
|
|
10
10
|
4. Save as `assets/screenshot.png`
|
|
11
11
|
|
|
12
12
|
The screenshot URL in package.json should point to:
|
|
13
|
-
`https://raw.githubusercontent.com/zosmaai/pi-llm-wiki/
|
|
13
|
+
`https://raw.githubusercontent.com/zosmaai/pi-llm-wiki/main/assets/screenshot.png`
|
package/assets/architecture.md
CHANGED
|
@@ -71,7 +71,7 @@ flowchart TB
|
|
|
71
71
|
| ---------- | -------------------- | ------------------------------------------------------------------------------------------- |
|
|
72
72
|
| **Ingest** | Add source to `raw/` | LLM reads, creates summary, updates 5-15 wiki pages, cross-references, flags contradictions |
|
|
73
73
|
| **Query** | Ask any question | LLM searches index, reads relevant pages, synthesizes answer with `[[citations]]` |
|
|
74
|
-
| **Lint** | `/wiki
|
|
74
|
+
| **Lint** | `/wiki-lint` | Health check: contradictions, orphans, missing pages, stale claims, knowledge gaps |
|
|
75
75
|
|
|
76
76
|
## Two Modes
|
|
77
77
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zosmaai/pi-llm-wiki",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "LLM Wiki for Pi — self-maintaining knowledge base following Karpathy's pattern. Obsidian-friendly, auto-updating, personal & company wiki.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -33,16 +33,10 @@
|
|
|
33
33
|
"prepare": "node -e \"try { require('husky').install() } catch {}\""
|
|
34
34
|
},
|
|
35
35
|
"pi": {
|
|
36
|
-
"extensions": [
|
|
37
|
-
|
|
38
|
-
],
|
|
39
|
-
"
|
|
40
|
-
"./skills"
|
|
41
|
-
],
|
|
42
|
-
"prompts": [
|
|
43
|
-
"./prompts"
|
|
44
|
-
],
|
|
45
|
-
"image": "https://raw.githubusercontent.com/zosmaai/pi-llm-wiki/master/assets/screenshot.png"
|
|
36
|
+
"extensions": ["./extensions"],
|
|
37
|
+
"skills": ["./skills"],
|
|
38
|
+
"prompts": ["./prompts"],
|
|
39
|
+
"image": "https://raw.githubusercontent.com/zosmaai/pi-llm-wiki/main/assets/screenshot.png"
|
|
46
40
|
},
|
|
47
41
|
"peerDependencies": {
|
|
48
42
|
"@mariozechner/pi-coding-agent": "*",
|
package/prompts/wiki-digest.md
CHANGED
package/prompts/wiki-discover.md
CHANGED
|
@@ -5,7 +5,7 @@ section: LLM Wiki
|
|
|
5
5
|
topLevelCli: true
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# /wiki
|
|
8
|
+
# /wiki-discover
|
|
9
9
|
|
|
10
10
|
Find new source material for the wiki by searching the web.
|
|
11
11
|
|
|
@@ -24,6 +24,6 @@ Read the LLM Wiki skill at `.pi/skills/llm-wiki/SKILL.md` first. Also read `conf
|
|
|
24
24
|
a. Fetch full content
|
|
25
25
|
b. Save to `raw/articles/YYYY-MM-DD-slug.md` with frontmatter (title, url, discovered, topic)
|
|
26
26
|
6. Update `.discoveries/history.json`
|
|
27
|
-
7. Report: "Discovered [N] new sources. Run `/wiki
|
|
27
|
+
7. Report: "Discovered [N] new sources. Run `/wiki-ingest` to process them."
|
|
28
28
|
|
|
29
29
|
**Rules:** Max 5-10 sources. Skip ads, listicles, duplicates. Prefer in-depth analysis.
|
package/prompts/wiki-ingest.md
CHANGED
|
@@ -5,7 +5,7 @@ section: LLM Wiki
|
|
|
5
5
|
topLevelCli: true
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# /wiki
|
|
8
|
+
# /wiki-ingest
|
|
9
9
|
|
|
10
10
|
Process new files in `raw/` and integrate them into the wiki.
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ Read the LLM Wiki skill at `.pi/skills/llm-wiki/SKILL.md` first to understand th
|
|
|
14
14
|
## Steps
|
|
15
15
|
|
|
16
16
|
1. Read `config.yaml` and `.discoveries/history.json`
|
|
17
|
-
2. If a specific path is given (e.g., `/wiki
|
|
17
|
+
2. If a specific path is given (e.g., `/wiki-ingest raw/articles/my-file.md`), process just that file
|
|
18
18
|
3. If no path given, scan all files in `raw/` and find ones not in history
|
|
19
19
|
4. For each new source:
|
|
20
20
|
a. Read the full content
|
package/prompts/wiki-init.md
CHANGED
|
@@ -5,7 +5,7 @@ section: LLM Wiki
|
|
|
5
5
|
topLevelCli: true
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# /wiki
|
|
8
|
+
# /wiki-init
|
|
9
9
|
|
|
10
10
|
Initialize a new LLM Wiki in the current directory.
|
|
11
11
|
|
|
@@ -25,6 +25,6 @@ Read the LLM Wiki skill at `.pi/skills/llm-wiki/SKILL.md` (or wherever the skill
|
|
|
25
25
|
6. Create `wiki/DASHBOARD.md` with Dataview queries for Obsidian
|
|
26
26
|
7. Create `.gitignore` to exclude `outputs/` from version control if desired
|
|
27
27
|
8. Initialize git repo if not already present
|
|
28
|
-
9. Report the structure and suggest first steps: "Drop sources into `raw/` and run `/wiki
|
|
28
|
+
9. Report the structure and suggest first steps: "Drop sources into `raw/` and run `/wiki-ingest`"
|
|
29
29
|
|
|
30
30
|
If `--mode company`, add the `change_detection: true` flag to config.yaml and add a `wiki/decisions/` folder.
|
package/prompts/wiki-lint.md
CHANGED
package/prompts/wiki-query.md
CHANGED
|
@@ -5,7 +5,7 @@ section: LLM Wiki
|
|
|
5
5
|
topLevelCli: true
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# /wiki
|
|
8
|
+
# /wiki-query
|
|
9
9
|
|
|
10
10
|
Ask a question and get an answer synthesized from wiki content.
|
|
11
11
|
|
|
@@ -24,7 +24,7 @@ Read the LLM Wiki skill at `.pi/skills/llm-wiki/SKILL.md` first to understand th
|
|
|
24
24
|
**Example:**
|
|
25
25
|
|
|
26
26
|
```
|
|
27
|
-
/wiki
|
|
27
|
+
/wiki-query What are the key differences between RAG and LLM Wiki?
|
|
28
28
|
→ Reads INDEX.md, finds pages on RAG and LLM Wiki patterns
|
|
29
29
|
→ Reads both pages
|
|
30
30
|
→ Synthesizes a comparison table with [[wikilink]] citations
|
package/prompts/wiki-run.md
CHANGED
|
@@ -5,7 +5,7 @@ section: LLM Wiki
|
|
|
5
5
|
topLevelCli: true
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
# /wiki
|
|
8
|
+
# /wiki-run
|
|
9
9
|
|
|
10
10
|
Run the complete wiki maintenance cycle: discover new sources, ingest them, and lint for health.
|
|
11
11
|
|
|
@@ -13,9 +13,9 @@ Read the LLM Wiki skill at `.pi/skills/llm-wiki/SKILL.md` first.
|
|
|
13
13
|
|
|
14
14
|
## Steps
|
|
15
15
|
|
|
16
|
-
1. Run `/wiki
|
|
17
|
-
2. Run `/wiki
|
|
18
|
-
3. Run `/wiki
|
|
16
|
+
1. Run `/wiki-discover` → find new sources
|
|
17
|
+
2. Run `/wiki-ingest` → process all new files
|
|
18
|
+
3. Run `/wiki-lint` → health check
|
|
19
19
|
4. If critical gaps found → optionally one more discover+ingest cycle
|
|
20
20
|
5. Save summary → `outputs/run-YYYY-MM-DD.md`
|
|
21
21
|
6. Report final summary
|
|
@@ -25,11 +25,11 @@ Read the LLM Wiki skill at `.pi/skills/llm-wiki/SKILL.md` first.
|
|
|
25
25
|
If `--schedule daily` is used, use `schedule_prompt` to set up daily runs:
|
|
26
26
|
|
|
27
27
|
```
|
|
28
|
-
schedule_prompt action=add schedule="0 0 8 * * *" prompt="Run /wiki
|
|
28
|
+
schedule_prompt action=add schedule="0 0 8 * * *" prompt="Run /wiki-run for the LLM Wiki"
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
If `--schedule weekly` is used:
|
|
32
32
|
|
|
33
33
|
```
|
|
34
|
-
schedule_prompt action=add schedule="0 0 9 * * 1" prompt="Run /wiki
|
|
34
|
+
schedule_prompt action=add schedule="0 0 9 * * 1" prompt="Run /wiki-run for the LLM Wiki"
|
|
35
35
|
```
|
package/prompts/wiki-status.md
CHANGED
package/skills/llm-wiki/SKILL.md
CHANGED
|
@@ -63,7 +63,7 @@ WIKI_ROOT/
|
|
|
63
63
|
|
|
64
64
|
## Workflows
|
|
65
65
|
|
|
66
|
-
### `/wiki
|
|
66
|
+
### `/wiki-init` — Initialize a new wiki
|
|
67
67
|
|
|
68
68
|
**When:** The user wants to start a new wiki on a topic.
|
|
69
69
|
|
|
@@ -74,7 +74,7 @@ WIKI_ROOT/
|
|
|
74
74
|
5. Create `wiki/DASHBOARD.md` with Dataview queries
|
|
75
75
|
6. Report the structure and suggest first steps
|
|
76
76
|
|
|
77
|
-
### `/wiki
|
|
77
|
+
### `/wiki-ingest [path]` — Process new sources
|
|
78
78
|
|
|
79
79
|
**When:** New files appear in `raw/`. Process one or all new sources.
|
|
80
80
|
|
|
@@ -191,7 +191,7 @@ WIKI_ROOT/
|
|
|
191
191
|
- If a file can't be read → log the error, skip it, continue
|
|
192
192
|
- Batch size: process files one at a time for quality, or batch up to 5 for speed
|
|
193
193
|
|
|
194
|
-
### `/wiki
|
|
194
|
+
### `/wiki-query <question>` — Ask questions against the wiki
|
|
195
195
|
|
|
196
196
|
**When:** The user asks a question about wiki content.
|
|
197
197
|
|
|
@@ -208,7 +208,7 @@ WIKI_ROOT/
|
|
|
208
208
|
- If the wiki lacks sufficient information → say so clearly, suggest what sources would help
|
|
209
209
|
- Comparisons, analyses, and new connections → always save as synthesis pages (knowledge compounds)
|
|
210
210
|
|
|
211
|
-
### `/wiki
|
|
211
|
+
### `/wiki-lint` — Health check the wiki
|
|
212
212
|
|
|
213
213
|
**When:** The user asks for a health check, or periodically.
|
|
214
214
|
|
|
@@ -228,7 +228,7 @@ WIKI_ROOT/
|
|
|
228
228
|
7. Append to `wiki/LOG.md`
|
|
229
229
|
8. Report key findings
|
|
230
230
|
|
|
231
|
-
### `/wiki
|
|
231
|
+
### `/wiki-discover` — Auto-discover new sources
|
|
232
232
|
|
|
233
233
|
**When:** The user wants to find new content for the wiki.
|
|
234
234
|
|
|
@@ -251,7 +251,7 @@ WIKI_ROOT/
|
|
|
251
251
|
---
|
|
252
252
|
```
|
|
253
253
|
6. Update `.discoveries/history.json`
|
|
254
|
-
7. Report: `Discovered [N] new sources. Run /wiki
|
|
254
|
+
7. Report: `Discovered [N] new sources. Run /wiki-ingest to process them.`
|
|
255
255
|
|
|
256
256
|
**Rules:**
|
|
257
257
|
|
|
@@ -259,7 +259,7 @@ WIKI_ROOT/
|
|
|
259
259
|
- Skip: ads, shallow listicles, duplicates, paywalled content
|
|
260
260
|
- Prefer: in-depth articles, papers, guides, high-quality analysis
|
|
261
261
|
|
|
262
|
-
### `/wiki
|
|
262
|
+
### `/wiki-run` — Full cycle: discover → ingest → lint
|
|
263
263
|
|
|
264
264
|
**When:** The user wants a complete refresh.
|
|
265
265
|
|
|
@@ -270,7 +270,7 @@ WIKI_ROOT/
|
|
|
270
270
|
5. Save summary report → `outputs/run-YYYY-MM-DD.md`
|
|
271
271
|
6. Report final summary
|
|
272
272
|
|
|
273
|
-
### `/wiki
|
|
273
|
+
### `/wiki-status` — Show wiki health
|
|
274
274
|
|
|
275
275
|
**When:** The user wants a quick overview.
|
|
276
276
|
|
|
@@ -289,7 +289,7 @@ Knowledge Gaps: [N]
|
|
|
289
289
|
Health: ✅ Good | ⚠️ Warning | 🔴 Needs Attention
|
|
290
290
|
```
|
|
291
291
|
|
|
292
|
-
### `/wiki
|
|
292
|
+
### `/wiki-digest` — Daily/Weekly digest
|
|
293
293
|
|
|
294
294
|
**When:** The user wants a summary of recent changes.
|
|
295
295
|
|
|
@@ -298,17 +298,17 @@ Health: ✅ Good | ⚠️ Warning | 🔴 Needs Attention
|
|
|
298
298
|
3. Report in a concise digest format
|
|
299
299
|
4. Save → `outputs/digest-YYYY-MM-DD.md`
|
|
300
300
|
|
|
301
|
-
### `/wiki
|
|
301
|
+
### `/wiki-watch <interval>` — Auto-run on schedule
|
|
302
302
|
|
|
303
303
|
**When:** The user wants the wiki to stay current automatically.
|
|
304
304
|
|
|
305
305
|
Set up a recurring schedule using pi's schedule system:
|
|
306
306
|
|
|
307
307
|
```
|
|
308
|
-
/wiki
|
|
309
|
-
/wiki
|
|
310
|
-
/wiki
|
|
311
|
-
/wiki
|
|
308
|
+
/wiki-watch daily → schedule_prompt action=add schedule="0 0 8 * * *" prompt="Run `/wiki-run` for the LLM Wiki"
|
|
309
|
+
/wiki-watch weekly → schedule_prompt action=add schedule="0 0 9 * * 1" prompt="Run `/wiki-run` for the LLM Wiki"
|
|
310
|
+
/wiki-watch hourly → schedule_prompt action=add schedule="0 0 * * * *" prompt="Run `/wiki-run` for the LLM Wiki"
|
|
311
|
+
/wiki-watch stop → list and remove scheduled wiki jobs
|
|
312
312
|
```
|
|
313
313
|
|
|
314
314
|
---
|
|
@@ -407,10 +407,10 @@ To keep the wiki always fresh, use pi's scheduling:
|
|
|
407
407
|
|
|
408
408
|
```bash
|
|
409
409
|
# Daily at 8 AM — discover + ingest + lint
|
|
410
|
-
/wiki
|
|
410
|
+
/wiki-watch daily
|
|
411
411
|
|
|
412
412
|
# Or manually:
|
|
413
|
-
/wiki
|
|
413
|
+
/wiki-run
|
|
414
414
|
```
|
|
415
415
|
|
|
416
416
|
The schedule checks your configured topics, discovers new sources, ingests them, and lints for health — all automatically.
|
|
@@ -30,7 +30,7 @@ SORT updated ASC
|
|
|
30
30
|
|
|
31
31
|
## Orphan Pages
|
|
32
32
|
|
|
33
|
-
_Pages with no inbound [[wikilinks]] — run `/wiki
|
|
33
|
+
_Pages with no inbound [[wikilinks]] — run `/wiki-lint` to detect and fix._
|
|
34
34
|
|
|
35
35
|
## Most-Connected Concepts
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ _Pages with the most inbound [[wikilinks]] — these are the knowledge hubs._
|
|
|
38
38
|
|
|
39
39
|
## Knowledge Gaps
|
|
40
40
|
|
|
41
|
-
_Topics mentioned but lacking their own page — run `/wiki
|
|
41
|
+
_Topics mentioned but lacking their own page — run `/wiki-lint` to detect._
|
|
42
42
|
|
|
43
43
|
## Recent Activity
|
|
44
44
|
|
package/test/llm-wiki.test.ts
CHANGED
|
@@ -89,7 +89,7 @@ describe("package structure", () => {
|
|
|
89
89
|
expect(content).toContain("## Golden Rules");
|
|
90
90
|
expect(content).toContain("RAW IS IMMUTABLE");
|
|
91
91
|
expect(content).toContain("## Workflows");
|
|
92
|
-
expect(content).toContain("/wiki
|
|
92
|
+
expect(content).toContain("/wiki-ingest");
|
|
93
93
|
expect(content).toContain("Obsidian Integration");
|
|
94
94
|
expect(content).toContain("Personal Wiki");
|
|
95
95
|
expect(content).toContain("Company Wiki");
|