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
+24
View File
@@ -0,0 +1,24 @@
# 阿底峡尊者 Sources 索引
本目录为离线可用的藏文典籍片段,对应本 master 引用的核心传承文献。
## 收录文件
| 文件 | 来源典籍 | 编号 | 覆盖主题 |
|---|---|---|---|
| `bodhipathapradipa-excerpts.md` | 《菩提道灯论》(Bodhipathapradīpa, byang chub lam gyi sgron ma) | [Toh 4465](https://www.84000.co/) | 三士道结构、菩提心、戒律、奢摩他毗钵舍那、密续位置 |
## 引用规范
- 格式:`【《典籍名》§章节】(Toh xxxx / 见 BDRC.io 'a ti sha'`
- 示例:`【《菩提道灯论》§菩提心章】(Toh 4465)`
## 说明
- 主要参考:sDe dge bsTan 'gyur Tohoku 4465 (《菩提道灯论》藏文版)
- 自释《菩提道灯难处释》:Toh 3948
- 84000 翻译项目([84000.co](https://84000.co))已对部分阿底峡论著做权威英译,可对照参阅
- BDRC.io 收录阿底峡藏文论著及噶当派传承资料,可搜 'a ti sha' 或 'jo bo rje'
- 汉译参考:任杰译《菩提道灯论》、法尊译《菩提道灯论略释》
- **密续相关章节本目录刻意不收录**(密法须依止具格上师亲传与灌顶)
- 增补片段欢迎 PR
@@ -0,0 +1,129 @@
# 《菩提道灯论》(Bodhipathapradīpa) 选段
> 来源:sDe dge bsTan 'gyur **Toh 4465**(藏文版 byang chub lam gyi sgron ma+ Toh 3948(自释《菩提道灯难处释》)。
> 引用格式:`【《菩提道灯论》§{章节主题}】(Toh 4465)`
> 84000 项目对部分相关论著有权威英译,可对照 [84000.co](https://84000.co) 检索 'Atiśa' 或 'Bodhipathapradīpa'。
---
## §三士道结构(颂 15
《菩提道灯论》开篇即立三士道分判,将一切修行人划分为三类——
**下士道(小士夫)**:以现世利益与求人天善趣为动机修法之人。畏轮回三恶道之苦,但未能舍三界轮回。
**中士道(中士夫)**:求自身解脱、证阿罗汉果之人。已舍三界,但未发菩提心利他度众。
**上士道(大士夫)**:发菩提心、求成佛度一切众生之人。大乘行者之根本。
**主旨**:阿底峡明确指出——"若以现法乐行善,是下士夫;若怖三有苦,背心向涅槃,是中士夫;若依自身苦,知他亦尔,乐除他一切众苦者,是上士夫。"(《道灯论》核心三士判分)
> 出处:【《菩提道灯论》§三士道分判】(Toh 4465)
---
## §菩提心(金洲传承)
阿底峡得自金洲大师(Suvarṇadvīpa Dharmakīrti)的两种菩提心修法成为噶当派核心:
### 七因果(rgyu 'bras bdun
七步循序生起菩提心:
1. **知母**:观一切众生皆为往昔之母
2. **念恩**:思维母恩深重
3. **报恩**:发愿报恩
4. **慈**:愿一切众生具足乐
5. **悲**:愿一切众生离苦
6. **增上意乐**:决定我自度母苦
7. **菩提心**:为度众生发愿成佛
### 自他相换(bdag gzhan brje ba
更直接的法门:
- 思维"自他平等"——众生与我同等求乐避苦
- 思维"自他相换"——以我之乐换他之苦
- 配合呼吸的施受法(**gtong len**):吸气取众生之苦,呼气施众生之乐
**主旨**:发菩提心是入大乘门之根本;离菩提心修行皆非大乘,纵成就亦堕小乘。
> 出处:【《菩提道灯论》§菩提心章】(Toh 4465)+【金洲口耳传承《父法·子法》】
---
## §戒律 — 显密一切修学之根本
阿底峡入藏前藏地律仪松弛,其入藏后重立别解脱戒持守典范。
教导:
- **别解脱戒**:根本说一切有部 mūlasarvāstivāda 律为标准
- **菩萨戒**:依《集学论》《入行论》等大乘律
- **密咒戒**(金刚乘行者):三聚戒清净持守
破戒而修密者,犹如有漏器盛甘露,自损损他。
**主旨**:戒不是束缚,是定慧之物质条件。无戒则定慧难生,无定慧则解脱无望。
> 出处:【《菩提道灯论》§戒律章】(Toh 4465)
---
## §奢摩他与毗钵舍那(止与观)
修学止观二者必须并行:
**奢摩他(śamatha / zhi gnas**——止
- 一心专注于所缘(如佛像、咒字、呼吸)
- 远离五盖、培九住心、得轻安
- 入禅定(dhyāna / bsam gtan
**毗钵舍那(vipaśyanā / lhag mthong**——观
- 观察修:思维四谛、十二缘起、空性
- 安住修:保持空性见之觉照
- 由止引观,由观断惑
**主旨**:观察修(思维教义生定解)与安住修(一心专注)必须配合——只观察则散乱;只安住则枯木。
此见后被宗喀巴《菩提道次第广论》系统化扩展。
> 出处:【《菩提道灯论》§奢摩他毗钵舍那章】(Toh 4465)
---
## §中观见(阿底峡时代立场)
阿底峡传承中观(Madhyamaka),以月称(Candrakīrti)《入中论》《明句论》为重要依据,但**未做后期格鲁派之精确"应成 vs 自续"分判**——这是宗喀巴时代(1357–1419)才系统化的工作。
阿底峡时代教导核心:
- 一切法无自性、缘起空(śūnyatā / stong nyid
- 缘起与空性不二
- 中道——既不执有、亦不执无
**主旨**:空性见非否定一切;空性即缘起,缘起即空性。
> 出处:【《菩提道灯论》§慧学章】(Toh 4465)
⚠️ **重要 disclaimer**:凡引"阿底峡的中观见"应保守表述,不可用宗喀巴《辨了不了义善说藏论》的精确分判(如"应成派破自性更彻底")作为阿底峡立场。可表述为"后世格鲁派如此发展"。
---
## §密续(仅介绍位置,不传修法)
阿底峡虽是金刚乘大成就者(特别是密集金刚 Guhyasamāja 传承),但于《菩提道灯论》中——
明确说明:金刚乘密续修学**必以显教三士道为基础**,特别是菩提心与戒律清净;离此基础修密法,反堕恶趣。
此外,密续修法之具体步骤、灌顶仪轨、生起圆满次第细节、本尊咒语、明点观想——
⚠️ **本目录不收录**。一切询问者统一回应:
> "此法门须具格上师亲传与灌顶,不可由文字或网络传授。请亲近善知识。"
---
## ⚠️ 引用警示
- 本目录所收录皆为《菩提道灯论》主旨摘要,非藏文原典逐字翻译
- 引用时应注明"主旨"或具体颂次(《道灯论》共 67 颂,可附颂号如 §v.10)
- 凡引"阿底峡云"必须能在 Toh 4465 / Toh 3948 追溯具体颂或章节
- 涉及具体密续仪轨之段落本目录刻意不收录
- 深入研究请查阅 84000.co 或 BDRC.io 原典