Files
Master-skill/CHANGELOG.md
T
xianren 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>
2026-05-02 18:39:58 +08:00

15 KiB
Raw Permalink Blame History

Changelog

All notable changes to Master-skill are documented in this file.

The format follows Keep a Changelog and this project adheres to Semantic Versioning.

Sections marked Ethics track changes to ETHICS.md, content licensing, or boundary rules — these are governance-level changes and require the public-review process documented in ETHICS.md §7.


Unreleased

Added

  • ETHICS.md — AI transparency, copyright tier (A/B/C/D), religious boundary, dual-track content license, takedown channel.
  • CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md — community infrastructure.
  • .github/ISSUE_TEMPLATE/ — bug report, feature request, new-master proposal, boundary-violation.
  • .github/PULL_REQUEST_TEMPLATE.md.
  • .github/workflows/npm-publish.yml — tag-triggered npm release.
  • CI fidelity-smoke job — runs a single master × single fixture on every PR with a hard $0.05 cost cap, enforces HARD-GATE beyond dry-run.
  • package.json: engines.node, scripts.test, scripts.validate, publishConfig.

Ethics

  • Establish copyright tiers AD; current 8 prebuilt masters confirmed Tier A (Public Domain in CN/TW as of 2026).
  • Declare dual-track content licensing: code MIT, master content CC BY-NC-SA 4.0, prompts CC BY 4.0.

[0.5.0] — 2026-05-02

Second cross-tradition expansion — 藏传 / 南传 each grow from 1 master to 3 (15 total).

This release fills out the major figures of each non-Chinese tradition that v0.4 introduced. Combined with the parallel xr843/fojin release synchronizing the chat surface, fojin.app/chat 法师模式 now offers 15 masters across all three Buddhist traditions.

Added

  • atisha — 阿底峡尊者 Atiśa Dīpaṃkara (982-1054). 噶当派 Kadam school founder, 印藏桥梁 (Indo-Tibetan bridge). Sources: Toh 4465 Bodhipathapradīpa (《菩提道灯论》) + Toh 3948 self-commentary + 噶当派《父法·子法》(Pha chos / Bu chos) oral lineage. Coverage: 三士道 (three scopes), 菩提心 (七因果 / 自他相换 from Dharmakīrti of Suvarṇadvīpa), 戒律严持, 噶当六论, 依止善知识. HARD-GATE: NO_ESOTERIC_INSTRUCTION + NO_ANACHRONISTIC_ATTRIBUTION (don't project later Gelug analytical Madhyamaka onto Atiśa's era).
  • tsongkhapa — 宗喀巴大师 Je Rinpoche (1357-1419). 格鲁派 Gelug founder, basis of the Dalai Lama / Panchen Lama lineages. Sources: 宗喀巴全集 gsung 'bum (BDRC searchable) — 《菩提道次第广论》(Lam rim chen mo), 《密宗道次第广论》(sNgags rim chen mo), 《辨了不了义善说藏论》, 《入中论善显密意疏》, 《三主要道》. Coverage: 三主要道 (出离心 / 菩提心 / 清净见), lamrim, 应成中观正见 (Madhyamaka prasaṅgika), 三聚戒, 闻思修, 五部大论辩论传统. HARD-GATE: NO_ESOTERIC_INSTRUCTION + NO_CROSS_SCHOOL_CONTAMINATION (don't blend Dzogchen / Mahāmudrā into Gelug positions) + NO_UNVERIFIED_BDRC_W_NUMBERS (use descriptive guidance instead of fabricated W-IDs).
  • buddhaghosa — 觉音尊者 (5th century). 上座部 Theravāda commentarial summit. Sources: PTS edition Visuddhimagga (《清净道论》) + four Nikāya aṭṭhakathā (Sumaṅgalavilāsinī DN-Comm / Papañcasūdanī MN-Comm / Sāratthappakāsinī SN-Comm / Manorathapūraṇī AN-Comm) + Vinaya commentary Samantapāsādikā + Abhidhamma commentaries (Atthasālinī, Sammohavinodanī). Coverage: 戒定慧三学 structure, 四十种业处 kammaṭṭhāna, 七清净十六观智, 缘起十二支 with three-life-two-causations interpretation, 阿毗达摩 paramattha-dhamma vs paññatti distinction, 六义诠释 commentarial method. HARD-GATE: NO_MAHAYANA_CONTAMINATION + NO_MAHAVIHARA_PRIMACY_OVERSTATEMENT.
  • mahasi-sayadaw — 马哈希尊者 Mahāsi Sayādaw U Sobhana (1904-1982). 缅甸 Burmese Vipassanā tradition (Mahasi Method). Sources: Manual of Insight (Wisdom Publications 2016 English ed) + The Progress of Insight (BPS Sri Lanka Wheel No. 280) + Practical Vipassanā Meditation Exercises (Mahasi Sasana Yeiktha) + Pali Canon (SC) + Visuddhimagga. 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 infamous for inducing self-attainment delusions; AI is forbidden from confirming any individual's observed jhāna stage / fruition).
  • scripts/validate-fidelity.py boundary registry now accepts no_esoteric_instruction and existing no_fabricated_dialogue for Tibetan / Theravāda masters.

Changed

  • All 4 plugin manifests (package.json, .claude-plugin/{plugin,marketplace}.json, .cursor-plugin/plugin.json, gemini-extension.json) bump from 0.4.00.5.0 with description updated from "10 prebuilt masters" → "15 prebuilt masters".
  • SKILL.md (project-level) preset list reorganized: 汉传 (8) + 藏传 (3: Atiśa → Tsongkhapa → Milarepa, 时代倒序) + 南传 (3: Buddhaghosa → Mahasi Sayadaw → Ajahn Chah).
  • README.md + README_EN.md situational guidance table extended with cross-tradition rows for the 4 new entries; new master cards added with their respective provenance / HARD-GATE notes.
  • prebuilt/compare/SKILL.md topic mapping fallback table extended with rows that pair the new masters into cross-tradition / cross-school comparisons (e.g., '空性' now pairs Tsongkhapa with Kumārajīva, Madhyamaka prasaṅgika vs early Sanlun translation).

Ethics

  • Tier A (Public Domain) table grows from 8 → 11 masters: Atiśa (982-1054) + Tsongkhapa (1357-1419) + Buddhaghosa (5th century) join — all well past any modern jurisdiction's copyright term.
  • Tier B 特例 (special case) section adds Mahasi Sayadaw (1904-1982) as the second special-case Theravāda master under the Forest Sangha-style rationale already codified for Ajahn Chah: works distributed non-commercially by Mahasi Sasana Yeiktha + BPS Sri Lanka under teaching-use policy; summary-only use; HARD-GATE enforced provenance; 24h takedown commitment.
  • Declared sectarian-judgment policy explicitly extends to Theravāda intra-tradition meditation lineages (Mahasi vs Pa-Auk vs Goenka vs Thai Forest) — no superiority claims permitted between contemporary methods.

Notes

  • fidelity.jsonl test counts: atisha 12, tsongkhapa 12, buddhaghosa 13, mahasi-sayadaw 13. All four masters' tests cover boundary cases for sectarian judgment, no-prophecy, neutral first-turn — plus master-specific guardrails (esoteric instruction refusal for atisha/tsongkhapa, attainment-judgment refusal for mahasi-sayadaw).
  • Validation: python scripts/validate.py --strict 15 masters; python scripts/validate-fidelity.py all valid; pytest tests/ 31 passed, 6 skipped.
  • The two Tibetan masters (atisha, tsongkhapa) intentionally use descriptive BDRC guidance ("BDRC: 见宗喀巴 gsung 'bum") rather than fabricated W-numbers, because mid-task BDRC.io verification was not feasible and prior versions of these prompts had collisions (W29193 was mistakenly assigned to two different works in the fojin draft). Toh (Tohoku) numbers are kept where they're well-attested in 藏学界 (e.g., Toh 4465 for Bodhipathapradīpa).
  • Compare-masters meta-skill picks up the new entries automatically via MASTERS registry; existing topic mappings extended in this release.

[0.4.0] — 2026-05-02

Cross-tradition expansion: from "Chinese Buddhist" to "Buddhist" — the project name now matches its scope.

Added

  • Milarepa (prebuilt/milarepa/) — Tibetan Kagyu yogi (10521135). Sources: The Hundred Thousand Songs of Milarepa (mGur 'bum, BDRC W1KG14334) + The Life of Milarepa (rNam thar, BDRC W22272). Coverage: Mahāmudrā view, Naro Chodruk (introduced at name level only), retreat & austerity, guru yoga, karma & purification.
  • Ajahn Chah (prebuilt/ajahn-chah/) — Thai Forest Tradition founder of Wat Pah Pong (19181992). Sources: Pali Canon (SuttaCentral SC IDs) + authorized English collections Food for the Heart, A Still Forest Pool, Living Dhamma. Coverage: sati & satipaṭṭhāna, ānāpānasati, three characteristics, letting go, Sīla-Samādhi-Paññā, middle way.
  • HARD-GATE boundary no_esoteric_instruction — Tibetan tantric practice steps (tummo, generation/completion stages, specific empowerment-required visualizations and mantras) are never disclosed; queries are redirected to qualified teachers. Boundary added to scripts/validate-fidelity.py.
  • HARD-GATE rule for Theravāda discourses — Ajahn Chah quotations must trace to authorized publications; no synthesized "Ajahn Chah said" dialogue.
  • Citation system extended: BDRC:Wxxxxx (Tibetan canon) and SuttaCentral SC IDs are now first-class alongside CBETA Txxnxxxx.

Changed

  • Description across package.json, .claude-plugin/plugin.json, .claude-plugin/marketplace.json, .cursor-plugin/plugin.json: "Chinese Buddhist" → "Buddhist", "8 prebuilt masters" → "10 prebuilt masters across 汉传/藏传/南传".
  • README.md + README_EN.md: added cross-tradition rows in the situational guidance table; new master cards for Milarepa and Ajahn Chah with appropriate provenance notes; v0.4 release note replaces the v0.3 banner.
  • SKILL.md (project-level): preset list reorganized by tradition (汉传 / 藏传 / 南传).
  • package.json keywords: added tibetan-buddhism, theravada, bdrc, suttacentral.

Notes

  • Both new masters keep the v0.3 progressive-disclosure shape (decision tree → references → sources → fidelity tests), so the cost profile of the fidelity-smoke CI job is unchanged.
  • Esoteric content is intentionally absent from prebuilt/milarepa/sources/ — this is enforced by content review, not just by the test suite.

0.3.0 — 2026-04-10

Architectural rebuild around provenance, fidelity, and multi-platform delivery.

Added

  • Provenance frontmatter — every prebuilt/<master>/SKILL.md now carries sources: (CBETA ID + FoJin text ID), citation_format:, verified_by:, verified_at:.
  • Offline sutra excerptsprebuilt/<master>/sources/ ships canonical passages so masters remain useful when FoJin is unreachable.
  • Progressive disclosure architecture — SKILL.md is decision-tree + quick-ref; heavyweight references/teaching.md, references/voice.md, and sources/ load on demand.
  • Fidelity testsprebuilt/<master>/tests/fidelity.jsonl, 5 Q&A per master, verifying citations (must_cite), terminology (must_mention), and boundary rules (must_not_contain_first_turn).
  • NPX installernpx master-skill install <master> / list / uninstall / --all; bin/cli.mjs.
  • Multi-platform plugin support — unified prebuilt/ reused by Claude Code, Cursor, Codex CLI, OpenCode, Gemini CLI; per-platform hooks in hooks/, .claude-plugin/, .cursor-plugin/, .codex/, .opencode/, gemini-extension.json.
  • Session-start hook — auto-injects the list of installed masters so the user does not re-issue /list each session.
  • HARD-GATE enforcement — no CBETA citation → no dogmatic assertion; fabricated CBETA IDs rejected by scripts/validate.py; no persona for fictional / unattested figures.
  • Two-stage independent review/create-master pipeline runs doctrine-accuracy pass followed by voice-consistency pass, auto-fix up to 2 rounds.
  • Offline toolingscripts/cite.py (CBETA citation lookup), scripts/query.py (offline semantic search), scripts/validate.py (SKILL.md frontmatter linter), scripts/validate-fidelity.py, scripts/test-fidelity.py.
  • CI pipeline (.github/workflows/validate-and-test.yml) — lint, fidelity structure validation, dry-run fidelity on every push/PR; full API-backed fidelity on workflow_dispatch.
  • Weekly link verification (.github/workflows/verify-links.yml) — cron'd tools/verify_sources.py opens an issue when FoJin URLs or CBETA IDs drift.
  • /compare-masters meta-skill — multi-master side-by-side answering with smart master selection, divergence radar, labeled differences, classic debate templates.
  • Cross-reference tool (tools/cross_reference.py) for inter-master dialogue.
  • Browser-first onboarding — README now directs non-CLI users to fojin.app/chat 法师模式 first; per-master starter_questions added.
  • Prebuilt masters (8): 玄奘 (Xuanzang), 鸠摩罗什 (Kumārajīva), 慧能 (Huineng), 智顗 (Zhiyi), 法藏 (Fazang), 印光 (Yinguang), 蕅益 (Ouyi), 虚云 (Xuyun).

Changed

  • Project renamed buddha-skillBuddha-skillMaster-skill to match AgentSkills naming conventions and emphasize teaching-persona framing.
  • Focus narrowed to 汉传 (Chinese Mahāyāna) — 南传 / 藏传 sections removed from PRD, prompts, and prebuilt set. Cross-tradition compare still possible via /create-master but not shipped.
  • Per-master RAG queries in /compare-masters now enforce tradition-specific terminology to prevent cross-tradition drift.
  • Smart master selection: keywords expanded 6 → 24 per master; first-turn identity-neutral (masters no longer assume user identity on first message).
  • FoJin URL format corrected for juan paths; 186 FoJin URLs verified and updated from CBETA IDs to real internal text_ids.

Fixed

  • fix(ci): verify-links.yml uses context.repo.repo instead of non-existent context.repo.name.
  • fix(lint): meta-skills (compare-masters) exempted from lineage / sources frontmatter checks.
  • fix: slugify lowercases English names and handles spaces.
  • fix: robust tool path resolution + precise selection feedback in /compare-masters.
  • fix: escape text_id placeholder in SKILL_MD_TEMPLATE to survive Python .format().

Removed

  • Early prebuilt masters 宗喀巴 (Tsongkhapa, Gelug) and Ajahn Chah (Thai Forest) — retracted when scope refocused to 汉传 on 2026-04-04. Will return only via a future Master-skill-beyond-chinese branch with native-speaker reviewers.

Documentation

  • README: hero section with Diamond Sutra epigraph, badges, navigation; EN README synced to v0.3 parity.
  • PRD (docs/PRD.md) refocused on 汉传.
  • Plugin metadata synced across Cursor / Codex / OpenCode / Gemini extensions.

[0.2.0] — 2026-04-05 (historical, no release tag)

Iteration layer between initial skeleton and full v0.3 rebuild. Highlights:

  • /compare-masters skill first draft (P1).
  • Graceful degradation when FoJin API is unavailable.
  • Complete FoJin API reference for ad-hoc LLM queries.
  • First-turn identity-neutral rule.
  • Expanded flow control and error handling in SKILL.md.
  • Community section added to README (linux.do link).

[0.1.0] — 2026-04-04 (initial skeleton)

  • Project skeleton, directory layout, prompt templates.
  • FoJin data bridge (tools/fojin_bridge.py) with full API coverage.
  • Version manager, skill writer, sutra collector, master builder orchestrator.
  • Initial prebuilt masters (later expanded): 印光, Ajahn Chah, 宗喀巴, 玄奘, 鸠摩罗什, 慧能, 智顗, 法藏, 虚云, 蕅益.
  • Source verification tool.
  • Chinese + English README, PRD v1.0.0.