Asset spec

From striderZA/OpenCodeGameStudios · View interactive version

Asset spec is an AI agent skill from the GitHub repository striderZA/OpenCodeGameStudios. Generate per-asset visual specifications and AI generation prompts from GDDs, level docs, or character profiles. Produces structured spec files and updates the master asset manifest. Run after art bible and GDD/level design are approved, before production begins.

How to use this skill

Skill file

Question-tool discipline: whenever a step says to use question, make that tool call in the same turn, then stop. Do not announce it ("I'll call question", "let me ask"), describe its arguments in prose, or write the call as text or pseudo-code. Use one of two shapes, depending on the harness. OpenCode: {"questions": [{"question": "...", "header": "...", "options": [{"label": "...", "description": "..."}]}]}, where header (max 30 chars) and each option's description are required, and questions must be non-empty. oh-my-pi: {"question": "...", "options": [{"label": "...", "description": "..."}]}, where header is optional and description may be omitted. Never send a prompt field or bare-string options. The "Prompt:" and "Options:" labels in this skill describe what to show the user, not parameter names. Analysis goes in ordinary text before the call; the user's answer is the next input.

If no argument is provided, check whether design/assets/asset-manifest.md exists:

> "Usage: /asset-spec system:<name> — e.g., /asset-spec system:tower-defense

> Or: /asset-spec level:iron-gate-fortress / /asset-spec character:frost-warden

> Run after your art bible and GDDs are approved."


Phase 0: Parse Arguments

Extract:

Mode behavior:


Phase 1: Gather Context

Read all source material before asking the user anything.

Required reads:

> "No art bible found. Run /art-bible first — asset specs are anchored to the art bible's visual rules and asset standards."

Extract: Visual Identity Statement, Color System (semantic colors), Shape Language, Asset Standards (Section 8 — dimensions, formats, polycount budgets, texture resolution tiers).

Source doc reads (by target type):

> "The Visual/Audio section of design/gdd/[target-name].md is empty. Either run /design-system [target-name] to complete the GDD, or describe the visual needs manually."

Use question: [A] Describe needs manually / [B] Stop — complete the GDD first

Optional reads:

Present context summary:

Asset Spec: [Target Type] — [Target Name]

- Source doc: [path] — [N] asset types identified

- Art bible: found — Asset Standards at Section 8

- Existing specs for this target: [N already specced / none]

- Shared assets found in other specs: [list or "none"]


Phase 2: Asset Identification

From the source doc, extract every asset type mentioned — explicit and implied.

For systems: look for VFX events, sprite references, UI elements, audio triggers, particle effects, icon needs, and any "visual feedback" language.

For levels: look for unique environment props, atmospheric VFX, lighting setups, ambient audio, skybox/background, and any area-specific materials.

For characters: look for sprite sheets (idle, walk, attack, death), portrait/avatar, VFX attached to abilities, UI representation (icon, health bar skin).

Group assets into categories:

Present the full identified list to the user. Use question:

Do NOT proceed to Phase 3 without user confirmation of the asset list.


Phase 3: Spec Generation

Spawn specialist agents based on review mode. Issue all Task calls simultaneously — do not wait for one before starting the next.

Full mode — spawn in parallel:

art-director via Task:

technical-artist via Task:

Lean mode — spawn art-director only (skip technical-artist).

Solo mode — skip both. Derive specs from art bible rules alone, noting that technical constraints were not validated.

Collect both responses before Phase 4. If any conflict exists between art-director and technical-artist (e.g., art-director specifies 4K textures but technical-artist flags the engine budget requires 512px), surface it explicitly — do NOT silently resolve.


Phase 4: Compile and Review

Combine the agent outputs into a draft spec per asset. Present all specs in conversation text using this format:

## ASSET-[NNN] — [Asset Name]

| Field | Value |
|-------|-------|
| Category | [Sprite / VFX / Environment / UI / Audio / 3D] |
| Dimensions | [e.g. 256×256px, 4-frame sprite sheet] |
| Format | [PNG / SVG / WAV / etc.] |
| Naming | [e.g. vfx_frost_hit_01.png] |
| Polycount | [if 3D — e.g. <800 tris] |
| Texture Res | [e.g. 512px — matches Art Bible §8 Tier 2] |

**Visual Description:**
[2–3 sentences. Specific enough for two artists to produce consistent results.]

**Art Bible Anchors:**
- §3 Shape Language: [relevant rule applied]
- §4 Color System: [color role — e.g. "uses Threat Blue per semantic color rules"]

**Generation Prompt:**
[Ready-to-use prompt. Include: style keywords, composition notes, color palette anchors, lighting direction, negative prompts.]

**Status:** Needed

After presenting all specs, use question:

If [B]: ask which asset and what to change. Revise inline and re-present. Do NOT re-spawn agents for minor text revisions — only re-spawn if the visual direction itself needs to change.

If [C]: ask what direction to change. Re-spawn the relevant agent with the updated brief.


Phase 5: Write Spec File

After approval, ask: "May I write the spec to design/assets/specs/[target-name]-assets.md?"

Write the file with:

# Asset Specs — [Target Type]: [Target Name]

> **Source**: [path to source GDD/level/character doc]
> **Art Bible**: design/art/art-bible.md
> **Generated**: [date]
> **Status**: [N] assets specced / [N] approved / [N] in production / [N] done

[all asset specs in ASSET-NNN format]

Then update design/assets/asset-manifest.md. If it doesn't exist, create it:

# Asset Manifest

> Last updated: [date]

## Progress Summary

| Total | Needed | In Progress | Done | Approved |
|-------|--------|-------------|------|----------|
| [N] | [N] | [N] | [N] | [N] |

## Assets by Context

### [Target Type]: [Target Name]
| Asset ID | Name | Category | Status | Spec File |
|----------|------|----------|--------|-----------|
| ASSET-001 | [name] | [category] | Needed | design/assets/specs/[target]-assets.md |

If the manifest already exists, append the new context block and update the Progress Summary counts.

Ask: "May I update design/assets/asset-manifest.md?"


Phase 6: Close

Use question:


Asset ID Assignment

Asset IDs are assigned sequentially across the entire project — not per-context. Read the manifest before assigning IDs to find the current highest number:

Grep pattern="ASSET-" path="design/assets/asset-manifest.md"

Start new assets from ASSET-[highest + 1]. This ensures IDs are stable and unique across the whole project.

If no manifest exists yet, start from ASSET-001.


Shared Asset Protocol

Before speccing an asset, check if an equivalent already exists in another context's spec:

If a match is found: reference the existing ASSET-ID rather than creating a duplicate. Note the shared usage in the manifest's referenced-by column.

"ASSET-012 (Generic Hit Spark) already specced for Combat system. Reusing for Tower Defense — adding tower-defense to referenced-by."


Error Recovery Protocol

If any spawned agent returns BLOCKED or cannot complete:

  1. Surface immediately: "[AgentName]: BLOCKED — [reason]"
  2. In lean mode or if technical-artist blocks: proceed with art-director output only — note that technical constraints were not validated
  3. In solo mode or if art-director blocks: derive descriptions from art bible rules — flag as "Art director not consulted — verify against art bible before production"
  4. Always produce a partial spec — never discard work because one agent blocked

Collaborative Protocol

Every phase follows: Identify → Confirm → Generate → Review → Approve → Write


Recommended 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.