art-asset-registry
Track generated 2D/3D assets in one ledger: which prompt made each file, approvals, what's stale.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- art-asset-registry
- description
- Track generated 2D/3D assets in one ledger: which prompt made each file, approvals, what's stale.
02 资源文件 36
- 参考文档reference/adopt.md8.9 KB
- 参考文档reference/ingest.md8.7 KB
- 参考文档reference/ledger-schema.md17.4 KB
- 参考文档reference/licences.md6.6 KB
- 参考文档reference/workflow.md15.3 KB
- 脚本scripts/fixtures/make_tree.py2.4 KB
- 脚本scripts/fixtures/manifest_courier.md2.2 KB
- 脚本scripts/fixtures/negative/bad_cjk_owner/ArtDirection/調色盤/信差.hex45 B
- 脚本scripts/fixtures/negative/bad_cjk_owner/bad_cjk_owner.jsonl689 B
- 脚本scripts/fixtures/negative/bad_cjk_owner/EXPECT211 B
- 脚本scripts/fixtures/negative/bad_cycle/ArtDirection/palettes/gate.hex18 B
- 脚本scripts/fixtures/negative/bad_cycle/ArtDirection/palettes/latch.hex20 B
- 脚本scripts/fixtures/negative/bad_cycle/ArtDirection/palettes/pickup.hex20 B
- 脚本scripts/fixtures/negative/bad_cycle/ArtDirection/palettes/sentry.hex20 B
- 脚本scripts/fixtures/negative/bad_cycle/bad_cycle.jsonl1.3 KB
- 脚本scripts/fixtures/negative/bad_cycle/EXPECT391 B
- 脚本scripts/fixtures/negative/bad_gap/ArtDirection/palettes/courier.hex45 B
- 脚本scripts/fixtures/negative/bad_gap/bad_gap.jsonl670 B
- 脚本scripts/fixtures/negative/bad_gap/EXPECT155 B
- 脚本scripts/fixtures/negative/bad_hash/ArtDirection/palettes/courier.hex45 B
- 脚本scripts/fixtures/negative/bad_hash/bad_hash.jsonl337 B
- 脚本scripts/fixtures/negative/bad_hash/EXPECT191 B
- 脚本scripts/fixtures/negative/bad_territory_upstream/ART_DIRECTION.md90 B
- 脚本scripts/fixtures/negative/bad_territory_upstream/ArtDirection/clips/runner_vault.txt63 B
- 脚本scripts/fixtures/negative/bad_territory_upstream/ArtDirection/motion/runner_vault_h3.txt54 B
- 脚本scripts/fixtures/negative/bad_territory_upstream/bad_territory_upstream.jsonl989 B
- 脚本scripts/fixtures/negative/bad_territory_upstream/EXPECT389 B
- 脚本scripts/fixtures/negative/bad_territory/ART_DIRECTION.md86 B
- 脚本scripts/fixtures/negative/bad_territory/ArtDirection/motion/runner_run_h3.txt66 B
- 脚本scripts/fixtures/negative/bad_territory/bad_territory.jsonl1.0 KB
- 脚本scripts/fixtures/negative/bad_territory/EXPECT291 B
- 脚本scripts/registry_adopt.py49.5 KB
- 脚本scripts/registry_ingest.py56.7 KB
- 脚本scripts/registry_ledger.py31.5 KB
- 脚本scripts/registry_selftest.py39.4 KB
- 脚本scripts/registry.py66.0 KB
03 SKILL.md 正文
art-asset-registry — what exists, where it came from, who approved it
Every generation skill writes files, and none of them remembers which prompt, anchor, seed or
workflow made which file, or whether anyone looked at it. A hand-written manifest.md drifts the
same way in every project: rows for files that are gone, files no row names, rows still PENDING
long after the spec locked, and nothing that notices an approved image being overwritten. The
ledger keeps the facts a script can know (paths, hashes, lineage, links, gates, status) and leaves
the prose to people. It treats 2D and 3D alike: a sprite sheet, a mesh with its raw original, a
rig with the .blend it came from, a clip, a QA sheet a decision rests on.
Start here — the request, and where it is answered
| The request or symptom | Read |
|---|---|
"Track generated assets": starting a ledger, recording after each generation (sha256 per file, each .blend version too), check and its fixes, moving a file, several writers at once |
reference/workflow.md; Commands |
| "Which asset came from which prompt": lineage (parent, links to the art direction, a job or an evidence image), what a field means, the vocabularies, how an id is made, every check rule, the exit codes (0/2/3), the JSON output | reference/ledger-schema.md |
| "Which version is current", or setting a status as a person's act | Working contract; history ID, status ID approved in reference/workflow.md |
| "Stale after a style bump": what a newer upstream made stale, a change record and which evidence wins | stale in reference/workflow.md |
| "A manifest.md with PENDING rows": a hand-written manifest and no ledger, read once into records (dry run first, the manifest never edited); rows to paste back | reference/adopt.md; render |
| A producer's JSON output (a codex call, a frames sidecar, a Blender report) turned into records | reference/ingest.md |
A model with a territory limit, the Sales territory: line, the known licence sources and their territories |
reference/licences.md |
| The flags of one command | scripts/registry.py <command> --help and the module docstrings |
The ledger is the truth;
manifest.mdis the story. Record what was made, check that the disk still matches, and let a person decide what is approved.
Working contract
- The ledger is the truth.
ArtDirection/assets.jsonl, one JSON record per line, appended and never edited. A correction is a new revision; an id's current record is its last line. - The current version is the latest approved revision. A newer candidate is a proposal until
someone approves it;
history IDnames the current version and the previous good one. manifest.mdis prose. Nothing here rewrites it:renderprints rows to paste, and adopting an existing manifest reads it without changing it.- Approval is a human act.
status ID approvedfollows a person looking at the asset where it will be seen, never the end of a script, and names who and on what image (--approver,--evidence). It refuses a failed verdict, a failing gate, a missing or changed file, output of an unsaved Blender file, and adiagnosticrun. - Ids are permanent; hashes are content. An id is made once from a path (NFC, any script) and
survives edits and moves (
mv). Changed bytes are a new revision, back tocandidate. One file belongs to one asset. - Facts, never secrets.
paramsholdsprompt_fileandprompt_sha256, never the prompt text, andserver_label, never a URL. Purchased and third-party files carrysource,licenseandvendor: true, and stay out of git. - Where it may be sold travels with it. A model or footage with a territory limit is recorded
as
licence: {source, id, territory};ART_DIRECTION.mddeclaresSales territory:;checkfails an approved asset whose licence, or one up itsparentanddepends-onlinks, excludes part of it, and only warns while the territory is undecided. - The method lives here; the records live in the project. This skill holds the schema and the scripts. Ledgers, assets and purchased packs stay in each project.
Commands
| Command | Does | Exit |
|---|---|---|
init |
creates the empty ledger; warns when git ignores it | 0 · 3 |
record |
appends a record built from a partial record (--json FILE or stdin) and flags (--art-version N, --link REL=TO); hashes every file and the .blend named in file; refuses a schema break, an unknown parent or link, a cycle, a file another id holds |
0 · 2 refused · 3 bad input |
check [--strict] |
every rule, a licence that excludes part of the declared sales territory among them, then orphans under ArtDirection/ |
0 · 2 · 3 |
stale [--art-version N] [--at NS:KEY=N] |
current candidate and approved records with a link behind: an upstream asset with newer bytes, or an outside version given here; writes nothing | 0 · 3 |
status ID STATE |
the status change as a new revision; approved refuses what check would fail; superseded --by ID refuses an unknown, dead or circular successor |
0 · 2 · 3 |
history ID |
every revision, with the current version and the previous good one marked | 0 · 3 |
mv ID NEWPATH |
the same id at its new path, hashed again | 0 · 2 · 3 |
render |
Markdown rows for manifest.md, printed only |
0 · 3 |
adopt --dry-run [--out FILE] · adopt --write |
reads manifest.md (never written) once into records; prints counts and line numbers only; the dry run never opens the ledger |
0 · 2 nothing written · 3 |
ingest [--json FILE] [--write] |
a producer's JSON output — anything with a record key (the Blender reports), frames.json, a codex call — as a partial record, printed; --write hands it to record |
0 · 2 · 3 |
selftest |
every case in a temporary directory, 100 concurrent appends among them | 0 · 2 |
Every command takes --root DIR and --ledger PATH (or ART_LEDGER). record and ingest read
their input from --json FILE (or stdin); every other command takes --json to print one JSON
object. Exit codes follow unity-debug's merge_results.py: 0 green, 2 failed or refused, 3
harness. scripts/registry_ledger.py is the library (load, last_by_id, current_version,
content_rev, append, validate, sha256_file, slugify) that the other scripts import.
Worked example
The courier run: Runner has a locked anchor, a run sheet, a hammer prop Mallet and a
GateLatchSwing clip.
- Start.
registry.py initcreatesArtDirection/assets.jsonl. Git ignoresArtDirection/raw/and the purchasedArtDirection/vendor/, not the ledger. - A sheet.
codex-visualwritesArtDirection/sheets/runner_run.pngfrom the anchor.record --kind sheet --source generated --art-version 2, with the call's gates, its prompt file and hash, and the anchor as parent: idartdirection/sheets/runner-run, rev 1,candidate, linkedmade-under art:directionrev 2. - A look, then approval. Its QA sheet is recorded too (
kind qa-sheet). At game scale the run reads right:status artdirection/sheets/runner-run approved --approver lead --evidence artdirection/qa/runner-run. Overwriting the sheet later failscheckwithchanged-after-approvaluntil the new bytes are recorded (a new candidate) or put back. - A mesh, and a run to learn from.
comfyui-asset-generationturns theMalletturnaround intoAssets/Models/HeroProp/Mallet/Mallet.glb(shipped, listed first) and a raw original underArtDirection/raw/3d/Mallet/(rolesource), the turnaround as parent and as adepends-onlink. A raw shape-decode export made only to see where sheets come from is recorded--status diagnostic: kept, never approved. - A clip. The
GateLatchSwingreport fromblender-retargetcarries arecordkey;ingest --kind clip --file …@GateLatchSwing.fbx --writerecords it with its gates and the.blend's state and sha256. The.blendwas unsaved, so approval refuses withdirty-file; saved, exported and ingested again, it is approved. - An upstream change. The turnaround is regenerated (new bytes, rev 3):
stalelists the mallet, whosedepends-onlink still says rev 1.ART_DIRECTION.mdgoes to Version 3:stale --art-version 3lists everything made under 2. Each is regenerated, carried forward (recorded again with--art-version 3, then approved) or rejected, with a change record. - The manifest.
renderprints one row per asset; the user pastes the new ones under the manifest's own table.
Discipline
- Record when the file is written. The producer's call is the only moment the prompt hash, seed and inputs are known; recorded later, they are guesses.
- Never edit a line. A wrong record is fixed by a new revision. A
rev-gapmeans someone edited the ledger, and the fix is the ledger from git, not new numbers. - A warning is not a verdict.
local-only,no-hash,moved-on,torn-lineand orphans passcheck; read them anyway. - A script that writes records validates them. It imports
registry_ledger, callsvalidate, thenappend(..., assign_rev=True), so its revisions are numbered inside the lock.
Scope — what this skill does NOT do
| Not here | Go to |
|---|---|
| Generating 2D art, sheets, turnarounds and QA sheets; the art bible itself | codex-visual |
| Generating meshes and textures through ComfyUI | comfyui-asset-generation |
| Rigging a humanoid; skinning and the game mesh in Blender | character-autorig (default) · blender-character-rig (hand-built fallback, game mesh) |
| Retargeting clips onto a rig in Blender | blender-retarget |
| Which stage of a character comes next, and its gate | game-character-pipeline |
| Triangle and texture budgets, the import audit in Unity | unity-3d-models |
| Which packs may be bought, and the reading of a licence's terms | The project's own policy; the ledger records source, license and licence, keeps vendor files out of git, and holds what reference/licences.md lists against the declared territory |
04 同仓库更多 Skills
unity-web-release
Ship a WebGL/WebGPU build: shrink the download, Brotli server headers, Safari and iPhone memory.
unity-vivox
Vivox voice and text chat: channels, positional voice, mute and push-to-talk, mic permission.
unity-urp-migration
Migrate a Built-in project to URP, or fix a half-moved one: pink materials, PPv2, old shaders.
unity-ui-ugui
Canvas UI (uGUI): CanvasScaler, RectTransform anchors, Layout Groups, ScrollView, UI built from C#.
unity-ui-toolkit
UI Toolkit (UXML, USS, UIDocument): flex layout, binding, custom elements, editor windows.
unity-ugs
Unity Gaming Services API: which package, init and sign-in order, Cloud Save, Cloud Code, Remote Config.