feat: jsc-wiki 新增 book-search、book-import,領域技能可直接使用

- 新增 /jsc-wiki:book-search:上網蒐集主題並依頁面格式整理成草稿
- 新增 /jsc-wiki:book-import:判斷領域與章節,主題存在則修改、否則新增,
  重建目錄與上下頁導覽,lint 後經確認再推送到 wiki
- 寫入工具以 TypeScript 實作(scripts/book.ts,入口 book.sh)
- 領域技能補上 allowed-tools,並改用 ${CLAUDE_PLUGIN_ROOT},修正需手動核准而無法載入的問題
- 頁面格式新增兩條規則:簡化技術中文(STE100)、繁體中文無亂碼且盡量用圖表
- 版本升至 0.0.2

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
root
2026-10-14 05:22:09 +00:00
co-authored by Claude Sonnet 5.5
parent 2c853c0e16
commit 65bc192fae
17 changed files with 501 additions and 33 deletions
+4 -3
View File
@@ -1,5 +1,6 @@
---
name: database
allowed-tools: Bash(${CLAUDE_PLUGIN_ROOT}/scripts/wiki.sh *)
description: "查詢資料庫與搜尋服務(PostgreSQL、SQL Server、Redis、Elasticsearch)。使用者執行 /jsc-wiki:database 或詢問與「資料庫與搜尋」相關的操作步驟時使用。"
---
@@ -7,13 +8,13 @@ description: "查詢資料庫與搜尋服務(PostgreSQL、SQL Server、Redis
目前章節內容(來自 wiki,唯讀):
!`${CLAUDE_SKILL_DIR}/../../scripts/wiki.sh chapter 5`
!`${CLAUDE_PLUGIN_ROOT}/scripts/wiki.sh chapter 5`
## 流程
0. 上方若顯示錯誤或沒有內容,先自行執行 `${CLAUDE_SKILL_DIR}/../../scripts/wiki.sh chapter N`(N 為本章號)。
0. 上方若顯示錯誤或沒有內容,先自行執行 `${CLAUDE_PLUGIN_ROOT}/scripts/wiki.sh chapter N`(N 為本章號)。
1. 使用者沒給主題(`$ARGUMENTS` 為空):只列出上面的篇目並詢問要看哪一篇,不要全文貼出。
2. 有給主題:用 `${CLAUDE_SKILL_DIR}/../../scripts/wiki.sh page <編號>`(例如 `5.1`)讀取最相關的一到兩篇,依內容回答;找不到再用 `wiki.sh search <關鍵字>` 跨章搜尋。
2. 有給主題:用 `${CLAUDE_PLUGIN_ROOT}/scripts/wiki.sh page <編號>`(例如 `5.1`)讀取最相關的一到兩篇,依內容回答;找不到再用 `wiki.sh search <關鍵字>` 跨章搜尋。
3. 只依 wiki 內容回答並註明頁面編號;wiki 沒寫的就說沒有,不要憑記憶補指令。
4. 內容中 `<密碼>`、`<Runner token>` 等是占位符,不要猜測實際值;執行會改動系統的指令前先跟使用者確認。