mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-12 11:43:25 +08:00
统一技能安装与 Skills 市场接入链路。
新增公开安装工具与多来源 provider 支持,补齐管理端与目录加载逻辑,并同步更新相关测试与文档以保证可见性和路径安全。 Made-with: Cursor
This commit is contained in:
parent
d5e30542aa
commit
4d9232f3b3
66 changed files with 7369 additions and 1099 deletions
47
runtime/skills/word-reader/skill.json
Normal file
47
runtime/skills/word-reader/skill.json
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
"name": "word-reader",
|
||||
"version": "1.0.0",
|
||||
"description": "读取 Word 文档(.docx 和 .doc 格式)并提取文本内容",
|
||||
"author": "OpenClaw User",
|
||||
"tags": ["document", "word", "office", "text-extraction"],
|
||||
"dependencies": {
|
||||
"python": ">=3.6",
|
||||
"packages": ["python-docx"],
|
||||
"system": ["antiword (optional for .doc support)"]
|
||||
},
|
||||
"features": {
|
||||
"text_extraction": true,
|
||||
"table_parsing": true,
|
||||
"metadata_extraction": true,
|
||||
"image_info": true,
|
||||
"batch_processing": true,
|
||||
"multiple_formats": ["json", "text", "markdown"]
|
||||
},
|
||||
"installation": {
|
||||
"steps": [
|
||||
"pip3 install python-docx",
|
||||
"sudo apt-get install antiword # 可选,支持 .doc 格式",
|
||||
"chmod +x scripts/read_word.py"
|
||||
]
|
||||
},
|
||||
"usage_examples": [
|
||||
{
|
||||
"description": "读取文档文本",
|
||||
"command": "python3 scripts/read_word.py document.docx"
|
||||
},
|
||||
{
|
||||
"description": "转换为 Markdown",
|
||||
"command": "python3 scripts/read_word.py document.docx --format markdown"
|
||||
},
|
||||
{
|
||||
"description": "批量处理",
|
||||
"command": "python3 scripts/read_word.py ./docs --batch --format json"
|
||||
}
|
||||
],
|
||||
"supported_file_types": [".docx", ".doc"],
|
||||
"notes": [
|
||||
".doc 格式需要安装 antiword",
|
||||
"大文档处理可能需要较长时间",
|
||||
"图片提取仅获取元数据,不包含实际图片数据"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue