All skills
dmccreary avatar

/microsim-utils

@16c7697

Utility tools for MicroSim management including quality validation, screenshot capture, icon management, index page generation, iframe height synchronization, iframe control-visibility testing, visual layout review, and diagram/MicroSim coverage reports across chapters. Routes to the appropriate utility based on the task needed.

Use this Skill: https://skilld.dev/gh/dmccreary/claude-skills/microsim-utils

This session only. Nothing lands on disk.

referencesdiagram-reports.md

≈1.7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Diagram Reports Generator

Formerly the standalone skill diagram-reports-generator.

Overview

This utility automatically generates comprehensive reports of all diagrams and MicroSims in an intelligent textbook by analyzing chapter markdown files. It creates two report files: a table view for quick reference and a detailed view organized by chapter.

When to Use This Utility

Use this utility when:

  • Needing to audit all diagrams and MicroSims across chapters
  • Tracking implementation status of visual elements
  • Analyzing complexity and Bloom's Taxonomy distribution
  • Updating documentation after adding new diagrams or MicroSims
  • Generating reports for instructors or content creators

Workflow

Step 1: Install the Diagram Report Generator Script

If the project does not already have the diagram report generator script, install it from this skill's bundled resources:

  1. Check if src/diagram-reports/diagram-report.py exists in the project
  2. If it doesn't exist:
    • Create the directory: mkdir -p src/diagram-reports
    • Copy the script from this skill's scripts/diagram-report.py to src/diagram-reports/diagram-report.py
  3. If it already exists, verify it's up to date (optionally show the user a diff if there are differences)

Example installation:

mkdir -p src/diagram-reports
cp $BK_HOME/skills/microsim-utils/scripts/diagram-report.py src/diagram-reports/diagram-report.py

Step 2: Verify Project Structure

Before running the report generator, verify the project structure:

  1. Confirm the current working directory is the intelligent textbook project root
  2. Verify docs/chapters/ contains chapter directories (format: 01-chapter-name, 02-chapter-name, etc.)
  3. Ensure docs/learning-graph/ directory exists for output

Step 3: Run the Report Generator

Execute the Python script to generate the reports:

python src/diagram-reports/diagram-report.py

The script will:

  • Scan all chapter directories in docs/chapters/
  • Parse each chapter's index.md file
  • Extract diagram and MicroSim specifications from <details> blocks with "#### Diagram:" headers
  • Analyze each element for:
    • Type (diagram or MicroSim)
    • Status (implementation status if specified)
    • Bloom's Taxonomy levels
    • UI element count
    • Estimated difficulty (Easy, Medium, Hard, Very Hard)
    • Learning objectives

Step 4: Verify Generated Reports

After running the script, verify two files were created in docs/learning-graph/:

  1. diagram-table.md - A sortable table view with columns:

    • Chapter number
    • Element title (with links to chapter sections)
    • Status
    • Type (Diagram/MicroSim)
    • Bloom's Taxonomy levels
    • UI elements count
    • Difficulty rating
  2. diagram-details.md - A detailed view organized by chapter with:

    • Chapter-level summaries
    • Full element descriptions
    • Learning objectives
    • Linked titles to source chapter sections

Step 5: Review Navigation Configuration

The generated reports should already be linked in the MkDocs navigation. Verify the mkdocs.yml file contains these entries under the "Learning Graph" section:

- Learning Graph:
    - Diagrams Table: learning-graph/diagram-table.md
    - Diagrams Details: learning-graph/diagram-details.md

If these entries are missing, add them to the navigation structure.

Step 6: Preview the Reports

To view the generated reports:

  1. Confirm the user is running mkdocs serve (never start it yourself)
  2. Navigate to the "Learning Graph" section
  3. Click on "Diagrams Table" or "Diagrams Details"
  4. Verify all diagrams and MicroSims are properly listed with accurate information

Understanding Report Output

Difficulty Estimation

The script estimates difficulty based on:

  • Element Type: MicroSims start with higher base difficulty
  • UI Complexity: Number of sliders, buttons, dropdowns, and other controls
  • Features: Animation, rotation, 3D/isometric views, real-time calculations
  • Canvas Size: Larger canvases increase complexity

Difficulty levels:

  • Easy: Static diagrams or simple visualizations
  • Medium: Basic interactivity with 1-3 UI elements
  • Hard: Moderate interactivity with 4-6 UI elements or complex features
  • Very Hard: High interactivity with many UI elements or advanced features

Bloom's Taxonomy Detection

The script automatically detects Bloom's Taxonomy levels mentioned in specifications:

  • Remembering
  • Understanding
  • Applying
  • Analyzing
  • Evaluating
  • Creating

Troubleshooting

No Elements Found

If the report shows zero elements:

  • Verify chapter markdown files contain #### Diagram: headers followed by <details> blocks
  • Check that <details> blocks include specification content
  • Run with verbose flag: python src/diagram-reports/diagram-report.py --verbose

Missing Information

If elements are missing type, status, or other fields:

  • Review the <details> block format in chapter files
  • Ensure specifications include **Type:**, **Status:**, and **Learning Objective:** fields
  • The script will infer type from content if not explicitly specified

Broken Links in Reports

If chapter links don't work:

  • Verify chapter directory naming follows the pattern: ##-descriptive-name
  • Check that MkDocs anchor generation matches the script's anchor creation logic
  • Test links by navigating in the served site

Advanced Usage

Custom Output Location

python src/diagram-reports/diagram-report.py --output-dir /path/to/output

Generate CSV Format

python src/diagram-reports/diagram-report.py --format csv

Generate HTML Format

python src/diagram-reports/diagram-report.py --format html

Verbose Output for Debugging

python src/diagram-reports/diagram-report.py --verbose

Integration with Intelligent Textbook Workflow

  1. After content creation: Run this utility after generating or updating chapter content
  2. Before review sessions: Generate reports to identify gaps or inconsistencies
  3. During planning: Use difficulty distribution to balance implementation effort
  4. For documentation: Include reports in instructor guides or project documentation

Bundled Resources

scripts/diagram-report.py

The complete Python script for generating diagram and MicroSim reports lives in this skill's scripts/ directory and is installed into the user's project at src/diagram-reports/diagram-report.py on first use.

The script:

  • Analyzes all chapter markdown files in docs/chapters/
  • Extracts diagram and MicroSim specifications from <details> blocks
  • Calculates difficulty estimates based on UI complexity and features
  • Detects Bloom's Taxonomy levels from specification text
  • Generates both table and detailed report formats
  • Supports multiple output formats (markdown, CSV, HTML)

Source: SKILL.md on GitHub

1 warning14d4 checks · Risk SAFE
  • Gen Agent Trust Hub14d

    The microsim-utils skill is a maintenance tool for managing educational MicroSim documentation. It automates common tasks such as quality auditing, screenshot generation, and file scaffolding. While it involves command execution and processes local project files, it exhibits no malicious behaviors, data exfiltration, or obfuscation.

  • Socket14d

    No alerts

  • Snyk14d

    Risk: LOW · No issues

  • Runlayer7mo

    5/8 files flagged

Signed by skilld at 16c7697. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 20 hours ago.

Activeupdated last month
metadata
{
  "ibook.version": "1.0"
}

README badge

README badge for dmccreary/claude-skills/microsim-utils