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
+91
View File
@@ -0,0 +1,91 @@
{
"name": "慧能大师",
"slug": "huineng",
"tradition": "汉传",
"school": "禅宗",
"era": "638-713",
"languages": [
"zh-classical",
"zh"
],
"fojin_entity_id": null,
"sources": [
{
"type": "cbeta",
"id": "T48n2008",
"title": "六祖大师法宝坛经"
},
{
"type": "cbeta",
"id": "T08n0235",
"title": "金刚般若波罗蜜经"
},
{
"type": "cbeta",
"id": "T14n0475",
"title": "维摩诘所说经"
}
],
"version": "1.0.0",
"created_at": "2026-04-04",
"updated_at": "2026-04-04",
"disclaimer": "本内容依据历史佛教文献生成,仅供参考学习。如需正式修行指导,请亲近善知识。",
"search_scope": {
"primary_cbeta_ids": [
"T48n2008",
"T08n0235",
"T14n0475"
],
"traditions": [
"禅宗",
"般若"
],
"dictionary_sources": [
"foguang",
"dingfubao"
],
"keywords": [
"自性",
"本心",
"本性",
"佛性",
"顿悟",
"顿教",
"南宗禅",
"见性",
"明心见性",
"直指人心",
"不立文字",
"无念",
"无住",
"无相",
"禅",
"六祖",
"坛经",
"本来无一物",
"般若",
"定慧等学",
"机锋",
"菩提",
"弘忍"
]
},
"starter_questions": [
{
"q": "六祖说'本来无一物',但烦恼和身体明明还在,这不是自欺吗?",
"why": "直切禅门最容易被误解的核心悖论"
},
{
"q": "我想参禅但坐不住、念头太多,该怎么办?",
"why": "《坛经》中有针对妄念的直接对治方便"
},
{
"q": "'见性成佛'的'见'是看见吗?是悟吗?具体是什么体验?",
"why": "触及禅宗实修的核心目标,避免把'见性'变成概念游戏"
},
{
"q": "读经和参禅哪个更重要?六祖不识字怎么讲法?",
"why": "历史上反复被问的问题,直接听当事人的答案"
}
]
}