master-skill 0.9.0 → 0.10.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "master-skill",
3
- "description": "Buddhist Master AI Skills 14 historical masters across 汉传/藏传/南传 plus 3 teaching meta-skills (compare / debate / curriculum), with source-cited teachings",
3
+ "description": "FoJin-powered Buddhist AI persona framework with 15 source-grounded masters across 印度/汉传/藏传/南传 plus compare, debate, and curriculum meta-skills",
4
4
  "owner": {
5
5
  "name": "xr843",
6
6
  "email": "xr843@users.noreply.github.com"
@@ -8,8 +8,8 @@
8
8
  "plugins": [
9
9
  {
10
10
  "name": "master-skill",
11
- "description": "Buddhist Master AI teaching personas14 prebuilt masters across 汉传/藏传/南传 plus 3 teaching meta-skills (compare-masters / master-debate / master-curriculum), invokable via /master-<slug> slash commands, with source-cited doctrinal responses (CBETA / BDRC / SuttaCentral / PTS Vism), RAG-grounded in FoJin knowledge graph",
12
- "version": "0.9.0",
11
+ "description": "FoJin-powered Buddhist AI persona frameworksource-grounded, boundary-aware, fidelity-tested, runtime-ready. 15 prebuilt masters across 印度/汉传/藏传/南传 plus compare, debate, and curriculum meta-skills.",
12
+ "version": "0.10.0",
13
13
  "source": "./",
14
14
  "author": {
15
15
  "name": "xr843",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "master-skill",
3
- "description": "Buddhist Master AI teaching personas14 prebuilt masters across 汉传/藏传/南传 plus 3 teaching meta-skills (compare-masters / master-debate / master-curriculum), invokable via /master-<slug> slash commands, with source-cited doctrinal responses (CBETA / BDRC / SuttaCentral / PTS Vism), RAG-grounded in FoJin knowledge graph",
4
- "version": "0.9.0",
3
+ "description": "FoJin-powered Buddhist AI persona frameworksource-grounded, boundary-aware, fidelity-tested, runtime-ready. 15 prebuilt masters across 印度/汉传/藏传/南传 plus compare, debate, and curriculum meta-skills.",
4
+ "version": "0.10.0",
5
5
  "author": {
6
6
  "name": "xr843",
7
7
  "email": "xr843@users.noreply.github.com"
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "master-skill",
3
3
  "displayName": "Master Skill",
4
- "description": "Buddhist Master AI teaching personas14 prebuilt masters across 汉传/藏传/南传 invokable via /master-<slug> slash commands, with source-cited doctrinal responses (CBETA / BDRC / SuttaCentral / PTS Vism), RAG-grounded in FoJin knowledge graph",
5
- "version": "0.9.0",
4
+ "description": "FoJin-powered Buddhist AI persona frameworksource-grounded, boundary-aware, fidelity-tested, runtime-ready. 15 prebuilt masters across 印度/汉传/藏传/南传.",
5
+ "version": "0.10.0",
6
6
  "author": {
7
7
  "name": "xr843",
8
8
  "email": "xr843@users.noreply.github.com"
package/README.md CHANGED
@@ -26,8 +26,13 @@
26
26
  </p>
27
27
 
28
28
  <p align="center">
29
- <strong>依据四大佛教传统祖师大德的教学风格,通达 AI 学习伙伴</strong><br>
30
- 15 位祖师 · 印度 / 汉传 / 藏传 / 南传跨传统 · CBETA / BDRC / SuttaCentral / PTS Vism 真实出处 · AgentSkills 标准
29
+ <strong>FoJin 驱动的佛教 AI 祖师人格框架</strong><br>
30
+ 有来源 · 守边界 · 可评测 · 可运行 · 15 位祖师 · 印度 / 汉传 / 藏传 / 南传跨传统
31
+ </p>
32
+
33
+ <p align="center">
34
+ <sub>Source-grounded · Boundary-aware · Fidelity-tested · Runtime-ready</sub><br>
35
+ <sub>CBETA / BDRC / SuttaCentral / PTS Vism 真实出处 · AgentSkills 标准</sub>
31
36
  </p>
32
37
 
33
38
  <p align="center">
@@ -123,7 +128,7 @@
123
128
 
124
129
  ---
125
130
 
126
- 基于佛教经典文献的法师教学角色生成器,遵循 AgentSkills 标准,由 [FoJin](https://fojin.app) 驱动。
131
+ Master-skill 是由 [FoJin](https://fojin.app) 驱动的佛教 AI 祖师人格框架:以真实原典为来源,以伦理边界为约束,以保真度评测为质量门槛,并以 AgentSkills 运行协议交付给 Claude Code、Cursor、Codex CLI、OpenCode 与 Gemini CLI。
127
132
 
128
133
  ---
129
134
 
@@ -150,6 +155,19 @@
150
155
  - **FoJin 数据桥**:接入 [fojin.app](https://fojin.app) 的 503 个数据源、10K+ 文本、678K+ 语义向量和 31K 实体知识图谱
151
156
  - **AgentSkills 标准**:遵循 [Anthropic Agent Skills](https://github.com/anthropics/skills) 规范,渐进式披露、决策树、黑盒脚本模式
152
157
 
158
+ ## 框架定位
159
+
160
+ Master-skill 的核心不是"角色扮演提示词集合",而是一个可验证的佛教 AI persona framework:
161
+
162
+ | 维度 | 实现 |
163
+ |---|---|
164
+ | 有来源 | 每位祖师声明 `sources[]`、离线 excerpts、FoJin live fallback 与引用自审 |
165
+ | 守边界 | `ETHICS.md`、每位祖师 Layer 0 HARD-GATE、版权 Tier 与教界越界报告机制 |
166
+ | 可评测 | `tests/fidelity.jsonl`、persona-fidelity schema、promptfoo RAW / SPE / CUS 评测层 |
167
+ | 可运行 | `prebuilt/master-*` AgentSkills、npm CLI、多平台 hooks、FoJin runtime contract |
168
+
169
+ 后续 v1.0 路线以框架稳定为优先:见 [docs/v1-framework-roadmap.md](docs/v1-framework-roadmap.md) 与 [docs/fojin-runtime-contract.md](docs/fojin-runtime-contract.md)。
170
+
153
171
  ---
154
172
 
155
173
  ## 开发者安装
@@ -283,6 +301,24 @@ git clone https://github.com/xr843/Master-skill ~/Master-skill
283
301
 
284
302
  ---
285
303
 
304
+ ## 桌面管理器
305
+
306
+ 原生桌面控制台(纯 Rust,egui,单二进制,无 Electron),统一管理 17 个 master skill 的安装状态、fidelity 评测覆盖率、运行追踪与质量门禁:
307
+
308
+ ![Master-skill Desktop Manager](https://raw.githubusercontent.com/xr843/Master-skill/master/docs/assets/desktop-manager.png)
309
+
310
+ **下载**:[Releases](https://github.com/xr843/Master-skill/releases) 提供 Linux / Windows / macOS 预编译二进制,下载后直接运行(仓库根目录下执行,需本地已 clone 本仓库)。Linux / macOS 下载后需先 `chmod +x` 赋予可执行权限;macOS 上二进制未签名,首次运行需右键"打开"或执行 `xattr -d com.apple.quarantine <文件名>` 解除隔离。
311
+
312
+ **从源码构建**:
313
+
314
+ ```bash
315
+ cd desktop && cargo build --release
316
+ ./target/release/master-skill-desktop # 图形界面
317
+ ./target/release/master-skill-desktop --baseline # 无头跑 fidelity dry-run 基线
318
+ ```
319
+
320
+ ---
321
+
286
322
  ## 预置法师
287
323
 
288
324
  ### 龙树菩萨(Nāgārjuna,约150-250) — 印度 · 中观
package/README_EN.md CHANGED
@@ -25,8 +25,12 @@
25
25
  </p>
26
26
 
27
27
  <p align="center">
28
- <strong>AI learning companions modeled after historical Buddhist masters across four traditions</strong><br>
29
- 15 pre-built masters · 印度 / 汉传 / 藏传 / 南传 cross-tradition · CBETA / BDRC / SuttaCentral / PTS Vism citations · AgentSkills Standard
28
+ <strong>A FoJin-powered Buddhist AI persona framework</strong><br>
29
+ Source-grounded · Boundary-aware · Fidelity-tested · Runtime-ready · 15 masters across 印度 / 汉传 / 藏传 / 南传
30
+ </p>
31
+
32
+ <p align="center">
33
+ <sub>CBETA / BDRC / SuttaCentral / PTS Vism citations · AgentSkills Standard</sub>
30
34
  </p>
31
35
 
32
36
  <p align="center">
@@ -124,7 +128,7 @@ For further study, consult the original texts at FoJin (fojin.app).
124
128
 
125
129
  ---
126
130
 
127
- An AgentSkills-standard generator for AI personas based on historical Buddhist masters, powered by [FoJin](https://fojin.app) a Buddhist text aggregation platform.
131
+ Master-skill is a [FoJin](https://fojin.app)-powered Buddhist AI persona framework: grounded in primary sources, constrained by ethical boundaries, checked by fidelity tests, and packaged as runtime-ready AgentSkills for Claude Code, Cursor, Codex CLI, OpenCode, and Gemini CLI.
128
132
 
129
133
  ---
130
134
 
@@ -149,6 +153,19 @@ This project is built out of respect for Buddhist traditions. All content is gen
149
153
  - **FoJin data bridge**: Connected to [fojin.app](https://fojin.app) with 503 data sources, 10K+ texts, 678K+ semantic embeddings, and a 31K-entity knowledge graph
150
154
  - **AgentSkills standard**: Compliant with [Anthropic Agent Skills](https://github.com/anthropics/skills) — progressive disclosure, decision trees, black-box script pattern
151
155
 
156
+ ## Framework Positioning
157
+
158
+ Master-skill is not a prompt pack. It is a verifiable Buddhist AI persona framework:
159
+
160
+ | Dimension | Implementation |
161
+ |---|---|
162
+ | Source-grounded | `sources[]`, offline excerpts, FoJin live fallback, and citation self-audits per master |
163
+ | Boundary-aware | `ETHICS.md`, per-master Layer 0 HARD-GATE rules, copyright tiers, and boundary violation reporting |
164
+ | Fidelity-tested | `tests/fidelity.jsonl`, persona-fidelity schema, and promptfoo RAW / SPE / CUS evals |
165
+ | Runtime-ready | `prebuilt/master-*` AgentSkills, npm CLI, multi-platform hooks, and a FoJin runtime contract |
166
+
167
+ The v1.0 track prioritizes framework stability over adding more masters. See [docs/v1-framework-roadmap.md](docs/v1-framework-roadmap.md) and [docs/fojin-runtime-contract.md](docs/fojin-runtime-contract.md).
168
+
152
169
  ---
153
170
 
154
171
  ## Developer Installation
@@ -262,6 +279,24 @@ The system will guide you through a three-step intake, then automatically collec
262
279
 
263
280
  ---
264
281
 
282
+ ## Desktop Manager
283
+
284
+ A native desktop console (pure Rust, egui, single binary, no Electron) that unifies management of installation status, fidelity evaluation coverage, run tracing, and the quality gate across all 17 master skills:
285
+
286
+ ![Master-skill Desktop Manager](https://raw.githubusercontent.com/xr843/Master-skill/master/docs/assets/desktop-manager.png)
287
+
288
+ **Download**: [Releases](https://github.com/xr843/Master-skill/releases) provides pre-built binaries for Linux / Windows / macOS — download and run directly (execute from the repository root; requires a local clone of this repo). On Linux/macOS you'll need to `chmod +x` the downloaded binary first; on macOS it's unsigned, so the first run needs right-click → Open, or `xattr -d com.apple.quarantine <file>` to clear the quarantine flag.
289
+
290
+ **Build from source**:
291
+
292
+ ```bash
293
+ cd desktop && cargo build --release
294
+ ./target/release/master-skill-desktop # GUI
295
+ ./target/release/master-skill-desktop --baseline # headless fidelity dry-run baseline
296
+ ```
297
+
298
+ ---
299
+
265
300
  ## Pre-built Masters
266
301
 
267
302
  ### Nāgārjuna (c. 150-250) — Indian · Madhyamaka
package/bin/cli.mjs CHANGED
@@ -68,15 +68,62 @@ function availableMasters() {
68
68
  });
69
69
  }
70
70
 
71
+ function readJson(filepath) {
72
+ return JSON.parse(fs.readFileSync(filepath, "utf8"));
73
+ }
74
+
75
+ function installedSkillDirs() {
76
+ if (!fs.existsSync(SKILLS_DIR)) return [];
77
+ return fs
78
+ .readdirSync(SKILLS_DIR, { withFileTypes: true })
79
+ .filter((d) => d.isDirectory())
80
+ .map((d) => d.name)
81
+ .sort();
82
+ }
83
+
84
+ function hasLiveGrounding(masterDir) {
85
+ const skillMd = path.join(masterDir, "SKILL.md");
86
+ if (!fs.existsSync(skillMd)) return false;
87
+ const text = fs.readFileSync(skillMd, "utf8");
88
+ return text.includes("FoJin 实时检索") || text.includes("FoJin live");
89
+ }
90
+
91
+ function sourceIds(meta) {
92
+ if (!Array.isArray(meta.sources)) return [];
93
+ return meta.sources.map((s) => [s.id, s.title].filter(Boolean).join(" — "));
94
+ }
95
+
96
+ function printJson(payload) {
97
+ console.log(JSON.stringify(payload, null, 2));
98
+ }
99
+
71
100
  // --- commands ---
72
101
 
73
- function cmdList() {
102
+ function listData() {
74
103
  const masters = availableMasters();
104
+ return {
105
+ count: masters.length,
106
+ masters: masters.map((m) => ({
107
+ name: m.name,
108
+ slug: m.name.replace(/^master-/, ""),
109
+ description: m.description,
110
+ })),
111
+ };
112
+ }
113
+
114
+ function cmdList({ json = false } = {}) {
115
+ const data = listData();
116
+ if (json) {
117
+ printJson(data);
118
+ return;
119
+ }
120
+
121
+ const masters = data.masters;
75
122
  if (!masters.length) {
76
123
  console.log("No prebuilt masters found.");
77
124
  return;
78
125
  }
79
- console.log(`\nAvailable masters (${masters.length}):\n`);
126
+ console.log(`\nAvailable masters (${data.count}):\n`);
80
127
  const nameW = Math.max(...masters.map((m) => m.name.length), 4);
81
128
  for (const m of masters) {
82
129
  const desc = m.description.length > 80 ? m.description.slice(0, 77) + "..." : m.description;
@@ -123,6 +170,16 @@ function cmdInstall(names) {
123
170
  return failed;
124
171
  }
125
172
 
173
+ function cmdInstallAll(label = "Installing") {
174
+ const all = availableMasters().map((m) => m.name);
175
+ if (!all.length) {
176
+ console.log("No masters available.");
177
+ return 1;
178
+ }
179
+ console.log(`${label} all ${all.length} masters...\n`);
180
+ return cmdInstall(all);
181
+ }
182
+
126
183
  function cmdUninstall(names) {
127
184
  let failed = 0;
128
185
  for (const name of names) {
@@ -149,6 +206,136 @@ function cmdUninstall(names) {
149
206
  return failed;
150
207
  }
151
208
 
209
+ function doctorData() {
210
+ const masters = availableMasters();
211
+ const installed = installedSkillDirs();
212
+ const expectedInstalled = masters.filter((m) => installed.includes(m.name));
213
+ const missingSkillMd = masters.filter((m) => {
214
+ const masterDir = path.join(PREBUILT, m.name);
215
+ return !fs.existsSync(path.join(masterDir, "SKILL.md"));
216
+ });
217
+ const problems = missingSkillMd.map((m) => ({
218
+ code: "missing-skill-md",
219
+ name: m.name,
220
+ message: `${m.name} is missing SKILL.md`,
221
+ }));
222
+
223
+ return {
224
+ packageVersion: pkgVersion(),
225
+ nodeVersion: process.version,
226
+ prebuiltPath: PREBUILT,
227
+ skillsPath: SKILLS_DIR,
228
+ availableSkills: masters.length,
229
+ installedKnownSkills: expectedInstalled.length,
230
+ otherInstalledSkillDirs: installed.length - expectedInstalled.length,
231
+ status: problems.length ? "problems" : "ok",
232
+ problems,
233
+ };
234
+ }
235
+
236
+ function cmdDoctor({ json = false } = {}) {
237
+ const data = doctorData();
238
+ if (json) {
239
+ printJson(data);
240
+ return data.problems.length ? 1 : 0;
241
+ }
242
+
243
+ console.log(`master-skill doctor\n`);
244
+ console.log(`Package version: ${data.packageVersion}`);
245
+ console.log(`Node version: ${data.nodeVersion}`);
246
+ console.log(`Prebuilt path: ${data.prebuiltPath}`);
247
+ console.log(`Claude skills path: ${data.skillsPath}`);
248
+ console.log(`Available skills: ${data.availableSkills}`);
249
+ console.log(`Installed known skills: ${data.installedKnownSkills}`);
250
+ console.log(`Other installed skill dirs: ${data.otherInstalledSkillDirs}`);
251
+
252
+ if (data.problems.length) {
253
+ console.log(`\nProblems:`);
254
+ for (const problem of data.problems) {
255
+ console.log(` ✗ ${problem.message}`);
256
+ }
257
+ return 1;
258
+ }
259
+
260
+ console.log(`\nStatus: ok`);
261
+ return 0;
262
+ }
263
+
264
+ function inspectData(name) {
265
+ const masterDir = resolveMasterDir(name);
266
+ if (!masterDir) return null;
267
+
268
+ const dirName = path.basename(masterDir);
269
+ const skillMd = path.join(masterDir, "SKILL.md");
270
+ const metaPath = path.join(masterDir, "meta.json");
271
+ const fm = fs.existsSync(skillMd) ? parseFrontmatter(skillMd) : {};
272
+ const meta = fs.existsSync(metaPath) ? readJson(metaPath) : {};
273
+ const sources = sourceIds(meta);
274
+
275
+ return {
276
+ name: dirName,
277
+ displayName: meta.name || null,
278
+ slug: meta.slug || dirName.replace(/^master-/, ""),
279
+ version: fm.version || meta.version || null,
280
+ tradition: meta.tradition || null,
281
+ school: meta.school || null,
282
+ era: meta.era || null,
283
+ installed: fs.existsSync(path.join(SKILLS_DIR, dirName)),
284
+ liveGrounding: hasLiveGrounding(masterDir),
285
+ citationFormat: fm.citation_format || null,
286
+ sources,
287
+ searchKeywords: meta.search_scope?.keywords || [],
288
+ };
289
+ }
290
+
291
+ function cmdInspect(name, { json = false } = {}) {
292
+ if (!name) {
293
+ console.log("Usage: master-skill inspect <name>");
294
+ return 1;
295
+ }
296
+ if (!isSafeName(name)) {
297
+ console.log(` ✗ ${name} — invalid name (letters, digits, "-", "_" only)`);
298
+ return 1;
299
+ }
300
+
301
+ const data = inspectData(name);
302
+ if (!data) {
303
+ console.log(` ✗ ${name} — not found in prebuilt/ (tried "${name}" and "master-${name}")`);
304
+ return 1;
305
+ }
306
+
307
+ if (json) {
308
+ printJson(data);
309
+ return 0;
310
+ }
311
+
312
+ console.log(`${data.name}\n`);
313
+ console.log(`Display name: ${data.displayName || "(none)"}`);
314
+ console.log(`Slug: ${data.slug}`);
315
+ console.log(`Version: ${data.version || "(unknown)"}`);
316
+ console.log(`Tradition: ${data.tradition || "(unspecified)"}`);
317
+ console.log(`School: ${data.school || "(unspecified)"}`);
318
+ console.log(`Era: ${data.era || "(unspecified)"}`);
319
+ console.log(`Installed: ${data.installed ? "yes" : "no"}`);
320
+ console.log(`Live grounding: ${data.liveGrounding ? "yes" : "no"}`);
321
+ console.log(`Citation format: ${data.citationFormat || "(not declared in SKILL frontmatter)"}`);
322
+
323
+ if (data.sources.length) {
324
+ console.log(`\nSources (${data.sources.length}):`);
325
+ for (const source of data.sources) console.log(` - ${source}`);
326
+ } else {
327
+ console.log(`\nSources: none declared in meta.json`);
328
+ }
329
+
330
+ if (data.searchKeywords.length) {
331
+ const keywords = data.searchKeywords.slice(0, 12).join(", ");
332
+ const suffix = data.searchKeywords.length > 12 ? ", ..." : "";
333
+ console.log(`\nSearch keywords: ${keywords}${suffix}`);
334
+ }
335
+
336
+ return 0;
337
+ }
338
+
152
339
  function showHelp() {
153
340
  console.log(`
154
341
  master-skill v${pkgVersion()} — Buddhist Master AI Skills installer
@@ -156,7 +343,13 @@ master-skill v${pkgVersion()} — Buddhist Master AI Skills installer
156
343
  Usage:
157
344
  master-skill install <name...> Install masters to ~/.claude/skills/
158
345
  master-skill install --all Install all available masters
346
+ master-skill update --all Reinstall all masters, clearing stale files
159
347
  master-skill list List available masters
348
+ master-skill list --json Print available masters as JSON
349
+ master-skill inspect <name> Show source/runtime metadata for one master
350
+ master-skill inspect <name> --json
351
+ master-skill doctor Check local install and runtime paths
352
+ master-skill doctor --json Print diagnostics as JSON
160
353
  master-skill uninstall <name...> Remove installed masters
161
354
  master-skill --version Print version
162
355
  master-skill --help Show this help
@@ -168,7 +361,10 @@ Examples:
168
361
  npx master-skill install zhiyi fazang
169
362
  npx master-skill install master-milarepa master-tsongkhapa
170
363
  npx master-skill install --all
364
+ npx master-skill update --all
171
365
  npx master-skill list
366
+ npx master-skill inspect huineng
367
+ npx master-skill doctor
172
368
  npx master-skill uninstall zhiyi
173
369
  `);
174
370
  }
@@ -176,33 +372,40 @@ Examples:
176
372
  // --- main ---
177
373
 
178
374
  const args = process.argv.slice(2);
179
- const cmd = args[0];
375
+ const json = args.includes("--json");
376
+ const positionalArgs = args.filter((arg) => arg !== "--json");
377
+ const cmd = positionalArgs[0];
180
378
 
181
379
  if (!cmd || cmd === "--help" || cmd === "-h") {
182
380
  showHelp();
183
381
  } else if (cmd === "--version" || cmd === "-v") {
184
382
  console.log(pkgVersion());
185
383
  } else if (cmd === "list") {
186
- cmdList();
384
+ cmdList({ json });
385
+ } else if (cmd === "doctor") {
386
+ if (cmdDoctor({ json }) > 0) process.exitCode = 1;
387
+ } else if (cmd === "inspect") {
388
+ if (cmdInspect(positionalArgs[1], { json }) > 0) process.exitCode = 1;
187
389
  } else if (cmd === "install") {
188
- const rest = args.slice(1);
390
+ const rest = positionalArgs.slice(1);
189
391
  if (rest.includes("--all")) {
190
- const all = availableMasters().map((m) => m.name);
191
- if (!all.length) {
192
- console.log("No masters available.");
193
- process.exitCode = 1;
194
- } else {
195
- console.log(`Installing all ${all.length} masters...\n`);
196
- if (cmdInstall(all) > 0) process.exitCode = 1;
197
- }
392
+ if (cmdInstallAll("Installing") > 0) process.exitCode = 1;
198
393
  } else if (rest.length === 0) {
199
394
  console.log("Usage: master-skill install <name...> | --all");
200
395
  process.exitCode = 1;
201
396
  } else {
202
397
  if (cmdInstall(rest) > 0) process.exitCode = 1;
203
398
  }
399
+ } else if (cmd === "update") {
400
+ const rest = positionalArgs.slice(1);
401
+ if (rest.length === 1 && rest[0] === "--all") {
402
+ if (cmdInstallAll("Updating") > 0) process.exitCode = 1;
403
+ } else {
404
+ console.log("Usage: master-skill update --all");
405
+ process.exitCode = 1;
406
+ }
204
407
  } else if (cmd === "uninstall") {
205
- const rest = args.slice(1);
408
+ const rest = positionalArgs.slice(1);
206
409
  if (rest.length === 0) {
207
410
  console.log("Usage: master-skill uninstall <name...>");
208
411
  process.exitCode = 1;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "master-skill",
3
- "description": "Buddhist Master AI teaching personas14 prebuilt masters across 汉传/藏传/南传 invokable via /master-<slug> slash commands, with source-cited doctrinal responses (CBETA / BDRC / SuttaCentral / PTS Vism)",
4
- "version": "0.9.0",
3
+ "description": "FoJin-powered Buddhist AI persona frameworksource-grounded, boundary-aware, fidelity-tested, runtime-ready. 15 prebuilt masters across 印度/汉传/藏传/南传.",
4
+ "version": "0.10.0",
5
5
  "contextFileName": "GEMINI.md"
6
6
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "master-skill",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "type": "module",
5
- "description": "Buddhist Master AI SkillsRAG-grounded, source-cited, fidelity-tested. 15 pre-built masters across 四大传统 invokable via /master-<slug> slash commands: 1 印度 (Nāgārjuna · Madhyamaka root) + 8 汉传 (Xuanzang, Kumārajīva, Huineng, Zhiyi, Fazang, Yinguang, Ouyi, Xuyun) + 3 藏传 (Atiśa, Tsongkhapa, Milarepa) + 3 南传 (Buddhaghosa, Mahasi Sayadaw, Ajahn Chah), plus 3 teaching meta-skills: /compare-masters (parallel), /master-debate (4-round adversarial), /master-curriculum (sequenced study path).",
5
+ "description": "FoJin-powered Buddhist AI persona framework source-grounded, boundary-aware, fidelity-tested, runtime-ready. 15 pre-built masters across 印度 / 汉传 / 藏传 / 南传, plus /compare-masters, /master-debate, and /master-curriculum.",
6
6
  "bin": {
7
7
  "master-skill": "./bin/cli.mjs"
8
8
  },
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: compare-masters
3
3
  description: Use when user asks to compare masters, compare schools, compare perspectives, 对比, 各宗怎么看, 不同宗派, 禅净之争, 性相之辩, 空有之争, or wants multiple masters to answer the same question. Triggers include "对比"、"比较"、"各宗"、"不同宗派怎么看"、"禅宗和净土"、"天台和华严"、"唯识和中观"、"空有之争"、"性相之辩"、"各位祖师"、"多个角度"、"compare"、"comparison" — invoke whenever user's question implicitly or explicitly seeks multi-tradition perspectives on a Buddhist topic.
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  license: MIT
6
6
  kind: meta-skill
7
7
  verified_by: xr843
@@ -46,12 +46,12 @@ verified_at: 2026-04-06
46
46
  | 正念 / 观心 / 觉知 | master-huineng + master-ajahn-chah + master-mahasi-sayadaw | 禅宗自性 vs 南传 sati 朴素 vs 缅甸标记法 |
47
47
  | 禅修方法 / 业处 / 所缘 | master-buddhaghosa + master-mahasi-sayadaw + master-ajahn-chah | 论藏四十种业处 vs 标记法腹部起伏 vs 朴素观心 |
48
48
  | 七清净 / 十六观智 / 道次第 | master-buddhaghosa + master-mahasi-sayadaw | 《清净道论》原典 vs 现代缅甸应用 |
49
- | 出离心 / 暇满 / 无常 | master-yinguang + master-atisha + master-ajahn-chah | 净土 · 噶当 · 上座部三大传统出离观对比 |
49
+ | 出离心 / 暇满 / 无常 | master-yinguang + master-atisha + master-ajahn-chah | 净土 · 噶当 · 上座部跨传统出离观对比 |
50
50
  | 菩提心 / 慈悲 | master-atisha + master-ouyi | 印藏自他相换 vs 跨宗派融通 |
51
51
  | 上师 / 善知识 / 依止 | master-xuyun + master-atisha + master-tsongkhapa | 汉传善知识 vs 噶当依止论 vs 格鲁视师如佛 |
52
52
  | 论师风格 / 经院严密 | master-xuanzang + master-tsongkhapa + master-buddhaghosa | 唯识 · 应成中观 · 上座部三大论师传统 |
53
- | 三大传统对比(明确要求) | master-huineng + master-tsongkhapa + master-buddhaghosa | 禅 · 应成中观 · 上座部论藏,三方系统对照 |
54
- | 三大传统禅修对比 | master-huineng + master-milarepa + master-ajahn-chah | 禅 · 大手印 · 森林禅,三大传统禅修法 |
53
+ | 四大传统对比(明确要求) | master-nagarjuna + master-huineng + master-tsongkhapa + master-buddhaghosa | 印度中观 · 禅 · 应成中观 · 上座部论藏,四方系统对照 |
54
+ | 跨传统禅修对比 | master-huineng + master-milarepa + master-ajahn-chah | 禅 · 大手印 · 森林禅,跨传统禅修法 |
55
55
  | 其他 | master-kumarajiva + master-yinguang | 中观 + 净土两大传统 |
56
56
 
57
57
  ## 工作流程
@@ -74,11 +74,15 @@ verified_at: 2026-04-06
74
74
  3. 用该祖师的术语体系改写查询词,执行独立语义检索
75
75
  4. 按 `meta.json` 的 `search_scope.primary_cbeta_ids` 过滤结果
76
76
 
77
- ### Step 3:生成对比回答(含分歧雷达)
77
+ ### Step 3:生成对比回答(固定输出协议)
78
78
 
79
79
  ```markdown
80
80
  ## 关于"{问题}"的对比回答
81
81
 
82
+ ### 共同点
83
+ - {两位/三位祖师在此问题上真实共享的佛法语境,不凑数,不写空泛套话}
84
+ - {每条共通点都要能回到至少一位祖师的来源}
85
+
82
86
  ### {祖师A}({宗派})的视角
83
87
  {以该祖师风格回答,附经证}
84
88
  > 出处:【《经名》卷N】→ fojin.app 链接
@@ -87,6 +91,16 @@ verified_at: 2026-04-06
87
91
  {以该祖师风格回答,附经证}
88
92
  > 出处:【《经名》卷N】→ fojin.app 链接
89
93
 
94
+ ### 核心分歧
95
+ - {一句话点明最核心差异:分歧发生在教义安立、修行入手、根器对象、还是表达方式}
96
+ - {必须避免"谁更高/更究竟"的评价语}
97
+
98
+ ### 适用根机
99
+ | 祖师 | 更适合回应的学人/问题状态 | 不宜误用之处 |
100
+ |------|---------------------------|--------------|
101
+ | {祖师A} | {如:偏理论分析/利根直指/重实修次第/信愿不足者} | {误用风险} |
102
+ | {祖师B} | {对应根机} | {误用风险} |
103
+
90
104
  ---
91
105
  ## 分歧雷达(五维强制分析)
92
106
 
@@ -119,6 +133,19 @@ verified_at: 2026-04-06
119
133
 
120
134
  - **共通点**:{三家(或两家)真正的交集,不要凑数}
121
135
  - **宗派背景**:{为什么会出现这些差异,历史与义理脉络简述}
136
+
137
+ ---
138
+ ## 推荐继续追问
139
+
140
+ - 如果想沿 {祖师A} 的视角深入:`/{master_A}` 可以继续问 {具体问题}
141
+ - 如果想沿 {祖师B} 的视角深入:`/{master_B}` 可以继续问 {具体问题}
142
+ - 如果想看历史争点:可以追问 "{具体论题在佛教史上的真实争点是什么?}"
143
+
144
+ ---
145
+ ## 引用来源
146
+
147
+ - {祖师A}:{本回答实际使用的来源 ID / 标题 / FoJin 链接}
148
+ - {祖师B}:{本回答实际使用的来源 ID / 标题 / FoJin 链接}
122
149
  ```
123
150
 
124
151
  ### Step 4:元问题追问引导
@@ -234,9 +261,16 @@ verified_at: 2026-04-06
234
261
  3. **公正对比**:不评判哪位"更对",只呈现差异
235
262
  4. **尊重融通**:对比是展现多元,不是制造对立
236
263
  5. **首轮身份中立**:同各 master skill 的规则
237
- 6. **回答末尾**附:"如需深入学习,可在 FoJin (fojin.app) 查阅原典。"
264
+ 6. **固定输出协议必须完整**:`共同点`、`核心分歧`、`适用根机`、`分歧雷达`、`分歧分类`、`共通点与宗派背景`、`推荐继续追问`、`引用来源` 不得省略。用户只要的是极短回答时,也要压缩这些标题下的内容,而不是删除标题。
265
+ 7. **回答末尾**附:"如需深入学习,可在 FoJin (fojin.app) 查阅原典。"
266
+
267
+ ## 可用祖师(15 位 · 四大传统)
238
268
 
239
- ## 可用祖师(14 位 · 三大传统)
269
+ ### 印度
270
+
271
+ | slug | 名称 | 传承 |
272
+ |------|------|------|
273
+ | master-nagarjuna | 龙树菩萨 | 印度中观(Madhyamaka 根本) |
240
274
 
241
275
  ### 汉传
242
276
 
@@ -269,8 +303,8 @@ verified_at: 2026-04-06
269
303
 
270
304
  ## 跨传统对比注意事项
271
305
 
272
- - 跨传统对比时,**先建立共同语境再展示差异**("三大传统都强调无常/苦/苦的止息,而具体进路不同……"),避免营造对立感
273
- - 不在跨传统对比中论"哪个传承更究竟"——三大传统皆是佛陀正法的不同面向
306
+ - 跨传统对比时,**先建立共同语境再展示差异**("各传统都强调离苦与觉悟,而具体进路不同……"),避免营造对立感
307
+ - 不在跨传统对比中论"哪个传承更究竟"——印度 / 汉传 / 藏传 / 南传各有自身文献、方法与历史语境
274
308
  - 涉及密法时(藏传 master-atisha / master-tsongkhapa / master-milarepa 一侧),仅介绍义理,不传授具体步骤;这是各自 skill HARD-GATE 的延伸
275
309
  - 涉及阿姜查与马哈希尊者引述时,必须可追溯至公开开示集(Forest Sangha / BPS Sri Lanka / Wisdom Publications / Mahasi Sasana Yeiktha),不可自行编造对话
276
310
  - 涉及禅修印证时(特别是马哈希内观法的十六观智阶位),**AI 不得对个体作证果判定**——这是 master-mahasi-sayadaw skill 最严肃的 guardrail