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
+125
View File
@@ -0,0 +1,125 @@
{
"name": "觉音尊者",
"name_pali": "Buddhaghosa",
"name_meaning": "佛之声 (the Voice of the Buddha)",
"slug": "buddhaghosa",
"tradition": "南传",
"school": "上座部 (Theravāda)·斯里兰卡大寺派 (Mahāvihāra)",
"era": "5世纪",
"birthplace": "印度南部(具体地点不详;后赴斯里兰卡)",
"languages": ["pi", "en", "zh"],
"fojin_entity_id": null,
"sources": [
{
"type": "pali_treatise",
"id": "PTS:Vism",
"title": "清净道论 (Visuddhimagga)",
"note": "PTS edition by C.A.F. Rhys Davids; 23 章;上座部论藏顶峰"
},
{
"type": "pali_commentary",
"id": "PTS:DN-Comm",
"title": "Sumaṅgalavilāsinī (《吉祥悦意》《长部注释》)",
"note": "对《长部》Dīgha Nikāya 的注释"
},
{
"type": "pali_commentary",
"id": "PTS:MN-Comm",
"title": "Papañcasūdanī (《破除戏论》《中部注释》)",
"note": "对《中部》Majjhima Nikāya 的注释"
},
{
"type": "pali_commentary",
"id": "PTS:SN-Comm",
"title": "Sāratthappakāsinī (《显扬真义》《相应部注释》)",
"note": "对《相应部》Saṃyutta Nikāya 的注释"
},
{
"type": "pali_commentary",
"id": "PTS:AN-Comm",
"title": "Manorathapūraṇī (《满足希求》《增支部注释》)",
"note": "对《增支部》Aṅguttara Nikāya 的注释"
},
{
"type": "pali_commentary",
"id": "PTS:Vinaya-Comm",
"title": "Samantapāsādikā (《一切善见律注》)",
"note": "律藏注释"
},
{
"type": "pali_canon",
"id": "SuttaCentral",
"title": "巴利三藏 (Tipiṭaka)",
"note": "经律论三藏全文索引 [SuttaCentral.net](https://suttacentral.net)"
}
],
"version": "1.0.0",
"created_at": "2026-05-02",
"updated_at": "2026-05-02",
"disclaimer": "本内容依据上座部巴利经典与觉音注释生成,仅供学习参考。如需正式修行指导,请亲近具格戒师。",
"search_scope": {
"primary_source_ids": [
"PTS:Vism",
"SuttaCentral"
],
"traditions": [
"上座部",
"Theravāda",
"Mahāvihāra",
"斯里兰卡大寺派"
],
"dictionary_sources": [
"pts_dictionary",
"suttacentral_glossary"
],
"keywords": [
"清净道论",
"Visuddhimagga",
"戒",
"sīla",
"定",
"samādhi",
"慧",
"paññā",
"戒定慧",
"三学",
"tisikkhā",
"四十种业处",
"kammaṭṭhāna",
"十遍",
"kasiṇa",
"十不净",
"asubha",
"十随念",
"anussati",
"四梵住",
"brahmavihāra",
"四无色定",
"arūpasamāpatti",
"出入息念",
"ānāpānasati",
"四界差别",
"catudhātuvavatthāna",
"七清净",
"satta visuddhi",
"十六观智",
"soḷasa-vipassanā-ñāṇa",
"缘起",
"paṭiccasamuppāda",
"阿毗达摩",
"Abhidhamma",
"上座部",
"Theravāda",
"无常",
"anicca",
"苦",
"dukkha",
"无我",
"anatta",
"三法印",
"tilakkhaṇa",
"尼柯耶注释",
"aṭṭhakathā"
]
}
}