xr843/Master-skill
FoJin-powered Buddhist AI persona framework — source-grounded, boundary-aware, fidelity-tested, runtime-ready.
What it solves
Master-skill provides a verifiable, source-grounded framework for creating AI personas of Buddhist masters across four major traditions (Indian, Chinese, Tibetan, and Theravada). It solves the problem of AI "hallucinations" in religious and philosophical discourse by forcing every doctrinal assertion to be backed by specific, traceable citations from authoritative texts (such as CBETA, BDRC, and SuttaCentral).
How it works
The project implements a persona framework rather than simple prompts. It integrates with the FoJin data bridge to access a massive library of Buddhist texts and semantic vectors. The system uses a "HARD-GATE" mechanism to ensure that AI responses strictly adhere to declared sources and ethical boundaries.
Key technical components include:
- AgentSkills Integration: Deployed as skills for AI agents like Claude Code, Cursor, and Gemini CLI.
- Two-Stage Review: A pipeline that checks for doctrinal accuracy and stylistic consistency before outputting a response.
- Fidelity Testing: Automated tests using
fidelity.jsonlto verify that citations and key concepts are correctly covered. - Offline Fallback: Local storage of core scripture fragments to maintain functionality when the FoJin API is unavailable.
Who it’s for
- Buddhist learners and researchers who want to study the teachings of specific masters with direct links to original scriptures.
- Developers using AI agents (Claude Code, Cursor, etc.) who want to integrate specialized, high-fidelity Buddhist personas into their workflow.
- General readers interested in exploring the philosophy of different Buddhist traditions through comparative dialogue.
Highlights
- 15 Pre-set Masters: Includes figures like Nagarjuna, Huineng, and Tsongkhapa, covering diverse traditions.
- Comparative Modes: Features
/compare-mastersfor side-by-side views and/master-debatefor multi-turn cross-debates on controversial topics. - Strict Provenance: Every answer includes original scripture citations (e.g., CBETA IDs) and links to FoJin for verification.
- Custom Persona Creation: A
/create-mastertool that guides users through data collection and analysis to build new, grounded personas. - Multi-Platform Support: Unified plugins for Claude Code, Cursor, Codex CLI, OpenCode, and Gemini CLI.