SkillAgentSearch skills...

Buddhism.js

Buddhist concepts as JavaScript

Install / Use

/learn @mikeal/Buddhism.js
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

buddhism.js

Buddhist concepts as JavaScript

Pratītyasamutpāda (Dependent Origination)

Basic principals.

const a = (_this, that) => {
  if (_this) that()
}
const b = (that) => {
  const _this = false
  // vm knows this will never be called, this code can be dropped
  // and will never exist
  if (_this) that()
}
const c = (_this) => {
  const that = false
  // vm knows this will never be called, this code can be dropped
  // and will never exist
  if (that && _this) return _this
}

Twelve-fold chain

<img src="https://user-images.githubusercontent.com/579/98151375-e9aede80-1e84-11eb-80f3-06cb9468c6f3.jpg" width="400">

As a functional loop.

// Avijjā (Ignorance)
const avijja = (...args) => sankhara(...args)

// Saṅkhāra (Conditioning)
const sankhara = (...args) => vinnana(...args)

// Viññāṇa (Consciousness)
const vinnana = (...args) => namarupa(...args)

// Nāmarūpa (Name & Form)
const namarupa = (...args) => salayatana(...args)

// Saḷāyatana (Six Sense Bases)
const salayatana = (...args) => phassa(...args)

// Phassa (Contact)
const phassa = (...args) => vedana(...args)

// Vedanā (Sensation)
const vedana = (...args) => tanha(...args)

// Taṇhā (Craving)
const tanha = (...args) => upadana(...args)

// Upādāna (Clinging)
const upadana = (...args) => bhava(...args)

// Bhava (Being)
const bhava = (...args) => jati(...args)

// Jāti (Birth)
const jati = (...args) => jaramarana(...args)

// Jarāmaraṇa (Old Age & Death)
const jaramarana = (...args) => avijja(...args)

Related Skills

View on GitHub
GitHub Stars23
CategoryDevelopment
Updated9mo ago
Forks0

Security Score

67/100

Audited on Jun 22, 2025

No findings