recursive-string-diagrams
/plugin marketplace add plurigrid/asi/plugin install asi-skills@asi-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Recursive random string diagram generation with white trapezoid as the atomic skill primitive.
| Symbol | Name | Meaning |
|---|---|---|
◁═══▷ | White Trapezoid | Skill = morphism with typed ports |
∘ | Compose | Sequential skill chaining |
⊗ | Tensor | Parallel skill execution |
↺ | Trace | Feedback loop / recursion |
Each white trapezoid carries a trit:
Conservation: Σ trits ≡ 0 (mod 3) across diagram
;; Generate random diagram depth 4
(random-diagram 0 4)
;; Render ASCII
(render-ascii diagram 0)
⊗ tensor
↺ trace[1]
◁═══▷ [3→2] ergodic
∘ compose
◁═══▷ [2→2] minus
◁═══▷ [3→3] plus
| String Diagram | Rama Primitive |
|---|---|
| White Trapezoid | ETL topology |
| Compose (∘) | Depot chain |
| Tensor (⊗) | Parallel PStates |
| Trace (↺) | Recursive query |
from discopy import Ty, Box, Diagram
# White trapezoid as Box
skill = Box('skill', Ty('in'), Ty('out'))
# Compose
d1 >> d2
# Tensor
d1 @ d2
# Trace
d.trace(n)
[inputs → outputs]{∘, ⊗, ↺} up to depth~/.claude/skills/<name>/SKILL.mddiscopy - String diagram libraryacsets - Algebraic databasesrama-gay-clojure - Rama + GF(3) colors