简介
doc-importer
原始描述
Converts external documents (PDF, DOCX, PPTX, XLSX, HTML) into editable markdown
通过你的 Agent 添加
安装目录:doc-importer/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: doc-importer description: Converts external documents (PDF, DOCX, PPTX, XLSX, HTML) into editable markdown version: 1.9.8 triggers:
- import
- conversion
- documents
- ingestion
- ingesting external files for rewriting or project integration metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/scribe", "emoji": "\ud83e\udd9e", "requires": {"config": ["night-market.leyline:document-conversion", "night-market.leyline:content-sanitization", "night-market.scribe:slop-detector", "night-market.scribe:doc-generator"]}}} source: claude-night-market source_plugin: scribe
Night Market Skill — ported from claude-night-market/scribe. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Document Importer
Import external documents into editable markdown.
When To Use
- User provides a DOCX, PPTX, XLSX, PDF, or HTML file to convert into project documentation
- User wants to extract content from a document for rewriting or remediation
- User has a slide deck or spreadsheet to turn into markdown documentation
When NOT To Use
- Academic paper analysis: use
tome:papers - Web article knowledge intake: use
memory-palace:knowledge-intake - Content already in markdown: use
scribe:doc-generatorremediation mode directly
Import Workflow
Step 1: Identify Source
Determine the source document:
- Local file path: verify it exists with Read tool
- URL: verify accessibility
- User description: confirm format and location
Step 2: Convert to Markdown
Apply the leyline:document-conversion protocol:
- Construct URI from source (file path or URL)
- Try the markitdown MCP tool for best quality
- If unavailable, use native tool fallbacks
- If format unsupported, inform user
Step 3: Structural Cleanup
After conversion, normalize the markdown:
- Ensure ATX headings (
# style, not setext underlines) - Wrap prose lines at 80 characters per
leyline:markdown-formatting - Fix broken tables (align columns, add headers)
- Remove conversion artifacts (page numbers, headers/footers, watermarks, repeated logos)
- Preserve all substantive content
Step 4: Sanitize External Content
Apply the leyline:content-sanitization checklist:
- Size check (truncate sections over 2000 words)
- Strip system/instruction tags
- Wrap in external content boundary markers
Step 5: Write Draft
Write the converted markdown to the target location.
Default: same directory as source, with .md extension.
Ask the user for target path if ambiguous.
Step 6: Hand Off to Doc-Generator (Optional)
If the user wants polishing or rewriting:
- Invoke
Skill(scribe:doc-generator)in Remediation mode on the imported file - The doc-generator handles slop detection, style application, and quality gates
Offer this step; do not assume the user wants remediation.
Output Quality
The imported markdown should:
- Have a top-level
# Titlefrom the document title - Preserve the original heading hierarchy
- Convert tables to markdown tables
- Convert images to
references (note: image files may need separate handling) - Convert lists faithfully
- Mark unclear or garbled sections with
<!-- REVIEW: conversion artifact -->
Exit Criteria
- Source document identified and accessible
- Conversion attempted via document-conversion protocol
- Structural cleanup applied
- Sanitization checklist passed
- Draft written to target path
- User informed of any conversion limitations
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。