mirror of
https://github.com/xr843/Master-skill.git
synced 2026-05-10 13:26:25 +00:00
7149c624c48da533e53e9960a4ae6003a6e72408
4 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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>
|
||
|
|
9b2039e12a |
feat(v0.5): expand Tibetan + Theravāda each from 1 → 3 masters (15 total)
Second cross-tradition expansion. v0.4 introduced Milarepa + Ajahn
Chah; this release adds the major foundational figures of each
non-Chinese tradition that were missing.
藏传 (Tibetan): now 3 — Atiśa, Tsongkhapa, Milarepa
南传 (Theravāda): now 3 — Buddhaghosa, Mahasi Sayadaw, Ajahn Chah
汉传 (Chinese): unchanged at 8
New masters
-----------
* prebuilt/atisha/ — Atiśa Dīpaṃkara (982-1054). 噶当派 founder,
Indo-Tibetan bridge. Sources: Toh 4465 Bodhipathapradīpa + Toh
3948 self-commentary + 噶当口耳传承 Pha chos / Bu chos. Coverage:
three scopes, bodhicitta (七因果 + 自他相换 from Suvarṇadvīpa
Dharmakīrti), 戒律严持, 噶当六论, 依止善知识. HARD-GATE:
NO_ESOTERIC_INSTRUCTION + NO_ANACHRONISTIC_ATTRIBUTION (don't
project later Gelug analytical Madhyamaka onto Atiśa's era).
* prebuilt/tsongkhapa/ — Tsongkhapa Lobsang Drakpa (1357-1419).
Gelug founder, basis of Dalai Lama / Panchen Lama lineages.
Sources: 宗喀巴全集 gsung 'bum (BDRC searchable) — Lam rim chen
mo, sNgags rim chen mo, Drang nges legs bshad snying po, 入中论
善显密意疏, 三主要道. Coverage: 三主要道 (出离心 / 菩提心 / 清净
见), lamrim, 应成中观, 三聚戒, 闻思修, 五部大论. HARD-GATE:
NO_ESOTERIC_INSTRUCTION + NO_CROSS_SCHOOL_CONTAMINATION (don't
blend Dzogchen / Mahāmudrā into Gelug positions) +
NO_UNVERIFIED_BDRC_W_NUMBERS (descriptive guidance instead of
fabricated W-IDs; lessons-learned from v0.4 fixup).
* prebuilt/buddhaghosa/ — Buddhaghosa (5th century). 上座部
commentarial summit. Sources: PTS Vism + four Nikāya aṭṭhakathā
+ Samantapāsādikā (Vinaya) + Atthasālinī (Abhidhamma). Coverage:
戒定慧三学, 四十种业处, 七清净十六观智, 缘起十二支 (three-life-
two-causations interpretation), 阿毗达摩 paramattha vs paññatti,
六义诠释 commentarial method. HARD-GATE:
NO_MAHAYANA_CONTAMINATION + NO_MAHAVIHARA_PRIMACY_OVERSTATEMENT.
* prebuilt/mahasi-sayadaw/ — Mahāsi Sayādaw U Sobhana (1904-1982).
Burmese Vipassanā tradition / Mahasi Method. Sources: Manual of
Insight (Wisdom Publications 2016) + Progress of Insight (BPS
Sri Lanka Wheel No. 280) + Practical Vipassanā Meditation
Exercises (Mahasi Sasana Yeiktha) + SC + PTS Vism. Coverage:
标记法 Noting Method, 腹部起伏 rising-falling primary object,
七清净十六观智 progress, khaṇika-samādhi & vipassanā-jhāna,
'初果可证' ethos, MN 10 Satipaṭṭhāna foundation. HARD-GATE:
NO_FABRICATED_QUOTES + **NO_ATTAINMENT_JUDGMENT** (the strictest
guardrail in this release — Mahasi's stages-of-insight framework
is famous for inducing self-attainment delusions; AI is forbidden
from confirming any individual's observed jhāna stage / fruition).
Each master ships the standard v0.3 progressive-disclosure shape:
SKILL.md (decision tree + HARD-GATE + Quick Reference) + meta.json +
references/{voice,teaching}.md + sources/INDEX.md + ≥1 excerpts file
+ tests/fidelity.jsonl with 12-13 cases each.
ETHICS updates
--------------
* Tier A grows from 9 → 12: Atiśa (>970yr), Tsongkhapa (>600yr),
Buddhaghosa (>1500yr) all join based on age + open-canon sourcing.
* Tier B 特例 grows from 1 → 2: Mahasi Sayadaw codified under same
Forest-Sangha-style rationale as Ajahn Chah, with explicit
NO_ATTAINMENT_JUDGMENT addendum specific to his lineage's risks.
* Sectarian-judgment policy explicit extension: covers Theravāda
intra-tradition meditation lineages (Mahasi vs Pa-Auk vs Goenka
vs Thai Forest) — no superiority claims permitted.
compare-masters meta-skill
--------------------------
prebuilt/compare/SKILL.md updated:
* 可用祖师 table now lists all 15 masters by tradition.
* Topic mapping fallback table extended with rows pairing the new
masters: 中观 (kumarajiva + tsongkhapa), 道次第 (atisha +
tsongkhapa), 心识 (xuanzang + buddhaghosa + huineng), 戒律
(xuyun + atisha + buddhaghosa), 禅修方法 (buddhaghosa + mahasi
+ ajahn-chah), 七清净 (buddhaghosa + mahasi), 论师风格 (xuanzang
+ tsongkhapa + buddhaghosa), 三大传统对比 (huineng + tsongkhapa
+ buddhaghosa).
* New cross-tradition guardrails: don't blend traditions (don't
project Gelug positions onto Atiśa's era; don't put Mahāmudrā
into Gelug; don't put Tathāgatagarbha into Theravāda).
Surface bumps
-------------
* All 4 plugin manifests + package.json + gemini-extension.json
bumped 0.4.0 → 0.5.0 with description updated to "15 prebuilt
masters".
* SKILL.md (project-level) preset list expanded to 8/3/3.
* README.md + README_EN.md: situational guidance table extended
with cross-tradition rows for the 4 new entries; new master cards
added with provenance notes; v0.5 release banner appended above
v0.4 banner.
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
Notes
-----
* fojin_text_ids=[] for new masters — FoJin DB still hasn't imported
BDRC Tibetan canon nor PTS Vism / SuttaCentral Pali full text;
RAG falls back to the global corpus and each prompt explicitly
notes this.
* The two Tibetan masters intentionally use descriptive BDRC
guidance ("BDRC: 见宗喀巴 gsung 'bum") rather than fabricated
W-numbers, applying lessons learned from the v0.4 fixup where
W29193 was mistakenly assigned to two different works in early
drafts. Toh (Tohoku) numbers are kept where they're well-attested
in 藏学界 (Toh 4465 for Bodhipathapradīpa).
* CompanionPRs in xr843/fojin (#507 + #508) already synchronized
the chat-mode subset of these 6 cross-tradition masters; v0.5 of
this repo brings the Master-skill side to parity.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|
|
d441c5d7dc |
fixup: address review — sectarian wording, stragglers, quote framing
- prebuilt/ajahn-chah/sources/sutta-excerpts.md: drop comparative claim against 摩诃僧祇律 / 四分律, switch to non-comparative description of Pali Vinaya core rules. Was a self-violation of ajahn-chah's own NO SECTARIAN JUDGMENT HARD-GATE. - prebuilt/compare/SKILL.md: 可用祖师 table reorganized 8→10 by tradition (汉传 / 藏传 / 南传) — milarepa and ajahn-chah now surfaceable in cross-tradition compare. Add 跨传统对比注意事项 block + extend 禁忌 with comparative-judgment ban. - gemini-extension.json: description updated 8 → 10 / Chinese → Buddhist + version 0.3.0 → 0.4.0 (was missed by the v0.4 commit; reviewer flagged). - README.md: "安装全部 8 位" → "安装全部 10 位(三大传统)". - ETHICS.md: Tier A table now lists milarepa as 9th PD master with BDRC sourcing note. Tier B table adds Ajahn Chah (1918–1992, ~2042). New Tier B 特例 section codifies the ajahn-chah inclusion rationale: authorized non-commercial Forest Sangha translations, summary-only (no full passages), HARD-GATE-enforced provenance, 24h takedown commitment. Fixes ETHICS being misaligned with the v0.4 reality. - prebuilt/ajahn-chah/sources/teachings-excerpts.md: prominent banner at top clarifying that all > blockquote blocks are summarizations (主旨), not verbatim quotes, plus citation format bumped to require "(开示要旨)" suffix. Closes ambiguity that could lead downstream LLMs / readers to treat blocks as direct Ajahn Chah speech. Validation ---------- • python scripts/validate.py --strict → ✅ 11 masters • python scripts/validate-fidelity.py → ✅ 11 masters • pytest tests/ → ✅ 31 passed, 6 skipped Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|
|
f3472d6254 |
feat: add multi-platform plugin support and session-start hook
Add support for 5 platforms beyond NPX: - Claude Code: .claude-plugin/plugin.json + marketplace.json - Cursor: .cursor-plugin/plugin.json + hooks-cursor.json - Codex CLI: .codex/INSTALL.md with symlink setup - OpenCode: .opencode/INSTALL.md with plugin config - Gemini CLI: gemini-extension.json + GEMINI.md Infrastructure: - SessionStart hook with platform detection (Claude Code, Cursor, Copilot CLI) that injects available masters list - Cross-platform run-hook.cmd polyglot wrapper (Windows + Unix) - .version-bump.json for unified version management across all platform config files - Update README/README_EN with multi-platform install instructions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |