Logo von Personalization Subagent Pattern

Personalization Subagent Pattern

Community
growthenginenowoslawski
personalization-subagent-pattern

Reusable approval-loop pattern for fanning out lead personalization across parallel Claude Code Task sub-agents. Shows the user 1 sample personalization, collects feedback, runs 10 more, approves, runs 10 more — stops when 2 consecutive rounds have zero edits, then scales to the full list. ALWAYS uses Claude Code Task tool sub-agents — never an external Anthropic/OpenAI API key. Use when any skill needs per-lead custom variables (situation lines, value lines, CTAs).

Übersicht

Herausgebergrowthenginenowoslawski
Repositorycoldoutboundskills
Skill-Namepersonalization-subagent-pattern
Sterne
757
Forks
267
Mitgelieferte Dateien
1
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 1

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von growthenginenowoslawski auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Personalization Subagent Pattern in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/growthenginenowoslawski/coldoutboundskills/tree/main/skills/personalization-subagent-pattern
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/growthenginenowoslawski/coldoutboundskills.git /tmp/coldoutboundskills
mkdir -p .claude/skills
cp -r /tmp/coldoutboundskills/skills/personalization-subagent-pattern .claude/skills/personalization-subagent-pattern
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Personalization Subagent Pattern in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Personalization Subagent Pattern automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Personalization Subagent Pattern nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Personalization Sub-Agent Pattern

Cold email personalization at scale requires per-lead generation. Claude Code's Task tool lets you fan out to many sub-agents in parallel, each personalizing a slice of the lead list. This skill defines the reusable approval-loop pattern.

Always Task tool — never an API key

This skill runs entirely inside Claude Code via the Task tool. No Anthropic SDK calls, no OpenAI calls. This is intentional:

  • No extra API spend. Uses your Claude Code plan.
  • No key management. Works out of the box.
  • Parallel by design. Claude Code spawns multiple Task sub-agents in one message, letting 100 leads finish in the time it takes to personalize 10.

At very large scale (1,000+ leads), the tuned prompt can optionally be shipped to the Anthropic API for throughput. But TUNING and normal campaign runs (under 500 leads) always go through the Task tool.

The approval loop (before full fan-out)

Don't personalize 500 leads and then discover the prompt is wrong. Loop first, then scale.

Round 0 — Sample on 1 lead

  1. Pick one lead from the batch with a rich company_description.
  2. Show the user: "Here's the company description I'm working with. Based on this, what would you say to personalize?"
  3. Display what YOU (Claude) would generate for situation_line, value_line, cta_soft.
  4. Ask: "Does this feel right? Edit it, and I'll re-tune."

Round 1-N — Batch of 10 with approval

  1. Spawn one Task sub-agent with the current prompt + 10 leads.
  2. Display all 10 results in a table:
    Lead                  | situation_line                          | value_line                    | cta_soft
    jane@acme.com         | You're building the only APM for Ruby.  | Our Ruby customers find ...   | Worth 10 min?
    john@otherco.com      | ...                                     | ...                           | ...
  3. Ask: "Any edits? Point at the row number and say what's wrong."
  4. If the user has edits, update the prompt (or add rules like "never use the word X") and re-run a new batch.
  5. If the user has zero edits for 2 consecutive rounds, the prompt is locked. Scale to the full list.

Scale — Full fan-out

Once locked:

  • Split remaining leads into batches of 10-20.
  • Launch 3-10 parallel Task sub-agents (one per variant × batch).
  • Merge results by lead_id.

When to use

  • Any campaign where per-lead custom variables are needed (beyond just {first_name})
  • When you have 50+ leads and want personalization without manual writing
  • When /auto-research-public or similar orchestration skills need parallel personalization

Don't use this for

  • Small batches (<10 leads) — just personalize inline in the main conversation (no fan-out needed)
  • Static copy (same email to every lead) — personalization wastes tokens

When to use

  • Any campaign where per-lead custom variables are needed (beyond just {first_name})
  • When you have 50+ leads and want personalization without manual writing
  • When /auto-research-public or similar orchestration skills need parallel personalization

Don't use this for

  • Small batches (<20 leads) — just personalize inline in the main conversation
  • Static copy (same email to every lead) — personalization wastes tokens

The pattern

1. Prepare the lead batch

Before fanning out, your lead batch should be a JSON array where each lead has:

json
{
  "lead_id": "<stable identifier>",
  "first_name": "<str>",
  "last_name": "<str>",
  "email": "<str>",
  "company_name": "<str>",
  "company_domain": "<str>",
  "company_description": "<1-3 sentences about what the company does>",
  "title": "<str>",
  "linkedin_url": "<optional>",
  "enrichment_data": { ... any extra signals ... }
}

The richer the company_description, the better the personalization. If you only have company names, the output will be generic.

2. Define the output schema

Decide up front what fields each sub-agent must return. Example:

json
{
  "lead_id": "<same id>",
  "situation_line": "<1 sentence — what you noticed about their company>",
  "value_line": "<1 sentence — connecting their situation to your offer>",
  "cta_soft": "<1 sentence — soft ask, e.g. 'worth a 15 min chat?'>"
}

Fewer fields = less that can go wrong. Default to 3 fields maximum per variant.

3. Split into variants (A/B/C)

If testing 3 copy variants, run 3 parallel sub-agents per company (or per batch). Each gets a different angle prompt:

  • Variant A: Lead with a pain observation. "Noticed X on your site..."
  • Variant B: Lead with a compliment + transition. "Your approach to Y is unique..."
  • Variant C: Lead with a question. "How are you thinking about Z?"

This gives you 3x the data from one list — you can A/B/C test which angle resonates.

4. Batch size

  • Small batches are the right default: 10-20 leads per sub-agent.
  • Bigger batches = fewer agents = cheaper but worse quality (agent loses context)
  • Smaller batches = more agents = higher quality but more context usage in parent

For 100 leads:

  • 10 sub-agents × 10 leads = good quality
  • 5 sub-agents × 20 leads = faster
  • 2 sub-agents × 50 leads = quality drops

For 1000 leads:

  • Consider running in rounds of 100 (to avoid hitting context limits in parent)
  • Each round launches 10 sub-agents of 10 leads each

5. The sub-agent prompt template

Every personalization sub-agent gets a prompt of this shape:

You are personalizing cold email fields for N leads.

CONTEXT:
- We sell: <one sentence from client-profile.yaml>
- Our ICP: <one sentence>
- Our offer: <the CTA we're asking them to respond to>
- Tone: <casual | formal | peer-to-peer>

FIELDS TO GENERATE (per lead):
- situation_line: <definition + 1 good example + 1 bad example>
- value_line: <definition + 1 good example + 1 bad example>
- cta_soft: <definition + 1 good example + 1 bad example>

RULES:
1. Never fabricate facts. If the company description is thin, say something generic but not false.
2. Never use em dashes (—). Use periods or commas.
3. Never use the word "leverage", "synergy", "ecosystem".
4. Maximum length: <N words per field>.
5. If a lead is missing company_description, return "<fields cannot be generated — skip>"

LEADS:
<JSON array>

RETURN:
A JSON array with the same lead_ids and the personalization fields. Save to /tmp/personalization-<batch-id>.json and print "DONE" when complete.

6. Fan-out code pattern

Pseudocode for the orchestrator (runs in the main Claude Code conversation):

leads = load leads from JSON
batches = chunk leads into groups of 10-20

for each batch:
  for each variant in [A, B, C]:
    Task(
      description: "Personalize batch <i> variant <v>",
      subagent_type: "general-purpose",
      prompt: <template above with variant-specific angle>
    )

# All tasks run in parallel (multiple tool calls in one message)

Wait for all tasks to finish, then read /tmp/personalization-*.json and merge.

Or, launching all in a single message with multiple Task calls:

# Launch 3 parallel sub-agents for one batch (variants A, B, C)
Task(description: "batch-1-variant-A", ...)
Task(description: "batch-1-variant-B", ...)
Task(description: "batch-1-variant-C", ...)

7. Error handling

Sub-agents can:

  • Return malformed JSON
  • Skip leads (if data is too thin)
  • Refuse to generate (if content feels risky)

The orchestrator should:

  1. Validate every returned JSON matches the output schema
  2. For missing lead_ids: retry once with a "strict mode" prompt that emphasizes no-skip
  3. For leads that genuinely can't be personalized (missing description): mark as personalization_status: "skipped" and use static copy instead

Never ship personalization fields that contain the string "cannot be generated" or similar — filter these out before upload.

8. Merge and upload

After all sub-agents complete:

  1. Read /tmp/personalization-*.json files
  2. Merge by lead_id
  3. Each lead now has:
    json
    {
      ...original lead fields,
      "variant_a": { "situation_line": "...", "value_line": "...", "cta_soft": "..." },
      "variant_b": { ... },
      "variant_c": { ... }
    }
  4. When uploading to Smartlead/Instantly, map each field to a custom variable. Convention:
    • Smartlead: use {{situation_line_a}}, {{value_line_a}}, etc.
    • If running 3 A/B/C campaigns, upload variant_a fields to campaign A, variant_b to B, etc.

Approval loop stop rule

The loop exits automatically when:

  • The user gives zero corrections for 2 consecutive rounds of 10 leads, OR
  • The user explicitly says "lock it, scale up"

On stop:

  1. Save the final tuned prompt to ~/cold-email-ai-skills/profiles/<business-slug>/personalization-prompt.txt
  2. Save a client-profile.yaml metadata entry:
    yaml
    personalization_prompt:
      path: profiles/<slug>/personalization-prompt.txt
      variant_count: 3
      tuned_at: YYYY-MM-DD
      rounds_to_convergence: 3
  3. Launch the parallel fan-out on the remaining leads.

If the user gives edits on round N+1 after 2 approved rounds, that's fine — the counter resets, and the loop continues.

Quality checks

Before uploading, manually spot-check 5 random leads per variant. Common issues:

  • Repetition across leads (sub-agent wrote the same line 10 times) → retry that batch with diversity instruction
  • Factually wrong claims (company does X when they actually do Y) → strengthen "never fabricate" rule in prompt
  • Unnatural phrasing (AI-speak like "I was intrigued by..." every time) → add forbidden-phrases list
  • Hedging / vagueness ("Your company might be doing X...") → add rule "assert, don't hedge"

References

  • references/prompt-template.md — copy-pasteable prompt template
  • references/example-output.json — what a well-personalized batch looks like
  • references/failure-modes.md — common sub-agent failures and how to detect them

What to do next

This is a pattern doc, not a standalone skill. It's invoked by /auto-research-public and /campaign-copywriting when they need per-lead personalization at scale.

If you're reading this directly, you're probably designing a new campaign-orchestration flow — return to whichever skill sent you here.

Related skills

  • /auto-research-public — the primary consumer of this pattern
  • /icp-onboarding — produces the client-profile.yaml the prompt pulls from
  • /cold-email-starter-kit references 03-campaign-copywriting.md for copy principles the prompt enforces

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Personalization Subagent Pattern?

Reusable approval-loop pattern for fanning out lead personalization across parallel Claude Code Task sub-agents. Shows the user 1 sample personalization, collects feedback, runs 10 more, approves, runs 10 more — stops when 2 consecutive rounds have zero edits, then scales to the full list. ALWAYS uses Claude Code Task tool sub-agents — never an external Anthropic/OpenAI API key. Use when any skill needs per-lead custom variables (situation lines, value lines, CTAs).

Warum Personalization Subagent Pattern in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Personalization Subagent Pattern besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Personalization Subagent Pattern in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/growthenginenowoslawski/coldoutboundskills/tree/main/skills/personalization-subagent-pattern ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Personalization Subagent Pattern nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Personalization Subagent Pattern verwenden?

So viele Sie möchten. In TypingMind können Sie Personalization Subagent Pattern mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Personalization Subagent Pattern kostenlos?

Ja. Der Skill wird von growthenginenowoslawski auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇