agentleFS
nitrosendnitrosend/claude/skills/compose-email/SKILL.md

compose-email

Skill3 starsChanged 7 months agoMITView on GitHub

Create or edit email templates with Nitrosend's section-based designer. Guides through layout, content, and brand styling. Supports preview and test sends. Use when: "compose email", "design template", "create email", "email template", "edit template", or "update email design".

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. nabcht/Zephyr★ 2same name
    2. nikarmontag-cmd/claude-yandex-mail★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 4 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask what the email is for:

    line 16
  2. Distinctive:

    Prefer a clear hierarchy and one primary action.

    line 50
  3. Very specific:

    Call nitro_manage_template with composition_mode: "intent" and the user's goal and constraints.

    line 61
  4. Very specific:

    Treat next_call.input as the selected complete baseline.

    line 63
  5. Very specific:

    New template: Use nitro_manage_template with sections array and subject (via the composition contract above).

    line 90
  6. Very specific:

    Update existing: Use nitro_manage_template with template_id and the fields to change — prefer section_updates for targeted edits, and pass …

    line 92
  7. Very specific:

    Update a campaign's email: Use nitro_compose_campaign with campaign_id, mode: "patch" and the same section_updates, plus if_version.

    line 94
  8. Very specific:

    Clone existing: Use nitro_manage_template with based_on (source template ID).

    line 96
  9. Very specific:

    Every non-dry-run persistence mutation — create, clone, targeted update, full update — requires an idempotency_key.

    line 98
  10. Very specific:

    Always set a descriptive name for the template.

    line 102
  11. Very specific:

    Always pass an accurate description to nitro_ingest.

    line 116
  12. Very specific:

    Use nitro_review_delivery with target_type: "template" and target_id to review content, validate, and check delivery readiness

    line 127
  13. Distinctive:

    Ask if they want a test email sent

    line 128
  14. Very specific:

    If yes, use nitro_send_test_message with target_type: "template", target_id, and an idempotency_key (reuse the same key on retry to avoid …

    line 129
  15. Distinctive:

    Use canonical personalization variables:

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Compose Email

Help the user create or edit an email template using Nitrosend's section-based email designer.

Understand the Goal

Ask what the email is for:

  • Newsletter / announcement
  • Welcome email
  • Promotional / sale
  • Product update
  • Event invitation
  • Transactional (receipt, confirmation, etc.)
  • Re-engagement

Design the Email

The complete section registry and prop schemas returned by the intent scaffold or nitro://schema are authoritative. Do not reconstruct that registry from this skill. Illustrative section patterns include:

SectionKey Props
headerlogo_url, logo_alt, logo_width, background_color
textcontent (HTML string)
imagesrc, alt, href, width
buttontext, href, background_color, text_color, align, border_radius
columnscolumns: [{width, sections: [...]}] — nested sections
heroUse the exact props returned by the live schema
productname, price, image_url, href, description
productsUse the exact collection props returned by the live schema
galleryUse the exact image-list props returned by the live schema
sociallinks: [{platform, url}], align
dividercolor, width, padding
spacerheight
footerunsubscribe_text (optional override)

Durable Design Guidance

  • Front-load the subject's value and make the preheader complementary.
  • Prefer a clear hierarchy and one primary action.
  • Design mobile-first, use readable type, descriptive alt text, and adequate contrast.
  • Include a footer. Nitrosend supplies the active Brand's canonical legal identity and unsubscribe URL.

Composition Contract

Newly authored copy or full sections always enter the composition contract before persistence:

  1. Call nitro_manage_template with composition_mode: "intent" and the user's goal and constraints.
  2. Treat next_call.input as the selected complete baseline. Preserve its structure and fill it rather than replacing it with a smaller handcrafted layout. composition_contract.creative_routes is the route menu.
  3. To use a different ready route, start a fresh intent with its creative_route_id. If a route reports missing evidence, obtain exactly those facts; never substitute another route or invent evidence.
  4. Author inside the returned scaffold while preserving the contract, bindings, exact user constraints, and idempotency fields. Optionally call composition_mode: "validate"; persist with composition_mode: "draft".

Alternatively, request server-side authoring via the returned metered composition_mode: "generate" call, which composes, validates, and persists one draft. Supplying creative fields without a contract returns the intent contract instead of silently creating anything. Only mechanical section_updates — shallow prop/style tweaks on allowed visual attributes — and clones without creative overrides skip recomposition. text_patch copy edits are copy changes: they enter the composition contract like any other new copy.

Full section authoring is an intentional escape hatch, not the default. For an image-led route, follow next_call.image_choice. Use a described Brand Library asset or exact operator asset when available. Otherwise obtain a verified vendor, generated, or public stock asset, ingest it when needed, and reissue the intent with the exact image_url plus an accurate statement of what it shows. Brand memory can guide selection but cannot prove an image URL or its contents.

Create or Update

New template: Use nitro_manage_template with sections array and subject (via the composition contract above).

Update existing: Use nitro_manage_template with template_id and the fields to change — prefer section_updates for targeted edits, and pass if_version for optimistic concurrency (the call is rejected if the template version has moved).

Update a campaign's email: Use nitro_compose_campaign with campaign_id, mode: "patch" and the same section_updates, plus if_version. A campaign's email is saved through its campaign, never through nitro_manage_template.

Clone existing: Use nitro_manage_template with based_on (source template ID); creative overrides enter the authoring contract.

Every non-dry-run persistence mutation — create, clone, targeted update, full update — requires an idempotency_key; contract drafts reuse the stable key carried by the returned next_call.

Always set a descriptive name for the template.

Images

Host images on Nitrosend storage with nitro_ingest (V1 is image-only):

  • Small local or chat-attached images: pass image_data
  • Larger local files: request a direct upload with upload: {kind, filename, content_type, byte_size, checksum}, PUT the bytes to the returned direct_upload.url sending exactly the returned direct_upload.headers, then call nitro_ingest again with the signed_id
  • Public remote image URLs: use directly in sections when permanence is not needed, or pass as image_url for a Nitrosend-hosted copy

Always pass an accurate description to nitro_ingest; it is retained with the Brand Library asset and used as alt-text context. image_data accepts PNG, JPEG, or WebP under the live tool's decoded-size limit. Direct upload checksum is base64-encoded MD5.

The returned hosted URL (media_url/image_url) is what goes into the image section's src — never place a signed_id directly in sections.

Preview and Test

After creating/updating:

  1. Use nitro_review_delivery with target_type: "template" and target_id to review content, validate, and check delivery readiness
  2. Ask if they want a test email sent
  3. If yes, use nitro_send_test_message with target_type: "template", target_id, and an idempotency_key (reuse the same key on retry to avoid duplicate test sends) — sends to saved test recipients or specify explicit recipients with to

Merge Tags

Use canonical personalization variables:

  • {{ contact.first_name }}, {{ contact.last_name }}, {{ contact.email }}
  • {{ unsubscribe_url }} — required in marketing emails
  • {{ event.* }} for flow-event values allowed by the returned composition bindings
  • {{ data.* }} only where the returned composition contract permits it

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.