Skills

Xiaobei Skill Image To Vba

Use when users want XiaoBei skill / xiaobei-skill / 小北在读研 style academic image-to-VBA...

Install

npx skills add xiao24bei/xiaobei-skill --skill xiaobei-skill-image-to-vba -g -a claude-code -y
Category
Documents
Updated
2mo ago
License
Apache-2.0
Context cost
Mediumabout 3,000 tokens
Runs scripts
Yes, review before use

What it does

Use when users want XiaoBei skill / xiaobei-skill / 小北在读研 style academic image-to-VBA reconstruction: convert academic figures, scientific diagrams, slides, screenshots, or other images into VBA, Office drawing code, PowerPoint/Excel/Word shapes, editable shape reconstruction, 1:1 recreation, pixel-like approximation, or hybrid editable Office shape reconstruction.

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 名、属性名(Sub、Shapes.AddShape、Fill.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.

Read the whole SKILL.md on GitHub

More in Documents