trait-learning

Automate extraction and replacement of place traits from gameplay data.

Updated Oct 26, 2025
One-click install
npx skills add https://github.com/discountedcookie/10x-mapmaster --skill trait-learning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trait-learning
Source: https://github.com/discountedcookie/10x-mapmaster/tree/main/.opencode/skills/trait-learning
Command: npx skills add https://github.com/discountedcookie/10x-mapmaster --skill trait-learning

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill documents the trait-learning loop, data sources, and the end-to-end flow for enriching places with traits from player input and LLM curation.

Core Features & Use Cases

  • Learning loop overview: End-to-end from game completion to trait updates.
  • Data sources: Nominatim data, session descriptions, game answers, and existing traits.
  • Edge & batch processing: Async queue, edge function flow, and embedding strategy.

Quick Start

Review the trait-learning pipeline to understand how traits are updated and replaced.

Frequently Asked Questions about trait-learning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract and enrich place traits from gameplay data using LLMs?

Trait extraction automates learning place characteristics from player sessions and game answers. The Skill integrates Nominatim-derived place data, LLM prompts, and embedding generation to curate and replace existing traits within asynchronous queue workflows, enabling continuous enrichment from gameplay input.

What data sources feed the trait-learning loop?

The trait-learning pipeline ingests Nominatim place data, player session descriptions, game answers, and existing trait records. These sources flow through LLM curation and embedding generation to produce enriched trait sets that replace prior traits via a deletion-then-insert replacement policy.

Can I run trait learning in edge functions and batch queues?

Yes. Trait learning supports both edge function and asynchronous queue workflows. The Skill handles pgmq queue integration and edge-function flow patterns, allowing you to process trait updates in real-time edge contexts or batch asynchronous environments depending on your game's event cadence.

Do I need to generate embeddings for each trait?

Yes. Trait learning requires embedding generation for each extracted trait. Embeddings enable semantic similarity matching and support downstream filtering, clustering, or retrieval operations within the trait enrichment pipeline.

How does the trait replacement policy work?

The replacement policy deletes all existing traits for a place before inserting newly learned traits. This ensures trait sets remain current and prevents stale or duplicate trait records from accumulating across learning loop iterations.

What's the end-to-end flow from game completion to trait updates?

The learning loop captures player session data and game answers at completion, routes them through LLM-based trait extraction and curation, generates embeddings, and applies the replacement policy to delete old traits and insert enriched ones, completing the trait-update cycle.