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
@@ -0,0 +1,23 @@
# 鸠摩罗什 Sources 索引
本目录为离线可用的经文片段,对应本 master 引用的核心经典。
## 收录文件
| 文件 | 来源经典 | CBETA | FoJin | 覆盖主题 |
|---|---|---|---|---|
| `zhonglun-excerpts.md` | 《中论》 | T30n1564 | [40](https://fojin.app/texts/40) | 八不中道、缘起性空 |
| `jingang-bore-excerpts.md` | 《金刚般若波罗蜜经》 | T08n0235 | [7](https://fojin.app/texts/7) | 应无所住、诸相虚妄、梦幻泡影 |
| `fahua-excerpts.md` | 《妙法莲华经》 | T09n0262 | [6513](https://fojin.app/texts/6513) | 一佛乘、开权显实、火宅三车喻 |
## 引用规范
- 格式:`【《经名》卷NCBETA_ID】→ https://fojin.app/texts/{fojin_text_id}`
- 示例:`【《中论》卷1T30n1564】→ https://fojin.app/texts/40`
## 说明
- 所有片段节选自 CBETA 公开资料
- 用于教学引用,不代表完整经义
- 深入研究请查阅 FoJin 或 CBETA 全本
- 增补片段欢迎 PR
@@ -0,0 +1,33 @@
# 《妙法莲华经》关键片段
> 鸠摩罗什译。CBETA ID: T09n0262。FoJin: https://fojin.app/texts/6513
> 本文件为教学引用用,节选自 CBETA 公开资料。完整经文请访问 FoJin 或 CBETA。
## 一佛乘——开权显实(方便品)
原典(节选):
> 诸佛世尊,唯以一大事因缘故出现于世。舍利弗,云何名诸佛世尊唯以一大事因缘故出现于世?诸佛世尊,欲令众生开佛知见使得清净故出现于世。
**引用格式:**【《妙法莲华经·方便品》卷1T09n0262】→ https://fojin.app/texts/6513
**教义要点:**
- 佛以一大事因缘出现于世:开示悟入佛之知见
- 开权显实:过去说三乘是方便,唯有一佛乘为究竟
- 一切众生皆当成佛,无有例外
---
## 火宅三车喻(譬喻品)
原典(节选):
> 长者即作是念:此舍已为大火所烧,我及诸子若不时出,必为所焚。我今当设方便,令诸子等得免斯害。
**引用格式:**【《妙法莲华经·譬喻品》卷2T09n0262】→ https://fojin.app/texts/6513
**教义要点:**
- 三界如火宅,众生在中嬉戏不知危险
- 佛以三车(羊车、鹿车、牛车)方便引出
- 出后皆与大白牛车——一佛乘
- 三乘是方便,一佛乘是究竟
@@ -0,0 +1,46 @@
# 《金刚般若波罗蜜经》关键片段
> 鸠摩罗什译。CBETA ID: T08n0235。FoJin: https://fojin.app/texts/7
> 本文件为教学引用用,节选自 CBETA 公开资料。完整经文请访问 FoJin 或 CBETA。
## 应无所住而生其心
原典(节选):
> 不应住色生心,不应住声香味触法生心,应无所住而生其心。
**引用格式:**【《金刚经》,T08n0235】→ https://fojin.app/texts/7
**教义要点:**
- 般若观照之要:不住于色声香味触法
- 于一切法不执不取,而智慧朗然
- 罗什译文典雅,成为千古名句
---
## 凡所有相皆是虚妄
原典(节选):
> 凡所有相,皆是虚妄。若见诸相非相,则见如来。
**引用格式:**【《金刚经》,T08n0235】→ https://fojin.app/texts/7
**教义要点:**
- 一切相因缘所生,无有自性
- 照见诸相非相,即见如来——实相无相
---
## 一切有为法
原典(节选):
> 一切有为法,如梦幻泡影,如露亦如电,应作如是观。
**引用格式:**【《金刚经》,T08n0235】→ https://fojin.app/texts/7
**教义要点:**
- 以六喻说明有为法空性
- 罗什译文"如梦幻泡影,如露亦如电"为中国文学经典
- 此偈虽短,已摄般若全部要义
@@ -0,0 +1,35 @@
# 《中论》关键片段
> 龙树菩萨造,鸠摩罗什译。CBETA ID: T30n1564。FoJin: https://fojin.app/texts/40
> 本文件为教学引用用,节选自 CBETA 公开资料。完整经文请访问 FoJin 或 CBETA。
## 八不中道(卷1·观因缘品)
原典(节选):
> 不生亦不灭,不常亦不断,不一亦不异,不来亦不出。能说是因缘,善灭诸戏论。我稽首礼佛,诸说中第一。
**引用格式:**【《中论》卷1T30n1564】→ https://fojin.app/texts/40
**教义要点:**
- 八不为中观根本纲领
- 遮遣众生对诸法的自性执著
- 非否定一切,乃令见缘起实相
- 离四句绝百非,方契中道
---
## 缘起性空(卷4·观四谛品)
原典(节选):
> 众因缘生法,我说即是空,亦为是假名,亦是中道义。未曾有一法,不从因缘生,是故一切法,无不是空者。
**引用格式:**【《中论》卷4T30n1564】→ https://fojin.app/texts/40
**教义要点:**
- 缘起即性空,性空即缘起
- 空非断灭,有非实有
- "众因缘生法,我说即是空"——三论宗核心偈颂
- 空、假名、中道三者一体
- 此偈为中观学最重要的纲领性经文