Commit Graph

20 Commits

Author SHA1 Message Date
xianren 9873d0514d feat: add --brief flag to rag_query.py to reduce output verbosity
- New --brief flag for semantic/search subcommands outputs one-line-per-result
  (title + link + 80-char snippet) instead of full 500-char excerpts
- Reduces output from ~60 lines to ~7 lines per query (3 results)
- /compare-masters now uses --brief by default (multiple queries no longer
  flood the terminal with long excerpts)
- Full output (default) preserved for single-master /ask and debugging
2026-04-05 09:32:55 +08:00
xianren 16cbda8e50 fix: robust tool path resolution + precise selection feedback in /compare-masters
- Add PROJECT_ROOT discovery with 3 fallback paths (dev/manual/OpenClaw)
- Replace ${CLAUDE_SKILL_DIR}/tools/... with $PROJECT_ROOT/tools/...
  (CLAUDE_SKILL_DIR in subskills points to skill dir, not project root)
- Add graceful degradation when rag_query.py unreachable
- Output selection reasoning explicitly (e.g. 'xuanzang: 强关键词匹配(5项)
  + kumarajiva: 主题互补视角') instead of vague '主题映射'
2026-04-05 09:17:11 +08:00
xianren 6446903daf feat: smart master selection + expanded keywords (6→24 per master)
- /compare-masters now uses keyword matching from meta.json search_scope.keywords
- 3-tier selection: user-specified → keyword matching → topic fallback
- Expanded each master's keywords to 15-25 core concepts (avg 24)
- Document --masters manual override in README

Selection improvements verified:
- '遍行因' → xuanzang (5 matches)
- '明心见性' → huineng (3 matches)
- '空性/中观' → kumarajiva + huineng
- '念佛' → yinguang + ouyi + xuyun
2026-04-05 09:07:24 +08:00
xianren 02df9344b5 feat: 首轮身份中立原则 — masters no longer assume user identity on first turn
- Add Layer 0 hard rule to all 8 masters' voice.md: first turn must use
  neutral address (您/汝/你/问者), forbidden terms include 居士/行者/学人/
  善男子/善女人/出家人/师父/大众/道友/善信/道友
- From turn 2+: masters adapt to user's self-disclosed or question-inferred
  identity, restoring each master's historical address style
- Layer 2 开场方式/称呼方式 reorganized into 首轮中立 / 身份已知后 tiers
- Update voice_builder.md and voice_analyzer.md templates so future
  /create-master runs inherit this rule
- Add tools/sync_skill_from_voice.py to keep SKILL.md PART B in sync
- Add 48 regression tests in test_voice_rules.py (all 79 tests pass)
2026-04-05 08:44:35 +08:00
xianren 02d1069c46 feat: add /compare-masters skill for multi-master comparison (P1) 2026-04-05 08:05:46 +08:00
xianren ce8024ac92 docs: simplify analyzer prompts — remove 南传/藏传 sections, focus on 汉传 2026-04-05 07:41:23 +08:00
xianren 0f53ae0400 docs: update disclaimer — use 佛教经典文献, remove medical/diagnosis/mentor clauses 2026-04-04 22:20:30 +08:00
xianren aafcbdf721 refactor: rename teacher_ to master_ in all SKILL.md frontmatter, update descriptions 2026-04-04 21:47:01 +08:00
xianren d84a6f9040 fix: verify and update 186 FoJin URLs from CBETA IDs to real internal text_ids 2026-04-04 19:58:55 +08:00
xianren 901fbee3c3 feat: add search_scope to all teachers + cross-reference tool for inter-teacher dialogue
Each teacher's meta.json now includes search_scope with tradition-specific
CBETA/SuttaCentral IDs, dictionary sources, and keywords for focused RAG
retrieval. New tools/cross_reference.py enables lineage queries and
cross-tradition concept comparison via FoJin KG.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 19:57:11 +08:00
xianren 076d811e87 feat: add pre-built teacher skill for 蕅益大师 (Tiantai/Pure Land)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 19:37:24 +08:00
xianren b6eda14d35 feat: add pre-built teacher skill for 虚云老和尚 (Chan, Five Houses)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 19:37:06 +08:00
xianren d03d184e90 feat: add pre-built teacher skill for 法藏大师 (Huayan)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 19:32:26 +08:00
xianren 35893d6c1d feat: add pre-built teacher skill for 智顗大师 (Tiantai)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 19:32:18 +08:00
xianren 3a63abd3e4 feat: add pre-built teacher skill for 慧能大师 (Chan/Zen)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 19:31:34 +08:00
xianren 082dc21b69 feat: add pre-built teacher skill for 鸠摩罗什 (Mādhyamaka)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 17:58:52 +08:00
xianren e7dab84bf3 feat: add pre-built teacher skill for 玄奘法师 (Yogācāra)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 17:57:56 +08:00
xianren 682fa98932 feat: add pre-built teacher skill for 宗喀巴大师 (Gelug)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 17:47:04 +08:00
xianren b7fb2a7e6b feat: add pre-built teacher skill for Ajahn Chah (Thai Forest)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 17:44:49 +08:00
xianren fb3d3a920c feat: add pre-built teacher skill for 印光大师 (Pure Land)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 17:41:45 +08:00