跳到正文

网页转 Markdown 归档

把网页正文保存成 Markdown,处理页面加载与资料归档所需的信息。

开源精选知识加工52 个文件26,681 Stars浏览次数 0JimLiu/baoyu-skills MIT版本 1567581
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
目标页面地址 保存目录与读取条件 阅读本节完整说明
交付内容
Markdown 资料 来源与随附内容 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

references/quality-gate.md

Headless Chrome can silently return low-quality content — layout shells, login walls, or framework payloads — without the CLI returning a non-zero exit code. Read this after every headless run so you can catch and recover from those cases.

Checks the Agent Must Run

  1. Confirm the markdown title matches the target page, not a generic site shell
  2. Confirm the body contains the expected article/page content, not just navigation, footer, or a generic error
  3. Watch for obvious failure signs:
    • Application error
    • This page could not be found
    • Login, signup, subscribe, or verification shells
    • Extremely short markdown for a page that should be long-form
    • Raw framework payloads or mostly boilerplate content
  4. Do NOT accept a run as successful just because the CLI exited 0

Tip: run with --format json to get structured signals including status, login.state, and interaction. "status": "needs_interaction" means the page requires manual interaction.

Recovery Workflow

  1. Start headless (default) unless there is already a clear reason to use interaction mode
  2. Review markdown quality immediately after the run
  3. If the content is low quality or indicates login/CAPTCHA:
    • --wait-for interaction for auto-detected gates (login, CAPTCHA, Cloudflare)
    • --wait-for force when the page needs manual browsing, scroll loading, or complex interaction
  4. If --wait-for is used, tell the user exactly what to do:
    • Login required → sign in in the browser
    • CAPTCHA visible → solve it
    • Slow loading → wait until content is visible
    • --wait-for force → press Enter when ready
  5. If JSON output shows "status": "needs_interaction", switch to --wait-for interaction automatically

Capture Modes

Mode Behavior Use When
Default Headless Chrome, auto-extract on network idle Public pages, static content
--headless Explicit headless (same as default) Clarify intent
--wait-for interaction Opens visible Chrome, auto-detects login/CAPTCHA gates, waits for them to clear, then continues Login-required, CAPTCHA-protected
--wait-for force Opens visible Chrome, auto-detects OR accepts Enter keypress to continue Complex flows, lazy loading, paywalls

Interaction gate auto-detection: Cloudflare Turnstile / "just a moment" pages, Google reCAPTCHA, hCaptcha, custom challenge / verification screens.

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan