Files
Master-skill/prebuilt/master-huineng/references/teaching.md
T
xianren 3f81cbb955 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>
2026-05-02 20:43:36 +08:00

123 lines
7.4 KiB
Markdown

# 慧能大师 — 教义体系
## 传承与背景
慧能大师(638-713),俗姓卢,祖籍范阳(今河北涿州),生于新州(今广东新兴)。禅宗六祖,南宗禅创立者。
幼年丧父,家贫以卖柴为生,目不识丁。一日于市中闻客诵《金刚经》至"应无所住而生其心",豁然有省,遂往黄梅东山参礼五祖弘忍。弘忍令其于碓房舂米八月余,后以"菩提本无树"之偈得五祖密传衣钵法脉,为禅宗第六代祖师。
得法后南归,隐于猎人队中十五年。后至广州法性寺(今光孝寺),因"风动幡动"之机缘出世弘法。此后驻锡韶州曹溪宝林寺(今南华寺),大弘顿悟禅法三十余年,门下龙象辈出,开南宗禅之盛世。其说法记录《六祖大师法宝坛经》为中国人所著唯一被尊为"经"的佛教典籍。
禅宗法脉:达摩 → 慧可 → 僧璨 → 道信 → 弘忍 → **慧能** → 南岳怀让 / 青原行思(后分出临济、曹洞、沩仰、云门、法眼五家七宗)
> 出处:【《六祖大师法宝坛经·行由品》】→ https://fojin.app/texts/58
## 核心教导
### 1. 直指人心,见性成佛
禅宗根本宗旨:不立文字,教外别传,直指人心,见性成佛。慧能大师教导,一切众生皆有佛性,佛性即自性,自性本自具足,不假外求。见性者,即见自心本来面目,当下即是佛。
> "菩提自性,本来清净,但用此心,直了成佛。"
> 出处:【《六祖大师法宝坛经·行由品》】→ https://fojin.app/texts/58
### 2. 顿悟法门
慧能大师主张顿悟成佛——迷来经累劫,悟则刹那间。悟与迷只在一念之间,非关渐次修习。法无顿渐,人有利钝;迷人渐修,悟人顿契。顿悟者,识自本心,见自本性,自性无动摇,万法自如如。
> "不悟即佛是众生,一念悟时众生是佛。"
> 出处:【《六祖大师法宝坛经·般若品》】→ https://fojin.app/texts/58
### 3. 无念为宗,无相为体,无住为本
此为慧能禅法的三大纲领。无念者,于念而不念,于一切境上不染,非断灭不起念也;无相者,于相而离相,不执著于一切外在形相;无住者,于诸法上念念不住,过去心不可得,现在心不可得,未来心不可得。
> "我此法门,从上以来,先立无念为宗,无相为体,无住为本。"
> 出处:【《六祖大师法宝坛经·定慧品》】→ https://fojin.app/texts/58
### 4. 定慧一体
定与慧不是两个东西,犹如灯与光——灯是光之体,光是灯之用。有灯即有光,灯即是光,光即是灯。定是慧体,慧是定用;即慧之时定在慧,即定之时慧在定。不可说先定后慧、先慧后定。
> "定慧一体,不是二。定是慧体,慧是定用。即慧之时定在慧,即定之时慧在定。"
> 出处:【《六祖大师法宝坛经·定慧品》】→ https://fojin.app/texts/58
### 5. 烦恼即菩提,自性本自清净
烦恼与菩提不是两个对立的东西。前念迷即是烦恼,后念悟即是菩提。凡夫即佛,烦恼即菩提,不在断烦恼上求解脱,而在转念上见真如。自性本来清净,本自具足,能生万法,本不动摇,本无生灭。
> "凡夫即佛,烦恼即菩提。前念迷即凡夫,后念悟即佛。前念著境即烦恼,后念离境即菩提。"
> 出处:【《六祖大师法宝坛经·般若品》】→ https://fojin.app/texts/58
## 精通经典
| 经典 | 说明 | 链接 |
|------|------|------|
| 《六祖大师法宝坛经》 | 慧能大师说法记录,禅宗根本典籍,中国人所著唯一称"经"者 | [阅读原文](https://fojin.app/texts/58) |
| 《金刚般若波罗蜜经》 | 闻此经而开悟,禅宗印心之经,般若空慧之精髓 | [阅读原文](https://fojin.app/texts/7) |
| 《维摩诘所说经》 | 不二法门,在家修行之典范,慧能常引以说明烦恼即菩提 | [阅读原文](https://fojin.app/texts/28) |
| 《大般涅槃经》 | 一切众生悉有佛性之教,慧能引以明见性成佛之理 | [阅读原文](https://fojin.app/texts/T12n0374) |
| 《妙法莲华经》 | 一佛乘思想,会三归一,慧能引以说明佛法究竟平等 | [阅读原文](https://fojin.app/texts/6513) |
## 修行方法
### 入门
**识心见性**:修行第一步不在外在形式,而在认识自心。日常生活中,观照自己的起心动念,不随妄念流转,不被境界牵引。于行住坐卧中,常觉常照。
**般若观照**:以般若智慧观照一切法,了知诸法如幻如化,不执著有,不执著无。于一切处不住不染,自在无碍。
### 进阶
**参禅(话头/默照)**:参究"什么是你的本来面目""念佛是谁"等话头,打破思维分别的窠臼。不是用头脑去想答案,而是在疑情中突破,直至桶底脱落。默照禅则在静坐中默然观照,不随念起,不压念灭。
**无念修行**:于一切境上不起分别执著,非是不起念头,而是念念不住、念念不染。在日常生活中保持这种觉照,行亦禅、坐亦禅,语默动静体安然。
### 深入
**日常即道场**:真正的修行不在山林寺院,不在打坐诵经。挑水砍柴无非妙道,穿衣吃饭皆是禅机。在世间一切事务中保持觉照,即是最上乘禅。
> "佛法在世间,不离世间觉。离世觅菩提,恰如求兔角。"
> 出处:【《六祖大师法宝坛经·般若品》】→ https://fojin.app/texts/58
## 常用典故与比喻
### 菩提本无树偈
神秀偈:"身是菩提树,心如明镜台,时时勤拂拭,勿使惹尘埃。"慧能偈:"菩提本无树,明镜亦非台,本来无一物,何处惹尘埃。"神秀从有入手,着于渐修;慧能从空入手,直契本性。五祖因此密传衣钵。
**慧能大师的运用:** 以此说明自性本空,不可执著于"修"与"不修"的对立,直下承当。
### 风动幡动心动
慧能至广州法性寺,见二僧争论风幡之动。一曰风动,一曰幡动。慧能曰:"不是风动,不是幡动,仁者心动。"一语道破外境与内心的关系——一切境界皆是心的显现。
### 猎人队中十五年
慧能得法后南归,隐于猎人队中十五年。猎人令其守网,慧能常放走落网之众生。与猎人同食时,只吃肉边菜。此典故说明:大道不离世间,在最恶劣的环境中亦可保持修行。
### 一花开五叶
达摩祖师偈:"吾本来兹土,传法救迷情。一花开五叶,结果自然成。"后禅宗果然至慧能后开出五家(临济、曹洞、沩仰、云门、法眼),此为禅宗传法的重要预言与象征。
## 关键术语表
| 术语 | 含义 |
|------|------|
| 自性 | 众生本具之觉性,即佛性,本自清净,本自具足 |
| 顿悟 | 一念之间直契本心,见自本性,不经渐次阶位 |
| 见性 | 直见自心本性,即见佛性,禅宗修行之根本目标 |
| 无念 | 于念而不念,于一切境上不染,非断灭之无念 |
| 无相 | 于相而离相,不执著于一切外在形相 |
| 无住 | 念念不住,于诸法上不起执著停留 |
| 般若 | 超越分别思维的智慧,能照见诸法实相 |
| 本心 | 自己本来的心,未被妄念遮蔽的清净觉心 |
| 机锋 | 禅师以出其不意的言语或动作启发学人,打破分别执著 |
| 不二法门 | 超越一切对立分别,烦恼与菩提不二,生死与涅槃不二 |