Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

snap-illustrator快照插画师

Agent Skill

snap-illustrator 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,284

周安装

184

GitHub Stars

公开资料未说明

下载量

1,501
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:snap-illustrator(快照插画师)
来源仓库:https://github.com/wysaid/snap-illustrator
安装命令:
openclaw skills install snap-illustrator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install snap-illustrator

简介

即时解析 Markdown 文档并插入 AI 生成的插画内容,提升图文编辑效率。

  • 适合博客撰写、在线课程制作或电子书排版等富媒体创作流程。
  • 粘贴 Markdown 文本后自动调用授粉 API 渲染配图并嵌入原文档。
  • 依赖第三方插画服务可用性,部分主题可能因版权原因无法生成。
  • 安装命令:openclaw skills install snap-illustrator

SKILL.md

name
snap-illustrator
description
Instantly analyze markdown articles, generate prompts, and seamlessly insert AI illustrations with zero configuration required. Supports Pollinations API (zero-config) with graceful fallback to HuggingFace.
metadata
openclaw
requires
env
bins

Snap Illustrator

Instantly analyze long-form markdown articles, extract core scenes, generate prompts, and seamlessly insert AI illustrations with a snap. Designed for blogs, articles, and documentation with zero configuration required.

Trigger Scenarios

When the user asks to "illustrate this article", "add images to this markdown", "为文章配图", or "加配图".

Design Philosophy & Zero-Config Flow

Default to Zero-Config Experience:

  1. By default, utilize the included Node.js script to run via the unauthenticated Pollinations.ai API. This process is completely zero-config and requires NO API tokens from the user.
  2. As long as images generate successfully, DO NOT ask the user to configure any tokens. Let the user experience an instant, frictionless image insertion.
  3. ONLY IF the Node.js script throws an exception or logs PLEASE_ASK_USER_FOR_TOKEN, indicating the free unauthenticated service is rate-limited or unavailable, should you proactively ask the user: "The free generation service is currently busy. Do you have a HuggingFace Token you could provide to continue?"
  4. If the user provides a HuggingFace Token, instruct them to set it as an environment variable (e.g., export HF_TOKEN="<your_token>" in their ~/.zshrc or ~/.bash_profile), or temporarily use the token to run the script. AI agents should NOT permanently save tokens to disk unless explicitly requested by the user.

Execution Workflow

Step 1: Text Analysis & Planning

  1. Read Content: Read the user's target Markdown file.
  2. Segmentation: Analyze the structural and semantic boundaries of the text and partition it into sections suitable for illustrations (e.g., placing one image per major heading or roughly one per 300 words).
  3. Propose an Outline: Before spending time generating images, present a brief "Illustration Outline" to the user. Describe how many images you plan to insert, where they will be placed, and what concepts they represent. Wait for the user's confirmation before proceeding.

Step 2: Generate Prompts Once the user approves the outline, design high-quality, English-only image generation prompts for each selected insertion point.

  • Suggested format: [Core Concept/Subject], [Setting/Background], [Style Keywords], 4k, hyper-detailed, masterpiece
  • Avoid Text Generation Constraints: Explicitly design prompts to avoid rendering text, letters, or numbers to prevent garbled artifacts. Append a uniform style keyword (e.g., flat vector illustration) unless the user specified a distinct style.

Step 3: Execute Node.js Script Invoke the included Node.js script using run_in_terminal to perform the actual image generation.

Locating the script: This SKILL.md file is your reference — scripts/generate.mjs lives in the same directory as this file. You already know the absolute path to this SKILL.md (it was provided to you when the skill was loaded). Strip the filename to get the skill root directory, then append scripts/generate.mjs.

For example, if this skill file is at /path/to/skills/snap-illustrator/SKILL.md, then run:

node /path/to/skills/snap-illustrator/scripts/generate.mjs --prompt "Your English Prompt Here" --output "<workspace>/images/img_name.jpg"

*(Note: Ensure <workspace> points to the absolute path of the markdown file's directory. Images should typically be placed in an images/ subdirectory adjacent to the markdown file)*

Step 4: Finalize & Insert Insert standard Markdown image syntax referencing the generated images into the original text at the appropriate boundaries:

## Heading

![Scene: Description...](images/img_name.jpg)
Body paragraph...

Notify the user once all illustrations have been successfully inserted.

Troubleshooting & Connectivity Issues

Handle failures in the following priority order:

Issue 1: Unauthenticated Service Unavailable

If the Node.js script fails immediately (non-network error), exits with a non-zero code, or outputs PLEASE_ASK_USER_FOR_TOKEN:

Immediately tell the user:

"免费的无认证图片生成服务当前不可用(速率限制或服务故障)。建议切换到 HuggingFace API。请问您是否有 HuggingFace Token?"

Do not retry the free service. Proceed to Issue 2 for HuggingFace setup.

Issue 2: Network Connectivity Problems (especially Mainland China)

If the script times out, throws a network/fetch error, or ECONNREFUSED/ENOTFOUND/ETIMEDOUT appears in the output, the user may be experiencing connectivity issues with overseas services.

Ask the user:

"检测到网络连接问题。请确认: 1. 您是否能正常访问 https://huggingface.co ? 2. 您是否需要配置 HTTP/HTTPS 代理来访问境外服务?"

If the user cannot access HuggingFace or needs a proxy, proceed to Issue 3.

Issue 3: HTTP Proxy Configuration

If the user confirms they have an HTTP proxy, ask them to provide the proxy address:

"请提供您的 HTTP 代理地址(格式如 http://127.0.0.1:7890):"

Once the user provides the proxy address, run the script with proxy environment variables:

HTTPS_PROXY="<proxy_url>" HTTP_PROXY="<proxy_url>" node /path/to/skills/snap-illustrator/scripts/generate.mjs --prompt "..." --output "..."

Recording the proxy for future use: Update this SKILL.md file by appending the user's proxy setting to the frontmatter metadata section, so it can be reused automatically in subsequent runs:

metadata:
  openclaw:
    requires:
      env:
        - HF_TOKEN
      bins:
        - node
    http_proxy: "http://127.0.0.1:7890"   # ← add proxy here

And in all subsequent script executions within this session, automatically prepend HTTPS_PROXY="<proxy_url>" HTTP_PROXY="<proxy_url>" to the command without asking the user again.

Issue 4: All Services Unavailable

If none of the above resolves the issue, inform the user:

"图片生成服务当前无法访问。您可以稍后重试,或手动准备图片后,我可以帮您将图片链接插入到文章中。"

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.42%
按下载量换算1,402

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills