No slash command · from anglesite
Sets up business email for a domain: recommends providers (Apple-first), configures DNS records via Cloudflare, and handles setup walkthroughs. Supports returning users with partial or completed setups.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Set up business email for the owner's domain. This skill is invoked by the domain skill when the owner asks for email. It handles provider recommendation, DNS record setup, and setup walkthroughs.
DNS changes go through npm run ai-cf, which reads CF_API_TOKEN from .env itself and fills {CF_ZONE_ID} and {SITE_DOMAIN} from .env and .site-config — type those placeholders literally, and run one command per invocation. The domain skill saves both values before invoking this skill; if a command reports that one is not set, go back to the "Cloudflare API access" section of ${CLAUDE_PLUGIN_ROOT}/skills/domain/SKILL.md.
Read EXPLAIN_STEPS from .site-config. If true or not set, tell the owner what you're about to do and why in plain English before making any change.
Read EMAIL_PROVIDER and EMAIL_PROVIDER_PENDING from .site-config.
EMAIL_PROVIDER_PENDING without EMAIL_PROVIDER means an earlier setup was started but never finished. Do not report email as set up. Tell the owner: "We started setting up email with [provider] but didn't finish. Want to pick up where we left off?" If yes, list the MX and TXT records with the two GET commands in "Confirm and persist" to see which records already exist, then resume the matching path (Apple or other provider) at the first missing piece — never add a record that is already there. If they'd rather choose again, go to Step 2.
If EMAIL_PROVIDER is set, setup was completed. Skip the recommendation flow. Instead offer contextual actions:
"Your email is set up with [provider]. Need to add another mailbox, update records, or switch providers?"
If switching providers, warn: "I'll remove the old email records before adding new ones. Your email will be interrupted during the switch." Then remove old MX/SPF/DKIM records, remove the EMAIL_PROVIDER line from .site-config with the Edit tool (it is written again once the new provider's records are verified), and restart at Step 2.
Read .site-config for EDUCATION_EMAIL_NOT_AUTOMATIC. If not set to shown, surface this:
"Having a domain doesn't automatically give you email. Email needs its own setup — DNS records that point to a mail provider. Let's get that set up now."
Add EDUCATION_EMAIL_NOT_AUTOMATIC=shown to .site-config using the Edit tool.
Ask:
"Do you use Apple devices (iPhone, Mac) for your business?"
- Yes
- No / mixed
- I already have a provider I want to use
| Answer | Action |
|---|---|
| Yes | Write EMAIL_PROVIDER_PENDING=apple to .site-config. Continue to Apple path below. |
| No / mixed | Write EMAIL_PROVIDER_PENDING=other to .site-config. Read ${CLAUDE_PLUGIN_ROOT}/docs/email-setup.md. Recommend Fastmail as the simplest cross-platform option. Show the other providers (Google Workspace, Proton Mail, Zoho Mail) as alternatives. Once the owner picks one, proceed to Other provider path below. |
| Already have a provider | Write EMAIL_PROVIDER_PENDING=other to .site-config. Ask which provider. If it's in the reference doc, use those records. If not, ask the owner for the DNS records from their provider's setup instructions. Proceed to Other provider path below. |
EMAIL_PROVIDER_PENDING only records the choice. The final EMAIL_PROVIDER key is written in "Confirm and persist", after the DNS records exist — that is how a later run tells an abandoned setup from a finished one.
Ask:
"Is this for you personally, or for a registered business?"
- Personal
- Registered business
| Answer | Tier | What to tell the owner |
|---|---|---|
| Personal | icloud-plus | "Great — iCloud+ includes custom domain email. You'll set it up in your iCloud settings and I'll add the DNS records here." Confirm they have an iCloud+ subscription. If not, they need to subscribe first ($0.99/month for 50 GB). |
| Registered business | apple-business | "Apple Business gives you email, calendar, and a company directory for free — up to 500 employees. You'll create your organization at business.apple.com and I'll add the DNS records here." |
Write EMAIL_TIER=icloud-plus or EMAIL_TIER=apple-business to .site-config.
Do this before changing any DNS records. For the icloud-plus tier, Apple verifies that the owner controls the domain by sending a verification email to addresses that already exist on it. If the MX records are switched to iCloud first, those verification emails can't be delivered and verification fails. Walk the owner through this step before the SPF conflict check and MX pre-fill below.
Skip this section for the
apple-businesstier — Apple Business verifies ownership through the DNS-basedapple-domain-verificationTXT record (added in "Collect DKIM and verification values"), not an email flow.
Walk the owner through it:
.site-config).[email protected]). If the domain has never had email, see the note below.No email at this domain yet? If the owner has never received mail at this domain, there's no existing mailbox to receive Apple's verification email. In that case, tell them to skip entering existing addresses — Apple instead verifies ownership through the DNS records (including the
apple-domain-verificationTXT record) added in the next steps.
Only continue to the DNS steps below once Apple shows the domain (and any existing addresses) as Verified, or the owner has confirmed there are no existing addresses to verify.
Before adding any records, check for an existing SPF TXT record:
npm run ai-cf -- GET "/zones/{CF_ZONE_ID}/dns_records?type=TXT&name={SITE_DOMAIN}"
Look in result for an entry whose content starts with v=spf1, and note its id.
v=spf1 include:icloud.com ~allinclude:icloud.com into it. For example, if the existing record is v=spf1 include:_spf.mx.cloudflare.net ~all, update it to v=spf1 include:icloud.com include:_spf.mx.cloudflare.net ~all. Update the existing record rather than creating a duplicate: npm run ai-cf -- PUT "/zones/{CF_ZONE_ID}/dns_records/RECORD_ID" '{"type":"TXT","name":"@","content":"MERGED_SPF","ttl":1,"proxied":false}'. Multiple SPF records break email delivery.Add the MX records and the SPF record (new or merged) via the Cloudflare API. These are the same for both iCloud+ and Apple Business:
MX record 1:
npm run ai-cf -- POST "/zones/{CF_ZONE_ID}/dns_records" '{"type":"MX","name":"@","content":"mx01.mail.icloud.com","priority":10,"ttl":1,"proxied":false}'
MX record 2:
npm run ai-cf -- POST "/zones/{CF_ZONE_ID}/dns_records" '{"type":"MX","name":"@","content":"mx02.mail.icloud.com","priority":10,"ttl":1,"proxied":false}'
SPF (new record — if merging, use PUT with the record ID instead):
npm run ai-cf -- POST "/zones/{CF_ZONE_ID}/dns_records" '{"type":"TXT","name":"@","content":"v=spf1 include:icloud.com ~all","ttl":1,"proxied":false}'
Tell the owner: "I've added the mail routing and spam prevention records. Now I need two values from Apple."
Walk the owner through finding the values:
iCloud+ tier:
sig1._domainkey) and a target valueapple-domain-verification=Apple Business tier:
apple-domain-verification=Ask the owner to paste each value. Then add them:
DKIM CNAME:
npm run ai-cf -- POST "/zones/{CF_ZONE_ID}/dns_records" '{"type":"CNAME","name":"DKIM_HOSTNAME","content":"DKIM_TARGET","ttl":1,"proxied":false}'
Verification TXT:
npm run ai-cf -- POST "/zones/{CF_ZONE_ID}/dns_records" '{"type":"TXT","name":"@","content":"apple-domain-verification=VERIFICATION_VALUE","ttl":1,"proxied":false}'
Replace DKIM_HOSTNAME, DKIM_TARGET, and VERIFICATION_VALUE with the values the owner provided.
First list the records back from Cloudflare to confirm they were really created. MX records:
npm run ai-cf -- GET "/zones/{CF_ZONE_ID}/dns_records?type=MX&name={SITE_DOMAIN}"
TXT records (SPF and the Apple verification value):
npm run ai-cf -- GET "/zones/{CF_ZONE_ID}/dns_records?type=TXT&name={SITE_DOMAIN}"
CNAME records (DKIM):
npm run ai-cf -- GET "/zones/{CF_ZONE_ID}/dns_records?type=CNAME"
Check result for both MX records, exactly one TXT whose content starts with v=spf1, the apple-domain-verification= TXT, and the DKIM CNAME. If anything is missing, go back and add it before continuing — do not write EMAIL_PROVIDER yet.
Once every record is listed, tell the owner:
"All done — here's what I set up:
DNS changes take a few minutes to propagate. Try sending yourself a test email in about 15 minutes."
Ask the owner for their new email address (e.g., [email protected]).
Update .site-config using the Edit tool:
EMAIL_PROVIDER_PENDING=apple line with EMAIL_PROVIDER=apple — this is what marks email as set up[email protected]Update docs/cloudflare.md with the records that were added.
Read ${CLAUDE_PLUGIN_ROOT}/docs/email-setup.md for the provider's DNS records.
Follow the same pattern as the Apple path:
GET commands from "Confirm and persist" and check every record you added is there; then confirm to the owner and suggest a test email in 15 minutes.site-config, replace the EMAIL_PROVIDER_PENDING=other line with EMAIL_PROVIDER=other and write SITE_EMAILdocs/cloudflare.mdWhen EXPLAIN_STEPS is true or not set, use these plain-English explanations:
"proxied": falsewww — that points to the Workers projectWhat SKILL.md sets; muted values are Claude Code's defaults
Use when the owner wants a professional email address at their own domain or needs help choosing an email provider.
Three short reads, in order
56 skills in this plugin
/bookingEmbed appointment scheduling (Cal.com or Calendly) into the sitenpx claudepluginhub anglesite/anglesite-skills --plugin anglesiteOther plugins' skills for the same job