← 返回 Skills 市场
xmanatee

Pub

作者 Michael Nome · GitHub ↗ · v5.2.10 · MIT-0
cross-platform ✓ 安全检测通过
65
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install pub
功能描述
Create adaptive interfaces and real-time experiences via the pub CLI, with live P2P browser sessions.
使用说明 (SKILL.md)

pub

Use this skill when the user asks about creating adaptive interfaces, publishing content, or running live sessions on pub.blue.

Required CLI Version

Use pub CLI 0.11.17+.

Source: \x3Chttps://github.com/xmanatee/pub> (MIT license)

pub --version
# Install from GitHub Releases:
# https://github.com/xmanatee/pub/releases/latest
# Or via install script:
curl -fsSL https://pub.blue/install.sh | bash
# Or self-update an existing install:
pub upgrade

Setup

# One-time auth
pub config --api-key pub_KEY
# or
echo "pub_KEY" | pub config --api-key-stdin

Key source: \x3Chttps://pub.blue/agents>

Pub resolves config from:

  • PUB_HOME/config/config.json when PUB_HOME is set
  • XDG_CONFIG_HOME/pub/config.json when XDG_CONFIG_HOME is set
  • ~/.config/pub/config.json by default

PUB_HOME must be an absolute path. It also roots Pub data, state, runtime sockets, and workspaces. For OpenClaw bridge mode, set an explicit workspace before pub config --auto, for example OPENCLAW_WORKSPACE=/absolute/path/to/workspace.

Core Commands

pub create page.html
pub create --slug demo page.html
cat page.html | pub create

pub get \x3Cslug>
pub get \x3Cslug> --content

pub update \x3Cslug> --file next.html
pub update \x3Cslug> --public

pub list
pub delete \x3Cslug>

Notes:

  • Pub is built for adaptive interfaces — agents generate real-time UIs tailored to the user's task.
  • Pubs are private by default.
  • Reuse existing pubs for regular or repeated tasks. Use pub list to check if a relevant pub already exists, then pub update \x3Cslug> instead of creating a new one. Each user is limited to 10 pubs.
  • Title and description come from OG meta tags in the HTML. Always include og:title and og:description in your \x3Chead>. The server extracts them automatically — there are no CLI flags for title/description.
    \x3Chead>
      \x3Cmeta property="og:title" content="My Pub Title">
      \x3Cmeta property="og:description" content="A short description of what this pub does">
    \x3C/head>
    
    When updating a pub's content, always keep the OG tags accurate.
  • create supports --slug.
  • update supports --file, --public/--private, --slug.
  • Content is optional: a pub can be live-only.

UI Components

DaisyUI 5 + Tailwind CSS 4 via CDN:

\x3Clink href="https://cdn.jsdelivr.net/npm/daisyui@5" rel="stylesheet" type="text/css" />
\x3Cscript src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4">\x3C/script>
  • Components: daisyUI classes for all UI elements (btn, card, input, table, alert, tabs, modal, drawer, etc.) with color/size/variant modifiers
  • Colors: daisyUI semantic tokens only (primary, secondary, accent, neutral, base-*, info, success, warning, error)
  • Layout: Tailwind utilities (flex, grid, gap-*, p-*, responsive prefixes)
  • Never: inline styles, arbitrary values (text-[...]), z-index, emojis, hardcoded colors, branding/marketing copy

Going Live

Live is browser-initiated: the user opens the pub page; owner live mode connects automatically once the daemon is online.

  1. Start the agent daemon:
pub start --agent-name "\x3Cagent-name>"

Notes:

  • Bridge mode comes from saved config (pub config --auto or pub config --set bridge.mode=...).
  • Supported bridge modes: openclaw, claude-code, claude-sdk, claude-channel, and openclaw-like.
  • Enable verbose live daemon logging with pub config --set bridge.verbose=true when startup or bridge delivery is hard to diagnose.
  • Standalone binary installs fall back to claude-code when the Claude Agent SDK package is not locally importable.
  • bridge.mode=claude-sdk requires @anthropic-ai/claude-agent-sdk to be available in the local JS environment.
  • bridge.mode=claude-channel expects a running relay socket. Start it with pub channel-server and override the socket path with claude-channel.socketPath or PUB_CHANNEL_SOCKET_PATH when needed.
  • Canvas command-manifest agent executors require a local agent runtime: provider: "claude-code" needs claude-code.path or CLAUDE_CODE_PATH; provider: "openclaw" needs openclaw.path and openclaw.sessionId or matching env vars.
  • On success, pub start prints the daemon log path and current runtime status.
  • On failure, inspect the reported log path first; if logs are sparse, enable bridge.verbose=true and retry.
  1. Check runtime status:
pub status
  1. Reply in chat:

Bridge-owned chat is the live-session contract. Reply with normal assistant text; the bridge forwards that text to the chat channel. Do not use pub write for chat messages.

Use pub write only for non-chat outputs:

pub write -c canvas -f /tmp/view.html
  1. Stop daemon:
pub stop
  1. Validate end-to-end:
pub doctor
pub doctor --skip-chat --skip-canvas

Important:

  • write waits for delivery confirmation.

Advanced Details (On Demand)

Only when needed:

  • Show effective saved config: pub config
  • Inspect runtime and bridge state: pub status
  • Toggle verbose daemon logging: pub config --set bridge.verbose=true
  • See command-specific options: pub \x3Ccommand> --help
安全使用建议
Install this only if you intend to let an agent use the Pub CLI with your Pub account. Review deletions, updates, and public/private changes before they run, and handle PUB_API_KEY as a secret using secure config or environment handling where possible. The clean VirusTotal and static scan results support a benign verdict, but they do not remove the need for normal care around account credentials and publishing actions.
能力标签
cryptorequires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose is publishing adaptive interfaces and live pub.blue sessions, and the documented commands for create, get, update, delete, live start/stop, status, write, and doctor fit that purpose.
Instruction Scope
The skill clearly documents state-changing actions such as update, delete, and making a pub public; these are purpose-aligned but would benefit from explicit user-confirmation guidance before destructive or visibility-changing operations.
Install Mechanism
Installation is disclosed as a GitHub release download, with optional curl-to-shell install and self-upgrade examples; this is not hidden, but users should verify the source before running installer commands.
Credentials
The requested PUB_API_KEY, pub CLI access, Read/Write permissions, CDN UI assets, and live bridge behavior are proportionate to publishing and live-session workflows, though Bash(node:*) is broader than the core CLI examples require.
Persistence & Privilege
The skill discloses config locations, PUB_HOME state, runtime sockets, workspaces, and a start/stop daemon model; no hidden persistence, credential exfiltration, or unrelated privilege use is shown.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pub
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pub 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v5.2.10
Auto-publish from https://github.com/xmanatee/pub/commit/37becfa49b4ef5a5a4f2ee9eb67dd720eaf5bce0
v5.2.9
Auto-publish from https://github.com/xmanatee/pub/commit/361366a5d135a99c4313d92be986954ee499f1dd
元数据
Slug pub
版本 5.2.10
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Pub 是什么?

Create adaptive interfaces and real-time experiences via the pub CLI, with live P2P browser sessions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 65 次。

如何安装 Pub?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pub」即可一键安装,无需额外配置。

Pub 是免费的吗?

是的,Pub 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Pub 支持哪些平台?

Pub 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Pub?

由 Michael Nome(@xmanatee)开发并维护,当前版本 v5.2.10。

💬 留言讨论