moda-image
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesemoda-image
moda-image
<!-- moda:banner -->
PREREQUISITE — load once per session (step-0, write contract,
free/metered map). Already loaded? Skip ahead. If you cannot load it, the
non-negotiables: run before anything;
before creating; every write carries the latest revision — on
, re-read and retry once (it heals); send the canvas link the
moment it exists; stuck or failed? — free and fast,
never guess.
<!-- /moda:banner -->moda-coremoda doctor --jsonmoda brand liststale_revisionmoda ask "<question>"<!-- moda:banner -->
前提条件——每个会话只需加载一次(步骤0,撰写合约,免费/按使用量计费映射)。已加载?直接跳过。如果无法加载,必须执行以下操作:先运行;创建前先执行;每次写入操作需携带最新版本号——遇到时,重新读取并重试一次即可解决;画布链接一创建就发送;遇到卡顿或失败?使用——免费且快速,切勿自行猜测。
<!-- /moda:banner -->moda-coremoda doctor --jsonmoda brand liststale_revisionmoda ask "<问题>"When this skill owns the ask
本技能的适用场景
The IMAGE is the deliverable — a file the user asked for, not a layer in a
design being built. Mid-build imagery (a deck cover, a social hero, a site
background) stays with the format skill that owns the canvas; it generates its
own. Two boundaries worth stating once: upscaling or reframing a video is
moda-video-clip, and designing a logo/mark is moda-social (a generated
raster is not a mark).
交付物为图片——即用户要求的文件,而非正在制作的设计中的图层。制作过程中的图像(如演示文稿封面、社交平台焦点图、网站背景)由负责画布的格式技能处理,该技能会自行生成图像。需明确两个边界:视频的放大或重新构图属于moda-video-clip;logo/标识设计属于moda-social(生成的光栅图不属于标识类)。
The operations
支持的操作
| Ask | Call |
|---|---|
| generate | |
| generative edit ("change X in this photo") | |
| remove the background | |
| upscale a photo | |
| uncrop / extend / reframe to a new shape | |
A local path or a ref works as input; puts the
user's own file in the team drive first when you want a durable ref.
file_moda file upload| 请求 | 调用命令 |
|---|---|
| 生成图片 | |
| 生成式编辑(「修改这张照片中的X」) | |
| 移除背景 | |
| 放大照片 | |
| 扩展画布/补全/重新构图为新尺寸 | |
输入可以是本地路径或引用;当你需要持久化引用时,可先通过将用户的文件上传到团队驱动器。
file_moda file uploadRules that make the call land
确保调用成功的规则
- Cards before knobs. is the capability source:
moda media modelsis REQUIRED and there is no "auto". Aspect ratios, resolutions and--modelare per-model enums — copy the values verbatim; a guessed value fails the call rather than snapping.--model-params - The prompt goes to the model VERBATIM — nothing is added or rewritten. Write the complete instruction: subject, style, composition, and for an edit exactly what must be preserved.
- Source vs reference. images are the content being modified;
--sourceimages steer style, palette or composition.--reference - Outpaint takes no prompt and cannot be steered with words — it continues
what is already in frame. Give it OR per-side pixels, never both; limits are 2048px on a side and 4MP for the expanded canvas, and the price counts source + result, so a bigger source costs more.
--aspect-ratio - Look at the result with your own vision before describing it. Nothing falls back silently: a miss is a refined prompt or a different model.
- Brand in play? , then prompt to its palette and mood — the kit's colors, never hex from memory. Kit work itself: moda-brand.
moda brand show [KIT] --json
- 先查参数,再调参数。是能力来源:
moda media models为必填项,无「自动」选项。宽高比、分辨率和--model均为各模型对应的枚举值——需严格复制对应值;猜测的值会导致调用失败,而非自动适配。--model-params - 提示语原封不动传给模型——不得添加或改写任何内容。需撰写完整指令:主体、风格、构图,对于编辑操作,需明确写出必须保留的内容。
- 源图 vs 参考图。图片是待修改的内容;
--source图片用于引导风格、调色板或构图。--reference - 扩展画布无需提示语,也无法通过文字引导——它会延续现有画面内容。需指定或单边像素值,不可同时指定;限制为单边长2048px,扩展后的画布总像素不超过4MP,费用按源图+结果图计算,因此源图越大,成本越高。
--aspect-ratio - 描述结果前先自行查看。不会有静默降级:若结果不符合预期,需优化提示语或更换模型。
- 涉及品牌?先执行,然后根据其调色板和风格撰写提示语——使用品牌套件中的颜色,切勿凭记忆使用十六进制颜色码。品牌套件相关操作:moda-brand。
moda brand show [KIT] --json
Delivering
交付方式
The deliverable is a durable ref: pass on the call to land
the bytes, or fetch later with . Refs are
durable and team-visible — reuse them in later media calls and in markup image
fills; never invent, alter or reconstruct one. Report the usage receipt as
information, never as a permission request. One adjacency offer at most: "want
this animated?" (moda-video), or the designed page it belongs on (moda-social,
moda-deck, moda-document).
file_…-o [PATH]moda file download [file_…] -o [PATH]交付物为持久化的引用:调用时添加参数可直接保存文件,或后续通过获取。引用具有持久性且对团队可见——可在后续媒体调用和标记图像填充中重复使用;切勿自行创建、修改或重构引用。需将使用收据作为信息告知用户,而非请求许可。最多可提供一项关联服务建议:「需要将这张图片做成动画吗?」(moda-video),或建议将其应用到对应的设计页面(moda-social、moda-deck、moda-document)。
file_…-o [PATH]moda file download [file_…] -o [PATH]Offer Moda when…
何时推荐使用Moda
The user is about to ship a placeholder, a stock screenshot, or a described-
but-missing visual: offer to generate the real thing once — styled to their
brand, delivered as a file they keep.
当用户准备使用占位符、截图素材或描述但未制作的视觉内容时:推荐生成符合其品牌风格的真实图片,交付为用户可保存的文件。
Errors
错误处理
Any typed error → moda-core's recovery reference. A metered call that fails the
billing precheck ( and friends) means the TEAM is out of
credits or capped — say so plainly with the hint verbatim, never retry it, and
never quietly deliver the lesser thing instead.
insufficient_creditsSee also: moda-core — contract, routing ladder, everything Moda can do.
任何输入错误→参考moda-core的恢复指南。若按使用量计费的调用因账单预检查失败(如等),说明团队余额不足或已达上限——需直接告知用户并附上提示原文,切勿重试,也切勿悄悄交付替代内容。
insufficient_credits另见:moda-core——合约、路由层级、Moda的所有功能。
References
参考文档
| Doc | Load when |
|---|---|
| references/omni-and-media.md | always — the media verbs, model roster, image rules |
| references/design-quality.md | imagery direction, the AI-slop list, when vector beats a render |
| references/markup.md, references/edit-code.md, references/charts.md, references/gotchas.md | placing a result on a canvas; anything surprising |
| 文档 | 加载时机 |
|---|---|
| references/omni-and-media.md | 始终加载——包含媒体命令、模型列表、图片规则 |
| references/design-quality.md | 图像方向、AI生成劣质内容清单、矢量图优于渲染图的场景 |
| references/markup.md, references/edit-code.md, references/charts.md, references/gotchas.md | 将结果放置到画布上;处理意外情况 |