xiaobei-skill-image-to-vba

xiaobei-skill-image-to-vba is a skill for Codex from xiao24bei/xiaobei-skill. It costs 86 tokens per session (7,203 once invoked), scanned A, original, Apache-2.0.

An image-to-VBA skill that converts academic figures, diagrams, screenshots, and slides into Office drawing code and editable shapes. VBA is the programming language built into Microsoft Office.

In plain words
What is it for?
It is for recreating scientific figures and other visuals in PowerPoint, Excel, or Word, using shapes and selected image crops where needed.
Why use it?
It helps turn a flat image into a reusable Office reconstruction that can be edited through shapes and code.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit It is for recreating scientific figures and other visuals in PowerPoint, Excel, or Word, using shapes and selected image crops where needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiao24bei/xiaobei-skill/xiaobei-skill-image-to-vba
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xiao24bei/xiaobei-skill --skill xiaobei-skill-image-to-vba
Clone the repo
git clone --depth 1 https://github.com/xiao24bei/xiaobei-skill

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xiaobei-skill-image-to-vba

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiao24bei/xiaobei-skill/xiaobei-skill-image-to-vba/github.svg)](https://agentmods.dev/skills/xiao24bei/xiaobei-skill/xiaobei-skill-image-to-vba)
Your own site
<a href="https://agentmods.dev/skills/xiao24bei/xiaobei-skill/xiaobei-skill-image-to-vba"><img src="https://agentmods.dev/badge/skills/xiao24bei/xiaobei-skill/xiaobei-skill-image-to-vba/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xiaobei-skill-image-to-vba

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiao24bei/xiaobei-skill/xiaobei-skill-image-to-vba"><img src="https://agentmods.dev/badge/skills/xiao24bei/xiaobei-skill/xiaobei-skill-image-to-vba.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,203 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 37
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.07203
Opus 5 $0.00043 $0.03601
Sonnet 5 $0.00017 $0.01441
Haiku 4.5 $0.00009 $0.00720

Measured 12d ago against content hash a81992bdb869, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

xiaobei-skill-image-to-vba scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/compare_images.py, scripts/coordinate_helper.py, scripts/crop_preserved_elements.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/xiaobei-skill-image-to-vba/SKILL.md · 369 lines

How it starts

The opening of the file, as written. The whole thing — 369 lines — stays where its author put it; the contents beside it link to each section on GitHub.

XiaoBei Image to VBA

小北在读研出品的 academic image-to-vba reconstruction skill. The workflow focuses on editable Office Shapes first, with carefully labeled raster crops only when complex scientific artwork should be preserved.

Output Language

All analysis, manifest tables, self-check reports, run reports, and conversational responses produced by this skill MUST be written in Simplified Chinese (简体中文). This includes:

  • 视觉拆解、元素清单、坐标说明、自检结论、运行报告、给用户的最终回复。
  • VBA 代码内的注释也使用中文(例如 ' 标题区域背景),便于用户后续维护。

仅以下内容保留英文原样,不要翻译:

  • VBA 关键字、API 名、属性名(SubShapes.AddShapeFill.ForeColor.RGB 等)。
  • 形状名前缀 AITVBA_ 与脚本路径、文件名。
  • 颜色十六进制值与 RGB(...) 调用本身。

如果用户在对话里明确要求换成英文或其它语言,则按用户指定的语言输出,但 manifest 字段名仍保留英文 key 以便机器解析。

Purpose

Convert a reference image into a complete, runnable Office VBA macro that reconstructs the visual using editable Shapes, TextBoxes, Lines, Freeforms, fills, gradients, transparency, shadows, and ZOrder. When the image contains complex, distinctive graphic elements that would become noisy or low-value if rebuilt as hundreds of shapes, preserve those elements as cropped local image assets and reconstruct the surrounding structure with editable VBA Shapes. The core loop is: image -> environment detection -> visual decomposition -> editable-vs-preserved element plan -> Office coordinate model -> VBA Shapes code and cropped assets -> run or prepare the macro in the available presentation app -> self-check -> iterative correction.

Prefer editable Office Shapes for structure, labels, arrows, boxes, chart scaffolds, and readable text. Preserve complex graphic elements only as local cropped assets when that improves fidelity and keeps the VBA maintainable. Do not embed the full source image as a shortcut unless the user explicitly permits it or chooses the background-image-assisted option for complex photos. A PNG/JPEG/PDF preview is never the final deliverable for this skill; it is only allowed as a diagnostic screenshot after an editable Office reconstruction has been produced or attempted.

Read the full file on GitHub · 369 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 369 lines · 86 tokens per session scan A a81992bdb869

Subscribe to this mod's changes

xiaobei-skill-image-to-vba is a skill published in the GitHub repository xiao24bei/xiaobei-skill (346 stars, last pushed 15d ago), licensed Apache-2.0. It adds 86 tokens to every session and 7,203 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

polish-sci-figures

A final review and preparation workflow for scientific figures, including charts, image panels, manuscripts, slides, and posters.

zhoy0409-debug/polish-sci-figures · 102 tokens

make-sci-data-figures

A workbench for turning raw CSV, TSV, or Excel tables into defensible scientific figures. It chooses charts based on the biological question and data structure rather than assuming one chart type fits every dataset.

zhoy0409-debug/polish-sci-figures · 90 tokens

standardize-sci-images

Scientific image standardization for microscopy, fluorescence, histology, pathology, and electron-microscopy image batches. Use when the user has raw or derived scientific raster images needing non-destructive processing, locked tone settings, equal dimensions, calibrated scale bars, manifests, montages, or image…

zhoy0409-debug/polish-sci-figures · 83 tokens

thesis-defense-pptx

Create, polish, and quality-check editable undergraduate or graduate thesis defense PowerPoint decks from a local thesis PDF/LaTeX project and an existing PPTX template. Use when the user asks for a formal defense PPT, thesis presentation, academic答辩PPT, template-matched PPTX, or local PowerPoint deck generation with…

zouchenzhen/thesis-defense-pptx-skill · 77 tokens

ppt-image-first

A workflow for planning presentations and slide decks through conversation, with visual previews created before the final deck. It covers content, visual direction, page layouts, and review.

NyxTides/ppt-image-first · 91 tokens

ian-handdrawn-ppt

A workflow for creating finished Chinese hand-drawn technical page images from articles, notes, documents, scripts, or rough ideas.

helloianneo/ian-handdrawn-ppt · 133 tokens