Agent Skillsxuiltul/animaworks › image-posting

image-posting

GitHub

指导Agent在聊天回复中嵌入图片,包括自动提取工具结果中的图片URL、使用Markdown语法展示图片及截图保存路径规范。

templates/en/common_skills/image-posting/SKILL.md xuiltul/animaworks

Trigger Scenarios

需要展示搜索结果或生成结果中的图片 需要在回复中使用Markdown格式插入图片 处理包含图片链接的工具输出

Install

npx skills add xuiltul/animaworks --skill image-posting -g -y
More Options

Non-standard path

npx skills add https://github.com/xuiltul/animaworks/tree/main/templates/en/common_skills/image-posting -g -y

Use without installing

npx skills use xuiltul/animaworks@image-posting

指定 Agent (Claude Code)

npx skills add xuiltul/animaworks --skill image-posting -a claude-code -g -y

安装 repo 全部 skill

npx skills add xuiltul/animaworks --all -g -y

预览 repo 内 skill

npx skills add xuiltul/animaworks --list

SKILL.md

Frontmatter
{
    "name": "image-posting",
    "description": "Skill for embedding images in chat replies: URL detection from tool results, Markdown image syntax, and assets paths. Use when: surfacing images from search or generation tools, pasting Markdown images, or showing attachments."
}

image-posting — Displaying Images in Chat Responses

Overview

There are two ways to include images in chat responses:

  1. Auto-extraction from tool results — When tool results contain image URLs or paths, the framework auto-detects and displays them in the chat bubble
  2. Markdown image syntax — Write ![alt](url) in response text for frontend rendering

Method 1: Auto-Display from Tool Results

When a tool (web_search, image_gen, etc.) returns results containing image information, the framework automatically displays images in the chat bubble. No special action needed.

Auto-Detection Rules

The following patterns in tool result JSON are detected as images:

  • Path detection: Paths starting with assets/ or attachments/source: generated (trusted)
  • URL detection: URLs starting with https:// ending in .png .jpg .jpeg .gif .webpsource: searched (proxied)
  • Key detection: Values under image_url, thumbnail, src, url keys with image URLs

Up to 5 images per response.

Proxy Restrictions for Searched Images

External URL images are served through a security proxy. Allowed domains:

  • cdn.search.brave.com
  • images.unsplash.com
  • images.pexels.com
  • upload.wikimedia.org

Image URLs from other domains are blocked by the proxy.

Method 2: Markdown Image Syntax

Write Markdown image syntax directly in response text to display images.

Short Paths (Recommended)

The frontend automatically prepends the API path with your Anima name. Just write the filename:

![description](attachments/filename)
![description](assets/filename)

Example:

Here's a screenshot!
![ANA Top Page](attachments/ana_top.png)

Full Paths

You can also write the full API path explicitly:

![description](/api/animas/{your_name}/assets/{filename})
![description](/api/animas/{your_name}/attachments/{filename})

Saving Screenshots

When taking screenshots with agent-browser, save directly to your own attachments directory:

agent-browser screenshot ~/.animaworks/animas/{your_name}/attachments/screenshot.png

Example (for aoi):

agent-browser screenshot ~/.animaworks/animas/aoi/attachments/page_screenshot.png

Then include in your response:

![Page screenshot](attachments/page_screenshot.png)

Files saved to ~/.animaworks/tmp/attachments/ will also work via fallback, but the temp directory does not guarantee persistence.

Notes

  • Cannot directly reference other Animas' asset paths (no permission)
  • Direct external URL linking is discouraged; only proxy-allowed domains are displayed
  • Image generation tool results (generate_fullbody, etc.) are auto-displayed — no Markdown syntax needed
  • Auto-display is capped at 5 images per response

Version History

  • 140e43b Current 2026-07-25 09:12

Same Skill Collection

.claude/skills/pixel-asset-gen/SKILL.md
templates/en/common_skills/agent-browser/SKILL.md
templates/en/common_skills/animaworks-guide/SKILL.md
templates/en/common_skills/aws-collector-tool/SKILL.md
templates/en/common_skills/chatwork-tool/SKILL.md
templates/en/common_skills/cron-management/SKILL.md
templates/en/common_skills/discord-tool/SKILL.md
templates/en/common_skills/github-tool/SKILL.md
templates/en/common_skills/gmail-tool/SKILL.md
templates/en/common_skills/google-calendar-tool/SKILL.md
templates/en/common_skills/google-tasks-tool/SKILL.md
templates/en/common_skills/image-gen-tool/SKILL.md
templates/en/common_skills/local-llm-tool/SKILL.md
templates/en/common_skills/machine-tool/SKILL.md
templates/en/common_skills/notion-tool/SKILL.md
templates/en/common_skills/skill-creator/SKILL.md
templates/en/common_skills/slack-tool/SKILL.md
templates/en/common_skills/subagent-cli/SKILL.md
templates/en/common_skills/subordinate-management/SKILL.md
templates/en/common_skills/tool-creator/SKILL.md
templates/en/common_skills/transcribe-tool/SKILL.md
templates/en/common_skills/web-search-tool/SKILL.md
templates/en/common_skills/workspace-manager/SKILL.md
templates/en/common_skills/x-search-tool/SKILL.md
templates/en/common_skills/zoom-meeting-scribe/SKILL.md
templates/ja/common_skills/agent-browser/SKILL.md
templates/ja/common_skills/animaworks-guide/SKILL.md
templates/ja/common_skills/aws-collector-tool/SKILL.md
templates/ja/common_skills/chatwork-tool/SKILL.md
templates/ja/common_skills/cron-management/SKILL.md
templates/ja/common_skills/discord-tool/SKILL.md
templates/ja/common_skills/github-tool/SKILL.md
templates/ja/common_skills/gmail-tool/SKILL.md
templates/ja/common_skills/google-calendar-tool/SKILL.md
templates/ja/common_skills/google-tasks-tool/SKILL.md
templates/ja/common_skills/image-gen-tool/SKILL.md
templates/ja/common_skills/image-posting/SKILL.md
templates/ja/common_skills/local-llm-tool/SKILL.md
templates/ja/common_skills/machine-tool/SKILL.md
templates/ja/common_skills/notion-tool/SKILL.md
templates/ja/common_skills/skill-creator/SKILL.md
templates/ja/common_skills/slack-tool/SKILL.md
templates/ja/common_skills/subagent-cli/SKILL.md
templates/ja/common_skills/subordinate-management/SKILL.md
templates/ja/common_skills/tool-creator/SKILL.md
templates/ja/common_skills/transcribe-tool/SKILL.md
templates/ja/common_skills/web-search-tool/SKILL.md
templates/ja/common_skills/workspace-manager/SKILL.md
templates/ja/common_skills/x-search-tool/SKILL.md

Metadata

Files
0
Version
050238c
Hash
69ad7238
Indexed
2026-07-25 09:12

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 08:32
浙ICP备14020137号-1 $Гость$