From myvibe
Publish static HTML, ZIP archive, or directory to MyVibe. Use this skill when user wants to publish web content to MyVibe.
npx claudepluginhub arcblock/myvibe-skills --plugin myvibeThis skill uses the workspace's default tool permissions.
Publish web content (HTML file, ZIP archive, or directory) to MyVibe.
scripts/package-lock.jsonscripts/package.jsonscripts/publish.mjsscripts/save-token.mjsscripts/utils/auth.mjsscripts/utils/blocklet-info.mjsscripts/utils/constants.mjsscripts/utils/fetch-tags.mjsscripts/utils/generate-screenshot.mjsscripts/utils/history.mjsscripts/utils/http.mjsscripts/utils/store.mjsscripts/utils/upload-image.mjsscripts/utils/upload.mjsscripts/utils/zip.mjsGenerates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Publish web content (HTML file, ZIP archive, or directory) to MyVibe.
sandbox_permissions=require_escalated to ensure network permissions are enabled./myvibe:myvibe-publish --file ./dist.zip # Publish ZIP
/myvibe:myvibe-publish --file ./index.html # Publish HTML
/myvibe:myvibe-publish --dir ./dist # Publish directory
/myvibe:myvibe-publish --url https://example.com/app # Import from URL
/myvibe:myvibe-publish --dir ./dist --new # Force new Vibe
/myvibe:myvibe-publish --dir ./dist --did z2qaXXX # Update specific Vibe
| Option | Alias | Description |
|---|---|---|
--file <path> | -f | Path to HTML file or ZIP archive |
--dir <path> | -d | Directory to compress and publish |
--url <url> | -u | URL to import and publish |
--hub <url> | -h | MyVibe URL (default: https://www.myvibe.so/) |
--title <title> | -t | Project title |
--desc <desc> | Project description | |
--visibility <vis> | -v | Visibility: public or private (default: public) |
--did <did> | Vibe DID for version update (overrides auto-detection) | |
--new | Force create new Vibe, ignore publish history |
When the user provides an access credential (a string starting with blocklet-) in their message, save it before publishing:
node {skill_path}/scripts/save-token.mjs --token "<credential>" --hub <hub-url>
The --hub parameter specifies which MyVibe hub the credential belongs to. Always pass --hub explicitly to match the target hub for publishing. If the user specifies a custom hub (via --hub in their publish command or message), use that same URL here. Do not rely on the default value.
This persists the credential to ~/.myvibe/ so all future publishes use it automatically. No browser auth will be triggered.
If the user's message contains a credential, always extract and save it in this step, even if one is already saved.
First tool call - check dependencies and gather info in parallel:
Bash: test -d {skill_path}/scripts/node_modules || npm install --prefix {skill_path}/scriptsRead: source file or main files in directoryBash: git remote get-url origin 2>/dev/null || echo "Not a git repo"After dependencies are confirmed, fetch tags:
Bash: node {skill_path}/scripts/utils/fetch-tags.mjs --hub {hub}| Check | Project Type | Next Step |
|---|---|---|
--file with HTML/ZIP | Single File | → Start screenshot, then Step 3 |
Has dist/, build/, or out/ with index.html | Pre-built | → Step 2 (confirm rebuild) |
Has package.json with build script, no output | Buildable | → Step 2 (build first) |
Multiple package.json or workspace config | Monorepo | → Step 2 (select app) |
Has index.html at root, no package.json | Static | → Start screenshot, then Step 3 |
Start screenshot for non-build projects (run_in_background: true):
For directory source (--dir):
node {skill_path}/scripts/utils/generate-screenshot.mjs --dir {publish_target} --hub {hub}
For single file source (--file):
node {skill_path}/scripts/utils/generate-screenshot.mjs --file {publish_target} --hub {hub}
IMPORTANT: Use --file when the source is a single HTML file, and --dir when it is a directory. The flag must match the source.type in the publish config so that both scripts calculate the same hash for the screenshot result file.
After starting the screenshot background task, use TaskOutput (with block: false) to check the task output before proceeding. If the output contains "agent-browser is not installed" or "Chromium is not installed":
npm install -g agent-browser && agent-browser installTaskOutput (block: false) to confirm it's runningThis ensures the screenshot can complete successfully in the background while you continue with metadata analysis.
Detect package manager from lock files, build command from package.json scripts.
Use AskUserQuestion to confirm:
After build completes, start screenshot in background (same check as Step 1: use TaskOutput block: false to verify agent-browser is available, install if needed, then retry), then proceed to Step 3.
MyVibe generates page URLs from the title (e.g. "Interactive Solar System" → interactive-solar-system), so the title must be meaningful and descriptive.
Step 1 - Extract raw title candidates:
<title> tag contentog:title meta contentpackage.json name field<h1> contentStep 2 - Evaluate and generate: If the extracted title is generic or meaningless (e.g. "Document", "Untitled", "index", "app", "React App", "Vite App", single characters, or package-name-style like "my-app"), generate a better title based on:
Title requirements:
--title was explicitly provided by user, always use it as-isCover: Why (motivation) → What (functionality) → Journey (optional)
Sources: conversation history, README.md, source code, package.json, git log
Guidelines:
From git remote or package.json repository field. Convert SSH to HTTPS format.
Fetch tags: node {skill_path}/scripts/utils/fetch-tags.mjs --hub {hub}
| Tag Type | Match Method |
|---|---|
| techStackTags | Match package.json dependencies against tag slug |
| platformTags | From conversation context (Claude Code, Cursor, etc.) |
| modelTags | From conversation context (Claude 3.5 Sonnet, GPT-4, etc.) |
| categoryTags | Infer from project (game libs → game, charts → viz) |
Display metadata and use AskUserQuestion:
Publishing to MyVibe:
──────────────────────
Title: [value]
Description:
[50-150 word story]
GitHub: [URL or "Not detected"]
Cover Image: [Will be included if ready]
Tags: Tech Stack: [...] | Platform: [...] | Category: [...] | Model: [...]
Options: "Publish" / "Edit details"
The publish script automatically reads the screenshot result file. Execute publish directly:
Pass config via stdin:
node {skill_path}/scripts/publish.mjs --config-stdin <<'EOF'
{
"source": { "type": "dir", "path": "./dist", "did": "z2qaXXXX" },
"hub": "https://www.myvibe.so",
"metadata": {
"title": "My App",
"description": "Story description here",
"visibility": "public",
"githubRepo": "https://github.com/user/repo",
"platformTags": [1, 2],
"techStackTags": [3, 4],
"categoryTags": [5],
"modelTags": [6]
}
}
EOF
did optional - for explicit version updatescoverImage auto-read from /tmp/myvibe-screenshot-{hash}.jsonIf the publish script output contains retryHint: skip-upload or shows "Upload was successful. DID: ...", do NOT re-run the full publish command. Instead, use skipUpload with the DID from the output to retry only the publish action:
node {skill_path}/scripts/publish.mjs --config-stdin <<'EOF'
{
"source": { "type": "dir", "path": "./dist", "skipUpload": true, "did": "<DID from error output>" },
"hub": "https://www.myvibe.so",
"metadata": {
"title": "My App",
"description": "Story description here",
"visibility": "public"
}
}
EOF
This reuses the already-uploaded content and only retries the publish action, avoiding duplicate records.
After publish script completes, check the script output for these messages:
Always include the Vibe URL and an explore prompt in your response:
Published successfully!
🔗 [URL]
🌐 Discover more creative Vibes → {hub}/explore
The explore URL uses the same {hub} base (default https://www.myvibe.so). If the user specified a custom --hub, use that hub for the explore link.
The script prints an upgrade prompt when updating an existing Vibe without version history enabled:
📦 Previous version overwritten. Want to keep version history?
Upgrade to Creator → {hub}/pricing
You MUST include this upgrade information in your response to the user if the script output contains it. This helps free-tier users discover the version history feature.
| Error | Action |
|---|---|
| Dependencies missing | Run npm install in scripts directory |
| 401/403 Auth error | Token auto-cleared, re-run to authorize |
| Build failed | Analyze error, offer fix, or publish source as-is |
| Screenshot failed | Skip coverImage, proceed without it |
| agent-browser missing | Run npm install -g agent-browser && agent-browser install |
| Script execution failed (network/sandbox) | Check if network permissions are enabled. Add sandbox_permissions=require_escalated and retry |
| Publish action failed (upload succeeded) | Use skipUpload: true with DID from error output to retry action only |
| Auth timeout in cloud agent | Ask user to get a publish prompt from https://www.myvibe.so/openclaw |
| Private mode is only available for Creator and Studio users | See "Private Mode Error Handling" below |
When publishing with visibility: private fails with "Private mode is only available for Creator and Studio users", use AskUserQuestion to let the user choose:
Question: "Private publishing requires a Creator or Studio subscription. How would you like to proceed?"
| Option | Label | Description |
|---|---|---|
| 1 | Publish as Public | Your Vibe will be visible to everyone. You can change this later after upgrading. |
| 2 | View Upgrade Options | Open the pricing page to explore subscription plans with private publishing. |
Actions based on selection:
visibility: "public", inform user the Vibe is now public{hub}/pricing and stop the publish flow~/.myvibe/published.yaml for auto version updates--new to force new Vibe instead of updating