一键导入
attach-plot-image
Attach a photo of a plotted artwork to a plot example, resize it, generate thumbnail, and update the README with a description.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Attach a photo of a plotted artwork to a plot example, resize it, generate thumbnail, and update the README with a description.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | attach-plot-image |
| description | Attach a photo of a plotted artwork to a plot example, resize it, generate thumbnail, and update the README with a description. |
| argument-hint | <plot-number> <image-path> |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
Attach a photo to plot example $ARGUMENTS[0] from the image at $ARGUMENTS[1].
If no image path is provided as second argument, search for the image in common locations:
~/Library/CloudStorage/GoogleDrive-*/My Drive/Check that plots/examples/$ARGUMENTS[0]/main.rs and plots/examples/$ARGUMENTS[0]/README.md exist.
Resize the source image to 1400px on the longest side, quality 90, and save to:
public/images/plots/$ARGUMENTS[0].jpg
Use ImageMagick:
magick "$SOURCE" -resize 1400x1400\> -quality 90 "public/images/plots/$ARGUMENTS[0].jpg"
Verify the result is reasonable (typically 400-900KB for plot images).
Generate a 512x512 max thumbnail:
magick "public/images/plots/$ARGUMENTS[0].jpg" -resize 512x512\> "public/images/plots/$ARGUMENTS[0]-thumbnail.jpg"
Ensure the README.md frontmatter has:
image: /images/plots/$ARGUMENTS[0].jpgdescription: field in the frontmatter (one-line summary)Read the main.rs to understand the algorithm, then write a short body description (2-3 sentences) after the frontmatter --- explaining:
Show the final README content and image file sizes to the user for confirmation.