Asset audit

From striderZA/OpenCodeGameStudios · View interactive version

Asset audit is an AI agent skill from the GitHub repository striderZA/OpenCodeGameStudios. Audits game assets for compliance with naming conventions, file size budgets, format standards, and pipeline requirements. Identifies orphaned assets, missing references, and standard violations.

How to use this skill

Skill file

Phase 1: Read Standards

Read the art bible or asset standards from the relevant design docs:

If no art bible exists, note: "No art bible found. Auditing against general game industry conventions." and proceed.


Phase 2: Scan Asset Directories

Use Glob to index all asset files in the target scope. Scan these directories:

Glob pattern="assets/art/**/*.{png,jpg,svg,psd,tres,tscn}" (art)
Glob pattern="assets/audio/**/*.{ogg,mp3,wav,flac}" (audio)
Glob pattern="assets/vfx/**/*.{tscn,tres,gdshader}" (VFX)
Glob pattern="assets/shaders/**/*.{gdshader,tres}" (shaders)
Glob pattern="assets/data/**/*.{json,yaml,csv,tres}" (data)

If the argument specifies a category (e.g., art), limit to that directory.

For each file found, use Bash stat (or Node.js fs.statSync equivalent via Execute) to record file size.


Phase 3: Run Compliance Checks

3a: Naming Conventions

Check each file against the expected naming pattern:

Flag violations with the file path and the specific rule broken.

3b: File Size Budgets

Check file sizes against budget thresholds using Bash:

Bash: find assets/art -name "*.png" -exec stat --format="%s %n" {} \;

| Category | Budget per file | Budget total |

|----------|----------------|--------------|

| Textures (UI) | < 512 KB | < 5 MB |

| Textures (3D models) | < 4 MB | < 100 MB |

| Audio (SFX) | < 256 KB | < 20 MB |

| Audio (music) | < 10 MB | < 100 MB |

| Shaders | < 10 KB | < 200 KB |

| Data files | < 1 MB | < 10 MB |

Flag files exceeding their budget. Calculate total category size and flag if exceeding total budget.

3c: Format Verification

3d: Orphaned Assets

For each asset file, search code and scene files for references. For art/audio assets, search for the filename without extension:

Grep pattern="asset_name" path="src/" (game code)
Grep pattern="asset_name" path="assets/" (scene references)
Grep pattern='"asset_name"' path="assets/data/" (data file references)

Flag any asset with zero references as orphaned. For .tres and .tscn files, also check if they're loaded by other resources.

3e: Missing Assets

Search code for asset references and verify the files exist:

Grep pattern='load\("res://' path="src/" (GDScript Resource loads)
Grep pattern='GD.Load<' path="src/" (C# Resource loads)
Grep pattern='preload\("res://' path="src/" (preload statements)

For each res:// reference found, verify the file exists at that path using Glob. Flag any reference where the file doesn't exist.


Phase 4: Delegate Specialist Review

Spawn specialist agents via Task in parallel:

Collect all specialist outputs. Surface any disagreements between specialists and your own findings to the user via question.


Phase 5: Output Audit Report

Present the synthesized 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]
- **Specialist review**: [technical-artist / sound-designer / systems-designer findings]
- **Overall health**: [CLEAN / MINOR ISSUES / NEEDS ATTENTION / CRITICAL]

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

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

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

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

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

## Recommendations
| Priority | Issue | Action | Owner |
|----------|-------|--------|-------|

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

Ask: "May I write this audit report to production/qa/asset-audit-[category]-[date].md?"

If yes, write the file (create production/qa/ directory if needed).

If the user passed --fix, offer to apply automated fixes (rename files, flag for manual conversion). Do NOT delete orphaned assets without explicit confirmation.


Phase 6: Next Steps

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.