본문으로 건너뛰기
Skillpedia
카피 및 판매41k · #6981

designing-email-templates

하는 일

이 스킬은 에이전트가 PostHog 워크플로 라이브러리 안에서 이메일 템플릿을 디자인하도록 합니다. 각 독자의 개인 정보를 보여 주는, 잘 만든 이메일을 원하는 마케터와 제품팀을 위한 스킬입니다.

사용하는 경우

  • ✓캠페인이나 워크플로에 쓸 새 이메일 템플릿이 필요할 때.
  • ✓PostHog에 있는 기존 이메일 템플릿을 수정하거나 고치고 싶을 때.
  • ✓이름 같은 개인 정보가 이메일에 나타나기를 원할 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/workflows/skills/designing-email-templates/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/workflows/skills/designing-email-templates/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“신규 사용자를 위한 환영 이메일 템플릿을 디자인해 주세요. 상단에 우리 로고를 넣고, 인사말에는 그들의 이름을 넣어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 템플릿의 디자인을 구조화된 형식으로 작성하며, PostHog는 이를 편집 가능한 이메일로 바꿉니다. 개인 정보에는 Liquid 자리표시자를 쓰고, 템플릿을 PostHog에서 열 수 있는 링크를 공유합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Designing email templates

Use this skill when creating or editing email templates for PostHog workflows — broadcast campaigns and function_email workflow actions send the rendered template.

How authoring works

You author the design JSON (content.email.design) and save it with workflows-create-email-template. The server renders the sent email from your design with the same renderer PostHog's visual editor uses, so the template opens as editable blocks for humans and sends exactly what the design describes. Schema, the native blocks and spacing rules every email follows, and a working example in references/unlayer-design-json.md.

When talking to the user, call it the template's design — the design document format is an internal implementation detail. Always share the template's _posthogUrl edit link in your reply after creating or updating, so the user can open it in PostHog directly.

Read references/design-guidelines.md before composing — it covers committing to a design direction, typography, color, and the patterns that make an email look designed rather than generated. For one fragment the block editor can't express, use an html-type content block inside the design.

Personalization with Liquid

Email content uses Liquid templating. Liquid tags pass through the renderer as plain text, so use them anywhere — block text, subject, links:

Hi {{ person.properties.first_name | default: 'there' }},

Marketing emails must include an unsubscribe link — render it with the built-in variables:

<a href="{{ unsubscribe_url }}">Unsubscribe</a>

({{ unsubscribe_url_one_click }} is also available for one-click list-unsubscribe flows.) A template written for Customer.io can keep its {% unsubscribe_url %} tag, which renders the same link as {{ unsubscribe_url }}.

Output is HTML-escaped by default, so a value renders as text even when it contains markup:

  • Don't add | escape. It escapes a second time, and & reaches the inbox as &amp;amp;.
  • For HTML your own backend builds, such as a summary list, add | raw: {{ variables.summary_html | raw }}. Never use raw on text a person typed.
  • Format money with currency: {{ variables.amount | currency: "USD" }} renders $1,234.50. A value that isn't a number renders unchanged.

Click tracking and opt-out

Every link is automatically rewritten through a click-tracking redirect. This breaks mobile universal links / app deeplinks, which only resolve when the href stays on their own domain. To keep a link untracked, mark its anchor (use an html block) with clicktracking="off" or data-ph-no-track:

<a href="https://app.example.com/deeplink" data-ph-no-track>Open in app</a>

The marker must be on the <a> tag itself, not a child element. Opted-out links get no click metrics.

Images

Call media-images-list with purpose="email" first — reuse an existing image (a logo, a header banner) instead of uploading a duplicate.

To add a new image, upload it with the presigned flow rather than embedding bytes in the design:

  1. media-image-upload-start with the file's name and purpose="email" — returns id, upload_url, and form_fields.
  2. From a shell, POST the local file to upload_url: curl -X POST <upload_url> -F key=value... -F file=@/path/to/image.png (the form_fields from the response, file last). Never base64-encode image bytes into a tool call — a flipped token corrupts the image.
  3. media-image-upload-complete with the id — returns the permanent url.

Put that url in the image block's values.src.url (see references/unlayer-design-json.md). The block also takes values.src.width/height; the media tools don't return dimensions, so if you have shell access to the local file, measure it yourself rather than guessing.

Images must be under 4MB and decode as PNG, JPEG, GIF, WebP, AVIF or BMP.

Creating a template

Call workflows-create-email-template with:

{
  "name": "Welcome email",
  "description": "Sent to new signups on day 0",
  "type": "email",
  "content": {
    "templating": "liquid",
    "email": {
      "subject": "Welcome to {{ person.properties.company | default: 'our product' }}",
      "design": {
        "counters": { "u_row": 1 },
        "schemaVersion": 16,
        "body": { "rows": ["…"], "values": { "preheaderText": "Three short
자주 묻는 질문

에이전트가 만든 뒤에도 템플릿을 편집할 수 있나요?

네. 템플릿은 PostHog에서 편집 가능한 블록으로 열리므로, 그곳에서 바꿀 수 있습니다.

Liquid 태그란 무엇인가요?

이메일이 보내질 때 각 독자의 정보, 예를 들어 이름으로 채워지는 자리표시자입니다.

에이전트가 디자인 스타일을 고르나요?

네. 에이전트의 지침은 레이아웃을 쓰기 전에 분명한 디자인 방향을 정하도록 요구하므로, 이메일이 의도된 모습으로 보입니다.

상세 정보

작성자의 원본 설명

Author, save, and edit email templates in the PostHog workflows library — compose email design JSON with Liquid personalization and create and round-trip-edit templates over MCP. Use when asked to design, build, update, or fix an email template for workflows, broadcasts, or campaigns.

repo: PostHog/posthog

인기도

GitHub 스타
41k
순위
#6981
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬