/asi:stellogenfrom asi
Provides context and instructions for Stellogen, a logic-agnostic programming language based on term unification, constellations, galaxies, and interaction nets.
Ships in asi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Trit: 0 (ERGODIC - logic-agnostic mediation)
Source: engboris/stellogen + bmorphism/stellogen
License: MIT
Stellogen is a logic-agnostic programming language based on term unification, designed from Girard's transcendental syntax. It provides:
' Positive ray (output/producer)
+output(term)
' Negative ray (input/consumer)
-input(term)
' Constellation (logic program)
spec nat =
-i(z) ok;
-i(s(X)) +i(X).
fsm = galaxy
initial = -i(W) +state(W q0).
final = -state(e qf) accept.
transitions =
-state(0:W q0) +state(W q1);
-state(1:W q1) +state(W q0).
end
show process #input. #galaxy. &kill. end
Stellogen rays map naturally to GF(3) trits:
| Ray | Trit | Semantic |
|---|---|---|
+ray(X) | +1 | Production/Generation |
-ray(X) | -1 | Consumption/Verification |
ok / neutral | 0 | Balance/Success |
' GF(3) conserved: (-1) + (+1) = 0
spec balanced =
-input(X) +output(f(X)).
' Verification via interaction
show process #data. #balanced. &kill. end
From bmorphism/stellogen-quantum-operads:
' Operad structure
(:= (operad-structure P) {
[(+arity P N) (== N (num-inputs P))]
[(+composition P Q R) (== R (compose-ops P Q))]
[(+associativity P Q R)
(== (compose-ops P (compose-ops Q R))
(compose-ops (compose-ops P Q) R))]
})
' ZX-calculus spiders
(:= (qubit-op Type Phase) {
[(+z-spider Phase) (== Type z-op)]
[(+x-spider Phase) (== Type x-op)]
[(+hadamard) (== Type h-op)]
})
' Bell state preparation
(:= bell-state-prep {
[(+bell-prep) (== Circuit
(compose-ops
(h-op 0)
(cnot 0 1)))]
})
Stellogen implements Lafont's interaction nets:
┌───────┐
│ Agent │ ← Principal port
└───┬───┘
╱ │ ╲
p₁ p₂ p₃ ← Auxiliary ports
Interaction rules: When two principal ports connect, rewrite fires.
' Addition via interaction
spec add =
-add(z Y) +result(Y);
-add(s(X) Y) +add(X s(Y)).
cd /path/to/stellogen
nix develop
dune build
opam pin tsyntax https://github.com/engboris/stellogen.git
# Run stellogen file
dune exec sgen -- examples/nat.sg
# Interactive mode
dune exec sgen -- --interactive
# Just commands (if available)
just stellogen-run file.sg
just stellogen-test
' Church encoding
spec church =
-lam(V B A) +app(lam(V B) A);
-app(lam(V B) A) +subst(V A B).
zero = +lam(f +lam(x +var(x))).
succ = +lam(n +lam(f +lam(x +app(var(f) +app(app(var(n) var(f)) var(x)))))).
' Linear logic: each variable used exactly once
spec linear_lambda =
-lam!(V B) +lin_abs(V B);
-app!(F A) +lin_app(F A);
-var!(X) +lin_var(X).
tm = galaxy
tape = -read(S Pos) +write(S' Pos' State').
halt = -state(halt) done.
end
From GAY.md:
using Gay
# Stellogen repo color
gay_seed!(0x7d202e3bf2aafbb0)
color = color_at(427) # => #c22851
# Verify SPI across stellogen examples
chain = [next_color() for _ in 1:69]
fp = reduce(⊻, [color_to_u64(c) for c in chain])
interaction-nets (-1) ⊗ stellogen (0) ⊗ operad-compose (+1) = 0 ✓
bisimulation-game (-1) ⊗ stellogen (0) ⊗ gay-mcp (+1) = 0 ✓
proofgeneral-narya (-1) ⊗ stellogen (0) ⊗ discopy (+1) = 0 ✓
| Source | Contribution |
|---|---|
| Prolog/Datalog | Unification-based computation |
| Smalltalk | Message-passing, minimalism |
| Coq | Proof-as-program, tactics |
| Scheme/Racket | Metaprogramming |
| Girard | Transcendental syntax, linear logic |
interaction-nets - Lafont's parallel λ-reductionoperad-compose - Colored operad compositiondiscopy - DisCoPy string diagramsgay-mcp - Deterministic color generationproofgeneral-narya - Proof assistant integrationSkill Name: stellogen
Type: Logic-Agnostic Programming / Interaction Nets
Trit: 0 (ERGODIC - mediates between proof and computation)
Repo Color: #c22851
Status: ✅ Available
This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
general: 734 citations in bib.duckdbThis skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: 0 (ERGODIC)
Home: Prof
Poly Op: ⊗
Kan Role: Adj
Color: #26D826
The skill participates in triads satisfying:
(-1) + (0) + (+1) ≡ 0 (mod 3)
This ensures compositional coherence in the Cat# equipment structure.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
stellogen, logic-programming, term-unification, interaction-nets, gf3
Generated from the plugin's indexed repository (plurigrid/asi) — no native marketplace selected
npx claudepluginhub p/plurigrid-asi-plugins-asi1,393 skills in this plugin
/abductive-replHypothesis-Test Loops via REPL for Exploratory Abductive Inference/academic-researchSearch academic papers across arXiv, PubMed, Semantic Scholar, bioRxiv, medRxiv, Google Scholar, and more. Get BibTeX citations, download PDFs, analyze citation networks. Use for literature reviews, finding papers, and academic research./accept-no-substitutesThis skill should be used when agents generate placeholder tokens like "pseudo-", "mock-", "temporary", "TODO", "demo-", or similar incompleteness markers. Detects substitution patterns in agent OUTPUT and triggers mandatory user interview instead of accepting incomplete work. Activates automatically on any output containing forbidden tokens.Other plugins' skills for the same job