/pages:pages-publishfrom Publish to Flisk Pages
Publish a page (a folder with an index.html or index.md, or a single .html or .md file) to a public link on pages.flisk.si/@<github login>/<name>, or publish a new version of one, or take one down. Use when the user asks to publish, share, host or put online a page, dashboard, explainer, report or prototype the agent built, to "make it a link", or mentions pages.flisk.si. To share with only certain people, use `share --send` (one private file per person, nothing hosted). Not for deploying apps with a server.
Ships in Publish to Flisk Pages. 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.
None: SKILL.md is the whole skill.
A space is one page that becomes https://pages.flisk.si/@<login>/<slug>/, where <login> is the user's GitHub
login lowercased. It is public: the page and its source on GitHub. The CLI is bin/pages.mjs in this plugin, two
folders up from this file, and runs on node (18+) or bun (bun "$PAGES" …) with nothing installed.
gh auth status): each publish is a pull request from the user's own fork, live at
/@<login>/<slug>/. Any page: HTML or Markdown, one file or a folder..md file, or a folder holding only index.md) is published anonymously
at /@anon/<id>/, with a random name. Publishing the same path again adds a version; remove <path> takes it
down. HTML needs the GitHub CLI: tell the user to run gh auth login, or offer the page as Markdown.PAGES="<this skill's base directory>/../../bin/pages.mjs"
node "$PAGES" check ./my-page # the publish check, nothing sent
node "$PAGES" publish ./my-page --slug my-page --wait # the link, once it answers
node "$PAGES" share ./page.html --send --to alice --to bob # private, never hosted; ASK the user who first, never guess
node "$PAGES" publish ./notes.md --wait # one file is fine; not signed in, it goes to /@anon/
node "$PAGES" remove my-page # take it down (or: remove ./notes.md for an anonymous one)
index.html or index.md at its top, or a single .html or .md file, which
becomes the index. Give the page a <title> and a <meta name="description">; the gallery and link previews use
them.gpu-explainer, not index).
The same slug again publishes a new version of that space; a new slug makes a new space. When the user names an
existing space, reuse its slug.check and fix every ✗ line before going further (see "Making a page pass"). ! lines are worth fixing
but do not stop a publish. Never edit the check or work around it: change the page.publish … --wait. Signed in, it forks flisk-sh/pages (once), opens a pull request, waits for the
workflow's answer, then for the link to answer. Not signed in, it sends the Markdown to publish.flisk.si and prints
the link and a manage link. Give the user the link it prints and, for an anonymous space, the manage link. If it
answers ✗, fix what it lists, then publish again.Problem ([rule]) | Fix |
|---|---|
script-src, style-src | Copy the file into the folder, or load it from cdnjs.cloudflare.com, cdn.jsdelivr.net, unpkg.com, esm.sh or cdn.tailwindcss.com, pinned to an exact version. |
connect-src | Put the data in the folder (data.json, data.csv) and fetch("data.json"). Only the space itself, those CDNs, api.github.com and raw.githubusercontent.com can be fetched. |
form-action | A form may only submit to the page itself; handle submit in script. |
password | Remove it. Spaces may not ask for passwords. |
frame-src | Only giscus.app, www.youtube-nocookie.com and player.vimeo.com can be embedded. Link to anything else. |
svg-script | Remove scripts and on…= handlers from SVG files. |
name, symlink, extension | Remove hidden files and links; keep to web file types (html, css, js, json, csv, images, fonts, audio, video, pdf). |
size | At most 300 files, 10 MB in all, 5 MB per file. |
Every page gets a Content-Security-Policy with the same rules and a small bar in the corner (publisher, version, source, report). Markdown is rendered like a GitHub README, with no scripts. For comments, the user can add giscus with their own repository; Pages runs no service and holds no keys.
node "$PAGES" remove <slug> opens an issue titled Remove @<login>/<slug>; it is removed at once because the user
is its publisher. The versions stay in git history.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub flisk-sh/pages --plugin pages