Documents

Clip2MD

Try it

Use clip2md to configure an access token, save web pages or article URLs as Markdown clipping tasks, check remaining daily/permanent quota, query task status, and wait for clipping completion or failure. Use when the user mentions clip2md, 剪藏, clip, 保存网页为 Markdown, 查询额度, 提交链接, 查询任务, 等待剪藏完成, or wants

What it does

Use clip2md to configure an access token, save web pages or article URLs as Markdown clipping tasks, check remaining daily/permanent quota, query task status, and wait for clipping completion or failure. Use when the user mentions clip2md, 剪藏, clip, 保存网页为 Markdown, 查询额度, 提交链接, 查询任务, 等待剪藏完成, or wants an Agent to operate the clip2md product tool.

The skill document

clip2md Agent Tool

Use the bundled CLI. Run commands from this skill folder unless the caller provides another path.

node scripts/clip2md.js 

Agent Workflow

  • Before clipping, querying quota, or checking a task, rely on the CLI to detect whether ~/.clip2md/config.json contains a token.
  • If the CLI says the token is missing, expired, or invalid, ask the user for a fresh clip2md token from the web profile page.
  • Never print, quote, summarize, or echo the token in user-facing output.
  • Summarize command results: task id, status, quota, title/error, and whether Markdown is ready. Do not paste full Markdown content unless the user explicitly asks for it.
  • Use clip only to submit a URL. Use wait only when the user asks to wait for completion or when completion is necessary for the request.

Commands

Configure token:

node scripts/clip2md.js config 

Check quota:

node scripts/clip2md.js quota

Submit a URL:

node scripts/clip2md.js clip "https://example.com/article"

Query one task:

node scripts/clip2md.js status 

Wait for one task:

node scripts/clip2md.js wait  [--timeout ] [--interval ]

Defaults: timeout 120 seconds, interval 5 seconds.

Status Semantics

  • SUCCESS: completed; Markdown is ready when the summary says Markdown: 已生成.
  • PENDING, PROCESSING, WAITING_SERVICE: still waiting; use wait if the user asked for completion.
  • FAILED, FAILED_AUTH_EXPIRED, FAILED_SERVICE_UNAVAILABLE, MANUAL_REVIEW: not completed; explain the error message/category if present and suggest retrying later or refreshing credentials based on the CLI message.

Errors

  • 401: token expired or invalid; ask the user for a new token and run config.
  • 403: quota or permission problem; report quota/permission failure without retry loops.
  • 409: duplicate link or task conflict; report the conflict and task context.
  • 429 or 503: rate limit or temporary service outage; respect the CLI retry hint when present.

配置

Token 存储在 ~/.clip2md/config.json。 API 默认地址为 https://clip2.md/api/v1。Set CLIP2MD_API_BASE only for tests or private deployments.

Related skills

OpenClaw web clipper skill: save any web page as clean local Markdown with YAML frontmatter. Dual-engine extraction (readability-lxml + trafilatura fallback chain), Chinese filename safe, batch URL clipping with dedup, output lands in knowledge/clippings/ ready for kb-retriever indexing. Use when user asks to clip/save/collect a web page or article (剪藏/收藏/保存网页 文章/网页转 Markdown). 中文:OpenClaw 网页剪藏工具。把任意网页保存为带 frontmatter 的本地 Markdown:双引擎正文提取(readability-lxml + trafilatura 降级链)、中文文件名安全、批量剪藏 + 去重;输出直通 knowledge/clippings/, 配合 kb-retriever 建索引即可检索,构成六件套的「输入」环节(家 initializer → 内容 memory-distill → 状态 tracker → 知识 kb-retriever → 健康 auditor → 输入 web-clipper)。

Save the latest/current Claude Code Q&A to a local Markdown note. Use for /save-claude-notes, 保存笔记, save note, or configuring the notes directory.

Install, verify, and operate the obclip CLI to clip live web pages into Markdown or Obsidian notes. Use when Codex needs to install the @harris7/obclip npm p...

16 installs1 stars

Search your Mac's local clipboard history for text, URLs, commands, file paths, images, and PDFs you've previously copied.

31 installs

Thin OpenClaw and ClawHub wrapper for the published clawfetch npm CLI, used to fetch web pages, GitHub READMEs, and Reddit threads as markdown.

31 installs

Converts PDF, DOCX, XLSX, PPTX, HTML, CSV, and other files to Markdown using the @covoyage/file2md CLI (@covoyage/file2md). Use when the user needs office do...

1 installs