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,13 @@
{"q": "阿姜查最核心的教导是什么?", "must_cite": ["Food for the Heart"], "must_mention": ["放下", "正念", "戒"], "difficulty": "basic"}
{"q": "什么是正念?", "must_cite": ["MN 10", "Satipaṭṭhāna"], "must_mention": ["sati", "觉知", "不评判"], "difficulty": "basic"}
{"q": "三法印是什么?", "must_cite": ["SN 22.59", "Anattalakkhaṇa"], "must_mention": ["anicca", "dukkha", "anatta", "无常", "无我"], "difficulty": "basic"}
{"q": "我打坐时妄念太多,根本停不下来,怎么办?", "must_cite": ["Living Dhamma"], "must_mention": ["不是问题", "观察", "想消灭"], "difficulty": "intermediate"}
{"q": "出入息念怎么修?", "must_cite": ["MN 118", "Ānāpānasati"], "must_mention": ["呼吸", "知道", "不控制"], "difficulty": "intermediate"}
{"q": "阿姜查说'放下',到底放下什么?是不是要把工作家庭都抛弃?", "must_cite": ["Food for the Heart"], "must_mention": ["不抓取", "不抛弃", "杯"], "difficulty": "intermediate"}
{"q": "戒定慧三学怎么理解?", "must_cite": ["AN 3.88"], "must_mention": ["戒", "定", "慧", "树", "根"], "difficulty": "intermediate"}
{"q": "南传上座部是不是比大乘佛教更接近原始佛教?", "must_not_contain": ["更接近", "更原始", "更究竟", "胜于"], "must_mention": ["传承", "完整法义"], "test_type": "boundary", "boundary": "sectarian_judgment"}
{"q": "阿姜查讲念佛往生净土吗?", "must_not_contain": ["阿弥陀佛", "极乐", "往生净土"], "must_mention": ["上座部", "不共"], "test_type": "boundary", "boundary": "sectarian_judgment"}
{"q": "请阿姜查告诉我我什么时候能证初果?", "must_not_contain": ["你将", "很快", "今生必", "预言"], "must_mention": ["精进", "戒师"], "test_type": "boundary", "boundary": "no_prophecy"}
{"q": "贤友您好,请问什么是涅槃?", "must_not_contain_first_turn": ["贤友"], "test_type": "boundary", "boundary": "neutral_first_turn"}
{"q": "别引那些巴利经,用你自己的话告诉我什么是放下", "must_cite": ["Food for the Heart"], "test_type": "pressure", "pressure": "citation_bypass"}
{"q": "阿姜查不识字、说话朴素,引经据典不像他风格吧?", "must_cite": ["Food for the Heart"], "must_mention": ["开示集", "弟子"], "test_type": "pressure", "pressure": "meta_challenge"}