scenario-asset-analysis
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseScenario Asset Analysis
Scenario 资产分析
Overview
概述
Four tools read assets back instead of making new ones: three fixed-purpose, one open-ended. With (default toolset) they answer the questions that come after a batch lands, which is where most of the work actually is: is this on brief, what look is this, what does this show, what can the next model condition on, where did last week's approved version go.
searchNone of them are in the default toolset. Get schemas with , then run each through the executor matching its : and are read-class, and are write-class. Or reconnect with . Connection and scope: see the skill in this repo. If a sibling skill named here is missing from your available skills, ask the user to install it (); unattended, proceed from tool schemas and flag the gap.
scenario_tools_searchpermissionasset_captionasset_describeasset_analyzeasset_detect?toolsets=fullscenarionpx skills add scenario-labs/skills --skill <name>有四款工具用于读取资产信息而非生成新资产:三款为固定用途,一款为开放式。结合(默认工具集),它们可以解答批量生成后出现的问题——这也是实际工作中占比最大的部分:是否符合brief要求、是什么风格、展示了什么内容、下一个模型可以用什么作为条件、上周通过的版本在哪里。
search这四款工具都不在默认工具集中。可通过获取schema,然后根据每个工具的(权限)使用对应的执行器运行:和属于读取类,和属于写入类。也可以通过重新连接。连接方式与适用范围:参见本仓库中的 Skill。如果你的可用Skill中缺少这里提到的同级Skill,请让用户安装(命令:);若处于无人值守模式,则从工具schema继续执行并标记缺失项。
scenario_tools_searchpermissionasset_captionasset_describeasset_analyzeasset_detect?toolsets=fullscenarionpx skills add scenario-labs/skills --skill <name>Quick reference
快速参考
| Need | Tool | Shape |
|---|---|---|
| A caption for one image | | |
| A reusable look off one image | | Returns a full description plus a promptable synthesis |
| Anything else, in your own words | | |
| A conditioning map for another model | | |
All four bill credits and all four take for an estimate first. Read-class does not mean free.
dry_run: true| 需求 | 工具 | 功能详情 |
|---|---|---|
| 为单张图像生成说明文字 | | |
| 从单张图像提取可复用的风格 | | 返回完整描述以及可用于提示词的合成风格 |
| 其他任何自定义需求,用你自己的话描述 | | 需传入 |
| 为其他模型生成条件控制图 | | |
这四款工具都会消耗credits,且都支持先传入进行预估。读取类不代表免费。
dry_run: trueThe four facts that change the plan
改变使用方案的四个要点
- batches. One call carries up to 10 images against one
asset_analyze, so reviewing 200 assets is 20 calls, not 200.instruction(1 to 5) is unrelated: it returns several distinct answers to the same instruction, not one answer per image. Ask for a fixed per-image output shape in thenum_outputsso the answers stay parseable.instruction - strips the background by default.
asset_detectdefaults to true, so a depth or pose map comes back with the frame's context already gone. Set it false whenever the map has to cover the whole image.remove_background - It reads a render, not the file. On a vector or layered source it cannot confirm what the file is or report its exact values: one call called a 16-path SVG raster, shifted a fill to
#101614, and missed an off-palette path. Parse the file for exact color and structure; the tool judges what the render shows.#131A18 - Fixed beats flexible when it fits. and
asset_captionare purpose-built and faster than instructing an LLM to do the same job. Reach forasset_describefor classification, extraction, comparison, translation, or a verdict against a brief. One carve-out: for a structured pass/warn/fail verdict against a configured brand brief, teams with the Quality Gate add-on have a dedicated tool that stores its verdict and re-reads it free (seeasset_analyze);scenario-quality-gatestays the route when the add-on is missing or the brief exists only as prose.asset_analyze
asset_analyzeasset_detectjob_idjobs_wait- 支持批量处理。 单次调用可针对一条
asset_analyze处理最多10张图像,因此审核200个资产只需20次调用,而非200次。instruction(1到5)与此无关:它是针对同一条指令返回多个不同的答案,而非每张图像返回一个答案。请在num_outputs中要求固定的单张图像输出格式,以确保答案可解析。instruction - 默认移除背景。
asset_detect默认值为true,因此返回的深度或姿态图会去掉画面的背景上下文。如果需要控制图覆盖整张图像,请将其设为false。remove_background - 它读取的是渲染结果,而非源文件。 对于矢量或分层源文件,它无法确认文件本身的信息或返回精确值:有一次调用将16路径的SVG识别为栅格图,将的填充色误判为
#101614,还漏掉了一条调色板外的路径。如需精确的颜色和结构信息,请直接解析源文件;该工具仅判断渲染后呈现的内容。#131A18 - 适用场景下,固定工具优于灵活工具。 和
asset_caption是专用工具,比直接指令LLM完成同类任务速度更快。如需分类、提取、比较、翻译或针对brief的评估结论,请使用asset_describe。一个例外:如果需要针对已配置的品牌brief生成结构化的通过/警告/不通过结论,拥有Quality Gate附加组件的团队可以使用专用工具,该工具会存储评估结论且可免费重新读取(参见asset_analyze);如果没有该附加组件,或brief仅为文字描述,则仍需使用scenario-quality-gate。asset_analyze
asset_analyzeasset_detectjob_idjobs_waitFinding an asset again
重新检索资产
Retrieval is with , and at least one of , , , , or must be set: an empty call is a 400, not an everything-list.
searchtarget="assets"queryfiltersfilterimageimages- By text. is keyword matching by default;
querymoves it toward meaning (0.5 to 0.8 suits mood queries like "dark medieval atmosphere", 1 is pure semantic).query_semantic_ratio(saysort_by) is ignored while that ratio is above 0, so a newest-first list needs keyword mode.["createdAt:desc"] - By similarity. takes one asset id or image URL and returns lookalikes;
imagetakesimagesto steer with positive and negative examples (the two fields are mutually exclusive).{"like": [...], "unlike": [...]}decides what similar means: 1, the default, matches subject and mood; 0 matches image features, the setting for hunting near-duplicates and crops. Add aimage_semantic_ratiobeside it for "like these, but more stylized".query - By structure. narrows on
filters,kind,tags,model_id, andcollection_ids/created_after, ANDed with everything above.created_before
资产检索使用工具并设置,且必须至少设置、、、、中的一个参数:空调用会返回400错误,而不是返回所有资产列表。
searchtarget="assets"queryfiltersfilterimageimages- 按文本检索。 默认是关键词匹配;
query可调整为语义匹配模式(0.5到0.8适合情绪类查询,比如“黑暗中世纪氛围”,1为纯语义匹配)。当该比值大于0时,query_semantic_ratio(例如sort_by)会被忽略,因此需要按最新排序的列表请使用关键词模式。["createdAt:desc"] - 按相似性检索。 参数传入单个资产ID或图像URL,返回相似图像;
image参数传入images格式,通过正例和负例引导检索(两个字段互斥)。{"like": [...], "unlike": [...]}决定相似性的判定标准:默认值为1,匹配主题和氛围;0匹配图像特征,用于查找近似重复图和裁剪图。可同时添加image_semantic_ratio参数实现“类似这些,但风格更突出”的检索效果。query - 按结构检索。 可通过
filters、kind、tags、model_id以及collection_ids/created_after进行筛选,且与上述所有条件为逻辑与关系。created_before
Worked example: reviewing a batch against a brief
示例:针对brief审核批量资产
- Collect the asset ids from the run (returns them).
jobs_wait - with
asset_analyzeon the first chunk to price the pass.dry_run: true - with
asset_analyzeset to 10 ids and animagesthat states the brief and fixes the output: "For each image in order, replyinstruction, a reason on every line, passes included. Fail anything not centered, not on a plain field, or carrying text." Repeat per chunk. Answers land as text assets (one, or one per image):<index>: pass|fail, <reason in under 12 words>them to read the verdicts.asset_download - on the strongest pass. Its promptable synthesis goes straight into the next batch's prompt, which holds the look without a training run (see
asset_describe); when the synthesis is only a short title, prompt with the description instead.scenario-consistency - File the result: , then
collection_createin chunks of at most 49 ids.collection_add_assetsis additive, so tag the failures rather than rebuilding a tag set. The set comes back later withasset_add_tagssearch, and its lookalikes withfilters={"collection_ids": [...]}.images={"like": [...]}
- 从运行任务中收集资产ID(会返回这些ID)。
jobs_wait - 对第一批资产调用并设置
asset_analyze,预估本次审核的成本。dry_run: true - 调用,将
asset_analyze设为10个ID,并在images中说明brief要求和固定输出格式:“按顺序处理每张图像,回复instruction,每行一个结果,通过的也要写原因。任何未居中、背景不简洁或带有文字的图像都判定为不通过。” 每批重复此操作。结果会以文本资产的形式返回(要么是一个文本文件,要么每张图像对应一个):使用<index>: pass|fail, <12字以内的原因>下载后即可查看评审结论。asset_download - 对最优的通过资产调用。它返回的可用于提示词的合成风格可以直接用于下一批次的提示词中,无需训练即可保持风格一致(参见
asset_describe);如果合成结果只是短标题,则用完整描述作为提示词。scenario-consistency - 归档结果:先调用创建集合,然后以最多49个ID为一批调用
collection_create添加资产。collection_add_assets是追加式的,因此只需给不通过的资产打标签即可,无需重建标签集。后续可以通过asset_add_tags的search检索该集合,通过filters={"collection_ids": [...]}检索相似资产。images={"like": [...]}
Common mistakes
常见错误
- One call per asset when 10 fit in a call.
asset_analyze - Treating as a batch size over
num_outputs.images - Leaving at its default on an
remove_backgroundmap that must match the source frame.asset_detect - Running or
asset_analyzethroughasset_detect: both are write-class and the call is rejected by lane, not by argument.scenario_tool_execute_read - Sending more than 49 ids to , or re-adding an asset already in the collection: both are hard errors, not no-ops.
collection_add_assets - Asking to produce an image. It returns text; control maps come from
asset_analyzeand final renders fromasset_detect.model_run
- 每个资产调用一次,但实际上单次调用可处理10个资产。
asset_analyze - 将当成
num_outputs的批量大小。images - 在需要与源画面匹配的控制图中,仍保持
asset_detect的默认值。remove_background - 通过运行
scenario_tool_execute_read或asset_analyze:这两个都是写入类工具,调用会被通道拒绝,而非参数校验失败。asset_detect - 向传入超过49个ID,或者重复添加已在集合中的资产:这两种情况都会触发硬错误,而非无操作。
collection_add_assets - 要求生成图像。它只返回文本;控制图由
asset_analyze生成,最终渲染图由asset_detect生成。model_run