Microsim Generator logo

Microsim Generator

Community
ynulihao
microsim-generator

Creates interactive educational MicroSims using the best-matched JavaScript library (p5.js, Chart.js, Plotly, Mermaid, vis-network, vis-timeline, Leaflet, Venn.js). Analyzes user requirements to route to the appropriate visualization type and generates complete MicroSim packages with HTML, JavaScript, CSS, documentation, and metadata.

Overview

Publisherynulihao
RepositoryAgentSkillOS
Skill namemicrosim-generator
Stars
612
Forks
76
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ynulihao on GitHub. Read the source before you install it.

Installation

Install the Microsim Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ynulihao/AgentSkillOS.git /tmp/AgentSkillOS
mkdir -p .claude/skills
cp -r /tmp/AgentSkillOS/data/skill_seeds/microsim-generator .claude/skills/microsim-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Microsim Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Microsim Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Microsim Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

MicroSim Generator

Overview

This meta-skill routes MicroSim creation requests to the appropriate specialized generator based on visualization requirements. It consolidates 13 individual MicroSim generator skills into a single entry point with on-demand loading of specific implementation guides.

When to Use This Skill

Use this skill when users request:

  • Interactive educational visualizations
  • Data visualizations (charts, graphs, plots)
  • Timelines or chronological displays
  • Geographic/map visualizations
  • Network diagrams or concept maps
  • Flowcharts or workflow diagrams
  • Mathematical function plots
  • Set diagrams (Venn)
  • Priority matrices or bubble charts
  • Custom simulations or animations
  • Comparison tables with ratings

Step 1: Analyze Request and Match Generator

Scan the user's request for trigger keywords and match to the appropriate generator guide.

Quick Reference Routing Table

Trigger KeywordsGuide FileLibrary
timeline, dates, chronological, events, history, schedule, milestonesreferences/timeline-guide.mdvis-timeline
map, geographic, coordinates, latitude, longitude, locations, markersreferences/map-guide.mdLeaflet.js
function, f(x), equation, plot, calculus, sine, cosine, polynomialreferences/plotly-guide.mdPlotly.js
network, nodes, edges, graph, dependencies, concept map, knowledge graphreferences/vis-network-guide.mdvis-network
flowchart, workflow, process, state machine, UML, sequence diagramreferences/mermaid-guide.mdMermaid.js
venn, sets, overlap, intersection, union, categoriesreferences/venn-guide.mdCustom
chart, bar, line, pie, doughnut, radar, statistics, datareferences/chartjs-guide.mdChart.js
bubble, priority, matrix, quadrant, impact vs effort, risk vs valuereferences/bubble-guide.mdChart.js
causal, feedback, loop, systems thinking, reinforcing, balancingreferences/causal-loop-guide.mdvis-network
comparison, table, ratings, stars, side-by-side, featuresreferences/comparison-table-guide.mdCustom
animation, celebration, particles, confetti, effectsreferences/celebration-guide.mdp5.js
custom, simulation, physics, interactive, bouncing, movement, p5.jsreferences/p5-guide.mdp5.js

Decision Tree

Has dates/timeline/chronological events?
  → YES: timeline-guide.md

Has geographic coordinates/locations?
  → YES: map-guide.md

Mathematical function f(x) or equation?
  → YES: plotly-guide.md

Nodes and edges/network relationships?
  → YES: vis-network-guide.md (or causal-loop-guide.md if systems thinking)

Flowchart/workflow/process diagram?
  → YES: mermaid-guide.md

Sets with overlaps (2-4 categories)?
  → YES: venn-guide.md

Priority matrix/2x2 quadrant/multi-dimensional?
  → YES: bubble-guide.md

Standard chart (bar/line/pie/radar)?
  → YES: chartjs-guide.md

Comparison table with ratings/stars?
  → YES: comparison-table-guide.md

Celebration/particles/visual feedback?
  → YES: celebration-guide.md

Custom simulation/animation/physics?
  → YES: p5-guide.md

Step 2: Load the Matched Guide

Once you identify the best generator, read the corresponding guide file from the references/ directory and follow its workflow.

Example:

  • User asks for "a timeline showing the history of Unix"
  • Match: timeline keyword → Load references/timeline-guide.md
  • Follow the timeline-guide.md workflow

Step 3: Execute Generator Workflow

Each guide contains:

  1. Library-specific requirements
  2. Directory structure to create
  3. Step-by-step implementation workflow
  4. Code templates and patterns
  5. Best practices for that visualization type

Handling Ambiguous Requests

If the request could match multiple generators:

  1. Read references/routing-criteria.md for detailed scoring methodology
  2. Score top 3 candidates using the 0-100 scale
  3. Present options to user with reasoning:
    Based on your request, I recommend:
    1. [Generator A] (Score: 85) - Best for [reason]
    2. [Generator B] (Score: 70) - Alternative if you need [feature]
    3. [Generator C] (Score: 55) - Possible if [condition]
    
    Which would you prefer?
  4. Proceed with user's selection

Common Ambiguities

Ambiguous TermClarification Needed
"graph"Chart (ChartJS) or Network graph (vis-network)?
"diagram"Structural (Mermaid), Network (vis-network), or Custom (p5)?
"map"Geographic (Leaflet) or Concept map (vis-network)?
"visualization"What type of data? What interaction needed?

Available Generators

Primary Generators

GeneratorLibraryBest For
p5-guidep5.jsCustom simulations, physics, animations
chartjs-guideChart.jsBar, line, pie, doughnut, radar charts
timeline-guidevis-timelineChronological events, history, schedules
map-guideLeaflet.jsGeographic data, locations, routes
vis-network-guidevis-networkNetwork graphs, dependencies, concept maps
mermaid-guideMermaid.jsFlowcharts, workflows, UML diagrams
plotly-guidePlotly.jsMathematical function plots
venn-guideCustomSet relationships (2-4 sets)
bubble-guideChart.jsPriority matrices, multi-dimensional data
causal-loop-guidevis-networkSystems thinking, feedback loops
comparison-table-guideCustomSide-by-side comparisons with ratings
celebration-guidep5.jsParticle effects, visual feedback

Shared Standards

All MicroSims follow these standards regardless of generator:

Directory Structure:

docs/sims/<microsim-name>/
├── main.html       # Main visualization file
├── index.md        # Documentation page
├── *.js or *.css   # Supporting files
└── metadata.json   # Dublin Core metadata (optional)

Integration:

  • Embedded via iframe in MkDocs pages
  • Width-responsive design
  • Non-scrolling iframe container
  • Standard height: drawHeight + controlHeight + 2px

Quality Checklist:

  • Runs without errors in modern browsers
  • Responsive to container width
  • Controls respond immediately
  • Educational purpose is clear
  • Code is well-commented

Examples

Example 1: Timeline Request

User: "Create a timeline showing key events in computer history" Routing: Keywords "timeline", "events", "history" → references/timeline-guide.md Action: Read timeline-guide.md and follow its workflow

Example 2: Chart Request

User: "Make a bar chart comparing programming language popularity" Routing: Keywords "bar chart", "comparing" → references/chartjs-guide.md Action: Read chartjs-guide.md and follow its workflow

Example 3: Custom Simulation

User: "Build an interactive bouncing ball simulation" Routing: Keywords "interactive", "bouncing", "simulation" → references/p5-guide.md Action: Read p5-guide.md and follow its workflow

Example 4: Ambiguous Request

User: "Create a graph of our project dependencies" Routing: "graph" + "dependencies" suggests network → references/vis-network-guide.md Action: Read vis-network-guide.md (but clarify if user meant a chart)

Reference Files

For detailed information, consult:

  • references/routing-criteria.md - Complete scoring methodology for all generators
  • references/<generator>-guide.md - Specific implementation guide for each generator
  • assets/templates/ - Shared templates and patterns

mkdocs.yml Integration

After creating a MicroSim, add it to the site navigation:

yaml
nav:
  - MicroSims:
    - List of MicroSims: sims/index.md
    - Existing Sim: sims/existing-sim/index.md
    - New MicroSim: sims/new-microsim-name/index.md  # Add here

Frequently asked questions

What does the Microsim Generator AI skill do?

Creates interactive educational MicroSims using the best-matched JavaScript library (p5.js, Chart.js, Plotly, Mermaid, vis-network, vis-timeline, Leaflet, Venn.js). Analyzes user requirements to route to the appropriate visualization type and generates complete MicroSim packages with HTML, JavaScript, CSS, documentation, and metadata.

Why use Microsim Generator on TypingMind?

Because you install it once and use it with any model. Microsim Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Microsim Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ynulihao/AgentSkillOS/tree/main/data/skill_seeds/microsim-generator. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Microsim Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Microsim Generator?

As many as you like. As long as a model supports skills, you can use Microsim Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Microsim Generator AI skill free?

It is published on GitHub by ynulihao. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇