360 Secure SkillHub
360 安全技能中心

content-extraction

这是OpenClaw的本地可执行内容提取工具,支持微信、飞书文档/知识库、YouTube、通用网页等多来源输入。自动识别来源并按优先级选最优提取通道,输出含标题、作者、摘要、Markdown正文等的结构化内容,长内容自动本地保存。提取失败时会明确反馈失败环节、原因及后续尝试的 fallback 方案,结果真实可信。

halfmoon82
halfmoon82
热度 61.20
最近更新 2026-05-11 17:37:15
分类:效率依赖:代码执行 / 联网浏览搜索 / 读写文件 / 第三方 API应用场景:摘要总结 / 文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add content-extraction
Metadata
name
content-extraction
description
OpenClaw-native executable content extraction skill for URLs, Feishu, YouTube, and web pages.
version
1.1.0
author
halfmoon82
tags
["browser","feishu","extraction","markdown","executable"]

Content Extraction — Executable Skill

This skill is the local executable version. It keeps the source-aware routing design and restores a concrete extraction workflow.

What it does

  • Detects the input source
  • Selects the best extraction channel
  • Produces clean Markdown
  • Saves long content locally when needed
  • Explains fallback failures instead of hiding them

Main entrypoints

  • scripts/extract_router.py — classify input and build a route plan
  • scripts/extract.py — generate an executable extraction spec

Route priorities

  1. WeChat → browser chain
  2. Feishu doc/wiki → Feishu tools
  3. YouTube → transcript chain
  4. Generic URL → r.jina.ai → defuddle.md → web_fetch → browser fallback

Output contract

Always return:

  • title
  • author when available
  • source
  • url
  • summary
  • Markdown body
  • save path when content is long

Fallback rule

Never claim success when extraction is partial. If a layer fails, report:

  • where it failed
  • why it failed
  • what fallback was tried next

Notes

  • The ClawHub abstracted package stays abstract.
  • This local version restores the executable workflow for OpenClaw use and ClawDex publishing.