Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: mindmap-publisher description: Publish an already-generated offline mindmap HTML folder to a configured static hosting directory and return a browser preview URL. Use only when the user explicitly asks to publish, deploy, host, expose, or generate a server preview URL for a mindmap. Do not use for ordinary local mindmap generation. Requires the user to provide a URL path prefix such as /mindmaps; never infer or omit the path prefix.
Mindmap Publisher
Overview
Use this skill only after a mindmap has already been generated by mindmap-builder or an equivalent process. This skill copies the single-file HTML as index.html (or legacy HTML plus its referenced markmap-assets/) into a static publishing directory and returns the corresponding HTTP(S) URL.
Do not use this skill for local double-click HTML output. Use mindmap-builder for that.
Required Inputs
Before publishing, require all of these values:
SourceHtml: path to the generated mindmap HTML file.StaticRoot: server/static directory that maps to the public URL path.PublicBaseUrl: public origin, for examplehttps://example.com.PathPrefix: required URL path prefix, for example/mindmaps. Do not default, infer, or leave empty.Slug: destination folder name under the path prefix, for examplezero-trust-ai-agents.
If PathPrefix is missing, stop and ask for it. Publishing without a path prefix is not allowed.
Publishing Model
Default source is a self-contained output.html; default published result is {StaticRoot}/{Slug}/index.html. No asset folder is needed. Legacy folder-based output is also supported:
Legacy source:
source/output.htmlmarkmap-assets/d3.min.jsmarkmap-view.jsmarkmap-toolbar.jsmarkmap-toolbar.css
Legacy published result:
{StaticRoot}/{Slug}/index.htmlmarkmap-assets/d3.min.jsmarkmap-view.jsmarkmap-toolbar.jsmarkmap-toolbar.css
Returned URL:
{PublicBaseUrl}{PathPrefix}/{Slug}/index.html
Workflow
- Confirm explicit user intent:
- Continue only if the user says publish, deploy, host, expose, preview URL, server URL, or similar.
- Otherwise, recommend
mindmap-builderlocal HTML output.
- Collect required inputs:
- Refuse to publish if
PathPrefixis absent or/. - Normalize
PathPrefixto start with/and have no trailing/. - Normalize
PublicBaseUrlto have no trailing/. - Validate
Sluguses only letters, digits, hyphens, underscores, or dots.
- Verify source:
SourceHtmlexists.- For legacy HTML referencing
markmap-assets/, that sibling folder exists. - HTML does not contain
cdn.jsdelivr.net.
- Publish:
- Use
scripts/publish_mindmap.ps1. - Copy HTML as
index.html. - Copy
markmap-assets/only if the HTML references it. - Do not modify unrelated files.
- Verify:
- Destination
index.htmlexists. - Any assets referenced by legacy HTML exist; single-file HTML needs none.
- Returned URL includes the required
PathPrefix.
Script
Use:
powershell -ExecutionPolicy Bypass -File .\scripts\publish_mindmap.ps1 `-SourceHtml .\output.html `-StaticRoot D:\nginx\html\mindmaps `-PublicBaseUrl https://example.com `-PathPrefix /mindmaps `-Slug zero-trust-ai-agents
The script returns JSON containing:
{"published_dir": "...","index_file": "...","url": "https://example.com/mindmaps/zero-trust-ai-agents/index.html"}
Deployment Notes
Read references/nginx-static-publish.md when the user needs help matching StaticRoot, PublicBaseUrl, and PathPrefix to an Nginx location or alias config.
This skill does not configure Nginx automatically. It publishes files to a configured static directory and computes the URL from user-provided deployment settings.