writer
自动化 LibreOffice Writer 文档
手动创建文档和转换格式浪费时间。此技能自动化 LibreOffice Writer 进行批量处理、模板生成和无缝 ODT/DOCX/PDF 工作流。
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "writer". Create a document titled Project Status with sections for Overview, Progress, and Risks.
النتيجة المتوقعة:
Created: project_status.odt with 3 heading levels, 200 words placeholder content, default Liberation Serif font, saved to workspace.
استخدام "writer". Convert quarterly_report.odt to PDF and DOCX formats.
النتيجة المتوقعة:
Conversion complete: quarterly_report.pdf (245 KB), quarterly_report.docx (89 KB). Original ODT preserved.
استخدام "writer". Extract text from meeting_notes.odt as markdown.
النتيجة المتوقعة:
# Meeting Notes
## Attendees
List of participants...
## Action Items
- Task 1 assigned to John
- Task 2 assigned to Sarah
التدقيق الأمني
مخاطر منخفضةStatic analyzer flagged 34 patterns but most are false positives. The skill uses subprocess.run with list arguments (safe pattern, not shell=True). Documentation URLs are references, not network calls. Temp file handling uses secure TemporaryDirectory(). One low concern: function parameters passed to subprocess could benefit from input validation.
مشكلات منخفضة المخاطر (1)
عوامل الخطر
⚙️ الأوامر الخارجية (2)
📁 الوصول إلى نظام الملفات (1)
درجة الجودة
ماذا يمكنك بناءه
业务报告生成
通过将模板占位符填充电子表格数据来自动化月度报告创建,然后批量转换为 PDF 进行分发。
文档格式标准化
将传统 DOC 文件转换为 ODT 格式以便版本控制,确保团队使用开放标准时文档处理一致。
批量证书制作
使用邮件合并功能从模板生成数百份个性化证书,通过 CSV 文件中的参会者姓名进行数据填充。
جرّب هذه الموجهات
Create a new LibreOffice Writer document with a title heading and two paragraphs of placeholder text. Save it as report.odt in the current directory.
Convert all ODT files in the documents folder to PDF format using headless LibreOffice. Log any conversion failures.
Generate personalized invitation letters using template.odt and attendees.csv. Replace {name}, {date}, and {venue} placeholders. Output each letter as a separate PDF named by attendee.Extract all text content from report.odt while preserving heading hierarchy. Output as structured markdown with H1 for document title and H2 for section headers.
أفضل الممارسات
- 使用段落和字符样式而非直接格式化,确保文档外观一致
- 为报告、信函和备忘录等常用文档类型创建可重用模板
- 在对关键文件运行批量操作之前,使用示例文档测试格式转换
تجنب
- 不要将未清洗的用户输入直接传递给子进程命令,需先进行路径验证
- 避免在无头模式下运行 LibreOffice 而不为锁定文件设置适当的错误处理
- 不要将敏感数据存储在临时目录中而不设置严格的文件权限