返回顶部
m

markdown-browser

Wrapper skill for OpenClaw web_fetch results. Use when you need MECE post-processing on fetched pages: policy decision from Content-Signal, privacy redaction, optional markdown normalization fallback, and stable output schema without re-implementing network fetch.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
504
下载量
0
收藏
概述
安装方式
版本历史

markdown-browser

# Markdown Browser Skills This skill is an orchestration layer, not a replacement fetcher. It always keeps official `web_fetch` as the fetch source of truth. ## MECE Architecture 1. Fetch layer (official, exclusive) - Use OpenClaw `web_fetch` to retrieve the page. - Do not call direct HTTP fetch inside this skill for normal operation. 2. Policy layer (these skills) - Parse `Content-Signal` and compute `policy_action`. - Current action focuses on `ai-input` semantics: `allow_input`, `block_input`, `needs_review`. 3. Privacy layer (these skills) - Redact path/fragment/query values in output URL fields. - Keep URL shape useful for debugging without leaking sensitive values. 4. Normalization layer (these skills) - If `contentType=text/markdown`, keep content as-is. - If `contentType=text/html`, convert with `turndown` as fallback enhancement. - For other content types, pass through text. ## Execution Order 1. Call official `web_fetch`. 2. Pass the result JSON into this wrapper. 3. Optionally pass `Content-Signal` and `x-markdown-tokens` header values if available. 4. Use the returned normalized object for downstream agent logic. ## Wrapper Tool `process_web_fetch_result({ web_fetch_result, content_signal_header, markdown_tokens_header })` Input: - `web_fetch_result` (required): JSON payload returned by OpenClaw `web_fetch`. - `content_signal_header` (optional): raw `Content-Signal` header string. - `markdown_tokens_header` (optional): raw `x-markdown-tokens` header value. Output: - `content` - `format` (`markdown` | `html-fallback` | `text`) - `token_estimate` (`number | null`) - `content_signal` - `policy_action` - `source_url` (redacted) - `status_code` - `fallback_used` ## CLI Usage ```bash # Install runtime dependency once inside the skill directory npm install --omit=dev # 1) Obtain a web_fetch payload first (from OpenClaw runtime) # 2) Save it as /tmp/web_fetch.json # 3) Run wrapper post-processing node browser.js \ --input /tmp/web_fetch.json \ --content-signal "ai-input=yes, search=yes, ai-train=no" \ --markdown-tokens "1820" ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 markdown-browser-1776317768 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 markdown-browser-1776317768 技能

通过命令行安装

skillhub install markdown-browser-1776317768

下载 Zip 包

⬇ 下载 markdown-browser v1.0.0

文件大小: 6.09 KB | 发布时间: 2026-4-16 18:41

v1.0.0 最新 2026-4-16 18:41
- Initial release of markdown-browser as an orchestration wrapper for OpenClaw web_fetch results.
- Provides MECE post-processing: policy decisions, privacy-preserving URL redaction, and optional markdown normalization.
- Ensures official web_fetch is always the fetch source; does not perform direct HTTP fetches.
- Returns a stable output schema including normalized content, policy action, signal headers, redacted source URL, and status code.
- Includes CLI instructions for running post-processing on existing web_fetch payloads.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部