diff --git a/SKILL.md b/SKILL.md new file mode 100644 index 0000000..287517b --- /dev/null +++ b/SKILL.md @@ -0,0 +1,37 @@ +--- +name: npc-visualization +description: Generate non‑nudity Norse‑themed NPC visuals using a reference‑first workflow. Use when asked to create photorealistic medieval Norse NPC images with stable identity/outfit references before final interaction‑framed renders. +--- + +# NPC Visualization + +## Overview +Create **stable reference visuals first**, then produce final interaction‑framed NPC portraits and ambience/location‑context renders. This skill is **non‑nudity** focused and enforces Norse/anti‑modern style constraints. + +## Quick start +1) Read **references/workflow.md** for the full workflow, gates, and storage layout. +2) Default model: **grok‑imagine‑image** (users may override). +3) **Reference images (face/body)** should use **grok‑imagine‑image‑pro** by default for fidelity. +4) Generate **reference set** first; wait for human keeper selection before any final renders. + +## Workflow (summary) +1) **Reference set** (neutral framing) + - Build consistent **face/body/outfit** reference images per NPC. + - **Face refs:** default to **split‑and‑stitch** (left/front/right generated separately → stitched) to prevent mirrored right‑view errors. + - **Minors:** body refs must be **fully clothed** (modest medieval attire). + - **Outfits:** use **body + face refs** as inputs to lock identity. + - Add `npc.json` profile file (identity, role, visual traits, refs). + - No interaction framing yet; focus on identity + materials + lighting consistency. +2) **Gate: human selects keeper references** +3) **Final renders** + - **NPCs:** interaction framing (subject faces camera), 16:9, photorealistic. + - **Ambience/contexts:** keep the chosen reference style (key locations handled in a separate skill). + +## Style constraints (defaults) +- **Norse, medieval, photorealistic**, 16:9. +- **Anti‑modern:** no electric/fluorescent lighting, no modern fixtures/fabrics. +- **Interaction framing** only for final images (not for references). + +## Resources +### references/ +- **references/workflow.md** — full workflow, gates, storage layout, and quality checks. diff --git a/references/wealth-tiers-10-70-signals.md b/references/wealth-tiers-10-70-signals.md new file mode 100644 index 0000000..ff10946 --- /dev/null +++ b/references/wealth-tiers-10-70-signals.md @@ -0,0 +1,410 @@ +# Wealth Tier Signals for Future NPC Pools (10-Village .. 70-Elite) + +Status: **planning reference only** (no current dataset renames required). + +## Purpose + +Define a **7-rung wealth ladder** for NPC pools that: +- keeps immediate human-readable meaning, +- sorts cleanly in folders with numeric labels, +- leaves insertion room for future intermediate rows. + +Primary use: prompt-writing and QA for NPC portraits, interactions, and establishment scenes. + +--- + +## Canonical Ladder (future) + +| Numeric Label | Label-Key | Tier Name | Core Meaning | +|--------------:|-----------|-------------|--------------| +| 10 | `10-Village` | Village | Spartan subsistence baseline; minimal surplus, practical reuse culture | +| 20 | `20-Poor` | Poor | Financially strained; frequent patching/repair, unstable comfort | +| 30 | `30-Modest` | Modest | Functional lower-middle; basic reliability, limited extras | +| 40 | `40-Comfortable` | Comfortable | Stable middle; dependable quality, routine comforts | +| 50 | `50-Prosperous` | Prosperous | Very well-off but still actively working/operating | +| 60 | `60-Wealthy` | Wealthy | Work optional; high discretionary spending and social signaling | +| 70 | `70-Elite` | Elite | Jet-set rich equivalent; no need to subdivide 10M vs 100M bands | + +### Optional extension labels (keep off by default) + +Use only if a specific production need appears: + +| Numeric Label | Label-Key | Tier Name | Meaning | +|--------------:|-----------|-----------|---------| +| 80 | `80-EliteXL` | Elite XL | Elite-plus scale jump (larger entourage/space/status theater) | +| 90 | `90-EliteXXL` | Elite XXL | Maximal palatial/temple-complex prestige tier | + +### Folder naming convention + +Use numeric prefixes in old BASIC style (increments of 10): +- `10-Village` +- `20-Poor` +- `30-Modest` +- `40-Comfortable` +- `50-Prosperous` +- `60-Wealthy` +- `70-Elite` + +This keeps lexical order aligned with economic order and leaves slots open (`15, 25, 35...`) if needed later. + +--- + +## How to use this reference in prompts + +For each render, pick: +1. **3–5 positive signals** for the target tier, +2. **2 anti-signals** from adjacent higher/lower tiers, +3. one explicit **counter/display detail** and one **grooming detail**. + +Keep anti-modern constraints active globally (medieval Norse context). + +--- + +## Quick Signal Matrix + +| Category | 10 Village | 20 Poor | 30 Modest | 40 Comfortable | 50 Prosperous | 60 Wealthy | 70 Elite | +|---|---|---|---|---|---|---|---| +| Cloth/Fabric | coarse homespun, rough wool | worn wool/linen blends | simple dyed wool/linen | decent weave, lined garments | high-quality dyed cloth, layered tailoring | fine wool, silk accents, fur trim | exceptional textiles, imported dyes, rare furs | +| Fit/Tailoring | loose utilitarian | mismatched, repaired fit | functional fit | clean fit, consistent silhouette | tailored fit with mobility | bespoke fit, decorative structure | immaculate bespoke + ceremonial variants | +| Jewelry | none/cord tokens | occasional cheap charm | one modest token | subtle silver/bronze pieces | quality silver + occasional gem | visible precious metals/gems | curated statement pieces, heirlooms | +| Hair | practical crop/braid | uneven cuts, improvised trims | tidier practical style | maintained style | deliberate style with status cues | professionally kept, complex styling | highly curated, event-ready styling | +| Skin/Hands | weathered, callused | rough, stress-marked | mixed wear + care | healthier skin, fewer stress cues | clear skin, maintained nails/hands | polished grooming, minimal manual wear | luxury-level skin/hair care, immaculate hands | +| Counters/Shopfront | raw wood, patched | chipped surfaces, stains | basic but serviceable | maintained counters, cleaner joins | quality timber/stone finish | polished surfaces, ornamented edges | artisan inlay, premium stone/woodwork | +| Decor | sparse utility only | sparse + worn leftovers | limited decorative touches | balanced practical + decorative | coordinated decor sets | curated decorative themes | collector-grade decor + prestige artifacts | +| Lighting | dim practical flame | inconsistent flame, smoky | practical but better maintained | warm consistent practical lighting | layered practical lighting zones | controlled ambience + high quality fixtures | dramatic yet controlled prestige lighting | +| Inventory display | piles/crates | mixed piles + salvage | sorted basics | organized shelves/labels (diegetic) | display logic by category/quality | presentation-first arrangement | boutique/gallery-level curation | + +--- + +## Tier-by-Tier Detailed Signals + +## 10 — Village (most spartan) + +### Clothing & Wearables +- Undyed or lightly dyed coarse wool/linen; visible weave irregularity. +- One or two layers max; function first (warmth, work, weather). +- Fasteners are simple ties/toggles; minimal metalwork. +- Frequent visible mending, but not stylized. + +### Jewelry & Accessories +- Essentially none; maybe carved wood/bone talisman. +- Utility belts/pouches are plain and overused. + +### Hair, Skin, Grooming +- Practical hair management (short crop, single braid, tied back). +- Sun/wind exposure visible; hands show heavy labor. +- Nails short/rough; no cosmetic polish cues. + +### Shop/Environment Signals +- Counter: rough-hewn wood, knife marks, old stains. +- Displays: bins, baskets, hanging bundles; little symmetry. +- Decor: almost none beyond ritual/household necessity. +- Lighting: single practical sources; shadow-heavy interior. + +### Behavioral / Economic Cues +- Repair and reuse are normal; nothing is thrown away casually. +- Inventory depth is narrow and seasonal. + +### Guardrails +- Do **not** add precious metal jewelry. +- Do **not** add polished luxury furniture or coordinated color themes. + +--- + +## 20 — Poor + +### Clothing & Wearables +- Mixed-quality garments, often inherited or second-hand. +- Visible patches at elbows/knees/hem; faded dyes. +- Slightly more variation than Village, still clearly constrained. + +### Jewelry & Accessories +- Cheap tin/bronze-like trinket possible, rarely matched sets. +- Scuffed belts, practical pouches, repaired footwear. + +### Hair, Skin, Grooming +- Grooming exists but is inconsistent; rough edges remain. +- Hair may be trimmed unevenly; practical over style. +- Skin shows fatigue, dryness, weather stress. + +### Shop/Environment Signals +- Counter: worn boards, uneven surfaces, old burn/water marks. +- Shelves: functional but cluttered; item quality mixed. +- Decor: a few aspirational pieces, visibly old or mismatched. +- Lighting: practical flame, occasional soot-heavy fixtures. + +### Behavioral / Economic Cues +- Cost sensitivity visible in stock choices and repairs. +- “Good enough” maintenance level. + +### Guardrails +- Avoid coordinated high-status outfits. +- Avoid pristine surfaces or fresh premium materials. + +--- + +## 30 — Modest + +### Clothing & Wearables +- Clean basic garments; simple but intentional color choices. +- Better stitching and more consistent fit than Poor. +- Modest layering and mild ornament in trim/embroidery. + +### Jewelry & Accessories +- One simple, coherent accessory (silver pin, ring, clasp). +- Functional leather goods in decent condition. + +### Hair, Skin, Grooming +- Hair is tidy and intentionally arranged, though simple. +- Skin and hands show mixed signs: some labor, some care. +- Teeth/hair condition generally healthy but not luxurious. + +### Shop/Environment Signals +- Counter: serviceable, maintained, occasionally refinished. +- Display: category grouping present; fewer random piles. +- Decor: selective practical decoration (woven cloth, wood carving). +- Lighting: more even practical illumination. + +### Behavioral / Economic Cues +- Purchases are considered, with occasional small indulgence. +- Stock quality is mostly reliable baseline. + +### Guardrails +- Don’t over-polish into Comfortable+ territory. +- Avoid multiple fine-jewelry pieces. + +--- + +## 40 — Comfortable + +### Clothing & Wearables +- Reliable quality fabrics; lining and clean seams visible. +- Good fit; color coordination appears deliberate. +- Seasonal variation in garments (work vs social) is plausible. + +### Jewelry & Accessories +- Subtle real-metal accents (silver/bronze), restrained styling. +- Quality belts, pouches, and footwear in maintained condition. + +### Hair, Skin, Grooming +- Consistently maintained hairstyle; cleaner edges and symmetry. +- Skin generally healthy; fewer stress markers than Modest. +- Hands may still show work, but with active care. + +### Shop/Environment Signals +- Counter: well-maintained, stable joinery, cleaner finish. +- Display: clear merchandising logic, easy browsing. +- Decor: coordinated but not ostentatious. +- Lighting: warmer and more balanced practical sources. + +### Behavioral / Economic Cues +- Buys for reliability and comfort, not only necessity. +- Can replace worn goods before failure. + +### Guardrails +- Avoid gem-heavy visible wealth signaling. +- Avoid palace-like architecture and collector displays. + +--- + +## 50 — Prosperous (new intermediate rung) + +### Clothing & Wearables +- Clearly high-quality fabrics and dye consistency. +- Tailoring is strong and intentional, yet practical for active work. +- Distinct “owner/operator with means” look. + +### Jewelry & Accessories +- Quality silver plus occasional gemstone accent. +- Accessories are matched sets or coherent style family. + +### Hair, Skin, Grooming +- Grooming is clearly professional-level and consistent. +- Hands show less hard labor wear, though still “working person” plausible. +- Overall health cues are visibly above Comfortable. + +### Shop/Environment Signals +- Counter: premium timber/stone finish, clean edges, good upkeep. +- Display: quality-first presentation, curated best-stock areas. +- Decor: coordinated themes with selective prestige pieces. +- Lighting: layered practical lighting with intentional ambience. + +### Behavioral / Economic Cues +- Significant discretionary spending, but still business-active. +- Investments in quality process, tools, and customer experience. + +### Guardrails +- Avoid full aristocratic “work-optional” lifestyle cues. +- Keep some operational realism (ledgers, tools, active workflow). + +--- + +## 60 — Wealthy + +### Clothing & Wearables +- Fine fabrics, custom tailoring, decorative structure. +- Distinct social vs private wardrobes. +- Rich trim, fur accents, embroidery quality visible. + +### Jewelry & Accessories +- Multiple precious-metal elements and quality stones. +- Accessories imply status signaling, not just utility. + +### Hair, Skin, Grooming +- High-end grooming cues, immaculate presentation. +- Minimal manual wear markers. +- Healthy complexion, polished style consistency. + +### Shop/Environment Signals +- Counter: polished and ornamental (carved edges, inlay, quality stone). +- Display: boutique-style arrangement, experience-forward layout. +- Decor: curated, thematic, expensive materials. +- Lighting: controlled atmosphere, premium fixtures and holders. + +### Behavioral / Economic Cues +- Work is optional; choices are preference-driven more than constrained. +- Inventory includes expensive low-turnover prestige goods. + +### Guardrails +- Avoid extreme ceremonial overstatement reserved for Elite. +- Maintain world realism (still a place used by people, not only for show). + +--- + +## 70 — Elite (jet-set equivalent) + +### Clothing & Wearables +- Exceptional textile quality, rare dyes/materials, ceremonial alternates. +- Bespoke tailoring with house/symbolic motifs. +- Garments are image strategy as much as clothing. + +### Jewelry & Accessories +- Curated statement pieces, heirlooms, collector-level craft. +- High-value items are normal day context, not special occasion only. + +### Hair, Skin, Grooming +- Impeccable grooming and skin/hair quality. +- No visible routine labor wear. +- “Always event-ready” baseline presentation. + +### Shop/Environment Signals +- Counter/interior materials read as masterwork. +- Decor includes rare artifacts, commissions, and prestige provenance. +- Spatial design prioritizes status performance and controlled guest experience. +- Dedicated attendants/service choreography plausible. + +### Behavioral / Economic Cues +- Near-frictionless purchasing capacity. +- Prestige, exclusivity, and influence are first-order concerns. + +### Guardrails +- No need to subdivide into super-elite micro-bands. +- Keep anti-modern medieval-Norse world constraints intact. + +--- + +## Cross-Category “Must Show” Packs (fast prompt helper) + +Use one pack as a minimal baseline; add role-specific detail after. + +### 10 Village pack +- coarse homespun layers +- rough/marked wood counter +- sparse utility-only decor +- weathered hands and practical hair + +### 20 Poor pack +- patched faded clothing +- cluttered mixed-quality display +- worn counter with repairs +- inconsistent grooming + +### 30 Modest pack +- clean basic garments with simple coordination +- organized baseline stock grouping +- maintained practical counter +- tidy but simple hair/grooming + +### 40 Comfortable pack +- dependable quality textiles and fit +- balanced practical + decorative interior +- maintained counter and shelving +- healthy grooming with subtle status cues + +### 50 Prosperous pack +- high-quality tailored garments for active owner/operator +- curated premium stock zones +- high-finish counter materials +- polished grooming + selective gemstone/silver accents + +### 60 Wealthy pack +- bespoke fine garments with decorative trim +- boutique-grade display and polished surfaces +- multiple precious accessories +- near-immaculate presentation + +### 70 Elite pack +- rare materials + ceremonial-grade tailoring +- collector-level decor and craftsmanship +- statement heirloom jewelry +- elite service/staging cues + +--- + +## Anti-Leak Rules Between Adjacent Tiers + +- 10/20 should not inherit 50+ polishing, symmetry, or gemstone density. +- 30 should not look materially identical to 40 (add clear reliability jump). +- 40 should not look materially identical to 50 (add clear curation/tailoring jump). +- 50 should visibly differ from 60 by **work-active** cues. +- 60 should visibly differ from 70 by **prestige theater** cues. + +If two neighboring tiers are hard to distinguish in QA, increase contrast in: +1. fabric quality, +2. counter finish, +3. jewelry complexity, +4. grooming polish, +5. inventory presentation logic. + +--- + +## Prompt Skeleton (drop-in) + +```text +Medieval Norse, photorealistic, anti-modern, 16:9. +Target wealth tier: . +Must-show signals: +- +- +- +Anti-signals: +- avoid +- avoid +Character cues: +Environment cues: +No modern artifacts, no text, no logos, no watermark. +``` + +--- + +## Optional Future Insertion Slots (reserved) + +Keep empty unless a real production need appears. +- `15` between Village and Poor +- `25` between Poor and Modest +- `35` between Modest and Comfortable +- `45` between Comfortable and Prosperous +- `55` between Prosperous and Wealthy +- `65` between Wealthy and Elite + +Recommendation: add only when recurring ambiguity appears in production QA. + +--- + +## Notes for Workflow Integration (later) + +When integrating into an NPC workflow: +1. Treat numeric tier labels as canonical sort keys. +2. Keep human-readable names in folders and metadata. +3. Add QA checklist item: “Would a human place this in the intended rung within 3 seconds?” +4. Track common misclassifications and strengthen anti-signals accordingly. diff --git a/references/workflow.md b/references/workflow.md new file mode 100644 index 0000000..a5950d2 --- /dev/null +++ b/references/workflow.md @@ -0,0 +1,65 @@ +# NPC Visualization Workflow (non‑nudity) + +## 1) Scope & triggers +Use this workflow for: +- **Named NPC portraits** (non‑nudity) with stable identity across iterations. +- **Named ambience / NPC‑context visuals** that preserve the NPC reference style. +- **Key locations** are covered by a separate skill (but can reuse these NPC references). + +Example triggers: +- “I need a new NPC and need to figure out what they look like.” +- “Create stable references for NPC X before we place them in scenes.” + +## 2) Storage layout (current) +Root: `~/output/to-dnd-session/Reference Visuals/` + +- `Reference Visuals/NPCs//` + - `00-face.jpg` — face reference (neutral expression; **1/3 left + front + 1/3 right**). **Default method:** generate three separate single‑view panels (left/front/right) and **stitch** into a single 16:9 image to avoid mirrored right‑view failures. + - **Mark fidelity:** generate **front** first from the original. Then generate **left/right** using the **front as primary reference** and the original as secondary (`image_2`), with explicit “preserve all scars/marks; do not add/remove; no mirroring.” + - `01-body.jpg` — body reference (**front + back** views; neutral A‑pose; white). Default: underwear. **If NPC is a minor, use modest fully‑clothed medieval attire instead.** + - `02-marks/` — close‑ups of tattoos/scars/unique marks. + - `npc.json` — structured profile (identity, role, visual traits, refs). + - `Outfits/` + - `.jpg` — **single 16:9 image** containing **front + back** neutral A‑poses on white (side‑by‑side) to reduce reference‑image count. + +- `Reference Visuals/Locations/` (reserved for the separate locations skill) + +## 3) Reference‑first pipeline (required) +**Goal:** lock identity/style before final renders. + +1) **Collect brief** + - NPC: name, age, vibe, attire, role, setting. + +2) **Generate reference set** + - **No interaction framing yet** (neutral framing acceptable). + - Enforce **Norse + anti‑modern** style. + - If the source image is non‑photorealistic, explicitly request **photorealistic conversion** while preserving facial structure. + - Preserve **asymmetric details** (e.g., a single earring); do **not** mirror. If the detail isn’t visible in a view, **don’t add it**. + - Keep composition/lighting consistent across refs. + +3) **Gate: human selects keeper references** + - Do **not** proceed until keepers are chosen. + +4) **Final renders** + - NPCs: **interaction framing** (subject faces camera) + 16:9. + - Ambience/context: preserve keeper materials/lighting/mood. + +## 4) Style constraints (defaults) +- **Norse, medieval, photorealistic**, 16:9. +- **Anti‑modern:** no electric/fluorescent lighting, no modern fixtures, no modern fabrics/cuts. +- **Interaction framing** only for final NPC images. + +## 5) Consistency rules +- Use **the same identity description + name** across all passes. +- For outfit refs, **use both body + face references** (image + image_2) to lock identity. +- If outfit continuity matters, prefer **image‑edit** workflows for final renders. +- Avoid modern artifacts (lighting, furniture, textiles). + +## 6) Gate checkpoints (human actions) +- **After reference set:** human picks keepers. +- **After final A–E batch:** human picks keepers; then clean filenames. + +## 7) Model guidance +- **Reference images (face/body):** default to **grok‑imagine‑image‑pro** for higher fidelity. +- **Other renders:** default to **grok‑imagine‑image** (fast/cheap). +- Allow users to override model as desired.