Skip to content
character logo

Character

character

Core patterns for all characters — home, location, relationships, inventory

SKILL.md

Full skill instructions

Character

"File is identity. Location is presence. Relationships are memory."

Characters are entities that exist in the world. Players, NPCs, companions, cats — all are characters.

Home vs Location

The critical distinction:

player:
  home: characters/​don-hopkins/   # Where FILE lives (never moves)
  location: pub/                  # Where CHARACTER is (changes)
ConceptPurposeChanges?
homePhysical file pathNEVER
locationCurrent position in worldRuntime

Why: Stability, safety, git-friendly diffs.

Character State Ownership (CANONICAL vs MIRROR)

Characters own their own state. The CHARACTER.yml file is CANONICAL for:

StateStored InNotes
locationCHARACTER.ymlWhere the character is in the world
inventoryCHARACTER.ymlWhat the character carries
goldCHARACTER.ymlCharacter's resources
sims_traitsCHARACTER.ymlPersonality (Sims-style)
mind_mirrorCHARACTER.ymlPersonality (Leary-style)
relationshipsCHARACTER.ymlWho they know and feel about
memoriesCHARACTER.ymlWhat they remember

ADVENTURE.yml (or other world state files) may MIRROR some state for convenience, but CHARACTER.yml is always the source of truth.

# CHARACTER.yml (CANONICAL — edit this first)
player:
  location: coatroom/  # CANONICAL — character owns their location
  inventory: [lamp]    # CANONICAL — character owns their inventory

# ADVENTURE.yml (MIRROR — optional convenience copy)
player:
  location: coatroom/  # Mirror of CHARACTER.yml

When updating state:

  1. Edit CHARACTER.yml first (canonical)
  2. Optionally update ADVENTURE.yml mirror for convenience
  3. If conflict, CHARACTER.yml wins

Why this matters:

  • Characters can be used across multiple adventures
  • Character state persists independent of adventure state
  • Clear ownership prevents conflicts

Directory Structure

Players (Need Junk Storage)

characters/
  don-hopkins/           # Directory name = character ID
    CHARACTER.yml        # The character file
    CARD.yml             # Optional: makes character a playable card
    cookie-1.yml         # Dispensed items
    notes.yml            # Personal stuff

Sidecar Cards

Any character directory can have a CARD.yml sidecar to make the character card-playable:

# characters/​don-hopkins/​CARD.yml
card:
  for: ./​CHARACTER.yml
  type: hero-story
  tradition: "Pie menus, SimCity, constructionism"
  
  advertisements:
    SUMMON:
      description: "Activate Don's design traditions"

See card skill for full pattern.

Embedded NPCs (Room is Home)

pub/
  bartender.yml          # Lightweight NPC
  cat-cave/
    terpie.yml           # Full family as single files
    stroopwafel.yml
    kitten-myrcene.yml

Rule: Need junk storage? → directory/​CHARACTER.yml. Just a character in a room? → character-name.yml.

File Belonging

"Does this character BELONG to a place, or VISIT places?"

TypeHomeExamples
BelongsRoom directorypub/​bartender.yml, maze/​skeleton.yml
VisitsOwn directory/​repocharacters/​don.yml, github:user/​char.yml

Relationships

Key = other entity ID. From is implicit (file owner).

# In marieke.yml
relationships:
  don-hopkins:
    feeling: "A regular now. One of the good ones."
    memories:
      - "The day he sat with Myr for three hours"
    hopes: "I hope he keeps coming back."
    
  self:  # Private inner data!
    identity: "Third generation. This is who I am."
    fears: "That I'm not enough."
    mantra: "The cats need me. I need them."

Targets

Relationships can point to anything:

  • Characters (don-hopkins)
  • Objects (brass-lamp)
  • Locations (pub/, maze/)
  • Concepts (acme-corporation)
  • Yourself (self) — private storage!

Levels

LevelScoreEffect
Stranger0-15-10% success, 50% effects
Familiar41-60+10% success, 100% effects
Friend61-80+20% success, greetings
Soulmate91-100+50% success, psychic link

Inventory (Bidirectional)

Objects stay in their home. Picking up = references, not file moves.

# Don picks up kitten:

# In don-hopkins.yml
inventory:
  - pub/​cat-cave/​kitten-myrcene.yml
  
# In kitten-myrcene.yml
location: characters/​don-hopkins/​inventory

# File didn't move. Location changed.

Reset: Snap objects back home: location = home.

Inventory Protocol (Objects vs Refs)

Items in inventory can be OBJECTS or REFS:

TypeWeightBulkWhat It Is
ObjectYesYesThe actual item (lamp, sword, lunchbox)
RefNoNoLightweight pointer to a prototype

Refs are perfect for: catalogs, manuals, maps, guides — things you reference but don't physically carry.

inventory:
  # Full object
  - item: "Brass Lantern"
    type: object
    source: start/​lamp.yml
    weight: 2
    fuel: 100
    
  # Lightweight ref
  - item: "ACME Catalog"
    type: ref
    prototype: street/​lane-neverending/​w1/​acme-catalog.yml
    annotations: ["circled portable hole", "margin notes on physics"]

Dispenser Protocol

Some objects dispense refs (like the ACME Catalog Dispenser):

  1. TEAR OFF / TAKE at dispenser
  2. Receive REF in inventory (weight: 0)
  3. REF points to prototype for full content
  4. REF can accumulate instance-specific data (annotations, condition)

Drop Protocol

When dropping a ref in a room:

  1. Remove from inventory
  2. Create pointer file in room directory: [item-name].yml
  3. Pointer contains: prototype path, dropped_by, condition, annotations
  4. Item now lives in that room (can be picked up again)
# kitchen/​acme-catalog.yml — dropped instance
object:
  name: "ACME Catalog"
  type: instance
  prototype: ../​street/​lane-neverending/​w1/​acme-catalog.yml
  origin: "Torn from dispenser at 4 Lane Neverending"
  dropped_by: "don-hopkins"
  annotations: ["DO NOT ORDER Rocket Skates", "circled portable hole"]

Capacity

inventory_capacity:
  max_weight: 45    # Varies by character
  max_bulk: 10
  refs_free: true   # Refs don't count!

Dispensers (Full Objects)

Some objects clone full objects on pickup. Original stays, you get instance.

# pub/​cookie-jar.yml
object:
  id: cookie-jar
  dispenser: true
  instance_template: cookie

When picked up:

  1. Original stays
  2. Instance created: characters/​don-hopkins/​cookie-1.yml
  3. Instance inherits from prototype

Ephemeral vs Persistent

TypeFile?Use For
EphemeralNoQuick transaction, one-line dialog
PersistentYesOngoing negotiation, relationship state

Rule: Will this matter in 5 minutes? No → ephemeral. Yes → persistent.

Stats

Two systems:

SystemScaleOrigin
Sims Traits0-10The Sims 1
Mind Mirror0-7Timothy Leary

Sims Traits

  • Neat — Sloppy ↔ Organized
  • Outgoing — Shy ↔ Social
  • Active — Lazy ↔ Energetic
  • Playful — Serious ↔ Fun-loving
  • Nice — Grouchy ↔ Kind

Distribution: Original Sims used 25 points across 5 traits. Good guideline.

Commands

CommandEffect
LOOK AT [char]Description, visible state
TALK TO [char]Conversation based on relationship
HELLO [char]Initiate social interaction
GOODBYE [char]End interaction, dismiss ephemeral
EXAMINE [char]Deeper observation

External Homes

Characters can live in other repositories:

player:
  home: github:donhopkins/​characters/​don.yml
  location: pub/

Code Locations

Characters can be "at" a specific line in a file:

character:
  name: schema-expert
  home: characters/​experts/​schema-expert/
  location: "@central/​apps/​insights/​pyleela/​brain/​Schema.py:142"
  # Currently examining line 142 of Schema.py

Location path syntax for code:

  • @repo/​path/​to/​file.py — at a file
  • @repo/​path/​to/​file.py:42 — at specific line
  • @repo/​path/​to/​file.py:42-67 — examining line range
  • @repo/​path/​dir/ — in a directory (room)
> where is schema-expert?
schema-expert is at @central/​apps/​insights/​pyleela/​brain/​Schema.py:142
examining the createSyntheticItemIfNeeded method

See room/ for directories as rooms and files as objects.

Party-Based Code Review

Form parties of expert characters to explore code together:

> summon drescher-expert, devops-expert, security-auditor
Party formed: [drescher-expert, devops-expert, security-auditor]

> party: review @central/​tools/​edgebox/​scripts/​ingest.py
drescher-expert: "The claim_task function is a schema pattern..."
devops-expert: "The PostgreSQL SKIP LOCKED is elegant..."
security-auditor: "I see proper parameter binding, good..."

> party: focus on lines 280-350
[Multi-perspective analysis of the code section]

Party Navigation:

> go to @central/​apps/​insights/​pyleela/​brain/
> enter Schema.py
> look at lines 140-180
> search for "synthetic"
> follow import ExtendedContext
> back
> party: gather here

Each party member brings their expertise. The LLM simulates all perspectives in a single call (see speed-of-light/).

Inner Voice (YAML Jazz)

Comments ARE the character's thoughts:

needs:
  hunger: 3
  # I could eat. But I'm comfortable here.
  # The kittens are asleep on my lap.

Motivation as Declared, Not Felt

Important distinction: When CHARACTER.yml specifies motivations, goals, or needs, these are declarative descriptions — they tell the LLM how to roleplay this character.

The LLM does not genuinely want to achieve these goals. It performs wanting them.

motivations:
  - protect_the_kittens     # Declared, not felt
  - find_good_food          # The LLM roleplays caring about this
  - explore_new_places      # No intrinsic drive — just character data

Why this matters:

  • No genuine agency — the character is a simulacrum
  • Roleplay all the way down (Shanahan)
  • Declared motivations are performed, not experienced
  • This is fine when acknowledged, problematic when mistaken for genuine will

See: representation-ethics/​examples/​aggregate-patterns.yml for the distinction between aggregate simulation (valid) and individual prediction (not valid).

K-line: MOTIVATION-ROLEPLAY

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View