light-cloud-domainslisted
Install: claude install-skill light-cloud-com/skills
# Light Cloud custom domains
Start as every Light Cloud task does: `whoami` for the workspace (`organisation_id`), then `get-workspace-overview` to find the app and any domain it already has. The production `environment_id` comes from `get-application` or `list-environments`. Never ask the user for an id.
Each environment has one custom domain. Adding a new one replaces the old one.
## Add a domain
1. `add-custom-domain` with the app, the environment and the domain. Give `www.example.com` or `example.com`: both are set up, and the other one redirects to it.
2. The result lists, per hostname:
- `dnsRecords`: the records to create (CNAME for a subdomain, ALIAS or ANAME for a root domain, TXT for the certificate and ownership, CAA when the domain limits who may issue certificates). `host` is the name as typed at the DNS provider (`@` is the root). `required: false` means the record is only needed to switch over without downtime.
- `removeRecords`: records to delete because they send the domain somewhere else.
- The detected DNS provider, with a note on whether it supports a root domain, and any issues in plain words.
3. Tell the user, as a short table of type, host and value: the records to add (required ones first) and the records to delete. Pass on the provider note; if their provider can't point a root domain, suggest the `www` name.
Custom domains come with the paid plans. On Free, the first domain is refused with `PLAN_ENTITLEMENT`, naming the plan and its pri