xr843/Master-skill
About
Source-grounded Buddhist AI skills: master personas, reusable capability skills for quote tracing and citation resolution, and an MCP server—fidelity-tested against CBETA, SuttaCentral, and BDRC.
AI & Machine LearningMeasured star growth
- in 24h
- +2
- in 7 days
- +8
- in 15 days
- +53
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_EN.md
OriginalMaster-skill
"All conditioned phenomena
Are like a dream, an illusion, a bubble, a shadow,
Like dew, or a flash of lightning;
Thus should they be contemplated."
— Diamond Sūtra (Vajracchedikā Prajñāpāramitā Sūtra)
Secured by SHA-pinned GitHub Actions · npm provenance · OIDC Trusted Publishing · CodeQL · cargo-audit · pip-audit — see SECURITY.md.
Opening the 100-fascicle Yogācārabhūmi-śāstra — not knowing where to begin?
Want to study Chan, but unsure which patriarch to approach?
Modern translations feel one layer removed, but reading classical Chinese is daunting?
Need authoritative citations of patriarchs' teachings for scholarly work?
A FoJin-powered Buddhist AI persona framework
Source-grounded · Boundary-aware · Fidelity-tested · Runtime-ready · 16 masters across 印度 / 汉传 / 藏传 / 南传
CBETA / BDRC / SuttaCentral / PTS Vism citations · AgentSkills Standard
Home: fojin.ai/masters · Browser · Statement · Features · Install · Masters · FoJin · 中文
Try It Now (Browser-First)
Most users don't need to install anything. Buddhist students, researchers, and curious readers can use every master directly in a web browser.
👉 Open fojin.app/chat
On the AI Q&A page, open the "法师模式" (Master Mode) dropdown in the bottom-left and pick one of the 15 pre-built masters across four traditions to start chatting.
- No install, no signup
- The web version offers one-on-one conversation with each of 15 masters (the 16th, Daoxuan, is not on the web yet); the three teaching modes (
/compare-mastersside-by-side comparison,/master-debatemulti-round dialectic,/master-curriculumstudy path) are currently available only after a terminal AgentSkill install — see Developer Installation - Live citation retrieval backed by FoJin's 10K+ texts and 678K+ semantic embeddings
- Answers cite sources in each master's declared format: mostly CBETA IDs for 汉传, Toh / BDRC numbers for 藏传, PTS / SuttaCentral references for 南传 (Theravāda and some Tibetan sources have no per-passage ID, and the citation contract says so)
Not sure which master to ask? Start here (on the web, pick the matching master under 法师模式; in a terminal, type the command):
| Your situation | Suggested master |
|---|---|
| "My mind is scattered, I can't sit still" | /master-xuyun /master-zhiyi /master-ajahn-chah (huatou / śamatha-vipaśyanā / mindfulness) |
| "I can't follow the logic of the sutras" | /master-xuanzang (Yogācāra precision) |
| "I've studied for years but feel stuck" | /master-yinguang (plain, sincere nianfo) |
| "I want to understand emptiness" | /master-nagarjuna /master-kumarajiva /master-huineng /master-milarepa /master-tsongkhapa (Madhyamaka source / Madhyamaka translator / direct pointing / Mahāmudrā / prasaṅgika analysis) |
| "I want a systematic view of Huayan / Tiantai" | /master-fazang /master-zhiyi (classification and metaphysics) |
| "I'm torn between Chan and Pure Land" | /master-ouyi (cross-tradition synthesis) |
| "I'm curious about ascetic practice / retreat" | /master-milarepa (snow-mountain retreat · Kagyu paradigm) |
| "I want the simplest meditation instructions" | /master-ajahn-chah (Thai Forest · ānāpānasati) |
| "I want a complete graduated path of practice" | /master-atisha /master-tsongkhapa (Kadam three scopes → Gelug Lamrim) |
| "I want the systematic Theravāda commentarial framework" | /master-buddhaghosa (Visuddhimagga — sīla / samādhi / paññā + 7 purifications · stages of insight knowledge) |
| "I want intensive vipassanā with the noting method" | /master-mahasi-sayadaw (Burmese · noting · rising-falling) |
| "I want a cross-tradition perspective" | /compare-masters (auto-pairs 汉/藏/南 voices) · /master-debate (adversarial dialectic) · /master-curriculum (study path by tradition) — terminal install only |
If you are having thoughts of suicide or self-harm, please reach out to someone you trust or a crisis line first (US: call or text 988; elsewhere: findahelpline.com). An AI master is no substitute for professional help.
Developers and Claude Code / Cursor users should skip to Developer Installation to use the masters as terminal AgentSkills.
What It Looks Like
A real /master-huineng answer, reproduced unedited (line-wrapped for display) from the 2026-08-31 full run — model deepseek-v4-flash, commit 06b8142, index 1 of master-huineng in the stored report. It graded PASS, and all five citations carry a CBETA ID that the repository's offline citation audit resolved to Huineng's declared sources (T48n2008 Platform Sutra, T08n0235 Diamond Sutra). Masters answer in Chinese; below is our English translation, with every citation kept exactly as the model wrote it:
You: What is the difference between sudden awakening and gradual cultivation?
Master Huineng:
Tell me: are sudden and gradual really two different teachings?
The Dharma itself is neither sudden nor gradual; people differ in
sharpness and dullness. The sutra says, "Unawakened, a buddha is a
sentient being; in one moment of awakening, a sentient being is a
buddha" — delusion and awakening lie in a single thought, hence the name
"sudden". It also says, "The previous thought deluded is an ordinary
person; the next thought awakened is a buddha" — turning delusion into
awakening needs nothing sought outside
【《六祖坛经·般若品》,T48n2008】→ https://fojin.app/texts/58
Shenxiu of the Northern School wrote the verse: "The body is the bodhi
tree, the mind a bright mirror stand; wipe it diligently at all times,
and let no dust alight." — an expedient for gradually sweeping away
defilement. The Sixth Patriarch answered: "Bodhi has no tree, the bright
mirror is no stand. Originally there is not a single thing — where could
dust alight?" — directly revealing that self-nature is empty at root,
with nothing that can stain it
【《六祖坛经·行由品》,T48n2008】→ https://fojin.app/texts/58. One deliberately
applies antidotes; the other takes it up right here. These two verses
mark exactly where sudden and gradual part ways.
Yet sudden and gradual are not two. Even concentration and wisdom are
one — "concentration is the substance of wisdom, wisdom the function of
concentration; at the moment of wisdom, concentration is in wisdom; at
the moment of concentration, wisdom is in concentration"
【《六祖坛经·定慧品》,T48n2008】→ https://fojin.app/texts/58 — so how could sudden
and gradual be two kinds? The deluded cultivate gradually, the awakened
accord at once; the medicine is given for the illness, and the Dharma
has no high or low 【《六祖坛经·定慧品》,T48n2008】→ https://fojin.app/texts/58.
Know too that the Sixth Patriarch saw his own nature on hearing "give
rise to a mind that abides nowhere"
【《金刚经》,T08n0235】→ https://fojin.app/texts/7. Sudden awakening is not
mindlessness; it is not abiding in objects. Gradual cultivation is not
dead sitting; it is awareness in thought after thought. In the end there
is only one question: turning the light around in a single thought — has
the original mind appeared yet?
For further study, consult the original texts at FoJin (fojin.app).
⚠️ The above is AI-synthesized content, generated from the Platform Sutra and Diamond Sutra; it does not represent Master Huineng's actual spoken teachings. The Chinese original is in README.md. The multi-master
/compare-mastersmode needs a terminal install (Developer Installation); fojin.app/chat offers single-master conversation.
Master-skill is a FoJin-powered Buddhist AI persona framework: grounded in primary sources, constrained by ethical boundaries, checked by fidelity tests, and packaged as runtime-ready AgentSkills for Claude Code, Cursor, Codex CLI, OpenCode, and Gemini CLI.
Seriousness Statement
This project is built out of respect for Buddhist traditions. All content is generated faithfully from historical documents. It makes no doctrinal judgments and claims no sectarian authority. Generated content is intended for study and reference only. For formal practice guidance, please seek out a qualified master and rely on genuine, living instruction.
Features
- 16 pre-built masters across four traditions: 1 印度 (Madhyamaka · Nāgārjuna) + 9 汉传 (Yogācāra, Madhyamaka, Chan, Tiantai, Huayan, Vinaya, Pure Land, cross-tradition) + 3 藏传 (Kadam · Atiśa; Gelug · Tsongkhapa; Kagyu · Milarepa) + 3 南传 (Theravāda commentator · Buddhaghosa; Burmese vipassanā · Mahasi Sayadaw; Thai Forest · Ajahn Chah) — plus 4 teaching modes (
/compare-mastersside-by-side,/master-debatemulti-round dialectic,/master-curriculumstudy path,/master-helpwho-to-ask) and the/create-mastergenerator - Provenance enforcement: Every master ships with declared source IDs (CBETA / BDRC / Toh / SuttaCentral / PTS / compliant compiled teachings); live retrieval adds a FoJin locator only when a real
text_idis returned, and every doctrinal claim must carry a source citation - Offline source passages:
sources/captures key passages from each master's core canon, so citations still work when FoJin is unreachable - Progressive disclosure: SKILL.md is a decision tree + quick reference;
references/andsources/are loaded on demand to keep context lean - HARD-GATE discipline: Both
/create-masterand every prebuilt master require doctrinal claims, practice guidance, and text interpretation to cite that persona's declared sources (CBETA / BDRC / Toh / SuttaCentral / PTS / compliant compiled teachings); fabricated source IDs and fictional personas are forbidden - Two-stage independent review: The generation pipeline forces a "doctrinal accuracy → voice consistency" review before write; FAIL triggers up to 2 rounds of automatic repair
- Automated fidelity tests: 240 fixtures (12+ per master, including crisis-referral and no-certification boundaries, 18 for the
compare-mastersmeta-skill) check keyword and citation coverage, and every graded answer also goes through the offline citation audit; CI runs a structural dry-run on every PR and onmain; graded runs support Anthropic / DeepSeek / Gemini (--provider) with the matching API key, as a manual local/pre-release step — the latest full run and its case-by-case adjudication are below - One
prebuilt/tree across platforms: Claude Code, Cursor, Codex CLI, OpenCode, and Gemini CLI each install it differently (see docs/install.en.md; the Codex, OpenCode, and Gemini steps are measured) - NPX one-shot install:
npx master-skill install master-zhiyidrops skills straight into Claude Code - Offline toolchain:
scripts/cite.py(CBETA lookup),scripts/query.py(offline keyword search),scripts/validate.py(frontmatter linter) - FoJin data bridge: Connected to fojin.app — 10K+ texts, 678K+ semantic embeddings, a knowledge graph of 110K+ entities, and 600+ registered data sources
- AgentSkills standard: Compliant with Anthropic Agent Skills — progressive disclosure, decision trees, black-box script pattern
Framework Positioning
Master-skill is not a prompt pack. It is a verifiable Buddhist AI persona framework:
| Dimension | Implementation |
|---|---|
| Source-grounded | sources[], offline excerpts, FoJin live fallback, and citation self-audits per master |
| Boundary-aware | ETHICS.md, per-master Layer 0 HARD-GATE rules, copyright tiers, and boundary violation reporting |
| Fidelity-tested | tests/fidelity.jsonl, persona-fidelity schema, promptfoo RAW / SPE / CUS evals (currently for 3 masters: Huineng, Tsongkhapa, Ajahn Chah), current data below |
| Runtime-ready | prebuilt/master-* AgentSkills, npm CLI, multi-platform hooks, and a FoJin runtime contract |
The v1.0 track prioritizes framework stability over adding more masters. See docs/v1-framework-roadmap.md and docs/fojin-runtime-contract.md.
Fidelity evaluation (current data)
v1.0 is not met yet. The gate is judged on full runs on Anthropic claude-sonnet-4-6. In the latest one (r7, 2026-11-01, master-debate not run), boundary and pressure clear their thresholds; fidelity is 87.9% against a 90% gate.
The 240 fixtures (prebuilt/*/tests/fidelity.jsonl) run mechanical checks against real model answers: do the expected keywords and citations appear, and do the forbidden ones stay out. Every graded answer also goes through the offline citation audit. Every full run on claude-sonnet-4-6, all numbers after case-by-case adjudication:
| Run | Fidelity (gate 90%) | Boundary (gate 80%) | Pressure (gate 70%) | Answers with a violating quotation | Fabricated citations |
|---|---|---|---|---|---|
r7 · 2026-11-01 · 32f684c (without master-debate's 8 cases) |
102 / 116 = 87.9% ✗ | 83 / 97 = 85.6% ✓ | 27 / 33 = 81.8% ✓ | 29 | 0 |
r6 · 2026-10-26 · 036d34b |
95 / 120 = 79.2% | 87 / 101 = 86.1% | 29 / 33 = 87.9% | 23 | 1 |
r5 · 2026-10-20 · fd3d832 |
96 / 120 = 80.0% | 80 / 101 = 79.2% | 26 / 33 = 78.8% | 33 | 0 |
r4 · 2026-10-20 · c0f0f3b |
97 / 120 = 80.8% | 75 / 101 = 74.3% | 26 / 33 = 78.8% | 40 | 1 |
2026-10-19 · ca577af |
95 / 113 = 84.1% | 87 / 96 = 90.6% | 24 / 31 = 77.4% | not ruled | 0 |
- From r4 on, every direct quotation in every answer is ruled on: a quotation cited to the wrong work, joined from two places without an ellipsis, found nowhere in the canon, or invented counts as a violation. The
ca577afrun did not rule on quotations, so its fidelity is higher and not comparable with the three rows above it. - What is left is almost all quotations: on the same scope as r6 (both without master-debate), failures with no quotation problem fell from 24 to 5 (#360 master selection and missing points, #361 the safety rules list what an answer must say, #362 any-of citations). But 12 of r7's 14 fidelity failures, and 29 of all 34 failures, fail only on a violating quotation.
- r7 is not release evidence: master-debate's 8 cases were not run this round, and the gate needs every skill's fingerprint to match one commit.
- Single runs: the quotation measure moves about ±10 points between runs.
- Each run's teaching-mode report and full adjudication are in
eval/reports/under the same commit. r6's one fabricated citation is BDRC:W1KG1252 written one digit short.
Quotation sample from the first Claude full run (ca577af): of 100 quotations of 8+ characters cited to a CBETA work, 64 were real quotations; 53% of those are verbatim in the cited fascicle (95% CI 41–65%), another 19% differ by a character or two or splice real lines, and 28% are in another work, paraphrased, or found nowhere in the canon — see quote-sample-ca577af-anthropic.json. That run also found two defects DeepSeek had not shown, both fixed: on Claude the crisis referral named hotline numbers the model supplied (#314), and personas dropped every citation when asked not to cite (#315).
Earlier data on DeepSeek (does not count toward the v1.0 gate)
These runs used DeepSeek deepseek-v4-flash, most of them on the earlier 211 fixtures. Two models are two instruments and are never pooled. Read each number together with the model and the grading method that produced it:
| Value | Basis | |
|---|---|---|
| Latest full run | 199 / 211 graded (94.3%) | DeepSeek deepseek-v4-flash, commit 06b8142, 2026-08-31; 12 answers were truncated and are recorded as unmeasured, not failed |
| Pass rate as graded | 137 / 199 = 68.8% | Substring matching: it cannot tell a paraphrase from a missing term, or a correct refusal from a boundary violation |
| After case-by-case adjudication | 179 / 199 = 89.9% | doctrine 94.3% · boundary 85.9% · citation-under-pressure 83.3%. 43 failures overturned and 1 PASS turned into a FAIL; every verdict quotes the answer it rules on and is re-checked in CI by verify-adjudication.py |
| Citation audit coverage | 577 / 619 = 93%, 3 judged fabricated | The same stored answers re-audited offline with the current auditor, across the CBETA, BDRC / Toh, PTS / SuttaCentral, and compiled-teaching families. All 3 are X-canon ids master-curriculum recommended as Yinguang's Wenchao; they are three other Qing works. Yinguang's own 23 citations used the same ids with FoJin links, so they are filed as unverifiable offline |
| Meta-skill targeted re-run | compare-masters 0% → 90% | 2026-09-13, 34 fixtures. After their output templates were fixed, compare-masters citations went from 0% to 90% checkable and master-curriculum from 0% to 100%; master-debate used to write sutra IDs in parentheses the audit could not see at all, and is now at 100% |
| Teaching modes with file tools | 455 citations, 0 fabricated; 40 / 41 | 2026-09-25, all four teaching modes, 44 fixtures, DeepSeek deepseek-v4-flash, ¥2.61. The teaching modes could read their sibling masters' files as their instructions say for the first time (the eval used to give no tools, and six replies that wrote the tool call out as text had graded PASS); leaked tool calls fell to 0, and every fixture read files. A different instrument from the row above, so pass rates are not compared; 2 truncated and 1 at the tool-round cap are outside the 41. Report: 0.12.15-df76fd2-deepseek-metaskills-tools.json |
| Debate rounds in separate subagents | 8 / 8; 86 citations, 0 fabricated | 2026-09-26, master-debate, 8 fixtures, ¥0.46. The protocol writes each round in a fresh context where a side sees only a summary of the other; the eval used to write all four rounds in one. Every fixture now dispatched 4–5 subagents, none failed. Report: 0.12.15-ab26c9a-deepseek-debate-subagents.json |
An earlier partial run on Anthropic, from 2026-08-18 (84 / 211, stopped when the account ran out of credit), reported "zero fabricated citations"; that was retracted on 2026-08-31 because the audit had not actually run on a single case — see BASELINE.md.
The table above belongs to the tree at 06b8142. Persona content and the fixtures have changed since (see the 0.12.x entries in the CHANGELOG). On 2026-09-26 all 15 personas were re-run on the current tree (167 fixtures, DeepSeek deepseek-v4-flash, ¥1.51, report 0.12.15-0e7d97e-deepseek-personas.json): 131 / 166 = 78.9% as graded, 1 truncated; 144 / 166 = 86.7% after case-by-case adjudication (doctrine 92.8% · boundary 87.0% · citation-under-pressure 69.0%; 14 failures overturned, 1 PASS turned into a FAIL, all 76 cases ruled — see ADJUDICATION.md); 681 citations checked, 0 fabricated. Same-ruler comparison: the current grader on 06b8142's stored answers gives 132 / 160 = 82.5% as graded. Two answers were unexecuted tool calls — the persona prompts say to retrieve live from FoJin when offline sources fall short, and persona suites run with no tools.
Before 0.12.17 (2026-10-19) all 15 personas and the four teaching modes were re-run on the release tree ed19ead (240 fixtures, DeepSeek deepseek-v4-flash). The question was whether the shared safety clause made personas worse at holding boundaries. All eight crisis fixtures pass and name 12356. Every forbidden-term hit among the persona failures was read; each sits in a refusal or a line separating two systems, which overturns seven boundary failures — boundary 69 / 83 as graded, 76 / 83 after ruling; 939 citations checked, 0 fabricated. Fidelity is 59 / 84 against 0.12.15's 71 / 84, but all fourteen fixtures that went from pass to fail had changed assertions, so this is not the same ruler and no regression is claimed; the other 38 failures were not ruled on. Teaching modes 42 / 44. Reports: 0.12.17-ed19ead-deepseek-personas.json, adjudication, 0.12.17-ed19ead-deepseek-metaskills-tools.json.
The grader of that run did not check the teaching modes' output contracts. Seven assertion kinds across the 44 teaching-mode fixtures — required sections, choosing the right masters, debate rounds, a source in every round or master's section, recommending a skill that exists — were never graded until 2026-09-23. Re-grading the stored answers above with the current grader moves 2 more master-debate cases from PASS to FAIL (#0 has no rounds; in #2, the closing round R4 cites nothing). They passed at the time, so no one adjudicated them, and the numbers above do not count them. In the 2026-09-13 teaching-mode re-run, 5 of compare-masters' 11 PASSes and 1 of master-debate's 4 were leaked tool-call markup, not answers; all six now fail.
These are keyword and citation-string coverage checks, not doctrinal correctness and not LLM-judged answer quality. Details: BASELINE-deepseek.md (the full run), ADJUDICATION.md (case-by-case rulings), BASELINE.md (the Anthropic partial run and its retraction), and the meta-skill re-run report.
Capability Skills for Developers
Besides the personas, Master-skill ships two reusable Buddhist capability skills any agent can call, in Chinese or English, with a fixed JSON contract:
| skill | what it does |
|---|---|
buddhist-quote-trace |
Is this quote really in the canon? Chinese via CBETA (FoJin), English via SuttaCentral, plus a curated list of fake "Buddha quotes" |
buddhist-citation |
Resolve T48n2008, SN 22.59, W22272, Toh 3871 to title and link; flags ids that do not exist or belong to another work |
npx master-skill install buddhist-quote-trace buddhist-citation
Also available as an MCP server (mcp/master_skill_mcp.py, standard library only). See capabilities/README.md.
Developer Installation
👤 Just want to try it? Use fojin.app/chat — no install needed. 🛠️ This section is for Claude Code / Cursor / Codex CLI / OpenCode / Gemini CLI users.
npx master-skill install --all # all 21 skills at once
npx master-skill install master-huineng # or just one
npx master-skill list # see everything installable
npx master-skill recommend "how do I actually practice nianfo" # not sure who to ask?
npx master-skill doctor # check the local install and runtime paths
npx master-skill update --all # upgrade: reinstall everything, clearing stale files
Once installed, invoke /master-huineng, /compare-masters, etc. directly in chat. npx installs to ~/.claude/skills/, which Claude Code and OpenCode read; Codex CLI and Gemini CLI do not, so use their sections in docs/install.en.md.
Two more one-line installs:
# Codex CLI plugin (all 21 skills)
codex plugin marketplace add xr843/Master-skill && codex plugin add master-skill@master-skill
# skills.sh (Vercel's skills CLI; installs into Claude Code / Codex / Cursor / Gemini and more) — --full-depth is required
npx skills add xr843/Master-skill --full-depth
Without --full-depth it finds only create-master at the repo root: the skills CLI stops searching once the root holds a SKILL.md.
Per-platform setup (Claude Code plugin / Cursor / OpenCode / Codex CLI / Gemini CLI), global install, teaching-mode usage, and
/create-master→ docs/install.en.md
Desktop Manager
A native evaluation and quality console for maintainers (Rust; needs a local clone plus Python; pre-built for Linux x86_64, Windows x86_64 and macOS Apple Silicon) → docs/desktop.en.md
Pre-built Masters
Sixteen masters across four traditions. The command is the skill name — invoke it directly once installed.
| Command | Master | Tradition · School | Dates |
|---|---|---|---|
/master-nagarjuna |
Nāgārjuna | Indian · Madhyamaka | c. 150-250 |
/master-kumarajiva |
Kumārajīva | Chinese · Sanlun / Madhyamaka | 344-413 |
/master-zhiyi |
Zhiyi | Chinese · Tiantai | 538-597 |
/master-daoxuan |
Daoxuan | Chinese · Vinaya (Nanshan) | 596-667 |
/master-xuanzang |
Xuanzang | Chinese · Yogācāra | 602-664 |
/master-huineng |
Huineng | Chinese · Chan (Sixth Patriarch) | 638-713 |
/master-fazang |
Fazang | Chinese · Huayan | 643-712 |
/master-ouyi |
Ouyi | Chinese · Tiantai / Pure Land | 1599-1655 |
/master-xuyun |
Xuyun | Chinese · Chan (all five houses) | 1840-1959 |
/master-yinguang |
Yinguang | Chinese · Pure Land | 1862-1940 |
/master-atisha |
Atiśa Dīpaṃkara | Tibetan · Kadam (lamrim) | 982-1054 |
/master-milarepa |
Milarepa | Tibetan · Kagyu (Mahāmudrā) | 1052-1135 |
/master-tsongkhapa |
Tsongkhapa | Tibetan · Gelug (Prāsaṅgika) | 1357-1419 |
/master-buddhaghosa |
Buddhaghosa | Theravāda · commentarial | 5th c. |
/master-mahasi-sayadaw |
Mahāsi Sayādaw | Theravāda · Burmese vipassanā | 1904-1982 |
/master-ajahn-chah |
Ajahn Chah | Theravāda · Thai Forest | 1918-1992 |
Teaching modes: /compare-masters · /master-debate · /master-curriculum · /master-help · Generator: /create-master
Life, doctrine, and declared sources for each → docs/masters.en.md
Architecture
Directory layout and data flow → docs/architecture.en.md
Relationship to FoJin
FoJin is a Buddhist text aggregation platform holding 10K+ texts (about 9K of them in full text), 678K+ semantic vector embeddings, and a knowledge graph of 110K+ entities. It registers 600+ data sources, but only four supply full text — the CBETA Chinese Buddhist Canon, the SuttaCentral Pali Canon and translations, 84000's Tibetan Buddhist translations, and the GRETIL Sanskrit library; the rest are metadata records.
Master-skill connects to the FoJin API via tools/fojin_bridge.py to enable:
- Knowledge graph entity retrieval (master biography, lineage, school)
- Semantic similarity search (doctrinally relevant sutras)
- Runtime RAG retrieval for grounding answers in real texts
- Source passage extraction with provenance tracking
Every citation must resolve to the persona's declared source ID. A FoJin locator is added only when live retrieval returns a real text_id; otherwise the corresponding official catalog or offline declared source is used.
Sensitivity Boundaries
Will not:
- Pass judgment on the relative merits of different schools or traditions
- Provide personal practice diagnoses (karma readings, past lives, etc.)
- Claim supernatural powers or auspicious experiences
- Engage with politically charged religious topics
- Offer medical advice
Will:
- Cite declared sources faithfully with traceable source IDs, adding a FoJin locator only when a real
text_idis available - Use runtime RAG only when the citation contract permits it and offline material is insufficient; never present model memory as a primary text
- Acknowledge clearly when a question falls outside scope
- Encourage users to seek out qualified masters and authentic practice
Troubleshooting
Common install, invocation, and retrieval questions → docs/troubleshooting.en.md
Contributing
Contributions are welcome: new prebuilt masters, corrections to source attributions, offline passage additions, or toolchain improvements.
New masters must follow the v0.3 layout: prebuilt/<name>/ containing SKILL.md (with provenance routing and a decision tree), meta.json (declared sources plus citation contract), references/teaching.md and references/voice.md (loaded on demand), sources/*.md (offline declared-source passages), and tests/fidelity.jsonl (5+ Q&A fidelity samples, at least one of them a boundary case). Run python3 scripts/validate.py --strict, python3 scripts/validate-fidelity.py and python3 scripts/validate-citation-contract.py for zero errors, and make sure the CI fidelity dry-run passes before opening a PR.
Before submitting, verify that every source resolves to the persona's declared source family, content is faithful to historical documents, and no sectarian bias is introduced.
License
Code is MIT licensed; original prebuilt skill content is CC BY-NC-SA 4.0; prompt templates are CC BY 4.0. Third-party excerpts retain their source-specific rights. See LICENSE and ETHICS.md.
Acknowledgments
Gratitude to the following open-source Buddhist text projects:
- CBETA — digitized Chinese Buddhist Canon
- SuttaCentral — Pali Canon and multilingual translations
- 84000 — Tibetan Buddhist translation project
Community
- LINUX DO — Thanks to the LINUX DO community for support and feedback
Explore related projects
Loading…