← 工作地圖

wiki-每週自動回顧 LLM P2 risk=LOW

1. 做什麼 / 2. 為什麼存在

wiki-每週自動回顧:每週回顧 wiki 變更與內容品質。

3. Schedule / Mode

mode=LLM state=scheduled enabled=1
schedule=0 16 * * 6
next_run=2026-08-29T16:00:00 last_run=2026-08-22T16:02:54
deliver=telegram model=— provider=—

4. Implementation

script=
monitor_script= monitor_url=
skills=[]
workdir=—

5. Effective instruction sources

prompt_sha256=151d2eed52ce8f1f… chars=1385
skill_files={}

[IMPORTANT: You are running as a scheduled cron job. DELIVERY: Your final response will be automatically delivered to the user — do NOT use send_message or try to deliver the output yourself. Just produce your report/output as your final response and the system handles the rest. 若一切正常無異常,回覆 "[SILENT]" 抑制推送;有異常才報告。]

【Wiki 萃取管線品質檢查(每週)】

## 背景

「每日想法提取」cron 每天 21:00 自動把對話重點寫入 wiki(隨手記/觀念)。**你的職責是檢查這條管線的產出品質與完整性,不是重新萃取對話。** 禁止使用 session_search 掃對話(每日 cron 已做萃取,重掃是重複勞動)。

## 執行步驟

### 1. 列出近 7 天新增檔案(排除自動管線目錄)

```bash
find /Users/exion/wiki/隨手記 /Users/exion/wiki/觀念 /Users/exion/wiki/生活 /Users/exion/wiki/工作 -name "*.md" -mtime -7 2>/dev/null | sort
```

(定錨觀察股目錄是每日自動 ingest,不需檢查內容,但 index 統計要含它)

### 2. 檢查 index.md 一致性

```bash
grep -E "總筆記數|最後更新" /Users/exion/wiki/index.md
ls /Users/exion/wiki/隨手記/*.md /Users/exion/wiki/觀念/*.md | wc -l
```

比對「index 統計數字」vs「實際檔案數」是否相符;再看表格條目與實際檔案是否有明顯缺漏。

### 3. 抽樣品質檢查

對近 7 天新增的檔案抽 2~3 個(優先隨手記/觀念),用 read_file 快速檢視(limit 30 即可):
- frontmatter 格式是否正確(title/created/source/type)
- 內容是否為實質記錄(非空洞或重複)
- 分類是否合理

### 4. 判斷與回報

| 發現 | 回報 |
|------|------|
| 🔴 index 統計與實際檔案數明顯不符(>5 篇差距)| 列出差異詳情 + 建議修正 |
| 🟡 新檔案格式錯誤 / 分類不合理 | 列出檔案 + 問題 + 建議 |
| 🟡 多個檔案明顯同主題重複 | 列出 + 建議整併 |
| 🟢 全部正常 | 回覆 [SILENT](不推播)|

若有異常,格式:

🔍 Wiki 萃取管線檢查(YYYY-MM-DD)

發現 N 個異常:
1. **問題** → 詳情 + 建議動作

若正常則靜默。

## 限制
- 不要自動修改 wiki,只提出建議
- 不要用 session_search / web 搜尋
- 用繁體中文回覆…

6. Actual rules / thresholds

rulevaluesource
none extracted

7/8. Inputs & Outputs (resources)

kindpathnameaccess
none

9/10. Upstream / Downstream

Upstream:
Downstream:
Transitive downstream (0):

Edges (typed evidence)

typehard?fromtoresourceoriginconfevidence
none

11. Shared resources

12. Recent executions

failure_streak=0
last_error=
delivery_error=

14. Drift history

16. Impact / change risk

change_risk=LOW