attach-image

GitHub

将本地图片加载至模型上下文,使具备视觉能力的模型能直接“看”到截图、图表等图像内容。适用于需要感知图像视觉信息的场景,不支持程序化像素处理。

packages/coding-agent/skills/attach-image/SKILL.md PrimeIntellect-ai/prime-agent

Trigger Scenarios

用户指定图片文件需查看 需从图像中读取文本或图表布局 需对截图进行视觉解读

Install

npx skills add PrimeIntellect-ai/prime-agent --skill attach-image -g -y
More Options

Non-standard path

npx skills add https://github.com/PrimeIntellect-ai/prime-agent/tree/main/packages/coding-agent/skills/attach-image -g -y

Use without installing

npx skills use PrimeIntellect-ai/prime-agent@attach-image

指定 Agent (Claude Code)

npx skills add PrimeIntellect-ai/prime-agent --skill attach-image -a claude-code -g -y

安装 repo 全部 skill

npx skills add PrimeIntellect-ai/prime-agent --all -g -y

预览 repo 内 skill

npx skills add PrimeIntellect-ai/prime-agent --list

SKILL.md

Frontmatter
{
    "name": "attach-image",
    "description": "Load an on-disk image (PNG, JPEG, GIF, WebP) into the model's context as a viewable attachment so the model can directly SEE it — for screenshots, diagrams, charts, photos, or scanned pages. Use this when you need to perceive an image's visual contents. Requires a vision-capable model; errors clearly otherwise."
}

Attach Image

Load on-disk images into the model's context as multimodal attachments. The image is sent to the model the same way a pasted image is, so the model can actually look at it.

When to use this

  • The user points at an image file and wants you to look at it.
  • You need to read text, a chart, a diagram, or a layout from an image.
  • A screenshot needs visual interpretation.

When NOT to use this

For programmatic work on an image — measuring pixels, cropping, resizing, computing a hash, comparing files byte-by-byte — open it in the kernel with a library instead:

from PIL import Image
img = Image.open("diagram.png")
print(img.size)

That path does not put the image in the model's context; it only lets you compute over it. Use attach_image when you need to see the image.

Usage

Call the prepared attach_image import directly in the Python kernel:

print(await attach_image("diagram.png"))
print(await attach_image("a.png", "b.jpg"))

The skill automatically resizes and compresses large images before loading them into context. Animated images that need compression are flattened to their first frame. Transparent images that need compression are composited onto a neutral gray background. Extremely large images are rejected by pixel count before full processing. The original file is left untouched.

Supported formats: PNG, JPEG, GIF, WebP. The skill errors if a file is not a supported image, or if the current model is not vision-capable.

Version History

  • bc0fa76 Current 2026-08-27 09:01

Same Skill Collection

packages/coding-agent/skills/agent-message/SKILL.md
packages/coding-agent/skills/agent-observe/SKILL.md
packages/coding-agent/skills/compact/SKILL.md
packages/coding-agent/skills/edit/SKILL.md
packages/coding-agent/skills/goal/SKILL.md
packages/coding-agent/skills/linear/SKILL.md
packages/coding-agent/skills/notion/SKILL.md
packages/coding-agent/skills/prime-intellect/SKILL.md
packages/coding-agent/skills/refine/SKILL.md
packages/coding-agent/skills/rlm-heartbeat/SKILL.md
packages/coding-agent/skills/skill-creator/SKILL.md
packages/coding-agent/skills/websearch/SKILL.md
packages/coding-agent/examples/extensions/dynamic-resources/SKILL.md

Metadata

Files
0
Version
bc0fa76
Hash
0939d6ec
Indexed
2026-08-27 09:01

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 15:04
浙ICP备14020137号-1 $Map of visitor$