Layer Quality

layerai/skills/skills/layer-quality

作者 layerai315d06db6f76MIT4 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫8 天前更新

Use when judging Layer output before it ships: scoring generated files against a workspace's output scoring rules, reading back verdicts on a file, reviewing a batch against the brief, or choosing which candidate to deliver. Also when a studio has automated quality standards, or a set must be checked for consistency before handoff. Keywords: quality gate, scoring, review, batch, verdict, approve, QA, consistency check.

僅含說明Design & Creative
AI 產生的概覽

在交付前依工作室的輸出評分規則與需求簡報審查生成的素材批次。

功能
引導代理對生成檔案進行品質把關:列出工作區的輸出評分規則、排入評分執行,並依檔案讀回評分結果。它也涵蓋依簡報中明列的限制、預期用途與整套一致性來審查候選素材,並決定要交付哪一個候選。最終產出一份交付報告,說明哪些素材通過、哪些重新生成、哪些缺陷仍然存在。
適用情境
適用於生成素材批次在交接前需要評判時、工作室已把自動化品質標準記錄為評分規則時,或整套素材需要做一致性檢查時。也適用於從一批候選中決定要交付哪一個。
執行需求
需要 Layer 工具:list_output_scoring_rules、score_files 和 get_file_scores,並需要連線至 Layer 服務的網路存取。評分執行是非同步的,以 Creative Units 計費,且沒有可用的估價工具。生成機制引用了同系列的 layer 技能,可能需要安裝。不附帶指令碼,僅為說明文件。

Layer Quality Review

Overview

Generation is not delivery. A batch comes back, and something has to decide which of it is usable, against the brief and against whatever standards the studio has already set. Layer records those standards as output scoring rules, and exposes three tools:

ToolPurpose
list_output_scoring_rulesThe rules in force for a workspace, optionally a project
score_filesQueue a scoring run. Asynchronous and billed
get_file_scoresRead the verdicts recorded on one file

Generation mechanics are in the layer skill. If a sibling skill named here is missing from your available skills, ask the user to install it (npx skills add layerai/skills --skill <name>); unattended, proceed from tool schemas and flag the gap.

Check for rules before inventing standards

Call list_output_scoring_rules before judging anything by eye. Each rule is a standard the studio has written down, and a delivery that contradicts one is wrong however good it looks. Rules can be scoped to a project as well as a workspace, so pass the project when the work belongs to one.

When rules exist, score_files queues the batch and get_file_scores reads the verdicts back.

Three things about that contract are easy to get wrong and expensive to get wrong:

  • score_files is asynchronous. It returns as soon as the run is queued, not with results. Poll get_file_scores afterwards; a large request takes a few minutes.
  • An empty scores list means not judged yet, not a zero. Treating the queue acknowledgement as a verdict, or an empty list as a failing score, is the defect this contract invites.
  • It is billed, and there is no estimate tool for it. Every file and rule pair is a vision-model call that spends Creative Units, and none of the estimate_* tools price it. Scoring the same file again is allowed and appends a fresh verdict rather than replacing the old one, so a re-score because the first call "returned nothing" is a real double spend. Read get_file_scores first.

When no rules exist, say so rather than implying the output passed a gate it never met, then review against the brief.

Review against the brief, not against taste

The question is never "is this good". It is "does this do what was asked". Work back through the brief item by item:

  • The stated constraints: aspect ratio, pixel size, transparent background, palette, poly budget, clip length. These are pass or fail, and they are the ones most often silently missed because the image looks fine.
  • The intended use: an icon judged at its target size, a texture judged tiled at 3x3, a loop judged across its seam, a background judged with a character on it. Judging an asset out of its context is how defects reach delivery.
  • The set, not the item. For anything that belongs to a group, lay the candidates out together. Drift between siblings is invisible one at a time and obvious side by side.

Choosing from a batch

batch_size returns variations, and the temptation is to pick the most striking one. Pick the one closest to the brief instead, because the striking one is usually striking for a reason that will not repeat across the rest of the set.

When no candidate is close, the fix is the prompt, not another batch. Two identical rerolls in a row mean the prompt is underspecified: go back to what the prompt failed to name (framing, lighting, background treatment) rather than spending again on the same string.

Report honestly

Say what is wrong with what you deliver. A run that produced three usable assets and one with a mangled hand is reported as exactly that, not as four assets. Where a reference set was degraded, name it (layer-reference-sets). Where a constraint was missed, name the constraint.

Creative Units were spent either way, so a quiet pass costs the user a second discovery later, on work already built on the flawed asset.

Worked example

"Are these eight icons ready to ship?"

  1. list_output_scoring_rules for the workspace and the project. Two rules exist: transparent background, and a minimum legibility standard.
  2. get_file_scores on the eight file_id values first, in case an earlier session already judged them. For the ones with no scores, score_files to queue a run, telling the user it spends Creative Units since no estimate tool prices scoring.
  3. Poll get_file_scores until scores appear. An empty list means not yet judged, so keep polling rather than re-scoring.
  4. Two fail the transparency rule. Those are not judgement calls, so they go back through background_removal (layer-image-editing).
  5. View the remaining six together at their target size, not at full resolution, and check stroke weight and palette against the two icons approved earlier.
  6. One has drifted heavier than the set. Reroll that one against the approved icons as references.
  7. Deliver with the state named: six passing, one rerolled, two fixed for transparency.

Common mistakes

  • Judging by eye without checking whether scoring rules exist.
  • Reporting output as passing a gate when no rules were ever in force.
  • Reading score_files as if it returned verdicts, when it only acknowledges the queued run.
  • Reading an empty scores list as a zero rather than as not yet judged.
  • Re-scoring because the first call "returned nothing", which spends again and appends a second verdict.
  • Re-scoring files whose verdicts get_file_scores already holds.
  • Judging an icon, texture, or loop outside the context it ships in.
  • Reviewing set members one at a time, so drift goes unnoticed.
  • Picking the most striking candidate rather than the one matching the brief.
  • Rerolling an underspecified prompt a third time instead of fixing it.
  • Delivering silently around a known defect.

來源與署名

來源:layerai/skills位於skills/layer-quality提交315d06d

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架

更多來自 layerai/skills 的技能

Layer Workflows

layerai

Use when running a saved Layer Blueprint workflow rather than a single generation: discovering what workflows a workspace has, reading a workflow's input schema, estimating and executing a run, polling its steps, or cancelling it. Also when a repeatable multi-step pipeline exists for a task, when the user names a workflow, or when a workflow input expects a style or a file. Keywords: workflow, blueprint, pipeline, app, multi-step, run, node graph.

待分類48 天前更新

Layer Workflow Import

layerai

將其他工具中的工作流程重建為 Layer Blueprint 圖,並透過 import_workflow 匯入。

AI & Agents48 天前更新

Layer Video Timeline

layerai

將現有片段、圖像與音訊組合成一支完整影片時間軸,包含轉場、疊加層與字幕。

Design & Creative48 天前更新

Layer Video

layerai

Use when generating video with Layer: text-to-video, animating a still image, extending a clip, adding camera motion, generating native audio or lip sync, looping animations, or planning a multi-shot ad, trailer, or cutscene. Also when a video prompt produces the wrong motion or the shot drifts off the source image. Keywords: txt2vid, img2vid, image to video, camera motion, video effects, loop, seamless, trailer, cutscene, lipsync.

待分類48 天前更新

Layer Textures

layerai

指導使用 Layer 影像模型產生無縫可平鋪的紋理,涵蓋尺度、光照與重複檢查。

Design & Creative48 天前更新

Layer Reference Sets

layerai

Use when a look must hold across many Layer generations: training a custom style or LoRA on a studio's own artwork, curating the images that go into a reference set, choosing its training category, tuning reference-set weight on a run, or deciding whether to train at all rather than attach a style reference. Also when a trained style produces weak, inconsistent, or silently ignored results. Keywords: LoRA, custom model, trained style, reference set, consistency, on-model, art direction, dataset.

待分類48 天前更新