/artifact-publish:artifact-publishfrom artifact-publish
Publish a self-contained HTML file as an artifact on artifacts.nexaedge.com and return the link. This is the default way to publish HTML from any folder: report, proposal, dashboard, comparison, document. Use whenever someone asks to publish, share, send a link to, deliver or upload an HTML file for another person to open.
Ships in artifact-publish. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
python3 "${CLAUDE_SKILL_DIR}/scripts/publish.py" <file.html>
python3 "${CLAUDE_SKILL_DIR}/scripts/publish.py" <file.html> --as <domain>
Prints the link and opens it in the browser. Standard library only: no venv, no package install, no cloud credential.
The first run per account opens a browser to sign in with Google. After that the refresh token stays in ~/.config/nexaedge/artifact-share/<domain>.json (mode 600) and nothing is asked again.
--as <domain> | account that publishes (default: the configured one, or the only one signed in) |
--share 7 | also return a link that opens without sign-in, expiring in N days (max 30) |
--slug name | folder on the server (default: the file's folder) |
--no-open | do not open the browser |
--whoami | show the signed-in account (accepts --as) |
--relogin | sign in again, to switch accounts |
The account decides who can open it. The artifact belongs to the domain of the account that published it, and only accounts of that domain get in. Getting this wrong raises no error: it produces a link the intended reader cannot open.
--as.Run --whoami when unsure which account is active.
Anyone without an account on that domain cannot open the normal link: they land on a sign-in screen that does nothing for them. For those, use --share N, which returns a link with no sign-in and an expiry date. It expires on its own and cannot be revoked one by one, so prefer a short window.
The HTML <title> becomes the name in the listing, in the tab of whoever opens it, and in how the link is referred to. Write what the document is, with its scope (Q3 pipeline review · Jul 2026), never the file name: an artifact called "index" or "report" cannot be found later. The script warns when the title is one of those, and publishes anyway.
Wrong title after publishing: open the link, click the title in the top bar, edit, press Enter. Only whoever published sees the field, and renaming neither republishes nor changes the date.
Prefer self-contained: CSS, JS and data inside the file, images as data URIs. External resources do load — a CDN script, a webfont, an image by URL, a cross-origin fetch — so this is a recommendation, not a limit the service imposes. An artifact is a frozen copy that has to open weeks after the link went out, and a CDN that moves takes the page with it, a network that blocks the host renders it wrong, and every open tells whoever serves the asset who is reading.
What the isolated origin (sandbox allow-scripts, no allow-same-origin) does cost is anything tied to an origin: localStorage, sessionStorage and cookies are unavailable, so a page cannot remember anything between visits. The document's own JavaScript runs normally, canvas and blob downloads included.
Publishing again with the same path overwrites it, and the link stays the same.
~/.config/nexaedge/artifacts.json, every key optional:
{
"service": "https://artifacts.nexaedge.com",
"default_domain": "acme.com",
"accounts": {"acme.com": "[email protected]"}
}
accounts only preselects the account on Google's screen. default_domain is what publishes without --as. With a single account signed in, no configuration is needed at all.
An HTML file only the user will look at right now does not need to become an artifact: write it in the project folder and open it locally. Publishing is for when the document has to leave the machine.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nexaedge/nexaedge-marketplace --plugin artifact-publish