Agent Skillsnixopus/nixopus › domain-attachment

domain-attachment

GitHub

指导应用域名配置,包括创建时绑定、追加子域名及自定义域名DNS设置与验证流程。

api/skills/domain-attachment/SKILL.md nixopus/nixopus

Trigger Scenarios

用户请求为应用添加或配置域名 部署后需要绑定自定义域名

Install

npx skills add nixopus/nixopus --skill domain-attachment -g -y
More Options

Non-standard path

npx skills add https://github.com/nixopus/nixopus/tree/master/api/skills/domain-attachment -g -y

Use without installing

npx skills use nixopus/nixopus@domain-attachment

指定 Agent (Claude Code)

npx skills add nixopus/nixopus --skill domain-attachment -a claude-code -g -y

安装 repo 全部 skill

npx skills add nixopus/nixopus --all -g -y

预览 repo 内 skill

npx skills add nixopus/nixopus --list

SKILL.md

Frontmatter
{
    "name": "domain-attachment",
    "metadata": {
        "version": "1.1"
    },
    "description": "Domain setup for applications. Preferred path is passing domains at creation time via createProject. Falls back to add_application_domain for post-creation attachment or custom domains."
}

Domain Attachment

Preferred: Pass Domain at Creation Time

The fastest path — zero extra tool calls after project creation:

  1. Call generate_random_subdomain to get a subdomain.
  2. Pass domains: ["<subdomain>"] in the createProject call.
  3. Done — the domain is attached at creation, wildcard DNS and TLS are automatic.

Use this path for all standard deploys. Only fall back to the post-creation flow below when adding domains to an existing app or when the user wants a custom domain.

Post-Creation: Auto-Generated Subdomain

If the app already exists and has no domain:

  1. Call generate_random_subdomain.
  2. Call add_application_domain with id (app UUID) and the subdomain.
  3. Done — wildcard DNS and TLS are handled automatically.

Step 4: Custom Domain Setup

If the user wants a custom domain (e.g. app.example.com):

  1. Call create_domain with the domain name.
  2. The response includes DNS setup instructions. Relay them clearly to the user:
    • CNAME record: point the domain to their assigned subdomain.nixopus.ai
    • TXT record: _nixopus-verify.{domain} with the verification value from the response
  3. Tell the user to add both records at their DNS provider (Cloudflare, Namecheap, Route53, GoDaddy, etc.).
  4. After the user confirms DNS is configured, call update_domain with the domain ID to verify.
  5. If verification succeeds, call add_application_domain to attach the domain.
  6. If verification fails:
    • DNS propagation can take minutes to 48 hours depending on the provider.
    • Suggest the user wait and retry, or check their DNS records are correct.
    • For deeper troubleshooting: read_skill("domain-tls-routing").

Common DNS Provider Notes

Provider Propagation Notes
Cloudflare Near-instant Disable orange cloud (proxy) for the CNAME initially so verification passes
Namecheap 5-30 minutes Use "CNAME Record" type, host = subdomain part only
Route53 60 seconds Standard CNAME + TXT
GoDaddy Up to 48 hours Slowest propagation

Important

  • Never skip domain attachment — a deployed app without a domain is not reachable.
  • For Compose apps, add_application_domain accepts an optional service_name and port to route to a specific service.

Version History

  • cf05d97 Current 2026-08-20 14:51

Same Skill Collection

api/skills/api-catalog/SKILL.md
api/skills/caddyfile-generation/SKILL.md
api/skills/compose-setup/SKILL.md
api/skills/container-resource-tuning/SKILL.md
api/skills/cpp-deploy/SKILL.md
api/skills/database-migration/SKILL.md
api/skills/deno-deploy/SKILL.md
api/skills/deploy-delegation/SKILL.md
api/skills/deploy-flow/SKILL.md
api/skills/deployment-analysis/SKILL.md
api/skills/diagnostic-workflow/SKILL.md
api/skills/dockerfile-generation/SKILL.md
api/skills/dockerignore-generation/SKILL.md
api/skills/domain-tls-routing/SKILL.md
api/skills/dotnet-deploy/SKILL.md
api/skills/elixir-deploy/SKILL.md
api/skills/failure-diagnosis/SKILL.md
api/skills/github-onboarding/SKILL.md
api/skills/github-workflow/SKILL.md
api/skills/gleam-deploy/SKILL.md
api/skills/go-deploy/SKILL.md
api/skills/incident-response/SKILL.md
api/skills/java-deploy/SKILL.md
api/skills/machine-ops/SKILL.md
api/skills/mcp-integrations/SKILL.md
api/skills/monorepo-strategy/SKILL.md
api/skills/nixopus-docs/SKILL.md
api/skills/node-deploy/SKILL.md
api/skills/onboarding/SKILL.md
api/skills/php-deploy/SKILL.md
api/skills/post-deploy-verification/SKILL.md
api/skills/pre-deploy-checklist/SKILL.md
api/skills/python-deploy/SKILL.md
api/skills/rollback-strategy/SKILL.md
api/skills/ruby-deploy/SKILL.md
api/skills/rust-deploy/SKILL.md
api/skills/self-heal/SKILL.md
api/skills/shell-deploy/SKILL.md
api/skills/static-deploy/SKILL.md

Metadata

Files
0
Version
cf05d97
Hash
f2fb768b
Indexed
2026-08-20 14:51

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 04:43
浙ICP备14020137号-1 $방문자$