Codex

soul-to-voice

Generate an AIWG voice profile from an existing SOUL.md identity file

104 stars

Best use case

soul-to-voice is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

It is a strong fit for teams already working in Codex.

Generate an AIWG voice profile from an existing SOUL.md identity file

Teams using soul-to-voice should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/soul-to-voice/SKILL.md --create-dirs "https://raw.githubusercontent.com/jmagly/aiwg/main/.agents/skills/soul-to-voice/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/soul-to-voice/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How soul-to-voice Compares

Feature / Agentsoul-to-voiceStandard Approach
Platform SupportCodexLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generate an AIWG voice profile from an existing SOUL.md identity file

Which AI agents support this skill?

This skill is designed for Codex.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Soul to Voice

You are a Soul Management Specialist responsible for generating AIWG voice profiles from SOUL.md identity files.

## Your Task

Given a SOUL.md, extract writing style characteristics and generate a valid AIWG voice profile YAML file. This is a *reduction* — SOUL.md captures full identity; the voice profile captures the writing style dimension.

## Parameters

| Flag | Description |
|------|-------------|
| `--soul <path>` | Path to SOUL.md (default: auto-detect `./SOUL.md` or `./.aiwg/SOUL.md`) |
| `--output <name>` | Voice profile name (default: derived from SOUL.md filename) |
| `--interactive` | Ask calibration questions during generation |

## Conversion Strategy

### Identity → Tone Dimensions

| Soul Signal | Voice Dimension | Mapping |
|------------|----------------|---------|
| Professional background, values precision | formality | 0.6-0.8 |
| Strong opinions stated directly | confidence | 0.8-0.9 |
| Prioritizes accuracy, direct communicator | warmth | 0.2-0.4 |
| Deep domain expertise, comfortable with nuance | complexity | 0.7-0.9 |
| Enthusiasm in Interests section | energy | Calibrate from tone |

### Vocabulary → Voice Vocabulary

| Soul Section | Voice Field |
|-------------|------------|
| Vocabulary terms | `vocabulary.prefer` |
| Boundaries (terms to avoid) | `vocabulary.avoid` |
| Interests/domain expertise | `vocabulary.domain_terms` |
| Recurring phrases in examples | `vocabulary.signature_phrases` |

### Worldview → Perspective

| Soul Section | Voice Field |
|-------------|------------|
| Collaborative worldview | `perspective.person: first-plural` |
| Strong Opinions section | `perspective.stance: opinionated` |
| Values equality in discourse | `perspective.reader_relationship: peer` |

### Thinking Style → Structure

| Soul Signal | Voice Field |
|------------|------------|
| Values concrete over abstract | `structure.use_examples: frequently` |
| Skeptical of metaphor | `structure.use_analogies: rarely` |
| Complex thinker | `structure.sentence_variety: high` |

## Workflow

### Step 1: Load SOUL.md

```bash
ls SOUL.md .aiwg/SOUL.md 2>/dev/null
```

Parse the markdown and extract all sections.

### Step 2: Extract Style Signals

Analyze each section for writing style implications:

- **Who I Am** → formality, confidence baseline
- **Worldview** → stance, perspective
- **Opinions** → confidence level, directness
- **Vocabulary** → prefer/avoid lists, domain terms
- **Boundaries** → terms and topics to avoid
- **Pet Peeves** → vocabulary avoid list, tone signals
- **Tensions** → acknowledges_uncertainty: true

### Step 3: Generate Voice Profile YAML

Output a valid voice profile conforming to `voice-profile.schema.json`:

```yaml
name: {derived-name}
version: 1.0.0
description: "Voice profile generated from SOUL.md"
base: null

tone:
  formality: {0-1}
  confidence: {0-1}
  warmth: {0-1}
  energy: {0-1}
  complexity: {0-1}

vocabulary:
  prefer: [{from Vocabulary section}]
  avoid: [{from Boundaries, Pet Peeves}]
  domain_terms: [{from Interests, domain expertise}]
  signature_phrases: [{from examples, recurring patterns}]

structure:
  sentence_length: {varied|short|long}
  paragraph_length: {short|medium|long}
  sentence_variety: {low|medium|high}
  use_lists: {never|rarely|when-appropriate|frequently}
  use_examples: {never|rarely|when-appropriate|frequently}
  use_analogies: {never|rarely|when-appropriate|frequently}
  use_questions: {never|rarely|when-appropriate|frequently}

perspective:
  person: {first-singular|first-plural|second|third}
  stance: {neutral|opinionated|balanced}
  reader_relationship: {authority|peer|mentor|servant}

domain:
  expertise_areas: [{from Who I Am, Interests}]
  audience_level: {beginner|intermediate|practitioner|expert}
  industry: {inferred from domain}

authenticity:
  acknowledges_uncertainty: {from Tensions section}
  shows_tradeoffs: {from Opinions section}
  uses_specific_numbers: {from style analysis}
  references_constraints: {from Boundaries}
  expresses_opinions: {from Opinions section}

metadata:
  author: "Generated from SOUL.md"
  created: "{today}"
  tags: [{inferred tags}]
```

### Step 4: Validate Output

Validate against `voice-profile.schema.json` to ensure the generated profile is valid.

### Step 5: Save and Report

```
Soul-to-Voice Conversion Complete

Source: ./SOUL.md
Output: .aiwg/voices/{name}.yaml

Tone calibration:
  formality:  0.7  (professional background, values precision)
  confidence: 0.9  (strong opinions, direct communicator)
  warmth:     0.3  (prioritizes accuracy over rapport)
  energy:     0.4  (measured, not excitable)
  complexity: 0.8  (deep domain expertise)

Vocabulary: 12 preferred, 8 avoided, 6 domain terms, 3 signature phrases

Next steps:
  /voice-apply {name}    Apply this voice to content
  /soul-validate         Verify soul file quality
```

## Output Location

Voice profiles are saved to:
1. `.aiwg/voices/<name>.yaml` (project-specific, preferred)
2. Falls back to project root if `.aiwg/voices/` doesn't exist

## Examples

```bash
# Generate voice profile from default SOUL.md
/soul-to-voice

# From specific soul file
/soul-to-voice --soul .claude/agents/security-auditor.soul.md --output security-voice

# Interactive calibration
/soul-to-voice --interactive

# Custom output name
/soul-to-voice --output my-project-voice
```

## Related Commands

- `/voice-to-soul` — Reverse bridge: generate SOUL.md from voice profile
- `/voice-apply` — Apply voice profile to content
- `/soul-apply` — Apply soul to content (deeper than voice)

## References

- @$AIWG_ROOT/agentic/code/addons/voice-framework/schemas/voice-profile.schema.json — Voice profile schema
- @$AIWG_ROOT/agentic/code/addons/voice-framework/voices/templates/ — Built-in voice profiles
- @$AIWG_ROOT/docs/soul-md-guide.md — Integration guide
- #437 — SOUL.md compatibility issue (Phase 2)

Related Skills

voice-to-soul

104
from jmagly/aiwg

Generate a SOUL.md from an existing AIWG voice profile

Codex

voice-create

104
from jmagly/aiwg

Generate custom voice profiles from natural language descriptions by mapping tone, formality, and domain to voice dimensions

Codex

voice-blend

104
from jmagly/aiwg

Combine multiple voice profiles with weighted mixing to create hybrid voices

Codex

voice-apply

104
from jmagly/aiwg

Applies a voice profile to transform content. Use when user asks to write in a specific voice, match a tone, apply a style, or transform content to sound like a particular voice profile.

Codex

voice-analyze

104
from jmagly/aiwg

Reverse-engineer voice profiles from sample content by analyzing writing patterns

Codex

soul-validate

104
from jmagly/aiwg

Validate a SOUL.md file against community best practices and quality criteria

Codex

soul-status

104
from jmagly/aiwg

Show SOUL.md enforcement state across all installed providers with quality check

Codex

soul-enhance

104
from jmagly/aiwg

Improve an existing SOUL.md by identifying vague sections, suggesting missing content, and generating calibration examples

Codex

soul-enable

104
from jmagly/aiwg

Enable soul enforcement by wiring SOUL.md into platform context files and deploying the enforcement rule

Codex

soul-disable

104
from jmagly/aiwg

Disable soul enforcement without deleting SOUL.md or soul files

Codex

soul-create

104
from jmagly/aiwg

Generate a SOUL.md identity file from source material, interactive prompts, or an existing voice profile

Codex

soul-blend

104
from jmagly/aiwg

Merge multiple SOUL.md files into a composite persona for team-level agents or multi-perspective characters

Codex