Use when the user asks to publish, share, host, or put online an HTML page, a report, a chart, a dashboard, or a folder of static files, to update, roll back, re-link, or delete a site published that way, or to set poplin up.
Ships in poplin. 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.
Poplin publishes a folder, or one HTML file, as a static site on an install in the user's own Cloudflare account. Each site gets its own address, and a new site is private.
Not set up yet, or asked to set poplin up? Follow references/setup.md. It makes a first install with the user when they have none, with one command, npx poplin install cloudflare. It uses the login stored on this machine, and adds the tools after the user's yes.
The user cannot log in, or wants the install removed? The same page has the two commands: npx poplin doctor --repair and npx poplin uninstall cloudflare. Both take the user's account token, which never passes through the chat.
npx poplin whoami prints Not logged in)You publish with the MCP tools, or with the poplin command when the tools are not connected.
| MCP tool | Does | The same with the command |
|---|---|---|
publish_site | makes a new site from path | npx poplin ./report |
publish_site | with site: new content for that site | npx poplin ./report --site report--k3f9x2ab71qz |
get_site | shows one site and its versions | npx poplin show report--k3f9x2ab71qz |
list_sites | lists the sites; with trash, the trash | npx poplin list, npx poplin list --trash |
update_site | changes who can open a site, by access | npx poplin set report--k3f9x2ab71qz --unlisted |
rollback_site | goes back one version, or to version | npx poplin rollback report--k3f9x2ab71qz |
new_link | gives the site a new URL | npx poplin new-link report--k3f9x2ab71qz |
delete_site | moves the site to the trash | npx poplin delete report--k3f9x2ab71qz |
restore_site | takes it back out of the trash | npx poplin restore report--k3f9x2ab71qz |
duplicate_site | makes a private copy with a new URL | npx poplin duplicate report--k3f9x2ab71qz |
site names one site: its label (report--k3f9x2ab71qz), its bare id, its URL (url), or the public name of a public site. Add --json to a command to get the site as JSON.
Find what to publish. A folder with an index.html at its root, or one HTML file. If you made the page yourself, write it to a folder first.
Decide: a new site, or an update. If the user is revising something already published, find its label: earlier in the conversation, or with list_sites. Each site in the list carries its label, its access, and its url. If you are not sure which site is meant, ask before you publish over it: an update is live at once, at an address people may already hold.
Publish. With no site for a new site. With site for an update.
Keep the label the answer returns, and tell the user (see below).
A publish with no site always makes a new site. Poplin never guesses that two publishes belong together, even from the same folder. So pass the label as site whenever you revise. Without it every revision lands at a new address, the link the user already shared keeps showing the old page, and stale copies pile up.
A new site is private. Only the users of the install can open it, after they log in in the browser. That is the right default for a draft or a report with real numbers in it, so leave it unless the user asks for more.
Ask before you widen who can open a site. The user may not know what each state lets out:
access | Who can open it | Address ends in | Command flag |
|---|---|---|---|
private | the install's users, after login | -p-poplin.example.com | --private |
unlisted | anyone who has the address, with no login | -u-poplin.example.com | --unlisted |
public | everyone, also at a public name: report-page.example.com | -u-poplin.example.com | --public |
"Share this with my team" is not yet a yes to unlisted: say what unlisted means and let the user choose. Going public claims a public name, the site's name unless you pass public_name (--public --public-name docs).
An install without a domain writes other addresses: Without a domain has them.
Change access only when the user asks, in either direction. A public site that goes private or unlisted gives up its public name, and that address stops working.
To or from private changes the address. The answer then holds a line that starts with redirects and names the old address, and ends in the new address. Give the user the new url, and say that the old address sends visitors on to it. The label you pass as site stays the same.
A rename never breaks a link. update_site with name (poplin set <site> --name q3-report) changes the name in the label and nothing else: the id, the public name, and every address handed out before stay as they are. The answer carries the new label.
new_link changes the address at once, and the old one stops working. Every link with the old label breaks, for everyone the user sent it to, and it cannot be put back. Use it only when the user asks for a new link.
If the user says a link leaked, name the ways to stop it and do the one they choose. A new link stops a leaked label address. Making the site private stops every address, the public name of a public site included, which a new link leaves working.
The answer carries the new label: use it from then on. For a private or unlisted site its url is the new address: give it to the user and say that the old one is dead. For a public site url is still the public name, which works as before: say that only the label address changed.
A private site needs no new link: its address opens nothing without a login.
delete_site moves a site to the trash; no_trash cannot be undone. From the trash, restore_site brings it back until the day it is gone for good. Delete only what the user named.
Leave no_trash to the user. With the command, --no-trash asks a person to type the label at a terminal, which you do not have.
What is uploaded. Every file under the folder, except hidden files (a name starting with a dot) and anything named node_modules, at any depth. One HTML file is published as the site's index.html.
Look at the folder first: what is in it will be on the site, and an unlisted or public site shows all of it. npx poplin ./report --dry-run lists the files and uploads nothing.
Try a change first. --dry-run goes with every command that changes a site or a setting, and with a logout: npx poplin delete report--k3f9x2ab71qz --no-trash --dry-run. For these the install is asked: it says what the command would do, or refuses it as it would refuse the run, and changes nothing. With --json the answer starts with "dry_run": true. The tools take no dry run.
The site is static. Files are served as they are. Relative links between them work (<a href="notes/q3.html">, <img src="chart.svg">): write every link that way, since a link that starts with / is refused on an install without a domain. There is no server code, no form handler, and no database, so build pages that need none.
A site can bring its own page for a wrong address: a file named 404.html at the root of the folder. A visitor who asks for a file the site does not have gets that page, with status 404. A site without one answers a plain Not found.
A wrong publish can be taken back. rollback_site puts the version before it live again, when the install still keeps one. The address stays the same.
An install is one of two kinds: under the user's own domain, or without a domain, at the address Cloudflare gives its Worker. The url of any answer shows which. You publish the same way on both. What differs:
| Thing | Under a domain | Without a domain |
|---|---|---|
| a private site's address | report--k3f9x2ab71qz-p-poplin.example.com | poplin-private.your-name.workers.dev/report--k3f9x2ab71qz/ |
| an open site's address | report--k3f9x2ab71qz-u-poplin.example.com | poplin-sites.your-name.workers.dev/report--k3f9x2ab71qz/ |
| a public name | docs-page.example.com | poplin-sites.your-name.workers.dev/docs/ |
a link that starts with / | opens a file of the site | leaves the site, so the publish is refused with root_links |
| two sites in one browser | kept apart | sites of a kind share one origin |
| blocking AI crawlers | a setting of the install | that one setting does nothing: it needs a domain |
A publish with a root link is refused, and nothing is sent. It is an address in an href, src, or srcset attribute that starts with one /, in an .html or .htm file. The refusal names the first one. An address that names a host, such as https://example.com/chart.svg or //example.com/chart.svg, passes: leave it. Write it from its own page, css/site.css or ../css/site.css, then publish again.
Sites of a kind share one browser origin. Every unlisted and public site is on one hostname, and every private site on another. A script of one site can read another site of its kind whose address it knows, and that site's browser storage. So publish there only pages the user trusts, and say so before you publish a page with scripts neither of you wrote.
To or from private, the hostname changes in place of the letter. The answer holds the same line.
Give three things: the address on a line of its own, who can open it, and how to change that.
Published. It is private: only the users of your install can open it, after they log in.
https://report--k3f9x2ab71qz-p-poplin.example.com
Say the word if you want a link that works for others without a login.
Take the address from url in the answer; do not build one yourself. After an update, say that the same address now shows the new version, unless the answer carries the line that starts with redirects. Do not paste the address anywhere else, and do not open it to "check" a private site: you are not logged in to it.
A refusal from a tool, or from a command run with --json, is one object with a code, a sentence, and often a hint. Without --json a command prints the sentence and the hint as text. Read the hint first, then look the code up in references/refusals.md.
You act as the user, with their own login: the one stored on this machine. You reach what they reach. You never replace a login that works: references/setup.md logs this machine in only with none stored, or on the user's yes for one that ran out.
Two rules hold for every refusal. A refusal about the login (no_login, not_logged_in) or about what the login may do (not_allowed) goes to the user: do not log in again or look for a way around it unasked. And when no answer came back (unreachable, timeout, internal), check list_sites before you repeat a publish: it may have gone through, and a second one with no site makes a second site.
| Open | When |
|---|---|
references/setup.md | the user asks to set poplin up, cannot log in, or asks to remove or move the install; or there are no tools and no login |
references/mcp-server.md | you add the MCP server to your own configuration, during the setup |
references/refusals.md | a tool or a command answers with a refusal code |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/poplin:poplinfrom poplin
npx claudepluginhub vivswan/poplin --plugin poplin