Xpersona
M

md-web

CLAWHUB · Unverified

Use when markdown should become a shareable web page or link. Uploads to your S3 bucket and the URL is public, so only on request. 做成网页 / 分享为链接.

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ew1np564733ehxantz09mmd83gs64:md-web
  1. Install using `clawhub skill install s17ew1np564733ehxantz09mmd83gs64:md-web` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/rockbenben/md-web before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-rockbenben-md-web/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

152,614 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: md-web
version: 1.1.4
description: Use when markdown should become a shareable web page or link. Uploads to your S3 bucket and the URL is public, so only on request. 做成网页 / 分享为链接.

metadata:
  openclaw:
    homepage: https://github.com/rockbenben/aishort-skills/tree/main/skills/md-web
    emoji: "🌐"
    requires:
      bins: ["node"]
    files:
      - upload.js
      - "docsify-server/**"
---

# MD Web - Markdown to Web Page

Upload raw `.md` files to an S3-compatible storage bucket, where a pre-deployed Docsify server automatically renders them as web pages. This avoids sending long text in the conversation.

## When to use this skill

**Uploaded content is publicly accessible.** Only use this skill when the user explicitly requests it:

- User wants to **show or preview content as a web page** in a browser
- User wants to **generate, export, or publish** content as a web page
- User wants a **shareable link** to content
- User wants output **delivered as a web page** rather than as long text in chat
- User wants to **compile or organize content and present it as a web page**
- User invokes this skill by name (e.g., `/md-web`)

## How to use this skill

### Step 1: Check configuration

Check if `~/.md-web/config.json` exists (cross-platform: use the user's home directory). If it does NOT exist or has empty fields, follow the **Configuration** section below first.

One exception: an older install kept `config.json` in the skill's own directory rather than in the home directory. If `~/.md-web/config.json` is absent but that legacy file is sitting next to `upload.js`, skip the wizard and run the upload — the script copies both it and `.deployed` into `~/.md-web/` and prints `Config migrated to:`. Running the wizard instead would ask the user for credentials that are already on disk.

### Step 2: Prepare the markdown file

Either use an existing `.md` file, or write the content to a temporary file. Choose the temp path based on the current platform (e.g., `/tmp/` on Linux/macOS, `%TEMP%\` on Windows — note Git Bash does not expand `%TEMP%`, so use `$TEMP` there). Use whichever path works in the current shell environment.

**Only the `.md` file itself is uploaded.** Relative image references (`![](diagram.png)`) will be broken on the page — tell the user to use absolute image URLs for documents that need pictures.

### Step 3: Upload via upload.js

```bash
node "{SKILL_DIR}/upload.js" <local-file> <remote-key>
```

- `{SKILL_DIR}`: the base directory of this skill (shown at the top when skill is loaded). Keep it inside quotes — a skills directory under a path with spaces breaks the shell otherwise.
- `<remote-key>`: a short **ASCII, lowercase, hyphenated** name with no spaces (e.g., `api-docs.md`, `project-guide.md`) — use this even when the document's own title is Chinese, because the key is what appears in the public URL. A timestamp is prepended automatically to avoid filename collisions, the extension is forced to `.md`, and the objec

docsify-server/README.md

# MD Web

Instant Markdown sharing — paste a link, read a beautifully rendered page.

即时 Markdown 分享 —— 打开链接,阅读排版精美的页面。

## Looking for a document? / 找文档?

If you arrived here without a specific document, the link you need should look like:

如果你看到的是这个页面而非具体文档,你需要的链接格式应该是:

```
https://your-domain/index.html#/md-web/20260903-091500-your-document
```

Check the link you received and make sure the `#/document-name` part is included.

请检查你收到的链接,确保包含 `#/文档名` 部分。

## Features / 功能

- **Full-text search / 全文搜索** — search within the current document / 搜索当前文档内容
- **Table of contents / 目录导航** — auto-generated from headings, shown on screens wider than 1300px / 根据标题自动生成,宽度超过 1300px 的屏幕才显示
- **Image zoom / 图片缩放** — click any image to view full size / 点击图片查看原图
- **Word count / 字数统计** — reading time estimate / 自动估算阅读时间

README.md

# MD Web

Turn any content into a web page with a shareable URL. Uploads Markdown to an S3-compatible storage bucket, rendered by Docsify.

[中文文档](README.zh.md)

## Installation

Pick whichever matches your agent / CLI:

```bash
# ClawHub / OpenClaw
clawhub install md-web

# skills.sh (Vercel skills CLI — Claude Code, Cursor, and more)
npx skills add rockbenben/aishort-skills
```

Or install manually — clone this repo and copy (or symlink) `skills/md-web/` into your agent's
skills directory: `~/.claude/skills/` for Claude Code, `~/.agents/skills/` for the cross-runtime
convention Codex and Gemini CLI also read, or wherever your agent keeps them.

## Quick Start

1. Install the skill (see above)
2. On first use, the AI will guide you through bucket configuration
3. After that, tell the AI "share as a link" whenever you want to publish content as a web page

## Bucket Setup

This skill requires an **S3-compatible object storage bucket** with public access enabled. The example below uses Cloudflare R2.

### Step 1: Create a Bucket

1. Log in to the [Cloudflare Dashboard](https://dash.cloudflare.com/)
2. Select **R2 Object Storage** from the left menu
3. Click **Create bucket**, enter a name (e.g., `md-web`), use the default region
4. After creation, go to the bucket's **Settings** page
5. Find **Public Access**, click **Allow Access**, enable the **R2.dev subdomain**
6. Once enabled, a public URL will appear: `https://pub-XXXX.r2.dev`
   → This is the **public_url** in the config

### Step 2: Create an API Token

1. On the R2 page, click **Manage R2 API Tokens**
2. Click **Create API Token**
3. Set permissions to **Object Read & Write** (or **Admin Read & Write** if you want automatic file expiry — see `expire_days` below)
4. Optionally restrict scope to the specific bucket
5. After creation, you'll see:
   - **Access Key ID** → **access_key** in the config
   - **Secret Access Key** → **secret_key** in the config
   - **S3 Endpoint** in the format `https://ACCOUNT_ID.r2.cloudflarestorage.com`
     → Remove `https://`, the rest is the **endpoint**

### Step 3: Tell the AI

On first use, the AI will ask for these fields:

| Field       | Required | Description                                                               | Example                               |
| ----------- | -------- | ------------------------------------------------------------------------- | ------------------------------------- |
| access_key  | Yes      | API access key ID                                                         | `a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4`    |
| secret_key  | Yes      | API secret access key                                                     | `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6...` |
| endpoint    | Yes      | S3 endpoint (without `https://`)                                          | `ACCOUNT_ID.r2.cloudflarestorage.com` |
| bucket      | Yes      | Bucket name                                                               | `md-web`                  

_meta.json

{
  "ownerId": "kn7e3c6rk5vphg2e5v665xrwj1826k3x",
  "slug": "md-web",
  "version": "1.1.4",
  "publishedAt": 1790587105274
}

README.zh.md

# MD Web

[English](README.md)

将任意内容转为网页并生成可分享的链接。上传 Markdown 到 S3 兼容存储桶,由 Docsify 自动渲染。

## 安装

按你使用的 agent / CLI 任选其一:

```bash
# ClawHub / OpenClaw
clawhub install md-web

# skills.sh(Vercel skills CLI —— 适用于 Claude Code、Cursor 等)
npx skills add rockbenben/aishort-skills
```

或手动安装 —— clone 本仓库,把 `skills/md-web/` 拷贝(或软链)进 agent 的 skills 目录:
Claude Code 为 `~/.claude/skills/`,Codex 与 Gemini CLI 等通用约定为 `~/.agents/skills/`,
其他 agent 按各自目录放即可。

## 快速开始

1. 安装 skill(见上方)
2. 首次使用时,AI 会引导你填写存储桶配置
3. 之后告诉 AI「用网页展示」即可将内容分享为链接

## 存储桶配置

本 skill 需要一个 **S3 兼容的对象存储桶**并开启公共访问。以下以 Cloudflare R2 为例。

### 第一步:创建存储桶

1. 登录 [Cloudflare Dashboard](https://dash.cloudflare.com/)
2. 左侧菜单选择 **R2 对象存储**
3. 点击 **创建存储桶**,填写名称(如 `md-web`),区域选默认即可
4. 创建完成后进入桶的 **设置** 页面
5. 找到 **公开访问**,点击 **允许访问**,勾选 **R2.dev 子域**
6. 开启后会显示公共 URL,格式为 `https://pub-XXXX.r2.dev`
   → 这就是配置中的 **public_url**

### 第二步:创建 API 令牌

1. 在 R2 页面点击 **管理 R2 API 令牌**
2. 点击 **创建 API 令牌**
3. 权限选择 **对象读和写**(Object Read & Write)。如需自动过期功能(见下方 `expire_days`),需选择 **管理员读和写**(Admin Read & Write)
4. 范围可选 **仅限指定桶** → 选择刚才创建的桶
5. 创建后会显示:
   - **Access Key ID** → 配置中的 **access_key**
   - **Secret Access Key** → 配置中的 **secret_key**
   - **S3 端点** 格式为 `https://ACCOUNT_ID.r2.cloudflarestorage.com`
     → 去掉 `https://`,剩余部分就是 **endpoint**

### 第三步:告诉 AI

首次使用 skill 时,AI 会询问以下信息:

| 字段        | 必填 | 说明                                                     | 示例                                  |
| ----------- | ---- | -------------------------------------------------------- | ------------------------------------- |
| access_key  | 是   | API 访问密钥 ID                                          | `a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4`    |
| secret_key  | 是   | API 秘密访问密钥                                         | `a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6...` |
| endpoint    | 是   | S3 端点(不含 https://)                                 | `ACCOUNT_ID.r2.cloudflarestorage.com` |
| bucket      | 是   | 存储桶名称                                               | `md-web`                              |
| public_url  | 是   | 公共访问 URL(推荐自定义域名)                           | `https://pub-XXXX.r2.dev`             |
| region      | 否   | S3 区域(R2 用 `auto`,AWS S3 填实际区域如 `us-east-1`) | `auto`                                |
| expire_days | 否   | 上传文件自动删除天数(默认 `30`;`0` = 永久保留,注意下方警告) | `30`                            |

> **提示**:R2.dev 子域有速率限制,生产环境建议为桶绑定自定义域名作为 `public_url`。

AI 会自动将配置写入 `~/.md-web/config.json`,之后不再需要重复配置。

## 使用方式

上传的内容通过生成的 URL **公开可访问**。仅在你明确要求时触发:

```text
做成网页
预览 README.md
/md-web path/to/file.md
分享为链接
```

AI 会返回一个链接,点击即可在浏览器中阅读渲染后的文档。

> **注意**:Markdown 中的图片引用(如 `![](image.png)`)不会被上传,仅上传 `.md` 文件本身。如文档包含图片,请使用绝对 URL。

## 安全须知

- **上传的内容通过返回的 URL 公开可访问** —— 切勿上传密钥、API token、个人隐私等敏感内容。
- S3 凭证以**明文**保存在 `~/.md-web/config.json`,请妥善保护该文件 —— 不要提交到仓库或外泄。
- **使用专用存储桶。** 上传文件统一放在 `md-web/` 键前缀下,自动过期规则也只作用于该前缀,所以本 skill 只会过期自己的文件。有一个例外,也正是专用桶的意义所在:`expire_days: 0` 删除的不只是本 skill 那条规则,而是**整个桶的生命周期配置**,包括你自己设的规则。
- **自动过期需要「管理员读和写」权限的令牌。** 只有「对象读和写」时上传照

Sponsored

Ads related to md-web and adjacent AI workflows.