Personalize message

From Othmane-Khadri/YALC-the-GTM-operating-system · View interactive version

Personalize message is an AI agent skill from the GitHub repository Othmane-Khadri/YALC-the-GTM-operating-system. Generate a personalized outbound message (LinkedIn DM or cold email) for a single prospect by combining a template with the lead's profile, company, and recent signals. Use when the user says 'personalize this message', 'tailor this outreach to the prospect', 'rewrite this template for [name]', 'mak

How to use this skill

Skill file

Personalize Message

I'll wrap personalize. I'll ask for the template + target lead, validate inputs, run the CLI, and surface the personalized variant with reasoning so you can approve before sending.

When This Skill Applies

Use this skill when the user says:

NOT this skill (use qualify-leads instead):

NOT this skill (use launch-linkedin-campaign instead):

NOT this skill (use send-cold-email instead):

What This Skill Does

  1. Asks for the message template (or accepts pasted text inline) and the target lead (email, linkedin URL, or full record).
  2. Validates inputs — template non-empty, lead resolvable.
  3. Shells out to npx tsx src/cli/index.ts personalize --template <text> --email <email> (or with --linkedin-url, --first-name, etc.).
  4. Parses the CLI output — variant text, reasoning, cost.
  5. Renders the variant cleanly with a "regenerate?" affordance.

What This Skill Does NOT

Pre-flight

  1. Onboarding interruption guard. Run:

```bash

test -f ~/.gtm-os/.in-flight-setup && echo "BLOCKED" || echo "OK"

```

If BLOCKED, stop and tell the user to finish yalc-gtm start first.

  1. Confirm cwd is ~/Desktop/gtm-os/.

Workflow

Step 0 — Ask for inputs

One question at a time:

  1. What's the template? A few sentences with placeholders the prospect's profile can fill (e.g. {{first_name}}, {{company}}). If they paste raw text, that's the --template value.
  2. Which lead? Email is the default identifier (--email <email>). They can also pass:
  1. Any toggles? Ask only if volunteered:

Step 1 — Validate

Step 2 — Shell out

cd ~/Desktop/gtm-os && set -a && source .env.local && set +a && \
  npx tsx src/cli/index.ts personalize --template "<text>" --email "<email>"

Per the 0.13.0 benchmark, single-command side-effecting skills shell out unconditionally. Anthropic API calls + optional Firecrawl/Unipile context pulls = side-effecting.

Step 3 — Parse output

personalize emits the personalized variant + reasoning + cost. On non-zero exit, surface stderr verbatim.

Step 4 — Render

Show:

Step 5 — Offer follow-ups

"Want me to also:

(a) regenerate with a different angle (re-run with a tweaked template)?

(b) batch-personalize this template across a result set via the campaign launcher?

(c) pipe this into a LinkedIn campaign via launch-linkedin-campaign?"

Don't run anything unless the user says yes.

Failure surfacing — verbatim

When personalize exits non-zero (missing key, Anthropic 429, lead not found), paste the stderr unchanged.

Notes

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.