asset-audit
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWhen this skill is invoked:
-
Read the art bible or asset standards from the relevant design docs and the CLAUDE.md naming conventions.
-
Scan the target asset directory using Glob:
- for art assets
assets/art/**/* - for audio assets
assets/audio/**/* - for VFX assets
assets/vfx/**/* - for shaders
assets/shaders/**/* - for data files
assets/data/**/*
-
Check naming conventions:
- Art:
[category]_[name]_[variant]_[size].[ext] - Audio:
[category]_[context]_[name]_[variant].[ext] - All files must be lowercase with underscores
- Art:
-
Check 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
- Data: Valid JSON/YAML, schema-compliant
-
Check for orphaned assets by searching code for references to each asset file.
-
Check for missing assets by searching code for asset references and verifying the files exist.
-
Output the audit:
markdown
undefined调用该Skill时:
-
从相关设计文档和CLAUDE.md命名规范中读取美术设定手册或资源标准
-
使用Glob扫描目标资源目录:
- 对应美术资源
assets/art/**/* - 对应音频资源
assets/audio/**/* - 对应VFX资源
assets/vfx/**/* - 对应着色器
assets/shaders/**/* - 对应数据文件
assets/data/**/*
-
检查命名规范:
- 美术资源:
[category]_[name]_[variant]_[size].[ext] - 音频资源:
[category]_[context]_[name]_[variant].[ext] - 所有文件必须使用小写字母和下划线
- 美术资源:
-
检查文件标准:
- 纹理:尺寸为2的幂次,格式正确(UI用PNG,3D用压缩格式),符合大小限制
- 音频:采样率正确,格式正确(音效用OGG,音乐用OGG/MP3),符合时长限制
- 数据:有效的JSON/YAML,符合Schema规范
-
通过在代码中搜索每个资源文件的引用,检查孤立资源。
-
通过在代码中搜索资源引用并验证文件是否存在,检查缺失资源。
-
输出审计报告:
markdown
undefinedAsset Audit Report -- [Category] -- [Date]
资源审计报告 -- [类别] -- [日期]
Summary
摘要
- Total assets scanned: [N]
- Naming violations: [N]
- Size violations: [N]
- Format violations: [N]
- Orphaned assets: [N]
- Missing assets: [N]
- Overall health: [CLEAN / MINOR ISSUES / NEEDS ATTENTION]
- 扫描的资源总数:[N]
- 命名违规:[N]
- 大小违规:[N]
- 格式违规:[N]
- 孤立资源:[N]
- 缺失资源:[N]
- 整体健康状况:[良好 / 轻微问题 / 需要关注]
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]
undefined[按优先级排序的修复列表]
undefined