Skip to content
Back to skills

Soul2dna

ASecurity

Compile SOUL.md character profiles into synthetic diploid genomes (.genome.json) via trait-to-allele mapping

  • 230 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
ai-agentspythonbashgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add BioTender-max/awesome-bio-agent-skills --skill soul2dna --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Soul2dna?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Soul2dna
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biotender-max-soul2dna/badge)](https://www.skillsdirectory.com/skills/biotender-max-soul2dna)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: soul2dna
description: Compile SOUL.md character profiles into synthetic diploid genomes (.genome.json) via trait-to-allele mapping
license: MIT
metadata:
  version: 0.1.0
  author: Manuel Corpas
  tags:
  - genomebook
  - synthetic-genomics
  - soul-compiler
  - trait-mapping
  openclaw:
    requires:
      bins:
      - python3
    always: false
    emoji: 🧬
    homepage: https://github.com/ClawBio/ClawBio
    os:
    - darwin
    - linux
    trigger_keywords:
    - soul2dna
    - soul compiler
    - soul to genome
    - genomebook compile
    - synthetic genome
    - character genome
---

# 🧬 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.
2. **Load trait registry** (`GENOMEBOOK/DATA/trait_registry.json`) which defines
   loci, alleles, chromosomal positions, dominance models, and effect sizes for
   each trait.
3. **Assign genotypes** at each locus based on trait score thresholds:
   - Additive: <0.33 ref/ref, 0.33-0.66 ref/alt, >0.66 alt/alt
   - Dominant: <0.40 ref/ref, 0.40-0.75 ref/alt, >0.75 alt/alt
   - Recessive: <0.50 ref/ref, 0.50-0.80 ref/alt, >0.80 alt/alt
4. **Write genome** as JSON with full locus detail, trait scores, and metadata.

## Input

- `GENOMEBOOK/DATA/SOULS/*.soul.md` (20 historical figures)
- `GENOMEBOOK/DATA/trait_registry.json`

## Output

- `GENOMEBOOK/DATA/GENOMES/<name>-g0.genome.json` per character

## CLI Usage

```bash
# 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:

```json
{
  "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, ... }
}
```

Files in this skill

  • SKILL.md2.3 KB
  • soul2dna.py3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.