Soul2dna

From ComeOnOliver/skillshub · View interactive version

Soul2dna is an AI agent skill from the GitHub repository ComeOnOliver/skillshub. Compile SOUL.md character profiles into synthetic diploid genomes (.genome.json) via trait-to-allele mapping

How to use this skill

Skill file

🧬 Soul2DNA Compiler

Purpose

Compile SOUL.md character profiles into synthetic diploid genomes. Each soul file

describes a historical or fictional figure with trait scores (0.0 to 1.0). The

compiler maps these scores to alleles at defined loci using additive, dominant, or

recessive inheritance models, producing a .genome.json file per character.

How It Works

  1. Parse SOUL.md files from GENOMEBOOK/DATA/SOULS/ extracting identity

metadata (name, sex, ancestry, domain, era) and trait scores.

  1. Load trait registry (GENOMEBOOK/DATA/trait_registry.json) which defines

loci, alleles, chromosomal positions, dominance models, and effect sizes for

each trait.

  1. Assign genotypes at each locus based on trait score thresholds:
  1. Write genome as JSON with full locus detail, trait scores, and metadata.

Input

Output

CLI Usage

# Compile all souls to genomes
python skills/soul2dna/soul2dna.py

# Demo mode (shows summary without writing files)
python skills/soul2dna/soul2dna.py --demo

Output Format

Each .genome.json contains:

{
  "id": "einstein-g0",
  "name": "Albert Einstein",
  "sex": "Male",
  "sex_chromosomes": "XY",
  "ancestry": "...",
  "generation": 0,
  "parents": [null, null],
  "loci": { "<locus_id>": { "chromosome": "...", "alleles": ["A","G"], ... } },
  "trait_scores": { "curiosity": 0.95, ... }
}
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.