Best use case
recursive-string-diagrams is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
recursive-string-diagrams
Teams using recursive-string-diagrams should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/recursive-string-diagrams/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How recursive-string-diagrams Compares
| Feature / Agent | recursive-string-diagrams | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
recursive-string-diagrams
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# recursive-string-diagrams
Recursive random string diagram generation with white trapezoid as the atomic skill primitive.
## Primitives
| Symbol | Name | Meaning |
|--------|------|---------|
| `◁═══▷` | **White Trapezoid** | Skill = morphism with typed ports |
| `∘` | Compose | Sequential skill chaining |
| `⊗` | Tensor | Parallel skill execution |
| `↺` | Trace | Feedback loop / recursion |
## GF(3) Trit Assignment
Each white trapezoid carries a trit:
- **MINUS (-1)**: Constraining/validating skill
- **ERGODIC (0)**: Neutral/transforming skill
- **PLUS (+1)**: Generating/expanding skill
Conservation: `Σ trits ≡ 0 (mod 3)` across diagram
## Usage
```clojure
;; Generate random diagram depth 4
(random-diagram 0 4)
;; Render ASCII
(render-ascii diagram 0)
```
## Example Output
```
⊗ tensor
↺ trace[1]
◁═══▷ [3→2] ergodic
∘ compose
◁═══▷ [2→2] minus
◁═══▷ [3→3] plus
```
## Semantics (Rama Connection)
| String Diagram | Rama Primitive |
|----------------|----------------|
| White Trapezoid | ETL topology |
| Compose (∘) | Depot chain |
| Tensor (⊗) | Parallel PStates |
| Trace (↺) | Recursive query |
## DisCoPy Integration
```python
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)
```
## Skill Creation Protocol
1. **Seed**: White trapezoid with `[inputs → outputs]`
2. **Recurse**: Apply random `{∘, ⊗, ↺}` up to depth
3. **Color**: Assign GF(3) trits, verify conservation
4. **Render**: ASCII or DisCoPy SVG
5. **Save**: Write to `~/.claude/skills/<name>/SKILL.md`
## Related
- `discopy` - String diagram library
- `acsets` - Algebraic databases
- `rama-gay-clojure` - Rama + GF(3) colorsRelated Skills
haskell-diagrams
haskell-diagrams - Declarative Vector Graphics with Diagrams DSL
bmorphism-diagrams
bmorphism Diagrams
zx-calculus
Coecke's ZX-calculus for quantum circuit reasoning via string diagrams with Z-spiders (green) and X-spiders (red)
zulip-cogen
Zulip Cogen Skill 🐸⚡
zls-integration
zls-integration skill
zig
zig skill
zig-syrup-bci
Multimodal BCI pipeline in Zig: DSI-24 EEG, fNIRS mBLL, eye tracking IVT, LSL sync, EDF read/write, GF(3) conservation
zig-programming
zig-programming skill
zeroth-bot
Zeroth Bot - 3D-printed open-source humanoid robot platform for sim-to-real and RL research. Affordable entry point for humanoid robotics.
xlsx
Comprehensive spreadsheet creation, editing, and analysis with support
wycheproof
Google's Wycheproof test vectors for cryptographic implementation testing.
Writing Hookify Rules
This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.