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。
日本語の概要は準備中です。原文の説明を表示しています。
UI 資產品質驗證 SKILL — 執行 validate-visual-assets.js、validate-ui-specs.js 與必要的 snapshot regression,對 skin family 資產、screen package、proof draft / family-map 進行全面驗證,並回寫 generated-review。
USE FOR: 任何 UI 資產生成後、在 ui-preview-judge 前必須先通過的 QA 關卡。DO NOT USE FOR: debug runtime 崩潰(用 cocos-log-reader)、Layout 佈局調整(用 ui-vibe-pipeline)。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
這是 UI production pipeline 的第 4 步:執行自動化規則驗證,確保資產品質可進入預覽階段。
Unity 對照:相當於 Unity Asset Audit / ImportSettings Checker — 確認所有貼圖的 Texture Type、Max Size、Compression 都符合規範才能進 build。
| 規則 | 全名 | Severity | 快速說明 |
|---|---|---|---|
| R1 | sliced-sprite-border-valid | error | 9-slice 精靈的 border 必須 > 0 |
| R2 | sprite-atlas-consistency | warn | 同 family 的精靈應在同一 Auto Atlas |
| R3 | texture-resolution-valid | warn | 貼圖解析度必須是 2 的冪次(或在 UI atlas 白名單內) |
| R4 | skin-slot-completeness | error | skin manifest 中每個 slot 必須有實際對應的 spriteFrame |
| R5 | sprite-border-reasonable | warn | 9-slice border 不應超過 32px(否則易撕裂) |
| R6 | proof-draft-slot-coverage | warn | screen package 的 slots 應100%被 proof draft 覆蓋 |
| 項目 | 說明 |
|---|---|
screenId / familyId | 要驗證的對象(可兩者都填) |
mode | strict(預設)或 warn-only(研發期) |
reportPath | 輸出報告路徑(預設:artifacts/ui-source/{screenId}/review/generated-review.json) |
node tools_node/validate-visual-assets.js \
--family {familyId} \
--strict \
--report artifacts/ui-source/{screenId}/review/generated-review.raw.json \
--config tools_node/qa-rules-config.json
若無特定 family,省略 --family 旗標(掃描全部)。
node tools_node/validate-ui-specs.js \
--strict \
--check-content-contract
# 注意:此工具驗證所有 screen spec,無 --screen 單一篩選旗標
若本次改到 layout / skin / screen JSON,補跑:
node tools_node/headless-snapshot-test.js
read_file { filePath: "artifacts/ui-source/{screenId}/review/generated-review.raw.json" }
統計:
errors (R1/R4 類型):必須全數清零才能繼續warnings (R2/R3/R5/R6 類型):可記錄並推進,但需在 PR 說明中列出讀取 proof draft:
read_file { filePath: "assets/resources/ui-spec/proof/screens/{screenId}.proof.json" }
必要時再讀 artifacts/ui-source/{screenId}/proof/{screenId}.family-map.json,比對 proof 的 contentSlots[*].id 與 recipe / screen package 的 slots 是否一致。若有缺漏,列出 missing slot IDs。
把 QC 結果彙整到:
artifacts/ui-source/{screenId}/review/generated-review.json
## QC Report — {screenId} ({timestamp})
### 結果:PASS / FAIL
**R1 (sliced-border-valid)**: ✅ 0 errors
**R2 (atlas-consistency)**: ⚠️ 2 warnings (tab: tab_active + tab_inactive 不同 atlas)
**R3 (resolution)**: ✅ 0 errors
**R4 (skin-slot-completeness)**: ✅ 0 errors
**R5 (border-reasonable)**: ⚠️ 1 warning (item-cell border=40px)
**R6 (proof-coverage)**: ✅ 100% covered
### Blockers(需修復後才可繼續)
- 無
### Warnings(可推進,但需留意)
- tab atlas 不一致 → 建議合入 auto-atlas-tab
- item-cell R5 border=40px → 確認是設計稿規格才保留
--warn-only 模式則 error 也降為 warning(僅研發初期使用)まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
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。
日本語の概要は準備中です。原文の説明を表示しています。
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.
日本語の概要は準備中です。原文の説明を表示しています。
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.
日本語の概要は準備中です。原文の説明を表示しています。
Plan ATM framework refactors by preserving atom/map semantics before splitting large governance modules.
日本語の概要は準備中です。原文の説明を表示しています。
Captain 派工規範與決策手冊。當 AI 進入隊長模式或進行派工/派任務語境時,遵照這套標準,產出可供人類直接轉貼、高度結構化、符合 token 經濟且能動態適應可用 Roster 的派工單。
日本語の概要は準備中です。原文の説明を表示しています。
Create and register an atom through the provisioning facade.
日本語の概要は準備中です。原文の説明を表示しています。