Chuyển đến nội dung
Skillpedia
Hình ảnh và biểu tượng33k · #8438

asset-audit

Skill này làm gì

Skill này kiểm toán các file hình ảnh và âm thanh trong một dự án game. Skill dành cho nhóm muốn phát hiện tài nguyên quá lớn, đặt tên sai hoặc không dùng trước khi chúng gây rắc rối.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra tên tài nguyên có tuân theo quy tắc đặt tên của dự án không.
  • ✓Khi dung lượng file có thể vượt ngân sách và bạn cần tìm các file lớn nhất.
  • ✓Khi bạn nghi ngờ có tham chiếu tài nguyên không dùng hoặc bị hỏng trong dự án.

Liên kết skill

https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/asset-audit/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/asset-audit/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm toán tài nguyên của chúng tôi xem có vấn đề đặt tên, kết cấu quá lớn hoặc file nào không ai tham chiếu không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill liệt kê các file tài nguyên và đo kích thước, kích thước điểm ảnh và tần số lấy mẫu bằng các lệnh chỉ đọc. Mọi phép đo không thể thực hiện được được đánh dấu là chưa được đánh giá, không được ước đoán.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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, co
Câu hỏi thường gặp

Nó có đoán dung lượng file không?

Không. Nếu không thể đo một chỉ số, báo cáo đánh dấu nó là chưa được đánh giá.

Nó tìm những gì?

Nó kiểm tra quy ước đặt tên, ngân sách dung lượng, kích thước kết cấu, tần số lấy mẫu âm thanh và các file mồ côi.

Nó có thay đổi file nào không?

Nó tạo ra một báo cáo các phát hiện, còn việc sửa là một bước riêng.

Chi tiết

Mô tả gốc của tác giả

Audit assets against naming conventions, file size budgets, format standards. Finds orphaned assets, missing references.

repo: Donchitos/Claude-Code-Game-Studios

Độ phổ biến

Sao GitHub
33k
Vị trí xếp hạng
#8438
Giấy phép
MIT
Cập nhật
18/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự