Token导航 LogoToken导航

Agent Skill · 图像处理

designing-canvas-images(设计画布图像)

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

designing-canvas-images 是图像处理类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在图像处理类的 1,562 个 Skill 里排第 1,406。

总安装 343周安装 14GitHub Stars 4,770下载 111核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:designing-canvas-images(设计画布图像)
来源仓库:https://github.com/dtyq/magic
仓库路径:skills/designing-canvas-images
安装命令:
npx skills add https://github.com/dtyq/magic --skill designing-canvas-images
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dtyq/magic --skill designing-canvas-images

这个 Skill 是做什么的

图像处理类 Skill 处理生成、裁剪、压缩和批量转换图片的任务。

该技能提供 AI 图像生成、网页图片搜索与设计标记处理能力。支持文本转图片、背景替换与提示词优化,适用于视觉素材创作与编辑场景。所有 Python 代码必须通过 exec_python 执行,需遵守输入输出格式与模型限制规则。涉及人物或品牌素材时应核对版权,避免生成敏感内容,建议本地预览输出结果。

designing-canvas-images 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/designing-canvas-images

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dtyq/magic --skill designing-canvas-images;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

designing-canvas-images 怎么安装?

在终端执行 npx skills add https://github.com/dtyq/magic --skill designing-canvas-images。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

designing-canvas-images 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

designing-canvas-images 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

designing-canvas-images 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

designing-canvas-images 用的人多吗?

公开数据是累计安装 343 次,近一周安装 14 次,下载 111 次,GitHub 4,770 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

designing-canvas-images 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 来源仓库有 4,770 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

图像处理类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
ai-image-generation

AI 图像生成 · Codex、Claude

4,365,552382调用外部服务未明确有提醒
openai-image-gen

OpenAI 图像生成 · OpenClaw

1,906,88432需要联网MIT-0有提醒
image

图像 · OpenClaw

525,99926需要联网MIT-0通过
baoyu-cover-image

宝玉封面图 · Codex、Claude

474,24016,779只读MIT有提醒
baoyu-image-gen

宝玉图像生成器 · Codex、Claude

468,00716,778接触敏感数据MIT通过
designing-canvas-images

设计画布图像 · 本页

3434,770需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Canvas Image Design Skill

Provides AI image generation, web image search and download, and design marker processing capabilities.


How to Use This Document

This document provides quick guidance covering basic usage and core rules. When encountering the following situations, read the corresponding reference documentation:


Code Execution Method (Critical)

All Python code examples in this skill must be executed via the run_skills_snippet tool in Agent environment.

Correct example:

# Correct! Must use run_skills_snippet to execute
run_skills_snippet(
    python_code="""
from sdk.tool import tool
result = tool.call('create_design_project', {
    "project_path": "my-design"
})
"""
)

All code blocks in this document starting with from sdk.tool import tool follow this rule: pass them via the python_code parameter of run_skills_snippet for execution.


Quick Start

Create a new canvas project:

from sdk.tool import tool

result = tool.call('create_design_project', {
    "project_path": "my-design"
})

Generate AI images:

from sdk.tool import tool

result = tool.call('generate_images_to_canvas', {
    "project_path": "my-design",
    "name": "北京景点",
    "prompts": ["长城全景,专业摄影", "故宫太和殿,专业摄影", "天坛祈年殿,专业摄影"],
    "size": "2048x2048"
})

Query canvas overview:

from sdk.tool import tool

result = tool.call('query_canvas_overview', {
    "project_path": "my-design",
    "sort_by": "layer"
})

Query element by image path:

from sdk.tool import tool

result = tool.call('query_canvas_element', {
    "project_path": "my-design",
    "src": "my-design/images/cat.jpg"
})

Core Tools and Required Parameters

create_design_project - Create Canvas Project

ParameterRequiredDescription
project_pathYesProject relative path, e.g., "my-design"

Return data (result.data):

FieldTypeDescription
project_pathstringProject path
project_namestringProject name

generate_images_to_canvas - Generate AI Images

ParameterRequiredDescription
project_pathYesProject path
nameYesElement name, automatically adds suffix _1, _2 for multiple images
promptsYesList of prompts (max 6 prompts for multiple prompts mode)
sizeYesImage size, format: 'widthxheight', e.g., "2048x2048", "2560x1440"
image_countNoNumber of images in a set, max 4 (mutually exclusive with multiple prompts)
image_pathsNoReference image paths (used for image-to-image generation)

Return data (result.data):

FieldTypeDescription
created_elementsarrayCreated element list, each contains {id, name, type, x, y, width, height}
succeeded_countnumberNumber of successfully generated images
failed_countnumberNumber of failed images

query_canvas_overview - Query Canvas Overview

ParameterRequiredDescription
project_pathYesProject path
sort_byNoSort method: "layer", "position", "type"
visible_onlyNoWhether to show only visible elements

Return data (result.data):

FieldTypeDescription
elementsarrayElement list, each contains {id, name, type, size, position}
canvas_info.total_elementsnumberTotal element count
project_namestringProject name

query_canvas_element - Query Element Details

ParameterRequiredDescription
project_pathYesProject path
element_idNoElement ID (choose one between element_id and src)
srcNoImage path (choose one between element_id and src, used to find element by image path)

Return data (result.data):

FieldTypeDescription
size{width, height}Element size, use for image-to-image
image_properties.srcstringImage path (for image elements)
idstringElement ID
namestringElement name

Key Rules

Coordinate System

Canvas uses absolute coordinate system:

  • Coordinate origin: Canvas top-left corner is (0, 0)
  • Coordinate direction: X-axis increases rightward, Y-axis increases downward
  • x, y coordinate meaning: Represents the top-left corner position of the element (absolute coordinates relative to canvas)
  • Infinite canvas: Elements can be placed at any position

Image Processing Principles

  1. Do not modify original image files - All content changes must create new elements
  2. Do not delete elements - Never delete elements under any circumstances
  3. Do not modify image content through properties - Cannot change image content in any way (e.g., changing colors, adding text)
  4. Use generate_images_to_canvas for content changes - Create new elements while keeping original elements unchanged
  5. "Add XX to image" means image-to-image - Generate images containing new content, NOT create separate XX element on canvas

Operation Flow Principles

  1. Canvas Selection: By default, use the same canvas - Unless user explicitly requests a new canvas

- Prioritize finding or reusing existing projects, avoid unnecessary project creation - Only create new projects when user explicitly expresses intent like "create new canvas" or "create new project"

  1. Must query existing canvases before operations - Use query_canvas_overview
  2. Do not assume file paths - Must reference paths based on query results
  3. Query original image size before image-to-image - Use query_canvas_element with src parameter

Image Size Guide

Size format: 'widthxheight', e.g., '2048x2048'

Available sizes: Select from "当前图片生成模型可用的尺寸选项" in the user message

Common sizes (use when no available sizes in configuration):

  • '2048x2048' - 2K square (recommended, suitable for most scenarios)
  • '2304x1728' - Horizontal rectangle
  • '1728x2304' - Vertical rectangle
  • '2560x1440' - 16:9 horizontal
  • '1440x2560' - 9:16 vertical
  • '2496x1664' - 3:2 horizontal
  • '1664x2496' - 2:3 vertical
  • '3024x1296' - Ultra-wide horizontal

Image-to-image size handling:

  • If user hasn't explicitly requested a specific size, use the reference image's original size
  • If user explicitly specified a size, use the user-specified size

AI Generation Mode Selection

Mode 1: Independent Images of Different Themes

Generate images of different themes → Use multiple prompts (max 6)

from sdk.tool import tool

result = tool.call('generate_images_to_canvas', {
    "project_path": "landmarks",
    "name": "北京景点",
    "prompts": ["长城全景", "故宫太和殿", "天坛祈年殿", "颐和园昆明湖"],
    "size": "2048x2048"
}))

Mode 2: Style-Consistent Variants (Set)

Generate style-consistent variants → Use single prompt + image_count (max 4)

from sdk.tool import tool

result = tool.call('generate_images_to_canvas', {
    "project_path": "product",
    "name": "产品图",
    "prompts": ["产品摄影,多角度展示"],
    "image_count": 4,
    "size": "2048x2048"
}))

Mode 3: Image-to-Image (Based on Reference)

Generate new images based on existing images, suitable for design modifications or processing design markers.

Important: Must query original image size before image-to-image and use the same size

# Step 1: Query original image size by src
from sdk.tool import tool

result = tool.call('query_canvas_element', {
    "project_path": "my-design",
    "src": "my-design/images/cat.jpg"
})

# Step 2: Use result.data to get original size
if result.ok and result.data:
    width = result.data['size']['width']
    height = result.data['size']['height']
    src = result.data['image_properties']['src']

    # Step 3: Generate with same size
    result2 = tool.call('generate_images_to_canvas', {
        "project_path": "my-design",
        "name": "修改后的猫",
        "image_paths": [src],
        "prompts": ["将右上角的耳朵改为红色,保持其他部分不变"],
        "size": f"{width}x{height}"
    })

Image-to-Image Core Principles

When user provides reference images, follow these core principles:

  1. Must use reference images - Include image_paths parameter, emphasize visual consistency in prompts
  2. Maintain subject integrity - Don't add content not in original, keep product count and types consistent
  3. Separate subject from style - Can change photography style, background, lighting, but not subject's features
  4. Precise requirement delivery - Write every user keyword into Prompt, clearly state how to use reference
Need detailed explanation? For complex image-to-image scenarios (e.g., product design, brand consistency requirements), read: reference/image-generation.md

Design Marker Processing

What is Design Marker

Users mark areas on images that need modification or content addition. Format: [@design_marker:marker_name]

Example information:

[@design_marker:红色耳朵]
- Image location: my-design/images/dog.jpg
- Marked area: Small area at top right of image
- Coordinates: Top left (64.0%, 7.0%)

Processing Steps

  1. Parse marker information - Extract image location, marked area, user requirements from marker
  2. Query original image size - Use query_canvas_element(src=...)
  3. Construct Prompt - [location] + [modification] + [keep original]
  4. Call image-to-image - Use generate_images_to_canvas with image_paths parameter
Important: If user message contains [@design_marker:xxx] markers, MUST read detailed processing workflow: reference/design-marker.md

Tool Selection Decision Tree

Need to create new canvas?
├─ Yes → create_design_project
└─ No → Continue

Need to generate AI images?
├─ Yes → generate_images_to_canvas
│   ├─ Have reference? → First query_canvas_element (src) to get size
│   ├─ Different themes? → Multiple prompts
│   └─ Style-consistent? → Single prompt + image_count
└─ No → Continue

Need to search web images?
├─ Yes → See reference/image-search.md
└─ No → Continue

Need to query information?
├─ Canvas overview → query_canvas_overview
├─ Element details (known ID) → query_canvas_element (element_id)
└─ Element details (known image path) → query_canvas_element (src)

Web Image Search

To use web image search: See reference/image-search.md

平台分布

Codex

38.69%
按下载量换算43

Claude

27.41%
按下载量换算30

Cursor

16.82%
按下载量换算19

Gemini CLI

9.04%
按下载量换算10

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills