360 Secure SkillHub
360 安全技能中心

content-extraction

该技能输入一个 URL,先判断来源(微信公众号、飞书文档/知识库、YouTube、通用网页),再选择对应抽取通道并生成干净 Markdown,同时输出标题、作者、来源、url、摘要,长内容另存本地并给出保存路径;分层失败时会说明失败位置与改用过的回退方案。

halfmoon82
halfmoon82
热度 61.17
最近更新 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.