/asi:rama-gay-clojurefrom asi
Adds Gay.jl 3-color deterministic streams to Rama backends for visual debugging, distributed tracing, and S-expression tracking.
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.
"Build end-to-end backends at any scale in 100x less code — with deterministic color streams."
Rama is a new programming platform by Nathan Marz (creator of Storm) that:
This skill adds Gay.jl 3-color streams for:
┌─────────────────────────────────────────────────────────────────┐
│ RAMA DEPOT (Ingestion) │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Shard 0 │ │ Shard 1 │ │ Shard 2 │ │
│ │ trit=-1 │ │ trit=0 │ │ trit=+1 │ │
│ │ #2E86AB │ │ #7CB518 │ │ #FF6B6B │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ │
│ │ │ │ │
│ └─────────────┴─────────────┘ │
│ │ │
│ ┌─────────────▼─────────────┐ │
│ │ TOPOLOGY (Processing) │ │
│ │ Gay.jl color streams │ │
│ └─────────────┬─────────────┘ │
│ │ │
│ ┌─────────────▼─────────────┐ │
│ │ PSTATE (Indexing) │ │
│ │ Deterministic colors │ │
│ └───────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
Map S-expression nesting depth to Gay.jl colors for visual parsing:
(ns rama.gay-parens
(:require [com.rpl.rama :as rama]))
(def GOLDEN 0x9E3779B97F4A7C15)
(defn depth-color [seed depth]
(let [child-seed (bit-xor seed (* depth GOLDEN))]
(color-at child-seed 1)))
;; Visualize module definition
(rama/module TodoModule [setup topologies]
;; │depth 0: #FF6B6B (warm)│
(declare-depot setup *todo-depot :random)
;; │depth 1: #7CB518 (neutral)│
(declare-pstate topologies $$todos {Long (rama/map-schema Long String)})
;; │depth 2: #2E86AB (cold)│
(<<sources topologies
;; │depth 1│
(source> *todo-depot :> %task)
;; │depth 2│
(local-transform> [(keypath %user-id %todo-id) (termval %text)]
;; │depth 3: deterministic by seed + depth│
$$todos)))
Gay colors provide tensor-like shape annotations for Rama data flows:
;; Shape: [batch, users, todos]
;; Color: Trit stream ensures shape consistency
(defn shape-annotated-query
"Query with Gay-colored shape validation."
[depot-client seed]
(let [;; Shape dimension 1: batch (trit=-1)
batch-color (color-at seed 0)
;; Shape dimension 2: users (trit=0)
users-color (color-at seed 1)
;; Shape dimension 3: todos (trit=+1)
todos-color (color-at seed 2)]
{:shape [:batch :users :todos]
:colors [batch-color users-color todos-color]
:gf3-sum (+ -1 0 1) ;; = 0, conserved
:query (rama/query depot-client ...)}))
For the 10k LOC Twitter-scale Mastodon:
(ns mastodon.gay-trace
(:require [com.rpl.rama :as rama]
[music-topos.splitmix :refer [color-at GOLDEN]]))
;; Trace a post through the fanout
(defn trace-post-fanout
"Color-trace a post to all followers."
[post-id author-id followers seed]
(let [;; Author gets warm color (trit=+1)
author-color (color-at seed 0)
;; Each follower gets deterministic color
follower-colors (for [i (range (count followers))]
(color-at (bit-xor seed (* (inc i) GOLDEN)) 1))]
{:post-id post-id
:author {:id author-id :color author-color :trit 1}
:fanout (map-indexed
(fn [i f]
{:follower-id f
:color (nth follower-colors i)
:trit (- (mod i 3) 1)})
followers)
:total-fanout (count followers)
;; Average 403 fanout from Mastodon clone demo
:scale-factor 403}))
Like jaxtyping for tensor shapes, use Gay colors for Rama data shapes:
;; Inspired by jaxtyping: Float[Tensor, "batch channels"]
;; We define: Gay[PState, "users todos -1:0:+1"]
(defmacro defpstate-typed
"Define PState with Gay.jl shape annotations."
[name schema shape-spec]
(let [trits (parse-trit-spec shape-spec)]
`(do
(declare-pstate ~name ~schema)
(def ~(symbol (str name "-shape"))
{:schema '~schema
:trits ~trits
:gf3-conserved (zero? (mod (reduce + ~trits) 3))}))))
;; Usage
(defpstate-typed $$user-todos
{Long (rama/map-schema Long String)}
"users:+1 todos:-1 text:0")
;; => {:schema {...}, :trits [1 -1 0], :gf3-conserved true}
Combine Rama backends with Simulflow voice agents:
(ns rama.simulflow-gay
(:require [com.rpl.rama :as rama]
[simulflow.frame :as frame]
[music-topos.splitmix :refer [color-at]]))
(defn voice-query-handler
"Handle voice queries to Rama with color-coded responses."
[rama-cluster seed]
(fn [transcript-frame]
(let [query-text (:frame/data transcript-frame)
result (rama/query rama-cluster ...)
response-color (color-at seed (:timestamp transcript-frame))]
(frame/speak-frame
{:text (format-result result)
:color response-color
:trit (hue-to-trit (:H response-color))}))))
just rama-demo # Run Rama demo with colors
just rama-mastodon-trace # Trace Mastodon fanout
just rama-gay-shapes # Show shape annotations
just rama-simulflow # Voice-enabled Rama
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
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