asset-audit
它能做什么
这个技能审计游戏项目中的美术和音频文件。适合希望在超大、命名错误或未使用的素材造成问题之前发现它们的团队。
适用场景
- ✓当你想检查素材名称是否符合项目的命名规则的时候。
- ✓当文件大小可能超出预算,你需要找出最大的文件的时候。
- ✓当你怀疑项目中存在未使用或失效的素材引用的时候。
技能链接
https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/asset-audit/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查我们的素材是否存在命名问题、过大的纹理,以及没有任何地方引用的文件。”
每周 5 个新技能,1 分钟读完。
工作原理
它会用只读命令列出素材文件,并测量其大小、尺寸和采样率。任何无法测量的项目都会被标记为未评估,而不会被估算。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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.
- List the inputs this skill reads (data files, prior reports, profiler output, test results, registries, source code).
- For each, record
FOUNDorABSENT— not "assumed present". - 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. - If every required input is ABSENT, stop and report
NOT ASSESSED — NO DATAas 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*.metafiles - Unreal —
Content/**/*.uassetandContent/**/*.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, co
常见问题
它会猜测文件大小吗?
不会。如果无法进行测量,报告会将其标记为未评估。
它会检查哪些内容?
它检查命名约定、大小预算、纹理尺寸、音频采样率和孤立文件。
它会修改任何文件吗?
它只生成一份发现报告,任何修复都是单独的步骤。
详情
作者的原始描述
Audit assets against naming conventions, file size budgets, format standards. Finds orphaned assets, missing references.
热度
- GitHub 星标
- 33k
- 排名
- #8438
- 许可证
- MIT
- 更新时间
- 2026/10/18
评论
- …