Token导航 LogoToken导航TokenDH.com
图像处理external-servicegithub未标认证来源可访问许可证需确认审计通过

remix-add-image重新混合添加图像

Agent Skill

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

总安装

636

周安装

26

GitHub Stars

9

下载量

204
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:remix-add-image(重新混合添加图像)
来源仓库:https://github.com/farworld-labs/remix-skills
仓库路径:skills/remix-add-image
安装命令:
npx skills add https://github.com/farworld-labs/remix-skills --skill remix-add-image
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/farworld-labs/remix-skills --skill remix-add-image

简介

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流,适合根据文本生成图片或处理视觉提示词。

  • 适用于图像处理与生成任务,支持多种图像模型和格式。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 使用时需确认输入图片版权、输出格式及内容合规性边界。
  • remix-add-image 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Add Image to Game Workflow

Overview

This skill guides you through generating an AI image and integrating its hosted URL into your game HTML. Prefer MCP generateImage, which now generates and uploads in one step.

Prerequisites

  • The game HTML file must already exist (follow the game-creation workflow first if starting from scratch).
  • A game must be created on the Remix platform (you need a game ID).
  • MCP auth or CLI auth must already be available.

Steps

1. Check for Existing Game ID

IMPORTANT: Do NOT create a new game without checking first.

Use gameId from task context or prior tool results when available.

Otherwise, read the nearest .remix-cli.json. Older projects may still use .remix-mcp.json. If either contains a gameId, reuse it.

Only if none of those sources contain a gameId should you follow the upload-game workflow to create one.

2. Generate the Image

Preferred MCP flow:

generateImage({
  gameId: "<your-game-id>",
  prompt: "a pixel-art treasure chest on a grassy hill",
  fileName: "treasure-chest"
})

The tool returns a hosted asset URL directly. No base64 payload and no separate asset-upload step.

If you are writing direct REST calls instead of using MCP, fetch the exact path and response shape from https://api.remix.gg/docs/json first.

3. Upload as Game Asset

Skip this step when using MCP generateImage; the tool already uploads the generated image and returns the hosted URL.

For uploading non-image assets (audio, 3D models), see the remix-upload-asset skill.

4. Integrate the URL into the Game

Add the asset URL to the game HTML. Size the image to match the game entity it represents -- do not render it at its native resolution. For example, if a treasure chest is a 32x32 tile in your game, draw or display the image at 32x32 regardless of the source image dimensions.

The integration method depends on how the image is used:

As an HTML image element:

<img src="https://returned-asset-url.png" alt="Treasure chest" width="32" height="32" />

As a CSS background:

.game-bg {
  background-image: url("https://returned-asset-url.png");
}

As a JavaScript-loaded image (for canvas games):

const img = new Image();
img.src = "https://returned-asset-url.png";
img.onload = () => {
  // draw at the entity's size, not the image's native size
  ctx.drawImage(img, x, y, entityWidth, entityHeight);
};

Examples

Adding a Background to a Canvas Game

const bg = new Image();
bg.src = "https://uploaded-asset-url/background.png";
bg.onload = () => {
  function draw() {
    ctx.drawImage(bg, 0, 0, canvas.width, canvas.height);
    // draw game objects on top...
    requestAnimationFrame(draw);
  }
  draw();
};

Adding a Sprite Sheet

const spriteSheet = new Image();
spriteSheet.src = "https://uploaded-asset-url/player-sprites.png";
spriteSheet.onload = () => {
  // draw a 32x32 frame from the sprite sheet
  ctx.drawImage(spriteSheet, frameX, frameY, 32, 32, player.x, player.y, 32, 32);
};

Tips

  • Be specific in prompts. Include art style, color palette, and context (e.g. "pixel-art 16-bit style red dragon"). No need to specify transparency or background handling -- the server takes care of that.
  • Preload images before gameplay. Wait for onload before starting the game loop to avoid flickering or missing assets.
  • Repeat for multiple images. Run through steps 2-4 for each image the game needs.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.25%
按下载量换算76

Claude

30.75%
按下载量换算63

Cursor

19.02%
按下载量换算39

Gemini CLI

9.15%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills