Agent skill

Causal Loop Diagram Generator

by dmccreary in dmccreary/ibook-skills

Creates interactive causal-loop diagram (CLD) articles for MkDocs Material sites.

CC-BY-NC-4.0Auto-check passedDevelopment

Install Causal Loop Diagram Generator

skills CLI
$ npx skills add dmccreary/ibook-skills --skill causal-loop-diagram-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dmccreary/ibook-skills causal-loop-diagram-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dmccreary/ibook-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/archived/causal-loop-diagram-generator .claude/skills/causal-loop-diagram-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
causal-loop-diagram-generator
GitHub stars
105
Token cost
~2.1k tokens
SKILL.md length
916 words
Files
15 (incl. references, assets)
Skills in repo
32
Repo updated
First seen
Licence
CC-BY-NC-4.0

At a glance

Creates interactive causal-loop diagram (CLD) articles for MkDocs Material sites.

  • Works in 5 steps: One JSON file per loop… → One full-system JSON combining all loops… → The article markdown (docs/articles/.md)… → …
  • The user wants to visualize feedback loops
  • SKILL.md covers What the user gets, When to use this skill, High-level workflow and Bundled assets, plus 5 more sections
  • Runs JavaScript scripts from its folder

What it does

Causal Loop Diagram Generator is an agent skill from dmccreary/ibook-skills. 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.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 18 other files, including reference files and assets (for example `assets/cld-inline.js`, `assets/cld-viewer/cld-viewer.js` and `assets/cld-viewer/examples/ai-flywheel-cld.json`).

It sits in Development, covering Diagrams. It works with Mermaid.

When your agent uses it

  • The user wants to visualize feedback loops
  • Systems archetypes (reinforcing/balancing loops
  • Limits to growth
  • Tragedy of the commons)

Example prompts

  • “Use the causal-loop-diagram-generator skill to create interactive causal-loop diagram (CLD) articles for MkDocs Material sites”
  • “/causal-loop-diagram-generator”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. One JSON file per loop (docs/sims/cld-viewer/examples/-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/.md) — progressive build-up, one section per loop, with inline interactive diagrams and a…
  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.

What it can do on your machine

Read from SKILL.md and the folder at commit 98a9991. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Causal Loop Diagram Generator loads about 2.1k tokens when it runs, and up to ~8.6k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 916 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~95
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (CC-BY-NC-4.0) doesn't allow us to republish the file, so here is its outline and opening line. It has 916 words (~2,128 tokens).

“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…”

— opening of SKILL.md by dmccreary, CC-BY-NC-4.0
name
causal-loop-diagram-generator
model
sonnet
license
Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)

Read the full SKILL.md on GitHub

Files

SKILL.md and 14 other files (references, assets) in skills/archived/causal-loop-diagram-generator of dmccreary/ibook-skills.

  • SKILL.md
  • assets/cld-inline.js
  • assets/cld-viewer/balancing-loop-ccw.png
  • assets/cld-viewer/balancing-loop-cw.png
  • assets/cld-viewer/cld-viewer.js
  • assets/cld-viewer/examples/ai-flywheel-cld.json
  • assets/cld-viewer/examples/runaway-hypothesis-cld.json
  • assets/cld-viewer/examples/winner-takes-all-cld.json
  • assets/cld-viewer/main.html
  • assets/cld-viewer/reinforcing-loop-ccw.png
  • assets/cld-viewer/reinforcing-loop-cw.png
  • references/article-structure.md
  • references/json-schema.md
  • references/layout-templates.md
  • references/pitfalls.md

Open the folder on GitHubat commit 98a9991

Compare with similar skills

Causal Loop Diagram Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Causal Loop Diagram Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Causal Loop Diagram Generator this skilldmccreary/ibook-skills105—~2.1kAutomated safety check: PassCC-BY-NC-4.0
Archify Diagramstt-a1i/archify81k—~2.9kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design48k1 repos~7.6kAutomated safety check: PassMIT
Draw.io Diagram StudioAgents365-ai/drawio-skill10k—~2.4kAutomated safety check: NotesMIT
Pretty Mermaid Rendererimxv/Pretty-mermaid-skills1.5k—~2kAutomated safety check: PassMIT
Archify Diagram BuilderUnclecheng-li/AI_Animation1.5k2 repos~4.1kAutomated safety check: PassMIT

Similar skills

  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    81k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    48k GitHub starsUsed in 1 repo~7.6k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 8 days ago
    DevelopmentAuto-check: notes
  • Pretty Mermaid Renderer

    imxv/Pretty-mermaid-skills

    Writes and renders Mermaid diagrams as themed SVG, PNG or terminal ASCII and Unicode art with a bundled Node.js CLI that needs no browser.

    1.5k GitHub stars~2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Archify Diagram Builder

    Unclecheng-li/AI_Animation

    Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.

    1.5k GitHub starsUsed in 2 repos~4.1k tokens
    DevelopmentAuto-check passed
  • Mermaid

    WH-2099/mermaid-skill

    Generate Mermaid diagrams from user requirements. An agent skill from WH-2099/mermaid-skill.

    288 GitHub starsUsed in 4 repos~958 tokens
    DevelopmentAuto-check passed

More from dmccreary/ibook-skills

All 32 skills in this repo
  • Book Publisher

    dmccreary/ibook-skills

    Publishes and promotes a finished intelligent textbook - GitHub README with badges and site statistics, LinkedIn announcement posts, LinkedIn carousel document posts (PPTX/PDF slideshows), and…

    105 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Linkedin Carousel Generator

    dmccreary/ibook-skills

    Generates a 13-slide LinkedIn carousel (a "document post" — PPTX/PDF) that showcases an intelligent textbook's key features, with real screenshots, mascot art, and metrics pulled from the project.

    105 GitHub stars~3.7k tokensUpdated today
    Auto-check passed
  • Add Xapi Events To Microsim

    dmccreary/ibook-skills

    A skill your agent uses when the user wants an existing MicroSim or chapter quiz to record what students do with it.

    105 GitHub stars~5.6k tokensUpdated today
    Auto-check passed
  • Diagram Reports Generator

    dmccreary/ibook-skills

    Generates a status report of all diagrams and MicroSims across an intelligent textbook's chapters, including difficulty, Bloom's level, and UI complexity.

    105 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • DOCX To Web Publisher

    dmccreary/ibook-skills

    Converts .docx files (papers, briefs, reports) into styled React component pages in a Next.js content-catalog site.

    105 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Book Media Generator

    dmccreary/ibook-skills

    Generates media for intelligent textbooks - slide decks and presentations (MARP web decks in docs/slides/ or PowerPoint .pptx lecture downloads), illustrated stories and graphic novels…

    105 GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Causal Loop Diagram Generator

What does Causal Loop Diagram Generator do?

Creates interactive causal-loop diagram (CLD) articles for MkDocs Material sites. Causal Loop Diagram Generator is an agent skill from dmccreary/ibook-skills. Creates interactive causal-loop diagram (CLD) articles for MkDocs Material sites.

When should I use Causal Loop Diagram Generator?

Causal Loop Diagram Generator fits situations like: the user wants to visualize feedback loops; systems archetypes (reinforcing/balancing loops; limits to growth; tragedy of the commons).

How do I install Causal Loop Diagram Generator in Claude Code?

Run `npx skills add dmccreary/ibook-skills --skill causal-loop-diagram-generator -a claude-code`. Or copy the skill folder (skills/archived/causal-loop-diagram-generator in dmccreary/ibook-skills) into .claude/skills/causal-loop-diagram-generator in your project. Claude Code loads it when a task matches its description.

How do I install Causal Loop Diagram Generator in Codex?

Run `npx skills add dmccreary/ibook-skills --skill causal-loop-diagram-generator -a codex`. Or copy the skill folder (skills/archived/causal-loop-diagram-generator in dmccreary/ibook-skills) into .agents/skills/causal-loop-diagram-generator in your project. Codex loads it when a task matches its description.

Can I use Causal Loop Diagram Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dmccreary/ibook-skills --skill causal-loop-diagram-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/causal-loop-diagram-generator, .gemini/skills/causal-loop-diagram-generator, .github/skills/causal-loop-diagram-generator and .opencode/skills/causal-loop-diagram-generator in your project.

What does Causal Loop Diagram Generator need to run?

Going by SKILL.md and its folder, Causal Loop Diagram Generator needs JavaScript for the scripts in its folder. Our summary lists: Node.js.

Does Causal Loop Diagram Generator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Causal Loop Diagram Generator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Causal Loop Diagram Generator use?

Causal Loop Diagram Generator is published under the CC-BY-NC-4.0 licence (declared in SKILL.md).

How many tokens does Causal Loop Diagram Generator use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.5k tokens, read only when the agent opens those files.

What are the alternatives to Causal Loop Diagram Generator?

Skills that share tags, products or a category with Causal Loop Diagram Generator: Archify Diagrams (tt-a1i/archify, 81k stars), Diagram Design (cathrynlavery/diagram-design, 48k stars), Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars) and Pretty Mermaid Renderer (imxv/Pretty-mermaid-skills, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Causal Loop Diagram Generator?

dmccreary (a GitHub user) maintains it in dmccreary/ibook-skills, which has 105 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 9, 2026.

Source: dmccreary/ibook-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.