feat(v0.6): namespace all 14 master slash commands under /master-<slug> prefix

Slash command discoverability cleanup. Claude Code users typically have
50+ skills installed; bare-word commands like /atisha and /zhiyi got
scattered across the /-completion list. v0.6 prefixes all 14 master
slash commands with master- so they cluster under /m<tab> and clearly
signal "this is a Master-skill master skill".

Scope of rename
---------------
* Slash commands: /zhiyi → /master-zhiyi, /huineng → /master-huineng,
  ... all 14 affected.
* Directory layout: prebuilt/<slug>/ → prebuilt/master-<slug>/ for all
  14 masters (git mv preserves history).
* Frontmatter: each prebuilt/master-<slug>/SKILL.md updates `name:` to
  master-<slug>.
* compare-masters and create-master meta-skills are intentionally
  unchanged — they're already prefixed by their nature, and
  /master-compare-masters would be doublespeak.

Decoupling: fojin.app/chat is NOT affected
------------------------------------------
The fojin web frontend's master dropdown uses bare slug IDs (atisha,
huineng, ...) and is already grouped under "法师模式" in its UI. Backend
master_profiles.py keeps `id="atisha"` etc. unchanged. No fojin-side
migration required. The two surfaces (Claude Code slash + fojin
dropdown) are now formally decoupled by design, not coincidence.

Compatibility
-------------
* NPX installer accepts both forms: `npx master-skill install zhiyi`
  (short) and `install master-zhiyi` (full) both resolve to the same
  prebuilt/master-zhiyi/ source. Install destination is always
  ~/.claude/skills/master-<slug>/. Backward-compatible uninstall
  handles legacy non-prefixed installs (~/.claude/skills/zhiyi/).
* The cli.mjs already used `master-${name}` for install destinations
  (since v0.3 NPX installer was added), so existing v0.4/v0.5 NPX
  users were already getting the prefix in skills/ — only the source
  prebuilt/ layout and slash commands change in v0.6.

Files updated
-------------
* 14 directories renamed (28 files moved, 0 content changes).
* 14 SKILL.md frontmatter `name:` fields.
* prebuilt/compare/SKILL.md: 43 slug references updated to prefixed form.
* bin/cli.mjs: resolveMasterDir helper accepts both short and full;
  cmdInstall and cmdUninstall handle legacy paths.
* .github/workflows/validate-and-test.yml: fidelity-smoke MASTERS
  rotation array updated to all 14 prefixed names (was 8 hardcoded
  汉传 only — now properly rotates across the full set).
* scripts/{validate,cite,query,test-fidelity}.py: --master arg help
  text examples.
* README.md + README_EN.md: situational guidance table, install
  snippets, master cards. New v0.6 release banner.
* SKILL.md (project-level) preset list with new slash names.
* ETHICS.md Tier table slug references (4).
* All plugin manifests bumped 0.5.0 → 0.6.0 with description noting
  the /master-<slug> invocation pattern.
* CHANGELOG.md: [0.6.0] section with breaking-change notice and
  migration commands for existing NPX users.

Validation
----------
* python scripts/validate.py --strict           ✓ 15 masters pass
* python scripts/validate-fidelity.py           ✓ all valid
* python scripts/test-fidelity.py --all --dry-run  ✓
* pytest tests/                                  ✓ 31 passed, 6 skipped
* node bin/cli.mjs list                          ✓ shows all 14 with
                                                   master- prefix
* node bin/cli.mjs install zhiyi                 ✓ resolves to
                                                   prebuilt/master-zhiyi/
* node bin/cli.mjs install master-zhiyi          ✓ resolves to same

Migration for existing v0.4/v0.5 users
--------------------------------------
    npx master-skill@0.5 uninstall zhiyi huineng xuanzang ...
    # OR: rm -rf ~/.claude/skills/{zhiyi,huineng,...}
    npx master-skill@latest install --all

Then start a new Claude Code session; the new slash commands are
/master-zhiyi, /master-huineng, etc.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
xianren
2026-05-02 20:39:47 +08:00
parent 5d68deb963
commit 3f81cbb955
128 changed files with 278 additions and 188 deletions
+43 -43
View File
@@ -31,28 +31,28 @@ verified_at: 2026-04-06
| 问题主题 | 配对祖师 | 说明 |
|---------|---------|------|
| 念佛 / 往生 / 净土 | yinguang + ouyi | 净土专精 + 跨宗派 |
| 参禅 / 话头 / 开悟 | huineng + xuyun | 古今禅宗对比 |
| 唯识 / 中观 / 空有 | xuanzang + kumarajiva | 唯识 vs 中观 |
| 判教 / 圆融 / 止观 | zhiyi + fazang | 天台 vs 华严 |
| 修行次第 / 综合法门 | ouyi + yinguang | 综合 vs 专修 |
| 戒律 / 行持 / 日常 | xuyun + yinguang + ajahn-chah | 禅门戒律 vs 净土行持 vs 上座部律仪 |
| 般若 / 空性 | kumarajiva + tsongkhapa + huineng | 早期中观译师 · 应成中观精确分判 · 禅宗直指 |
| 中观 / 缘起性空 / 应成 | kumarajiva + tsongkhapa | 印度中观东渡 vs 藏地后期精确化 |
| 道次第 / 三士道 / lam rim | atisha + tsongkhapa | 印藏桥梁源头 vs 格鲁派系统化 |
| 心识 / 阿赖耶 / 心所 | xuanzang + buddhaghosa + huineng | 唯识 vs 上座部阿毗达摩 vs 禅宗直指 |
| 戒律 / 持戒 / 律仪 | xuyun + atisha + buddhaghosa | 汉传禅门律 vs 印藏菩萨律 vs 上座部律藏注释 |
| 苦行 / 闭关 / 山中修行 | xuyun + milarepa | 汉传禅门头陀 vs 藏传瑜伽士传统 |
| 正念 / 观心 / 觉知 | huineng + ajahn-chah + mahasi-sayadaw | 禅宗自性 vs 南传 sati 朴素 vs 缅甸标记法 |
| 禅修方法 / 业处 / 所缘 | buddhaghosa + mahasi-sayadaw + ajahn-chah | 论藏四十种业处 vs 标记法腹部起伏 vs 朴素观心 |
| 七清净 / 十六观智 / 道次第 | buddhaghosa + mahasi-sayadaw | 《清净道论》原典 vs 现代缅甸应用 |
| 出离心 / 暇满 / 无常 | yinguang + atisha + ajahn-chah | 净土 · 噶当 · 上座部三大传统出离观对比 |
| 菩提心 / 慈悲 | atisha + ouyi | 印藏自他相换 vs 跨宗派融通 |
| 上师 / 善知识 / 依止 | xuyun + atisha + tsongkhapa | 汉传善知识 vs 噶当依止论 vs 格鲁视师如佛 |
| 论师风格 / 经院严密 | xuanzang + tsongkhapa + buddhaghosa | 唯识 · 应成中观 · 上座部三大论师传统 |
| 三大传统对比(明确要求) | huineng + tsongkhapa + buddhaghosa | 禅 · 应成中观 · 上座部论藏,三方系统对照 |
| 三大传统禅修对比 | huineng + milarepa + ajahn-chah | 禅 · 大手印 · 森林禅,三大传统禅修法 |
| 其他 | kumarajiva + yinguang | 中观 + 净土两大传统 |
| 念佛 / 往生 / 净土 | master-yinguang + master-ouyi | 净土专精 + 跨宗派 |
| 参禅 / 话头 / 开悟 | master-huineng + master-xuyun | 古今禅宗对比 |
| 唯识 / 中观 / 空有 | master-xuanzang + master-kumarajiva | 唯识 vs 中观 |
| 判教 / 圆融 / 止观 | master-zhiyi + master-fazang | 天台 vs 华严 |
| 修行次第 / 综合法门 | master-ouyi + master-yinguang | 综合 vs 专修 |
| 戒律 / 行持 / 日常 | master-xuyun + master-yinguang + master-ajahn-chah | 禅门戒律 vs 净土行持 vs 上座部律仪 |
| 般若 / 空性 | master-kumarajiva + master-tsongkhapa + master-huineng | 早期中观译师 · 应成中观精确分判 · 禅宗直指 |
| 中观 / 缘起性空 / 应成 | master-kumarajiva + master-tsongkhapa | 印度中观东渡 vs 藏地后期精确化 |
| 道次第 / 三士道 / lam rim | master-atisha + master-tsongkhapa | 印藏桥梁源头 vs 格鲁派系统化 |
| 心识 / 阿赖耶 / 心所 | master-xuanzang + master-buddhaghosa + master-huineng | 唯识 vs 上座部阿毗达摩 vs 禅宗直指 |
| 戒律 / 持戒 / 律仪 | master-xuyun + master-atisha + master-buddhaghosa | 汉传禅门律 vs 印藏菩萨律 vs 上座部律藏注释 |
| 苦行 / 闭关 / 山中修行 | master-xuyun + master-milarepa | 汉传禅门头陀 vs 藏传瑜伽士传统 |
| 正念 / 观心 / 觉知 | master-huineng + master-ajahn-chah + master-mahasi-sayadaw | 禅宗自性 vs 南传 sati 朴素 vs 缅甸标记法 |
| 禅修方法 / 业处 / 所缘 | master-buddhaghosa + master-mahasi-sayadaw + master-ajahn-chah | 论藏四十种业处 vs 标记法腹部起伏 vs 朴素观心 |
| 七清净 / 十六观智 / 道次第 | master-buddhaghosa + master-mahasi-sayadaw | 《清净道论》原典 vs 现代缅甸应用 |
| 出离心 / 暇满 / 无常 | master-yinguang + master-atisha + master-ajahn-chah | 净土 · 噶当 · 上座部三大传统出离观对比 |
| 菩提心 / 慈悲 | master-atisha + master-ouyi | 印藏自他相换 vs 跨宗派融通 |
| 上师 / 善知识 / 依止 | master-xuyun + master-atisha + master-tsongkhapa | 汉传善知识 vs 噶当依止论 vs 格鲁视师如佛 |
| 论师风格 / 经院严密 | master-xuanzang + master-tsongkhapa + master-buddhaghosa | 唯识 · 应成中观 · 上座部三大论师传统 |
| 三大传统对比(明确要求) | master-huineng + master-tsongkhapa + master-buddhaghosa | 禅 · 应成中观 · 上座部论藏,三方系统对照 |
| 三大传统禅修对比 | master-huineng + master-milarepa + master-ajahn-chah | 禅 · 大手印 · 森林禅,三大传统禅修法 |
| 其他 | master-kumarajiva + master-yinguang | 中观 + 净土两大传统 |
## 工作流程
@@ -148,7 +148,7 @@ verified_at: 2026-04-06
### 禅净之争 —— 自力 vs 他力
- **推荐配对**`huineng` + `yinguang`(或 `huineng` + `ouyi` 看融通立场)
- **推荐配对**`master-huineng` + `master-yinguang`(或 `master-huineng` + `master-ouyi` 看融通立场)
- **真实争点**
1. 往生是否需要"见性"为前提?
2. "自性弥陀、唯心净土"与"他方实有极乐"是否矛盾?
@@ -158,7 +158,7 @@ verified_at: 2026-04-06
### 性相之辩 —— 法相唯识 vs 性宗
- **推荐配对**`xuanzang` + `fazang`(或 `xuanzang` + `huineng`
- **推荐配对**`master-xuanzang` + `master-fazang`(或 `master-xuanzang` + `master-huineng`
- **真实争点**
1. 是否安立阿赖耶识为万法所依?
2. 五种姓说(一分无性)与一切众生皆可成佛是否可融?
@@ -168,7 +168,7 @@ verified_at: 2026-04-06
### 空有之争 —— 中观 vs 唯识
- **推荐配对**`kumarajiva` + `xuanzang`
- **推荐配对**`master-kumarajiva` + `master-xuanzang`
- **真实争点**
1. "空"是遮诠(否定戏论)还是表诠(描述实相)?
2. 依他起性是"有"还是"空"
@@ -178,7 +178,7 @@ verified_at: 2026-04-06
### 顿渐之辩 —— 南宗顿 vs 北宗渐(及其延伸)
- **推荐配对**`huineng` + `zhiyi`(顿悟 vs 天台止观次第)
- **推荐配对**`master-huineng` + `master-zhiyi`(顿悟 vs 天台止观次第)
- **真实争点**
1. 开悟是顿发还是需阶次修证?
2. 悟后是否仍需渐修?
@@ -242,38 +242,38 @@ verified_at: 2026-04-06
| slug | 名称 | 宗派 |
|------|------|------|
| zhiyi | 智顗大师 | 天台宗 |
| fazang | 法藏大师 | 华严宗 |
| huineng | 慧能大师 | 禅宗 |
| xuyun | 虚云老和尚 | 禅宗·五宗 |
| yinguang | 印光大师 | 净土宗 |
| ouyi | 蕅益大师 | 天台/净土 |
| xuanzang | 玄奘法师 | 法相唯识 |
| kumarajiva | 鸠摩罗什 | 中观 |
| master-zhiyi | 智顗大师 | 天台宗 |
| master-fazang | 法藏大师 | 华严宗 |
| master-huineng | 慧能大师 | 禅宗 |
| master-xuyun | 虚云老和尚 | 禅宗·五宗 |
| master-yinguang | 印光大师 | 净土宗 |
| master-ouyi | 蕅益大师 | 天台/净土 |
| master-xuanzang | 玄奘法师 | 法相唯识 |
| master-kumarajiva | 鸠摩罗什 | 中观 |
### 藏传
| slug | 名称 | 传承 |
|------|------|------|
| atisha | 阿底峡尊者 | 噶当派(三士道 / 印藏桥梁) |
| tsongkhapa | 宗喀巴大师 | 格鲁派(三主要道 / 应成中观) |
| milarepa | 米拉日巴尊者 | 噶举派(大手印 / 那洛六法) |
| master-atisha | 阿底峡尊者 | 噶当派(三士道 / 印藏桥梁) |
| master-tsongkhapa | 宗喀巴大师 | 格鲁派(三主要道 / 应成中观) |
| master-milarepa | 米拉日巴尊者 | 噶举派(大手印 / 那洛六法) |
### 南传
| slug | 名称 | 传承 |
|------|------|------|
| buddhaghosa | 觉音尊者 | 上座部论师(《清净道论》/ 大寺派) |
| mahasi-sayadaw | 马哈希尊者 | 缅甸内观(标记法 / Mahasi Method |
| ajahn-chah | 阿姜查 | 上座部(泰国森林禅林派) |
| master-buddhaghosa | 觉音尊者 | 上座部论师(《清净道论》/ 大寺派) |
| master-mahasi-sayadaw | 马哈希尊者 | 缅甸内观(标记法 / Mahasi Method |
| master-ajahn-chah | 阿姜查 | 上座部(泰国森林禅林派) |
## 跨传统对比注意事项
- 跨传统对比时,**先建立共同语境再展示差异**("三大传统都强调无常/苦/苦的止息,而具体进路不同……"),避免营造对立感
- 不在跨传统对比中论"哪个传承更究竟"——三大传统皆是佛陀正法的不同面向
- 涉及密法时(藏传 atisha / tsongkhapa / milarepa 一侧),仅介绍义理,不传授具体步骤;这是各自 skill HARD-GATE 的延伸
- 涉及密法时(藏传 master-atisha / master-tsongkhapa / master-milarepa 一侧),仅介绍义理,不传授具体步骤;这是各自 skill HARD-GATE 的延伸
- 涉及阿姜查与马哈希尊者引述时,必须可追溯至公开开示集(Forest Sangha / BPS Sri Lanka / Wisdom Publications / Mahasi Sasana Yeiktha),不可自行编造对话
- 涉及禅修印证时(特别是马哈希内观法的十六观智阶位),**AI 不得对个体作证果判定**——这是 mahasi-sayadaw skill 最严肃的 guardrail
- 涉及禅修印证时(特别是马哈希内观法的十六观智阶位),**AI 不得对个体作证果判定**——这是 master-mahasi-sayadaw skill 最严肃的 guardrail
- 不混入跨传统观点为他派立场(如把如来藏 / 唯识 / 净土归于上座部;把大圆满 / 大手印归于格鲁;把应成派精确分判归于阿底峡时代)
## 禁忌
@@ -285,7 +285,7 @@ verified_at: 2026-04-06
## Scripts(可选辅助工具)
- `scripts/cite.py --text "缘起" --master zhiyi,yinguang` — 多祖师引用查询
- `scripts/cite.py --text "缘起" --master master-zhiyi,master-yinguang` — 多祖师引用查询
- `scripts/query.py --master all --q "空性"` — 全祖师语义检索
> ⚠️ Scripts 通过 `--help` 调用,不要 Read 源码(避免污染 context)。