From asi
Interleaves contextually selected Mermaid diagrams from a bmorphism DuckDB database into conversations on architecture, protocols, data models, skill dependencies, and for random inspiration using GF(3) trit balancing.
npx claudepluginhub plurigrid/asi --plugin asiThis skill uses the workspace's default tool permissions.
Interleave bmorphism's mermaid diagrams into interactions using GF(3) triadic selection.
Guides creation of syntactically valid Mermaid diagrams for product docs like PRDs, specs, roadmaps, and presentations. Covers type selection for communication needs and syntax rules across 15 types.
Guides creation of syntactically correct Mermaid diagrams including flowcharts, sequence diagrams, class diagrams, state diagrams, Gantt charts, ER diagrams, and data lineage visualizations.
Provides Mermaid syntax reference for 23 diagram types including flowcharts, sequences, ER, Gantt, C4, mindmaps, timelines, plus node shapes, styling, theming, configs, and rendering errors.
Share bugs, ideas, or general feedback.
Interleave bmorphism's mermaid diagrams into interactions using GF(3) triadic selection.
~/mermaid_diagrams.duckdb
├── diagrams (251 rows)
│ ├── id: UUID
│ ├── content: VARCHAR (mermaid code)
│ ├── diagram_type: VARCHAR (graph|flowchart|stateDiagram|...)
│ ├── trit: INTEGER (-1, 0, +1)
│ └── content_hash: VARCHAR
| Type | Count | Use Case |
|---|---|---|
| graph | 126 | Dependency/skill relationships |
| flowchart | 47 | Process flows, architectures |
| stateDiagram | 8 | State machines, protocols |
| sequenceDiagram | 6 | Message passing, APIs |
| classDiagram | 6 | Type hierarchies |
| pie | 2 | Distribution stats |
| erDiagram | 1 | Data models |
# Get random diagram by trit
duckdb ~/mermaid_diagrams.duckdb "
SELECT content FROM diagrams
WHERE trit = (SELECT (random() * 3 - 1)::int % 3)
ORDER BY random() LIMIT 1
"
# Match diagram type to context
duckdb ~/mermaid_diagrams.duckdb "
SELECT content FROM diagrams
WHERE diagram_type = 'flowchart'
ORDER BY random() LIMIT 1
"
# Get one diagram per trit for balanced presentation
duckdb ~/mermaid_diagrams.duckdb "
(SELECT content, trit FROM diagrams WHERE trit = -1 ORDER BY random() LIMIT 1)
UNION ALL
(SELECT content, trit FROM diagrams WHERE trit = 0 ORDER BY random() LIMIT 1)
UNION ALL
(SELECT content, trit FROM diagrams WHERE trit = 1 ORDER BY random() LIMIT 1)
"
Interleave a bmorphism diagram when:
Use the mermaid tool to render selected diagrams:
mermaid(code=DIAGRAM_CONTENT, citations={})
# 1. Query a contextual diagram
DIAGRAM=$(duckdb ~/mermaid_diagrams.duckdb -noheader -list "
SELECT content FROM diagrams
WHERE diagram_type = 'flowchart'
AND content LIKE '%GF(3)%'
ORDER BY random() LIMIT 1
")
# 2. Render via mermaid tool
# mermaid(code=$DIAGRAM, citations={})
Diagrams inherit trits from content analysis:
duckdb ~/mermaid_diagrams.duckdb "
SELECT
diagram_type,
COUNT(*) as count,
SUM(CASE WHEN trit = -1 THEN 1 ELSE 0 END) as minus,
SUM(CASE WHEN trit = 0 THEN 1 ELSE 0 END) as ergodic,
SUM(CASE WHEN trit = 1 THEN 1 ELSE 0 END) as plus
FROM diagrams
GROUP BY diagram_type
ORDER BY count DESC
"
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.