Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

dmccrearyот dmccreary★ 115 звёзд на GitHub

Об этом скилле

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.
Полный SKILL.md на GitHub

Установить causal-loop-diagram-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/cld-inline.jsassets/cld-viewer/balancing-loop-ccw.pngassets/cld-viewer/balancing-loop-cw.pngassets/cld-viewer/cld-viewer.jsassets/cld-viewer/examples/ai-flywheel-cld.jsonassets/cld-viewer/examples/runaway-hypothesis-cld.jsonassets/cld-viewer/examples/winner-takes-all-cld.jsonassets/cld-viewer/main.htmlassets/cld-viewer/reinforcing-loop-ccw.pngassets/cld-viewer/reinforcing-loop-cw.pngreferences/article-structure.mdreferences/json-schema.mdreferences/layout-templates.mdreferences/pitfalls.md

FAQ

Что делает скилл 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.

Как установить скилл causal-loop-diagram-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл causal-loop-diagram-generator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить causal-loop-diagram-generator с