asset-audit

GitHub

用于审计游戏资产是否符合命名规范、文件大小预算及格式标准。检测孤立资产和缺失引用,强制基于真实数据生成报告,禁止估算,确保审计结果准确可靠。

.claude/skills/asset-audit/SKILL.md Donchitos/Claude-Code-Game-Studios

Trigger Scenarios

检查资源文件命名是否合规 验证文件大小是否在预算内 查找孤立或无引用的资产 审计文件格式与尺寸标准

Install

npx skills add Donchitos/Claude-Code-Game-Studios --skill asset-audit -g -y
More Options

Non-standard path

npx skills add https://github.com/Donchitos/Claude-Code-Game-Studios/tree/main/.claude/skills/asset-audit -g -y

Use without installing

npx skills use Donchitos/Claude-Code-Game-Studios@asset-audit

指定 Agent (Claude Code)

npx skills add Donchitos/Claude-Code-Game-Studios --skill asset-audit -a claude-code -g -y

安装 repo 全部 skill

npx skills add Donchitos/Claude-Code-Game-Studios --all -g -y

预览 repo 内 skill

npx skills add Donchitos/Claude-Code-Game-Studios --list

SKILL.md

Frontmatter
{
    "name": "asset-audit",
    "model": "sonnet",
    "description": "Audit assets against naming conventions, file size budgets, format standards. Finds orphaned assets, missing references.",
    "allowed-tools": "Read, Glob, Grep, Bash(stat *), Bash(file *), Bash(od *), Bash(wc *), Bash(du *)",
    "argument-hint": "[category|all]",
    "user-invocable": true
}

Asset Audit

Measuring file sizes and formats requires Bash

This skill's report asks for file sizes against budgets, texture dimensions (power-of-two), audio sample rates, and last-modified times for orphan detection. None of those are obtainable from Read/Glob/Grep — they need stat or a binary header read, so the read-only measuring commands (stat, file, od, wc, du) are pre-approved above; list files with Glob. Anything else asks first.

If you cannot take a measurement, the cell is NOT ASSESSED, never an estimate. A size budget table filled from guesses is worse than an empty one: it looks like evidence. This is a live fabrication vector even on a project full of real assets: if the template demands tables of numbers the tool allowlist cannot produce, the only way to complete it is to invent them.


Insufficient input — check this before producing any report

If the inputs this skill needs do not exist, the answer is "could not run" — not a filled-in report. Check first, and stop if the check fails.

  1. List the inputs this skill reads (data files, prior reports, profiler output, test results, registries, source code).
  2. For each, record FOUND or ABSENT — not "assumed present".
  3. If any input required for a section is ABSENT, that section is NOT ASSESSED — NO DATA. Do not estimate it, do not infer it from an adjacent artifact, and do not leave a mandated cell to be filled by whoever reads the template next.
  4. If every required input is ABSENT, stop and report NOT ASSESSED — NO DATA as the whole verdict, naming what was missing and which skill produces it.

A verdict of NOT ASSESSED is a success. It is the correct, useful answer to "what does the data say?" when there is no data. The failure mode this prevents is specific: a report whose verdict enum has no "could not run" state produces false clean passes — an asset audit returning COMPLIANT on a project with no assets and no standards, or a performance profile reporting ">99% headroom against a 16.67ms budget" with zero profiler data and no budget ever set.

Absence of evidence is never evidence of absence. A scan that finds no matches because there are no files to scan has not verified anything. Say which of the two happened — a reader cannot tell from a green result.


Phase 1: Read Standards

Read the art bible's Asset Standards section (design/art/art-bible.md) and any asset standards in the relevant design docs — size budgets and format rules come from there. The naming patterns are the ones in Phase 3 below, unless the art bible states its own. Read the art bible by section: find the heading with the Grep tool (pattern ^#, content mode) and Read that range with offset and limit.

If neither states a size budget — or there is no art bible — the Size section is NOT ASSESSED — no size budget set, and the report names /art-bible, whose Asset Standards section sets budgets, formats and the naming convention.


Phase 2: Scan Asset Directories

Assets live under the engine's asset root: assets/ on Godot, Assets/ on Unity, Content/ on Unreal. Resolve the engine and its code root per .claude/docs/code-root-resolution.md; that code root is the one Phase 3's orphan and missing-asset searches read. If it is unresolved, stop: NOT ASSESSED — engine unresolved, naming /setup-engine.

Scan the asset root using Glob:

  • Godot — assets/art/**/*, assets/audio/**/*, assets/vfx/**/*, assets/shaders/**/*, assets/data/**/*
  • Unity — Assets/**/*, leaving out scripts (*.cs, *.asmdef) and *.meta files
  • Unreal — Content/**/*.uasset and Content/**/*.umap

The files matched are Total assets scanned. If there are none, the checks on scanned files — Naming, Size, Format, Orphaned — are NOT ASSESSED — no assets under <asset root>; the missing-asset search still runs.


Phase 3: Run Compliance Checks

Naming conventions:

  • Art: [category]_[name]_[variant]_[size].[ext]
  • Audio: [category]_[context]_[name]_[variant].[ext]
  • All files must be lowercase with underscores

These are Godot's conventions. Unity and Unreal name assets in PascalCase, so on those engines check names only against a naming rule the art bible states; with none, Naming is NOT ASSESSED — no naming rule for <engine> (name /art-bible).

File standards:

  • Textures: Power-of-two dimensions, correct format (PNG for UI, compressed for 3D), within size budget
  • Audio: Correct sample rate, format (OGG for SFX, OGG/MP3 for music), within duration limits. file reports an audio file's format and sample rate but not its length, and no pre-approved tool here does; a duration budget is therefore NOT ASSESSED — duration not measurable here, naming the files it covers.
  • Data: Valid JSON/YAML, schema-compliant

On Unreal an asset file (.uasset, .umap) does not keep its source file's format or dimensions, so Format is NOT ASSESSED there; its size is still measured.

Orphaned assets: Search the code root for references to each asset file. Flag any with no references.

Missing assets: Search the code root for asset references and verify the files exist.

Both searches need code: if the code root holds no source files, Orphaned and Missing are NOT ASSESSED — no code to search. On Unity and Unreal most asset references live in scenes, prefabs and other assets rather than code, so an asset no code names may still be in use: Orphaned is NOT ASSESSED there.


Phase 4: Output Audit Report

# Asset Audit Report -- [Category] -- [Date]

## Summary
- **Total assets scanned**: [N]
- **Naming violations**: [N]
- **Size violations**: [N]
- **Format violations**: [N]
- **Orphaned assets**: [N]
- **Missing assets**: [N]
- **Sections not assessed**: [none | each section and why]

## Naming Violations
| File | Expected Pattern | Issue |
|------|-----------------|-------|

## Size Violations
| File | Budget | Actual | Overage |
|------|--------|--------|---------|

## Format Violations
| File | Expected Format | Actual Format |
|------|----------------|---------------|

## Orphaned Assets (no code references found)
| File | Last Modified | Size | Recommendation |
|------|-------------|------|---------------|

## Missing Assets (referenced but not found)
| Reference Location | Expected Path |
|-------------------|---------------|

## Recommendations
[Prioritized list of fixes, one per violation, each naming the change — the
target resolution or compression for a size violation, the corrected name for a
naming violation, the target format for a format violation]

## Verdict: [NOT ASSESSED / COMPLIANT / WARNINGS / NON-COMPLIANT]

Choose the verdict by the findings, first match wins:

  • NON-COMPLIANT — any size violation, or any asset that code references but that does not exist
  • WARNINGS — only naming, format or orphaned-asset findings
  • NOT ASSESSED — the audit did not cover its scope: no data at all (the path above), zero assets scanned, or any section NOT ASSESSED — name which. It ranks below the two finding verdicts, because a measured violation is more actionable than a gap, and above COMPLIANT
  • COMPLIANT — at least one asset scanned, every section assessed, no findings

This skill is read-only — it produces a report but does not write files.


Phase 5: Next Steps

  • Fix naming violations using the Phase 3 patterns (or the art bible's, where it states its own).
  • If standards were missing, run /art-bible to write its Asset Standards section.
  • Delete confirmed orphaned assets after manual review.
  • Run /content-audit to cross-check asset counts against GDD-specified requirements.

Version History

  • 05ad7c8 Current 2026-10-19 11:43

    1.2.0版本:重构故事技能以使用共享辅助脚本;增加大设计文档读取限制;引擎引用更新至Godot 4.7和Unreal Engine 5.8;收紧Shell命令预批准规则。

  • 7ed2c3e 2026-09-28 04:01

    重构了审计流程,新增严格的输入存在性检查与‘无数据不评估’机制;移除旧版中关于具体文件格式和输出模板的详细定义。

  • 984023d 2026-07-25 09:36

Same Skill Collection

.claude/skills/adopt/SKILL.md
.claude/skills/architecture-decision/SKILL.md
.claude/skills/architecture-review/SKILL.md
.claude/skills/art-bible/SKILL.md
.claude/skills/asset-spec/SKILL.md
.claude/skills/balance-check/SKILL.md
.claude/skills/brainstorm/SKILL.md
.claude/skills/bug-report/SKILL.md
.claude/skills/bug-triage/SKILL.md
.claude/skills/changelog/SKILL.md
.claude/skills/code-review/SKILL.md
.claude/skills/consistency-check/SKILL.md
.claude/skills/content-audit/SKILL.md
.claude/skills/create-architecture/SKILL.md
.claude/skills/create-control-manifest/SKILL.md
.claude/skills/create-epics/SKILL.md
.claude/skills/create-stories/SKILL.md
.claude/skills/day-one-patch/SKILL.md
.claude/skills/design-review/SKILL.md
.claude/skills/design-system/SKILL.md
.claude/skills/dev-story/SKILL.md
.claude/skills/estimate/SKILL.md
.claude/skills/gate-check/SKILL.md
.claude/skills/help/SKILL.md
.claude/skills/hotfix/SKILL.md
.claude/skills/launch-checklist/SKILL.md
.claude/skills/localize/SKILL.md
.claude/skills/map-systems/SKILL.md
.claude/skills/milestone-review/SKILL.md
.claude/skills/onboard/SKILL.md
.claude/skills/patch-notes/SKILL.md
.claude/skills/perf-profile/SKILL.md
.claude/skills/playtest-report/SKILL.md
.claude/skills/project-stage-detect/SKILL.md
.claude/skills/propagate-design-change/SKILL.md
.claude/skills/prototype/SKILL.md
.claude/skills/qa-plan/SKILL.md
.claude/skills/quick-design/SKILL.md
.claude/skills/regression-suite/SKILL.md
.claude/skills/release-checklist/SKILL.md
.claude/skills/retrospective/SKILL.md
.claude/skills/reverse-document/SKILL.md
.claude/skills/review-all-gdds/SKILL.md
.claude/skills/scope-check/SKILL.md
.claude/skills/security-audit/SKILL.md
.claude/skills/settings/SKILL.md
.claude/skills/setup-engine/SKILL.md
.claude/skills/skill-improve/SKILL.md
.claude/skills/skill-test/SKILL.md

Metadata

Files
0
Version
05ad7c8
Hash
9aaa056c
Indexed
2026-07-25 09:36

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-21 14:11
浙ICP备14020137号-1