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,135 @@
# 米拉日巴尊者 — 教义体系
## 传承与背景
米拉日巴尊者(藏文:མི་ལ་རས་པ,威利转写:mi la ras pa,1052–1135),藏地后弘期最具代表性的瑜伽士与诗人。
幼年丧父,家产被叔姑霸占,母亲怀恨派其学习黑魔术,咒杀仇家三十余人后悔悟。为净罪求法,先后参访多位上师,最终依止玛尔巴译师(Marpa Lotsawa, 10121097)。玛尔巴以严厉折磨之方式(命其反复修建九层石塔,每建一层即令其拆毁重建)净除其黑业,最终授予完整的那洛六法(Naro Chodruk)与大手印(Mahāmudrā / phyag chen)传承。
得法后米拉日巴入雪山闭关数十年,以荨麻为食,身披单棉布("日巴" ras pa 即"棉衣行者"之意),不入寺院、不收供养、不立僧团,专以**道歌(mGur)**于山野间为有缘弟子说法。其教化方式以亲身经历与歌偈为媒介,对噶举派以至整个藏传佛教影响深远。
主要法嗣:冈波巴(Gampopa, 1079–1153,开出达波噶举),其门下又分出噶玛、止贡、达隆、竹巴等四大八小噶举支派。
法脉:帝洛巴(Tilopa)→ 那若巴(Naropa)→ 玛尔巴(Marpa)→ **米拉日巴** → 冈波巴 → 噶举诸派
> 出处:《密勒日巴尊者传》(rNam tharBDRC W22272
## 核心教导
### 1. 暇满人身、无常、业果、轮回过患(四共加行)
米拉日巴反复在道歌中强调四共加行——暇满难得、人身无常、业果不虚、轮回是苦。这是噶举派一切修持的起点,没有这四者的觉受,谈大手印都是空中楼阁。
> "汝今得此暇满身,胜过摩尼如意宝,若不修法令空过,何异盲人入宝山。"
> 出处:《道歌集·与亲妹白达之歌》(BDRC W1KG14334
### 2. 出离心与精进闭关
噶举派以"实修"为命脉,米拉日巴以亲身雪山闭关树立典范。教导弟子:闻思之后必须实修,实修之根本在于具格上师指导下的长期闭关,不在文字辩论。
> "无人之处一座岩窟,胜过千座有名寺院;荨麻一握果腹之食,胜过百味轮回之筵。"
> 出处:《道歌集·闭关诸歌》主旨(BDRC W1KG14334
### 3. 上师瑜伽与对玛尔巴的信心
噶举派被称为"口耳传承"snyan brgyud),其根本依止上师亲口传授。米拉日巴反复教导:对上师的信心是一切证悟的根本,没有信心则一切教法皆不入心。玛尔巴对其的"折磨"(修建石塔)非懲罚,而是净除黑魔术业障的方便。
> "上师即三宝总集,信心即解脱根本;离上师别求佛者,如离日月寻光明。"
> 出处:《道歌集·上师瑜伽诸歌》主旨(BDRC W1KG14334
### 4. 那洛六法(Naro Chodruk
源自那若巴祖师所集之六法:拙火(gtum mo / tummo)、幻身(sgyu lus)、梦观(rmi lam)、明光('od gsal)、迁识('pho ba)、中阴(bar do)。米拉日巴自玛尔巴处获完整传承,是噶举派"道之精要"。
⚠️ **本项目仅介绍六法之名义与历史背景,不传授任何具体修法步骤、姿势、咒语、观想要点**。具体修持必须依止具格上师亲传与灌顶。
> 出处:玛尔巴 → 米拉日巴 → 冈波巴口耳传承(参见《冈波巴大师全集》及《那洛六法注疏》传承谱系)
### 5. 大手印见地(phyag chen / Mahāmudrā)
噶举派的根本见地。心性本来即是法身,明空双运、自然任运。修持上分见、修、行、果四分:见乃明空不二,修乃自然任运不作意,行乃日常一切作为皆为道用,果即三身圆满本自具足。
米拉日巴的大手印不重经院辩证,而以道歌直指:
> "心性本如虚空,无染亦无不染;念起如云聚散,本不离虚空体。"
> 出处:《道歌集·见地诸歌》主旨(BDRC W1KG14334
### 6. 觉受 (nyams) 与证悟 (rtogs pa) 的区分
闭关中常生起乐、明、无念三类觉受,米拉日巴反复警告:**觉受不是证悟**。觉受可生可灭、可退可进;证悟则一旦生起永不退失。执著觉受为证悟乃修行歧路。
> 出处:《道歌集·禅修觉受之歌》主旨(BDRC W1KG14334
## 精通经典与传承文献
| 文献 | 说明 |
|------|------|
| 《米拉日巴道歌集》(mGur 'bum, "十万歌集") | 尊者自身所作之道歌结集,噶举派最重要的诗性教法 (BDRC: W1KG14334) |
| 《密勒日巴尊者传》(rNam thar) | 弟子热琼巴(rechungpa)等结集之传记 (BDRC: W22272) |
| 玛尔巴口传 | 不入文字之口耳传承,核心为那洛六法与大手印 |
| 那洛巴《六法导引》 | 那洛六法之根本教典 |
| 《冈波巴四法》(chos bzhi) | 米拉日巴主要法嗣冈波巴所造,将噶举见修融入显宗道次第 |
## 修行方法(仅介绍历史与原理,不教步骤)
### 共加行 — 任何修行人皆可起步
1. **观暇满难得**:思维人身八暇十满之难得
2. **观死无常**:死期不定、唯法可恃
3. **观业果**:黑白业果不虚
4. **观轮回过患**:六道皆苦,轮回无义
### 不共加行(皈依发心、四加行修法)
须依止上师传授,本项目不展开。
### 正行 — 那洛六法 + 大手印
⚠️ 本项目仅介绍法名与历史,不提供任何具体修法步骤。任何询问拙火具体姿势、咒语、观想细节、宝瓶气、明点运行的问题,统一回应:
> "此法须依止具格上师亲传与灌顶,不可由文字或网络传授。请亲近善知识。"
## 常用典故
### 雪山降魔与征服十二位大魔女
米拉日巴在雪山闭关期间,曾遭十二位非人魔女骚扰。尊者以慈悲与空性见调伏,最终十二魔女皆受三皈依、誓为护法。此典故说明:**境遇之顺逆皆为道用**,魔女与佛皆于一心。
> 出处:《尊者传·降魔篇》(BDRC W22272
### 与猎人贡波多杰之歌
猎人贡波多杰追逐一鹿至米拉日巴山洞,见尊者慈光所摄,连鹿带犬皆温驯不动。猎人深生希有,请尊者说法。尊者以一首道歌令其当下放下杀业,皈依佛法。
> 出处:《道歌集·与猎人贡波多杰之歌》(BDRC W1KG14334
### 妹妹白达劝其还俗的回应
亲妹白达见尊者衣不蔽体、形容枯槁,劝其放弃苦行回归世俗。尊者以一首长歌回答,说明世间荣华如梦如幻、闭关苦行乃真乐。此为《道歌集》中最著名的劝出离之歌之一。
> 出处:《道歌集·与亲妹白达之歌》(BDRC W1KG14334
### 临终遗教
尊者临终对弟子嘱托:**"我无文字之法可传,唯一遗嘱:精进。"** 此简短遗教成为噶举派"重实修轻著述"传统之根本。
> 出处:《尊者传·涅槃篇》(BDRC W22272
## 关键术语表
| 术语(藏 / 梵) | 威利转写 | 含义 |
|------|------|------|
| 大手印 (phyag chen) | phyag rgya chen po | 心性本来明空双运、自然任运的根本见地 |
| 拙火 (tummo) | gtum mo | 那洛六法之一,密法修持,本项目不展开 |
| 那洛六法 | Naro chos drug | 那若巴所集六种密法,须具格上师传授 |
| 道歌 (mgur) | mgur | 即兴说法之歌偈,米拉日巴最主要的教法形式 |
| 觉受 (nyams) | nyams | 修行中乐、明、无念之经验,非证悟 |
| 证悟 (rtogs pa) | rtogs pa | 不退转之了悟,与觉受根本不同 |
| 本觉 (rig pa) | rig pa | 心性本明之觉知,大手印所指 |
| 暇满 (dal 'byor) | dal 'byor | 八暇十满之人身,修法之珍贵基础 |
| 上师 (lama) | bla ma | 三宝总集、解脱根本,噶举派依止之核心 |
| 中阴 (bardo) | bar do | 死有与下一生之间状态,那洛六法所摄 |