Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

odt-filemgr-ocodt 文件管理器 oc

Agent Skill

odt-filemgr-oc 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,054

周安装

303

GitHub Stars

公开资料未说明

下载量

2,472
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:odt-filemgr-oc(odt 文件管理器 oc)
来源仓库:https://github.com/juicyroots/odt-filemgr-oc
安装命令:
openclaw skills install odt-filemgr-oc
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install odt-filemgr-oc

简介

使用 Python 和 odfdo 库创建与编辑 ODT 文档。

  • 适合在 OpenClaw 中处理 OpenDocument 文本格式任务。
  • 通过 clawhub 安装,支持提取、更新与附加文档内容。
  • 使用前需确认文件路径可写与编码兼容性。odt-filemgr-oc 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 建议核对原始 README 了解支持的样式与表格操作限制。

SKILL.md

name
odt-filemgr-oc
description
Create, parse, and edit ODT (OpenDocument Text) files locally using Python and odfdo. Use when the user asks to create, edit, read, update, append to, inspect, or manipulate any ODT file. Works with the nextcloud-aio-oc skill for NextCloud integration — that skill handles downloading and uploading the binary file; this skill handles all document-level editing.
license
MIT
compatibility
Requires Python 3.10+.
required-binaries

ODT File Manager

Local ODT document creation and editing powered by odfdo.

Library: odfdo v3.20+ — actively maintained, single dep (lxml), full ODF support.

Required Setup

pip install odfdo

Skill Boundaries

This skill is purely local — it has no network access and knows nothing about NextCloud.

For NextCloud workflows, pair with nextcloud-aio-oc:

StepSkill
Find file on NextCloudnextcloud-aio-ocnode scripts/nextcloud.js files search
Download binary ODTnextcloud-aio-ocpython3 scripts/files_binary.py download
Edit / create ODTodt-filemgr-ocpython3 scripts/odt_tool.py ...
Upload binary ODTnextcloud-aio-ocpython3 scripts/files_binary.py upload

Scripts live at: ~/.openclaw/skills/odt-filemgr-oc/scripts/


Workflows

Edit an existing ODT (NextCloud)

NC=~/.openclaw/skills/nextcloud-aio-oc/scripts
ODT=~/.openclaw/skills/odt-filemgr-oc/scripts

# 1. Download
python3 $NC/files_binary.py download "/Documents/MyDoc.odt" /tmp/MyDoc.odt

# 2. Inspect
python3 $ODT/odt_tool.py inspect /tmp/MyDoc.odt

# 3. Edit
python3 $ODT/odt_tool.py append /tmp/MyDoc.odt --text "New Section" --heading 2
python3 $ODT/odt_tool.py append /tmp/MyDoc.odt --text "Section content here."

# 4. Upload back
python3 $NC/files_binary.py upload /tmp/MyDoc.odt "/Documents/MyDoc.odt"

Create a new ODT and push to NextCloud

# 1. Create locally
python3 $ODT/odt_tool.py create /tmp/NewDoc.odt --title "Q1 Report"

# 2. Add content
python3 $ODT/odt_tool.py append /tmp/NewDoc.odt --text "Summary" --heading 2
python3 $ODT/odt_tool.py append /tmp/NewDoc.odt --text "Results were positive across all metrics."

# 3. Push to NextCloud
python3 $NC/files_binary.py upload /tmp/NewDoc.odt "/Documents/Q1 Report.odt"

Edit a local ODT (no NextCloud)

python3 $ODT/odt_tool.py inspect   myfile.odt
python3 $ODT/odt_tool.py to-text   myfile.odt
python3 $ODT/odt_tool.py append    myfile.odt --text "Added paragraph."
python3 $ODT/odt_tool.py replace   myfile.odt --find "draft" --sub "final"
python3 $ODT/odt_tool.py set-meta  myfile.odt --title "Final Report"

odt_tool.py Commands

CommandDescription
inspect <file>Show metadata + paragraph/heading/table structure
to-text <file>Extract all text content in document order
create <file> [--title T]Create blank ODT (optional H1 title)
append <file> --text T [--heading N] [--style S]Append heading (N=1–6) or paragraph
replace <file> --find F --sub S [--regex]Find and replace text
set-meta <file> [--title T] [--subject S] [--description D]Update metadata
set-font <file> --font F [--size N] [--no-preserve-mono]Set font across all style layers (default + all named/inline overrides)
`set-outline <file> --numbered \--plain`Toggle heading numbering (1.1.1 or none)
merge-styles <file> --template TApply all styles from a template ODT

Custom Python Edits

For table edits, style changes, or multi-step operations, write inline Python:

from odfdo import Document, Header, Paragraph

doc = Document("/tmp/file.odt")
body = doc.body

# Read all content in order
for child in body.children:
    if isinstance(child, Header):
        print(f"H{child.level}: {child.inner_text}")
    elif isinstance(child, Paragraph) and child.inner_text.strip():
        print(f"[{child.style}]: {child.inner_text}")

# Add content
body.append(Header(2, "New Section"))
body.append(Paragraph("Content here."))

# Table edit
table = body.get_table_by_name("MyTable")
table.set_value(0, 0, "Updated cell")

doc.save("/tmp/file.odt", pretty=True)

For the full odfdo API (tables, lists, spans, styles, metadata), see REFERENCE.md.


Key Rules

  1. Always inspect before editing a file you haven't seen.
  2. Temp files: use /tmp/ for working files; clean up after upload.
  3. Styles: for complex style systems (colors, spacing, borders), use merge-styles with a template rather than generating styles from scratch. set-font and set-outline work safely on any document without a template.

Troubleshooting

ErrorFix
ModuleNotFoundError: odfdopip install odfdo
zipfile.BadZipFileFile corrupted or not a real ODT — re-download
Heading doesn't appear as H1Use Header(1, "text"), not Paragraph("text", style="Heading 1")
Font still shows as Liberation in CollaboraODT has 6 font attributes per style rule. Old approach only set 3 (style:font-name-*). Collabora renders from fo:font-family — now all 6 are set. Re-run set-font.
Font name must match exactlyLibreOffice/Collabora font names are case-sensitive: "Noto Sans" not "noto sans"
set-outline changes not visibleSome documents override numbering via paragraph styles — use merge-styles with a clean template instead

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

96.75%
按下载量换算2,392

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills