explaingit

xiao24bei/xiaobei-skill-image-to-vba

Analysis updated 2026-05-18

32PythonAudience · researcherComplexity · 3/5LicenseSetup · moderate

TLDR

An AI coding agent skill that converts screenshots of academic figures into editable PowerPoint, Excel, or Word objects.

Mindmap

mindmap
  root((Image to VBA))
    What it does
      Converts images to shapes
      Generates VBA macros
      Verifies via render compare
    Tech stack
      Python
      VBA
      AppleScript
    Use cases
      Editable research figures
      Slide reconstruction
      Macro automation
    Audience
      Researchers
      Codex skill users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Turn a screenshot of a research diagram into editable Office shapes instead of a static picture.

USE CASE 2

Rebuild slide figures with editable text, arrows, and tables for reuse in your own PowerPoint file.

USE CASE 3

Verify how closely the generated VBA matches the original image using the render-verify step.

USE CASE 4

Automate PowerPoint macro execution on macOS or Windows through the included scripts.

What is it built with?

PythonVBAAppleScript

How does it compare?

xiao24bei/xiaobei-skill-image-to-vbaautolearnmem/automembilly-ellis/exr-imageio-poc
Stars323232
LanguagePythonPythonPython
Setup difficultymoderatehardmoderate
Complexity3/55/53/5
Audienceresearcherresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Needs Microsoft Office installed locally to run the render-verify accuracy check, WPS may require manual macro steps.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice and state changes.

In plain English

XiaoBei Skill: Image to VBA is an add-on skill for AI coding agents, specifically designed for the OpenAI Codex workflow. Its purpose is to convert a screenshot or photograph of an academic figure, research diagram, or slide into editable Office objects in PowerPoint, Excel, or Word, rather than embedding the original image as a static picture. The approach prioritizes rebuilding visible structure as editable shapes. Text labels, arrows, boxes, tables, chart legends, and coordinate axes are reconstructed as Office Shapes and VBA macro code that recreates them programmatically. Regions that do not translate well into discrete shapes, such as microscope images, complex 3D renders, or logos, are cropped from the source and kept as small raster inserts, with a note in the output identifying them as such. The skill follows a manifest-driven process: it first lists all detected elements and builds a coordinate model before generating any code. This reduces the chance of missing elements or misaligning arrows. A render-verify step is available when Office is installed locally: the skill runs the generated VBA, exports a screenshot, and compares it to the original to measure reconstruction accuracy. Python utility scripts are included for detecting the local Office environment, converting pixel coordinates to the Office shape coordinate system, checking VBA code for common errors before running it, and comparing source and rendered images side by side. Separate scripts handle automating PowerPoint on macOS via AppleScript and on Windows via COM. The README notes that WPS, a common alternative to Microsoft Office, may not run macros automatically, and manual steps are provided for that case. The repository is released under the Apache 2.0 license. It is not affiliated with Microsoft, WPS, or OpenAI.

Copy-paste prompts

Prompt 1
Use xiaobei-skill-image-to-vba to convert this uploaded academic figure into editable Office shapes.
Prompt 2
Walk me through installing this skill into my Codex skills directory.
Prompt 3
Explain how the manifest-driven element detection step works before code generation.
Prompt 4
How does this skill decide which regions to keep as raster crops instead of rebuilt shapes?

Frequently asked questions

What is xiaobei-skill-image-to-vba?

An AI coding agent skill that converts screenshots of academic figures into editable PowerPoint, Excel, or Word objects.

What language is xiaobei-skill-image-to-vba written in?

Mainly Python. The stack also includes Python, VBA, AppleScript.

What license does xiaobei-skill-image-to-vba use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice and state changes.

How hard is xiaobei-skill-image-to-vba to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is xiaobei-skill-image-to-vba for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.