跳到正文
cccskills
免费在 GitHub 公开

ui-runtime-verify

UI runtime 驗證 SKILL — 刷新 Cocos asset-db、執行 validate-ui-specs.js、headless-snapshot-test.js、capture-ui-screens.js,並依環境選用 cocos-screenshot 或 cocos-preview-qa 檢查實際畫面殘差,回寫 generated-review / runtime-verdict。

USE FOR: 修改 layout / skin / screen / content / Panel / UI 資產後的驗證收尾。DO NOT USE FOR: 純資產生成、無 target 的整專案大範圍探索。

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md3.3 KB
  • agents/openai.yaml310 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

UI Runtime Verify

把「檔案看起來合理」提升成「runtime 真的長對」的收尾技能。

Unity 對照:相當於做完 Prefab / Script 修改後,不只跑靜態檢查,還要進 Play Mode 看實際 GameView。

何時使用

  • 修改任何 layout / skin / screen / content JSON 後
  • 修改 UI Panel / CompositePanel / ChildPanel / mapper 後
  • 替換 proof 或 final UI 資產後

驗證前置

固定先跑:

curl.exe http://localhost:7456/asset-db/refresh
node tools_node/validate-ui-specs.js --strict --check-content-contract
node tools_node/headless-snapshot-test.js

若有 touched 高風險檔,收工前補:

node tools_node/check-encoding-touched.js --files <file...>

選擇驗證路徑

路徑 A:有固定 capture target

優先使用:

node tools_node/capture-ui-screens.js --target <Target> --outDir artifacts/ui-source/<screen-id>/review

目前 script 內建 target(完整清單見 tools_node/capture-ui-screens.js 的 targets 陣列):

  • LobbyMain, ShopMain, Gacha, GachaHero, GachaSupport, GachaLimited
  • DuelChallenge, BattleScene
  • GeneralDetailOverview, GeneralDetailSkills, GeneralDetailOverviewZhenJi, GeneralDetailBloodlineV3
  • SpiritTallyDetail, GeneralList

路徑 B:使用者已把畫面開在 Cocos Editor / Editor Preview

改用 cocos-screenshot。

路徑 C:已準備 Browser Review 環境

改用 cocos-preview-qa。

檢查重點

每次驗證都至少看這幾項:

  • 文字是否重疊、截斷、貼邊
  • 區塊是否有異常空白框、殘影、黑區
  • hierarchy 是否接近 canonical reference,而不是只是「能顯示」
  • crest / header / portrait / story strip 等重點家族是否還停留在 placeholder 感
  • console / page error 是否出現致命錯誤

失敗時的處理順序

先判斷是:

  1. 契約錯誤:先修 screen / contract / bind path
  2. 佈局錯誤:修 layout / shell
  3. 視覺錯誤:修 skin / tint / asset
  4. 載入錯誤:看 console、page errors、bundle path、資產路徑

不要一看到截圖怪就直接重畫整頁。

建議輸出

把結果寫回任務卡或 handoff 時,至少包含:

  • 驗證命令
  • 截圖路徑
  • 通過 / 未通過
  • 最大殘差 1 到 3 點
  • 下一步修正優先順序

並同步更新:

  • artifacts/ui-source/<screen-id>/review/generated-review.json
  • artifacts/ui-source/<screen-id>/review/runtime-verdict.json

與其他 skills 的銜接

  • 還沒產 skeleton:先用 ui-spec-scaffold
  • 資產檔案要先過規則檢查:先用 ui-asset-qc
  • 需要做最終視覺評審:接 ui-preview-judge

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Deterministic external-evidence web validation workflow for Sanguo ETL/RAG. USE FOR: 外部證據網站檢查、來源健康度、allowlist 驗證、來源 seed 覆蓋、3kweb-check、external evidence source health、fetch/parse/hash first、LLM reviewer second。

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

Use when the user asks to switch AI role/mode/persona or uses role-trigger words such as Captain, Coordinator, 寫文章, 寫文章模式, 文章模式, 技術文章, 部落格, 出版, 預覽. Routes the request to Project Captain, Publishing Director, or Article Writing Mode, loads the matching keep memory when available, and applies the role's workflow without excessive roleplay.

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

Write or revise AI-learning-notes article pages in "寫文章模式" when the user asks for articles, technical articles, blog posts, bilingual versions, article formatting consistency, shared article-base alignment, responsive layout, summary/TOC decisions, contrast, or publishing-flow compatibility.

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

Plan ATM framework refactors by preserving atom/map semantics before splitting large governance modules.

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

Captain 派工規範與決策手冊。當 AI 進入隊長模式或進行派工/派任務語境時,遵照這套標準,產出可供人類直接轉貼、高度結構化、符合 token 經濟且能動態適應可用 Roster 的派工單。

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

Create and register an atom through the provisioning facade.

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

查看 eaglhuang 的全部技能

报告此技能的问题