bosmdavid-gif

custom-domain Skill

把用户已拥有的域名(在其他注册商购买)通过一条 A 记录免费连接到其 DropTheHassle 网站。当用户说"用我自己的域名"、"连接我的域名"、"添加自定义域名"、"把域名指向我的网站",或已有 GoDaddy、Namecheap、Cloudflare 等处的 .com 域名时使用。从 DropTheHassle 获取 A 记录,展示给用户去注册商处设置,然后检查 HTTPS 是否生效。绝不替用户在注册商处修改 DNS。若用户还没买域名,请用 buy-domain。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Connect a domain the user already owns

Connecting an existing domain to a DropTheHassle site is free and needs no transfer: one A record
at the user's registrar. HTTPS follows by itself.

Steps

  1. Have a published site. If not, publish first:

npx -y dropthehassle@latest deploy ./dist (answer gives the live link and claim link).

  1. Ask for the exact name (example.com or www.example.com). Don't guess it.
  2. Get the A record, one of:
  • Folder published with the CLI: read site_id and site_token from that folder's

.dropthehassle.json, then

     curl -s -X POST "https://dropthehassle.com/api/v1/sites/<site_id>/connect" \
       -H "Authorization: Bearer <site_token>" -H "Content-Type: application/json" \
       -d '{"name":"example.com"}'

The answer says which A record to set. Don't print the site token back to the user.

  • Claimed site: the human opens the site in the dashboard, presses Point it here and enters the

name. The dashboard shows the address.

  1. Show the human the record (type A, host @ or the subdomain, value from the answer). They set

it at their registrar. Don't log in to their registrar or change DNS for them.

  1. Check it: after they set it, the human presses Check now in the dashboard, or run

npx -y dropthehassle@latest status . DNS can take minutes to hours. Then open
https://example.com and confirm it serves the site.

Notes

  • point_domain (MCP, account token) only moves a domain that is already on the DropTheHassle

account to another of their sites. It does not connect outside domains.

  • Moving the registration itself (a transfer) is a human step in the dashboard.
  • Want email on that name too? See the domain-email skill (needs the domain on DropTheHassle).

配合站内内容