asset-audit

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
When this skill is invoked:
  1. Read the art bible or asset standards from the relevant design docs and the CLAUDE.md naming conventions.
  2. Scan the target asset directory using Glob:
    • assets/art/**/*
      for art assets
    • assets/audio/**/*
      for audio assets
    • assets/vfx/**/*
      for VFX assets
    • assets/shaders/**/*
      for shaders
    • assets/data/**/*
      for data files
  3. Check naming conventions:
    • Art:
      [category]_[name]_[variant]_[size].[ext]
    • Audio:
      [category]_[context]_[name]_[variant].[ext]
    • All files must be lowercase with underscores
  4. 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
  5. Check for orphaned assets by searching code for references to each asset file.
  6. Check for missing assets by searching code for asset references and verifying the files exist.
  7. Output the audit:
markdown
undefined
调用该Skill时:
  1. 从相关设计文档和CLAUDE.md命名规范中读取美术设定手册或资源标准
  2. 使用Glob扫描目标资源目录
    • assets/art/**/*
      对应美术资源
    • assets/audio/**/*
      对应音频资源
    • assets/vfx/**/*
      对应VFX资源
    • assets/shaders/**/*
      对应着色器
    • assets/data/**/*
      对应数据文件
  3. 检查命名规范
    • 美术资源:
      [category]_[name]_[variant]_[size].[ext]
    • 音频资源:
      [category]_[context]_[name]_[variant].[ext]
    • 所有文件必须使用小写字母和下划线
  4. 检查文件标准
    • 纹理:尺寸为2的幂次,格式正确(UI用PNG,3D用压缩格式),符合大小限制
    • 音频:采样率正确,格式正确(音效用OGG,音乐用OGG/MP3),符合时长限制
    • 数据:有效的JSON/YAML,符合Schema规范
  5. 通过在代码中搜索每个资源文件的引用,检查孤立资源
  6. 通过在代码中搜索资源引用并验证文件是否存在,检查缺失资源
  7. 输出审计报告
markdown
undefined

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]
  • Overall health: [CLEAN / MINOR ISSUES / NEEDS ATTENTION]
  • 扫描的资源总数:[N]
  • 命名违规:[N]
  • 大小违规:[N]
  • 格式违规:[N]
  • 孤立资源:[N]
  • 缺失资源:[N]
  • 整体健康状况:[良好 / 轻微问题 / 需要关注]

Naming Violations

命名违规

FileExpected PatternIssue
文件预期格式问题

Size Violations

大小违规

FileBudgetActualOverage
文件限制大小实际大小超出量

Format Violations

格式违规

FileExpected FormatActual Format
文件预期格式实际格式

Orphaned Assets (no code references found)

孤立资源(未找到代码引用)

FileLast ModifiedSizeRecommendation
文件最后修改时间大小建议

Missing Assets (referenced but not found)

缺失资源(有引用但未找到文件)

Reference LocationExpected Path
引用位置预期路径

Recommendations

建议

[Prioritized list of fixes]
undefined
[按优先级排序的修复列表]
undefined