convex-domains — скилл для Claude Code: свой домен для Convex
Ведёт агента по шагам: DNS-записи у вашего регистратора, привязка домена к приложению Convex и перепривязка auth-origin.
npx skills add convex/agent-skills --skill convex-domains -a claude-codeЧто делает convex-domains
Скилл нужен, когда у вас уже есть домен и приложение на Convex, а связать их руками лень. Агент сначала выясняет цель: хост опубликованного сайта на *.convex.app или URL HTTP-действий деплоймента. Потом смотрит, есть ли на машине уже авторизованный DNS-CLI вашего провайдера, и предлагает создать записи сам: flarectl dns create для Cloudflare, aws route53 change-resource-record-sets для Route53, gcloud dns record-sets create, doctl compute domain records create, vercel dns add. Проверка авторизации идёт только на чтение, а команды показываются до запуска.
Если CLI нет или вы отказываетесь, скилл выдаёт точные строки записей для вашего регистратора: CNAME (или A/ALIAS на апексе) плюс TXT для верификации, с конкретными host и value, без плейсхолдеров. Дальше домен привязывается как custom domain в панели Convex или через CLI, и остаётся дождаться проверки. DNS расходится от минут до часов, так что dig +short — ваш способ убедиться, что записи доехали.
Учтите: если в приложении есть авторизация (passkeys или OAuth), после смены домена нужно перепривязать auth-origin через переменные SITE_URL, RP_ID и ORIGIN и переопубликовать приложение. Иначе вход сломается. Учётные данные регистратора скилл не запрашивает и не трогает: подойдёт только CLI, который уже авторизован у вас на машине, логин-флоу он не запускает.
Какие задачи решает
- прописать CNAME и TXT у своего регистратора без ручного поиска значений
- привязать купленный домен к приложению на Convex
- починить вход после смены домена через перепривязку auth-origin
- проверить, что DNS-записи действительно разошлись
- создать записи автоматически, если DNS-CLI уже авторизован
Примеры запросов агенту
- Настрой мой домен example.com на приложение Convex, покажи команды для Cloudflare
- У меня Route53, создай записи для домена и привяжи его к Convex
- Домен привязал, но вход через OAuth сломался — перепривяжи auth-origin и переопубликуй
Как установить convex-domains
1Через Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-domains -a claude-code2Вручную: положить файлы
~/.claude/skills/convex-domains/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/convex-domains/
1Через Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-domains -a codex2Вручную: положить файлы
.agents/skills/convex-domains/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-domains -a cursor2Вручную: положить файлы
.cursor/skills/convex-domains/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install convex/agent-skills convex-domains2Вручную: положить файлы
.github/skills/convex-domains/SKILL.md1Через Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-domains -a gemini-cli2Командой платформы
gemini skills install https://github.com/convex/agent-skills --path skills/convex-domainsВручную: положить файлы
.devin/skills/convex-domains/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add convex/agent-skills --skill convex-domains -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора32
Похожие
Рядом в теме «DevOps и инфраструктура»
Всё по теме «DevOps и инфраструктура» →Вопросы о convex-domains
Как установить convex-domains в Claude?
Выполните npx skills add convex/agent-skills --skill convex-domains -a claude-code. Скилл появится в ~/.claude/skills/convex-domains/SKILL.md.
Что делает скилл convex-domains?
Проводит агента по привязке вашего домена к приложению Convex: определяет цель, создаёт DNS-записи, привязывает custom domain и перепривязывает auth-origin, если приложение использует авторизацию.
Нужно ли отдавать скиллу доступ к регистратору?
Нет. Учётные данные регистратора он не запрашивает. Если на машине уже авторизован DNS-CLI провайдера, скилл может создать записи через него, но сначала покажет команды и спросит подтверждение.
Исходный текст
SKILL.md · Apache-2.0
--- name: convex-domains description: "Point a domain you already own at your Convex app (DNS records, custom-domain attach, auth-origin rebind)." --- <!-- GENERATED from convex-agents content/capabilities/domains.json — do not edit by hand. --> # Set up a custom domain with your own provider Walk the user's own registrar through pointing their domain at the Convex app: identify the target (hosting or deployment URL), create the DNS records, attach the custom domain, and rebind the auth origin if the app uses auth. ## Workflow 1. Identify the target: the published site host (for `*.convex.app` static hosting) or the deployment's HTTP actions URL. 2. Detect an ALREADY-AUTHENTICATED DNS CLI for the user's provider and OFFER to create the records automatically: Cloudflare → `flarectl dns create` (note: `wrangler` itself doesn't manage DNS records) or the CF API via their token env; Route53 → `aws route53 change-resource-record-sets`; Google Cloud DNS → `gcloud dns record-sets create`; DigitalOcean → `doctl compute domain records create`; Vercel DNS → `vercel dns add`. Check auth read-only first (`flarectl user info` / `aws sts get-caller-identity` / `doctl account get`); show the exact commands and get a yes before running. 3. If no authed CLI (or the user declines), tell the user exactly which records to create at THEIR registrar: the CNAME (or A/ALIAS at the apex) plus the TXT verification record — with concrete host/value strings, not placeholders. 4. Attach the domain as a Convex custom domain (dashboard or CLI) and wait for verification; note DNS propagation can take minutes to hours. Verify records landed with `dig +short`. 5. If the app uses auth (passkeys/OAuth), rebind the auth origin (SITE_URL / RP_ID / ORIGIN env vars) to the new domain and re-deploy/re-publish. 6. Verify: the domain serves the app over HTTPS, including the apex → www redirect if configured. ## Rules - Never ask for or handle registrar credentials. A CLI already authenticated on the user's machine is fine — the credential stays in the tool; never install a CLI or run its login/auth flow for this, and never echo tokens. - DNS changes on a live domain are user-visible: show the exact commands and confirm before running them; verify afterwards with dig. - Always include the TXT verification record, not just the CNAME. - Rebinding the domain changes the auth origin — re-publish after, or sign-in breaks.
© convex · Apache-2.0 · convex/agent-skills