Logo di Causal Loop Diagram Generator

Causal Loop Diagram Generator

Community
dmccreary
causal-loop-diagram-generator

Creates interactive causal-loop diagram (CLD) articles for MkDocs Material sites. Use when the user wants to visualize feedback loops, systems archetypes (reinforcing/balancing loops, limits to growth, tragedy of the commons), or any topic with competing runaway and stabilizing dynamics. Produces vis-network diagrams — not static images or Mermaid.

Panoramica

Pubblicato dadmccreary
Repositoryibook-skills
Nome della skillcausal-loop-diagram-generator
Stelle
109
Fork
21
File inclusi
14
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 14

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da dmccreary su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Causal Loop Diagram Generator in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/dmccreary/ibook-skills/tree/main/skills/archived/causal-loop-diagram-generator
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dmccreary/ibook-skills.git /tmp/ibook-skills
mkdir -p .claude/skills
cp -r /tmp/ibook-skills/skills/archived/causal-loop-diagram-generator .claude/skills/causal-loop-diagram-generator
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Causal Loop Diagram Generator in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Causal Loop Diagram Generator non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Causal Loop Diagram Generator non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Causal Loop Diagram Generator

This skill produces a complete, working multi-CLD article for an MkDocs Material site. The output is a set of files that together render an article where each section discusses one feedback loop and shows it as an interactive draggable diagram, building up to a full-system view at the end.

What the user gets

When invoked on a topic (say, "make me a CLD article about supply chain bullwhip"), the skill produces:

  1. One JSON file per loop (docs/sims/cld-viewer/examples/<id>-cld.json) — usually 3–5 nodes each, one per archetype loop in the topic.
  2. One full-system JSON combining all loops around a shared central node.
  3. The article markdown (docs/articles/<slug>.md) — progressive build-up, one section per loop, with inline interactive diagrams and a fullscreen-button per diagram.
  4. The shared infrastructure (docs/articles/cld-inline.js, docs/sims/cld-viewer/) if not already present in the project.
  5. Updated mkdocs.yml nav entries.

Every diagram is a live vis-network instance the reader can drag, zoom, and click to inspect. Not a static image.

When to use this skill

Trigger on requests for any of:

  • "Make a causal loop diagram for X"
  • "Write an article about [the runaway dynamic in X]"
  • "Show the feedback loops in X"
  • "Add a CLD article to my site"
  • A topic that has one or more reinforcing loops competing with balancing ones (AI race, virality, addiction, supply chain bullwhip, market dynamics, climate, organizational dysfunction)

If the user just wants a single quick diagram — not an article — generate just one CLD JSON and embed it inline; skip the article structure.

High-level workflow

  1. Understand the system. Ask clarifying questions if the topic is ambiguous, but a single sentence is usually enough to draft a plausible loop set. List the candidate reinforcing loops (R1, R2, …) and balancing loops (B1, B2, …) before writing any JSON. Show the list to the user and confirm before generating files.

  2. Verify the project layout. Determine the project root (look for mkdocs.yml). Confirm or create:

    • docs/articles/ (article location)
    • docs/sims/cld-viewer/examples/ (CLD JSON location)
    • docs/articles/cld-inline.js (inline renderer)
    • docs/sims/cld-viewer/main.html + cld-viewer.js + the four R/B PNGs (fullscreen viewer)
  3. Port missing assets. Copy the bundled assets from this skill's assets/ directory if any are missing. See the "Bundled assets" section below for the exact file map.

  4. Generate one JSON per loop. Read references/json-schema.md and references/layout-templates.md. Use the 3-node triangle template for simple loops, 4-node diamond for richer ones, hub-and-spoke for the full system.

  5. Write the article. Follow references/article-structure.md — frontmatter, lead, anchor example, R-loops, B-loops, status table, full system, leverage point, signals, bottom line. Required <style> and <script src="../cld-inline.js"> block at the bottom.

  6. Update mkdocs.yml. Add a nav entry for the new article. If cld-viewer/index.md doesn't exist yet, add it under MicroSims.

  7. Read references/pitfalls.md before changing anything in cld-inline.js, cld-viewer.js, or the rendering setup. Nine specific footguns are documented — they each cost real debugging hours to find. The most important one: never use one iframe per inline diagram; both Chrome and Firefox silently fail to render past the 5th–6th iframe on a single page, and there is no client-side workaround.

Bundled assets

Everything you need to install into a fresh project lives in assets/:

assets/
├── cld-inline.js                  # Inline vis-network renderer for article pages.
│                                  # Copy to: docs/articles/cld-inline.js
└── cld-viewer/
    ├── main.html                  # Fullscreen viewer page (used by the iframe
    │                              # buttons in the article). Has menu mode for
    │                              # sample buttons + Save/Copy positions.
    ├── cld-viewer.js              # Fullscreen viewer's JS — loads JSON, renders
    │                              # network, handles drag/zoom/save.
    ├── reinforcing-loop-cw.png    # R/B archetype icons referenced in the
    ├── reinforcing-loop-ccw.png   # systems-thinking schema. Optional but copy
    ├── balancing-loop-cw.png      # them through if the project will use loop
    ├── balancing-loop-ccw.png     # iconography.
    └── examples/
        ├── ai-flywheel-cld.json           # 4-node diamond, single reinforcing loop.
        ├── runaway-hypothesis-cld.json    # 3-node triangle, single reinforcing loop.
        └── winner-takes-all-cld.json      # 17 nodes, 8 loops, hub-and-spoke.
                                           # Use as a model for full-system diagrams.

Reference docs

Loaded as needed, in roughly this order:

  • references/json-schema.md — the CLD JSON format. Read first when generating loops.
  • references/layout-templates.md — coordinate templates for 3-, 4-, 5-node loops and for hub-and-spoke. Read when placing nodes.
  • references/article-structure.md — section-by-section template for the article markdown, including the required <style> + <script> boilerplate. Read when writing the article.
  • references/pitfalls.md — nine documented footguns with symptoms, root causes, and solutions. Read before modifying any rendering code or attempting an iframe-based design.

Default loop count

When the user gives only a topic and asks for "a CLD article," default to:

  • 1 anchor example (the canonical loop everyone agrees on)
  • 3–4 reinforcing loops (the runaway dynamics)
  • 3–4 balancing loops (the constraints)
  • 1 full-system diagram

That's 8–10 diagrams total, matching the reference Winner-Takes-All article. If the topic has fewer real dynamics, scale down — don't pad. If the user asks for "a quick diagram" or "just one loop," produce one CLD JSON and a single inline embed; skip the article scaffolding entirely.

Naming conventions

  • CLD ids: lowercase, hyphenated, ending in -cld. Example: bullwhip-amplification-cld.
  • Article slug: short, hyphenated, descriptive. Example: supply-chain-bullwhip.md.
  • Loop labels: R1: Recursive Self-Improvement, B1: Compute Constraint. Always use R<n> for reinforcing and B<n> for balancing.

What NOT to do

  • Do not embed diagrams as iframes inline in the article. Use <div class="cld-inline"> and the inline renderer. See pitfalls.md #1.
  • Do not use mermaid, ASCII art, or static images for the loops. The whole point of this skill is interactive vis-network diagrams readers can drag.
  • Do not soften the border: 2px solid blue on iframes or .cld-inline divs. It's the project-wide MicroSim standard signaling interactive content. See pitfalls.md #8.
  • Do not modify the global iframe CSS rule in extra.css to "look nicer." Same reason.
  • Do not skip the <script src="../cld-inline.js"> tag at the bottom of the article. Without it, every <div class="cld-inline"> is an empty bordered box.

Confirming with the user

After you've drafted the loop list (step 1) but before generating files, show the user the proposed loop set with one-line descriptions. They almost always have an opinion on which loops to include and what to call them, and it's much cheaper to revise the list than to revise 8 JSON files.

After generating, tell the user the file paths, what mkdocs.yml changes you made, and remind them they can use the cld-viewer's "Save Positions" button to drag nodes into nicer positions and download an updated JSON.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Causal Loop Diagram Generator?

Creates interactive causal-loop diagram (CLD) articles for MkDocs Material sites. Use when the user wants to visualize feedback loops, systems archetypes (reinforcing/balancing loops, limits to growth, tragedy of the commons), or any topic with competing runaway and stabilizing dynamics. Produces vis-network diagrams — not static images or Mermaid.

Perché usare Causal Loop Diagram Generator su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Causal Loop Diagram Generator è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Causal Loop Diagram Generator in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/dmccreary/ibook-skills/tree/main/skills/archived/causal-loop-diagram-generator. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Causal Loop Diagram Generator?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Causal Loop Diagram Generator?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Causal Loop Diagram Generator: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Causal Loop Diagram Generator è gratuita?

È pubblicata su GitHub da dmccreary. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇