---
phase: 07-track-enrichment-and-verification-integration
plan: 01
type: execute
wave: 1
depends_on: []
files_modified:
  - .claude/skills/create-track/steps/02-structure-and-write.md
autonomous: true

must_haves:
  truths:
    - "System auto-generates an optimized style prompt from the artist bible without user manual input"
    - "Auto-generated style prompt contains 5-8 descriptive tags in genre-first ordering"
    - "System suggests ONE vocal delivery metatag per section based on artist vocal style and section emotional arc"
    - "Chorus delivery tag is always more intense than Verse delivery tags"
    - "Bridge delivery tag always contrasts with the general tone of the track"
  artifacts:
    - path: ".claude/skills/create-track/steps/02-structure-and-write.md"
      provides: "Auto-generation procedure for style prompts and per-section delivery metatag suggestions"
      contains: "Auto-Generation du Style Prompt"
  key_links:
    - from: ".claude/skills/create-track/steps/02-structure-and-write.md"
      to: "artists/[name]/bible.md"
      via: "7-step extraction procedure reads genre, sous-genres, Tags Suno, emotions, tempo from bible"
      pattern: "Identite Musicale.*Genre principal"
    - from: ".claude/skills/create-track/steps/02-structure-and-write.md"
      to: "reference/suno/format.md"
      via: "Tag vocabulary lookup for mood, instruments, delivery metatags"
      pattern: "reference/suno/format.md"
    - from: ".claude/skills/create-track/steps/02-structure-and-write.md"
      to: "reference/templates/songs/[genre].md"
      via: "Section emotional roles used for delivery tag selection"
      pattern: "template de structure"
---

<objective>
Upgrade Step 02 of the create-track skill with two enrichments: (1) automated style prompt generation from the artist bible replacing the current manual 5-tier reference table, and (2) per-section vocal delivery metatag suggestions replacing the current "basic placement" instruction.

Purpose: TRACK-03 requires style prompts to be auto-generated (5-8 tags, genre-first, under 1000 chars) and TRACK-04 requires per-section delivery metatag suggestions based on the artist's vocal style and each section's emotional arc. Both capabilities enhance the existing Step 02 file.

Output: Updated `.claude/skills/create-track/steps/02-structure-and-write.md` with automated style prompt generation procedure and per-section delivery metatag suggestion engine.
</objective>

<execution_context>
@C:/Users/zekho/.claude/get-shit-done/workflows/execute-plan.md
@C:/Users/zekho/.claude/get-shit-done/templates/summary.md
</execution_context>

<context>
@.planning/PROJECT.md
@.planning/ROADMAP.md
@.planning/STATE.md
@.planning/phases/07-track-enrichment-and-verification-integration/07-RESEARCH.md
@.claude/skills/create-track/steps/02-structure-and-write.md
@reference/suno/format.md
@reference/templates/bible-template.md
</context>

<tasks>

<task type="auto">
  <name>Task 1: Replace manual style prompt composition with 7-step auto-generation procedure</name>
  <files>.claude/skills/create-track/steps/02-structure-and-write.md</files>
  <action>
In `02-structure-and-write.md`, replace the entire "## Composition du Style Prompt" section (the manual 5-tier priority table and the "Regles du Style Prompt" subsection) with an automated extraction procedure. The new section should be titled "## Auto-Generation du Style Prompt" and contain:

1. A preamble stating the style prompt is generated AUTOMATICALLY from the bible -- the user reviews and can adjust, but does not compose manually.

2. A 7-step extraction procedure:
   - **Etape 1: Genre (tags 1-2)** -- Copy `Identite Musicale > Genre principal` as tag 1. Pick the most relevant sous-genre to the track concept from `Identite Musicale > Sous-genres` as tag 2.
   - **Etape 2: Mood/Energie (tags 3-4)** -- Map the track's dominant emotion (chosen in Step 1, from artist palette) to 1-2 mood tags. Consult `reference/suno/format.md` section "Mood et Energy Tags" for vocabulary. Use the TRACK emotion, not the bible's primary emotion.
   - **Etape 3: Direction Vocale (tags 5-6)** -- Copy tags directly from `Style Vocal > Tags Suno` in the bible. These are pre-computed during artist creation.
   - **Etape 4: Instrumentation (tag 7-8)** -- Choose 1-2 instruments coherent with genre + mood. Consult `reference/suno/format.md` section "Instrument Tags". Match instruments to genre (808 Bass for Trap, Piano for Ballad) and mood (Dark Synth Pads for melancholic, Bright Acoustic Guitar for uplifting).
   - **Etape 5: Production + BPM (optional, only if < 5 tags)** -- Add 1 production tag + BPM from `Identite Musicale > Tempo range`. Only add if total is under 5 tags.
   - **Etape 6: Tag Langue** -- IF langue == Francais, add "All lyrics in French". Do NOT count this tag in the 5-8 total.
   - **Etape 7: Assembler et Verifier** -- Concatenate all tags by commas in priority order. Verify 5-8 descriptive tags (excluding langue tag). Verify 120-300 chars (auto-generation sweet spot). If > 8 tags: remove instrumentation or production (lowest priority). If < 5 tags: add instrumentation.

3. A "Presentation" subsection instructing Claude to present the auto-generated style prompt with: the full prompt, character count, the source of each tag (e.g., "Dark Pop [genre bible], Melancholic [emotion track]"), and the question "Ce style prompt a ete genere automatiquement depuis la bible. Ajustements?"

4. Keep the following rules from the existing section (integrate into the procedure or as final notes):
   - Style prompt TOUJOURS en anglais
   - Tags separes par des virgules, pas de phrases completes
   - Pas de prompting negatif
   - Front-loading (most important tags first -- this is naturally handled by priority order)

5. Remove the old "Regles du Style Prompt" subsection entirely -- its content is absorbed into the procedure steps and notes.

IMPORTANT: Do NOT modify any other section of the file (Planification Narrative, Generation des Lyrics, Output de Step 2, Important). Only replace the style prompt section.
  </action>
  <verify>
Read `02-structure-and-write.md` and confirm:
- Section "## Auto-Generation du Style Prompt" exists
- Section "## Composition du Style Prompt" does NOT exist
- 7 etapes are present in the extraction procedure
- Tag count target is 5-8 (not 8-15)
- Character sweet spot is 120-300 (not 200-500 from the old manual guidance)
- Tag langue rule is present with "All lyrics in French" for French tracks
- Presentation subsection exists with source attribution
- No other sections were modified (Planification Narrative, Generation des Lyrics, Output de Step 2, Important all intact)
  </verify>
  <done>The manual style prompt composition table is replaced by a 7-step automated extraction procedure that generates 5-8 tags from the artist bible in genre-first priority order, with source attribution and user review</done>
</task>

<task type="auto">
  <name>Task 2: Replace basic delivery tag placement with per-section emotional arc suggestion engine</name>
  <files>.claude/skills/create-track/steps/02-structure-and-write.md</files>
  <action>
In `02-structure-and-write.md`, within the "## Generation des Lyrics" section, operation 3, find the bullet point about delivery tags: "Placer les delivery tags du style vocal de l'artiste (depuis la bible, champ Tags Suno) avant les lyrics qu'ils affectent -- un tag principal par section. Placement basique ; l'optimisation avancee est Phase 7."

Replace that single bullet with a new subsection "### Suggestions de Delivery Vocal par Section" placed AFTER the "## Generation des Lyrics" section (but before "## Output de Step 2"). This subsection contains:

1. **Principe**: Each section receives ONE primary delivery tag. The tag is chosen by crossing: (a) the artist's vocal style from bible > Style Vocal > Style vocal + Techniques preferees, (b) the section's emotional role from the song structure template, (c) the delivery vocabulary from `reference/suno/format.md` section "Metatags de Delivery Vocal".

2. **Procedure** (3 steps):
   a. Read `Style Vocal > Style vocal` and `Style Vocal > Techniques preferees` from the bible
   b. Identify the artist's default delivery tag (their primary vocal style)
   c. For each section: consult the template for the section's role, choose delivery tag from the mapping table below, place the tag on its own line BEFORE the section's lyrics

3. **Table de mapping** with 3 columns for artist style families:

| Section | Si artiste = soft/breathy | Si artiste = powerful/raspy | Si artiste = rap |
|---------|--------------------------|---------------------------|------------------|
| Intro | [Whispered] ou [Humming] | [Soft] ou [Spoken] | [Spoken] ou rien |
| Verse | [Breathy] ou [Soft] | [Raspy] ou style par defaut | [Rapped] ou [Trap Flow] |
| Pre-Chorus | [Building] ou intensification du Verse | [Intense] ou [Crescendo] | [Melodic Rap] |
| Chorus | [Emotional] ou [Powerful] | [Belted] ou [Powerful] | [Melodic Rap] ou [Sung] |
| Bridge | [Whispered] (contraste) | [Vulnerable] ou [Soft] (contraste) | [Soft] ou [Spoken] |
| Outro | [Whispered] ou [Fade Out] | [Soft] ou [Fade Out] | [Spoken] ou [Fade Out] |

4. **Regles strictes** (5 rules):
   - UN tag par section (format.md: pas d'empilement)
   - Le Chorus est TOUJOURS plus intense que les Verses
   - Le Bridge CONTRASTE avec le ton general
   - Si la bible specifie "Techniques preferees: Whispered verses, Belted choruses" -> le respecter exactement
   - Consulter `reference/suno/format.md` section "Metatags de Delivery Vocal" pour les tags valides

5. Update operation 3 bullet to read: "Placer les delivery tags par section en suivant la procedure de la section 'Suggestions de Delivery Vocal par Section' ci-dessous." -- removing the "Placement basique" and "Phase 7" references.

6. Remove the text "l'optimisation avancee est Phase 7" since we ARE Phase 7 now.

IMPORTANT: Do NOT touch Task 1's changes to the style prompt section. Do NOT modify Planification Narrative, Output de Step 2, or Important sections.
  </action>
  <verify>
Read `02-structure-and-write.md` and confirm:
- Section "### Suggestions de Delivery Vocal par Section" exists
- The mapping table has 6 rows (Intro through Outro) and 3 style columns
- 5 strict rules are listed
- The old "Placement basique ; l'optimisation avancee est Phase 7" text is gone
- Operation 3 references the new delivery suggestion section
- No mention of "Phase 7" remains in the file (since we ARE Phase 7 -- no forward references)
  </verify>
  <done>Basic delivery tag placement is replaced by a structured per-section suggestion engine with artist-style-aware mapping table, 5 strict rules, and cross-referencing of bible vocal identity with section emotional roles</done>
</task>

</tasks>

<verification>
1. Read `.claude/skills/create-track/steps/02-structure-and-write.md` end-to-end
2. Confirm these sections exist in order: Planification Narrative, Generation des Lyrics, Suggestions de Delivery Vocal par Section, Auto-Generation du Style Prompt, Output de Step 2, Important
3. Confirm NO forward references to "Phase 7" or "future phase" remain
4. Confirm style prompt procedure has 7 etapes targeting 5-8 tags
5. Confirm delivery metatag procedure has mapping table + 5 strict rules
6. Confirm the file still references `reference/suno/format.md` for tag vocabulary (not duplicating tags)
</verification>

<success_criteria>
- Step 02 contains a 7-step automated style prompt extraction procedure replacing the manual 5-tier table
- Step 02 contains a per-section delivery metatag suggestion engine with artist-style-aware mapping table
- No mention of "basic placement" or "Phase 7 optimization" remains
- Both procedures reference existing reference files (format.md, bible, templates) without duplicating their content
- The file structure remains clean: narrative planning, lyrics generation, delivery suggestions, style prompt auto-gen, output, important note
</success_criteria>

<output>
After completion, create `.planning/phases/07-track-enrichment-and-verification-integration/07-01-SUMMARY.md`
</output>
