Skip to content
AI & Agents
Skill

/domain-mask

Serves a real URL behind a custom display domain through a local trusted-HTTPS reverse proxy (mkcert certificate, /etc/hosts entry) with `web mask`, so demos and recordings show a clean domain with a padlock. macOS only. Use when the user wants to mask, alias, or fake a domain

From plugin
skills
338183 skills5 MCP

Claude Code

$ npx -y skills add adobe/skills --skill domain-mask --agent claude-code

SKILL.md

domain-mask.SKILL.md
name: domain-mask
license: Apache-2.0
compatibility: macOS only. Requires Node 22+, mkcert and sudo (port 443, /etc/hosts); uses the web CLI (plugins/web/cli)
description: >-
  Serves a real URL behind a custom display domain through a local trusted-HTTPS
  reverse proxy (mkcert certificate, /etc/hosts entry) with `web mask`, so demos
  and recordings show a clean domain with a padlock. macOS only. Use when the user
  wants to mask, alias, or fake a domain for a demo, recording, or screenshot.

domain-mask

Mask a URL behind a custom domain for demos and recordings. An HTTPS reverse proxy makes the address bar show a clean domain (e.g. `wknd.adventures`) while content is served from the real URL (e.g. `https://main--mysite--org.aem.page`). Trusted certificate via mkcert, no browser warnings.

Requirements

  • Node 22+, mkcert (`brew install mkcert && mkcert -install`), sudo (port 443 and `/etc/hosts`)
  • The `web` CLI (`playwright-cli` is not needed for this command). Locate it once:
# <skill-dir> is the directory containing this SKILL.md
WEB=$(command -v web || echo "node <skill-dir>/../../cli/dist/web.mjs")

then run `$WEB …`; it prints exactly one JSON document on stdout, so `$WEB … > file.json` is safe. Fallback when published: `npx -y @adobe/web-cli`. Use an absolute `<skill-dir>`; don't `cd` into it.

Workflow

Step 1: Gather inputs

Ask the user for (or extract from their message):

  • **Display domain**: the domain to show (e.g. `wknd.adventures`)
  • **Target URL**: the real URL to proxy (e.g. `https://gabrielwalt.github.io`)

Step 2: Check prerequisites

which mkcert || echo "Install mkcert: brew install mkcert && mkcert -install"

If mkcert is missing, tell the user to install it and run `mkcert -install` once.

Step 3: Have the user start the proxy

The command prompts for the sudo password and stays in the foreground until Ctrl+C, so the user runs it in their own terminal. Give them the command with `WEB` expanded to the resolved form:

sudo env CAROOT="$(mkcert -CAROOT)" $WEB mask "<display-domain>" "<target-url>"

`CAROOT` is resolved before `sudo`, so mkcert signs with the CA the user installed rather than one under root's home, which the browser would not trust. Without root the command exits 2 (USAGE).

It adds `127.0.0.1 <display-domain>` to `/etc/hosts`, generates a trusted certificate via mkcert, starts an HTTPS reverse proxy on port 443, and prints `{ url, displayDomain, targetUrl }`.

Tell the user:

  • Open `https://<display-domain>`; the address bar shows the display domain with a padlock
  • Press **Ctrl+C** when done: the hosts entry is removed and the certs are cleaned up

Step 4: Confirm cleanup

After the user stops the proxy, check that the hosts entry is gone (no output means clean):

grep -Fx '127.0.0.1 <display-domain>' /etc/hosts

If the line is still there, have the user remove it. Escape the dots so `sed` matches only that line, e.g. for `wknd.adventures`:

sudo sed -i '' '/^127\.0\.0\.1 wknd\.adventures$/d' /etc/hosts

Limitations

  • macOS only (`/etc/hosts` path, `brew install mkcert`)
  • Requires sudo (privileged port 443 + hosts file)
  • One display domain per invocation
  • Does not rewrite URLs inside HTML/CSS/JS response bodies
Read more
@adobe
Ships withskills

Skills that teach AI coding agents to work with Adobe products. A skill is a folder with a SKILL.md that an agent loads when a task calls for it (agentskills.io).

338183 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
338
Star history of adobe/skills on GitHub, a chart by star-history.com

Other skills on skills.

aa-conversion-funnel-analysis

aa-conversion-funnel-a…

Analyzes a multi-step conversion funnel to find where visitors drop off and which steps have the worst leakage. Use this skill…

@adobe@adobeInstall Skill
aa-executive-briefing

aa-executive-briefing

Generates a concise, executive-ready performance summary covering key metrics, trends, and what's driving movement. Use this…

@adobe@adobeInstall Skill
aa-kpi-pulse

aa-kpi-pulse

Produces a compact KPI digest showing how key metrics changed over a period and what's driving the movement. Use this skill when…

@adobe@adobeInstall Skill
aa-top-movers-watchlist

aa-top-movers-watchlis…

Identifies which items (pages, campaigns, products, channels, regions) had the biggest increases or decreases for a key metric…

@adobe@adobeInstall Skill
cja-dimension-analysis

cja-dimension-analysis

Comprehensive dimension analysis and reporting for CJA. Use this skill whenever the user wants to analyze one or more dimensions…

@adobe@adobeInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3w393k
@openclaw@openclawInstall Skill

Questions about domain-mask.

Which coding agents can use domain-mask?
domain-mask installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.