Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

convert-doc转换文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

517

周安装

22

GitHub Stars

8

下载量

181
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:convert-doc(转换文档)
来源仓库:https://github.com/carlheath/ogmios
仓库路径:skills/convert-doc
安装命令:
npx skills add https://github.com/carlheath/ogmios --skill convert-doc
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/carlheath/ogmios --skill convert-doc

简介

用于辅助文档和大型文件的整理与改写。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中提炼结构、统一术语或检查链接。
  • 使用时保留项目已有事实,避免写成确定结论。
  • 涉及对外文案时应控制语气,避免过度营销或夸大能力。
  • 支持自动转换 PDF、Word、PowerPoint 等文件,并提供缓存机制。

SKILL.md

Smart Document Pipeline

Quick Reference

# Convert document (auto-caches, auto-summarizes if >100KB)
python ~/.claude/lib/document-converter.py "/path/to/file.pdf"

# Force regenerate
python ~/.claude/lib/document-converter.py "/path/to/file.pdf" --force

# List cached documents
python ~/.claude/lib/document-converter.py --list

# Cleanup old cache (>1 week)
python ~/.claude/lib/document-converter.py --cleanup

Supported Formats

FormatExtensionToolNotes
PDF.pdfPyMuPDFText extraction, page-by-page
Word.docx,.docpandoc/python-docxFull markdown
PowerPoint.pptx,.pptpython-pptxSlide-by-slide with notes
Excel.xlsx,.xlsopenpyxlTables as markdown
RTF.rtfpandocRich text

Output Structure

{
  "cache_path": "/path/to/cached/file.md",
  "summary_path": "/path/to/cached/file_summary.md",  // if >100KB
  "from_cache": false,
  "original_size": 26744198,
  "converted_size": 129844,
  "summary_size": 30638,
  "savings_percent": 99.5,
  "recommendation": "summary"  // "summary" or "full"
}

Auto-Summary

Documents >100KB automatically get a summary version:

VersionPurposeSize Target
FullComplete contentAs converted
SummaryQuick overview~30KB

The summary preserves:

  • All headers and structure
  • First portion of each section
  • Metadata and source reference

Automatic Integration

The smart-read-interceptor hook automatically triggers when you read:

  • PDF, Word, PowerPoint, Excel files
  • Any file >200KB

It will suggest:

  1. Use summary - If summary exists (best for overview)
  2. Use cache - If full cached version exists
  3. Convert first - If no cache exists
  4. Delegate - For very large files, use subagent

Subagent Delegation Pattern

For very large documents, delegate to isolated context:

Task(
  subagent_type="Explore",
  prompt="Read and summarize key points from: /path/to/large-file.pdf.
         Focus on: [specific topics]. Max 500 words summary."
)

This keeps the large content OUT of main context.

Cache Location

~/.claude/cache/documents/
├── filename_hash.md           # Full converted version
├── filename_hash_summary.md   # Summary (if >100KB)
└── ...

Cache expires after 1 week. Run --cleanup to remove old files.

Real-World Results

DocumentOriginalConvertedSummarySavings
Google AI Guide (PDF)26.7 MB127 KB30 KB99.9%
Debatt (Word)206 KB5.4 KB-97%
Övning (PowerPoint)7.2 MB3.1 KB-99.96%

Workflow Examples

Reading a PDF for research

1. User asks to analyze a PDF
2. Hook detects: "📄 DOCUMENT FILE: .PDF"
3. Convert: python ~/.claude/lib/document-converter.py "file.pdf"
4. Read the summary for overview
5. Read specific sections from full version if needed

Processing multiple documents

1. Convert all documents first (batch):
   for f in *.pdf; do python ~/.claude/lib/document-converter.py "$f"; done

2. Read summaries in main context
3. Delegate deep analysis to subagents

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.63%
按下载量换算52

Gemini CLI

25.43%
按下载量换算46

Antigravity

18.09%
按下载量换算33

windsurf

13.48%
按下载量换算24

Codex

7.13%
按下载量换算13

OpenCode

3.23%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills