Chuyển đến nội dung
Skillpedia
Hình ảnh và biểu tượng48k · #5052

draw

Skill này làm gì

Công cụ này giúp bạn tạo và chỉnh sửa đồ họa vector và sơ đồ, như lưu đồ và sơ đồ tổ chức. Nó cũng có thể chuyển đổi bản vẽ giữa các định dạng file, như PDF và SVG.

Khi nào nên dùng

  • ✓Khi bạn tạo một lưu đồ mới cho dự án.
  • ✓Khi bạn cần chuyển một bản vẽ từ ODG sang PDF để chia sẻ.
  • ✓Khi bạn tạo sơ đồ tổ chức từ một mẫu có sẵn.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/libreoffice/draw/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/libreoffice/draw/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một lưu đồ đơn giản thể hiện các bước pha cà phê.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn có thể yêu cầu vẽ từ đầu, dùng mẫu có sẵn cho sơ đồ, hoặc chuyển đổi file giữa các định dạng. Công cụ dùng LibreOffice Draw phía sau để thực hiện.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

LibreOffice Draw

Overview

LibreOffice Draw skill for creating, editing, converting, and automating vector graphics and diagram workflows using the native ODG (OpenDocument Drawing) format.

When to Use This Skill

Use this skill when:

  • Creating vector graphics and diagrams in ODG format
  • Converting between ODG, SVG, PDF, PNG formats
  • Automating diagram and flowchart generation
  • Creating technical drawings and schematics
  • Batch processing graphics operations

Core Capabilities

1. Graphics Creation

  • Create new ODG drawings from scratch
  • Generate diagrams from templates
  • Create flowcharts and org charts
  • Design technical drawings

2. Format Conversion

  • ODG to other formats: SVG, PDF, PNG, JPG
  • Other formats to ODG: SVG, PDF
  • Batch conversion of multiple files

3. Diagram Automation

  • Template-based diagram generation
  • Automated flowchart creation
  • Dynamic shape generation
  • Batch diagram production

4. Graphics Manipulation

  • Shape creation and manipulation
  • Path and bezier curve editing
  • Layer management
  • Text and label insertion

5. Integration

  • Command-line automation via soffice
  • Python scripting with UNO
  • Integration with workflow tools

Workflows

Creating a New Drawing

Method 1: Command-Line

soffice --draw template.odg

Method 2: Python with UNO

import uno

def create_drawing():
    local_ctx = uno.getComponentContext()
    resolver = local_ctx.ServiceManager.createInstanceWithContext(
        "com.sun.star.bridge.UnoUrlResolver", local_ctx
    )
    ctx = resolver.resolve(
        "uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext"
    )
    smgr = ctx.ServiceManager
    doc = smgr.createInstanceWithContext("com.sun.star.drawing.DrawingDocument", ctx)
    page = doc.getDrawPages().getByIndex(0)
    doc.storeToURL("file:///path/to/drawing.odg", ())
    doc.close(True)

Converting Drawings

# ODG to SVG
soffice --headless --convert-to svg drawing.odg

# ODG to PDF
soffice --headless --convert-to pdf drawing.odg

# ODG to PNG
soffice --headless --convert-to png:PNG_drawing drawing.odg

# SVG to ODG
soffice --headless --convert-to odg drawing.svg

# Batch convert
for file in *.odg; do
    soffice --headless --convert-to pdf "$file"
done

Format Conversion Reference

Supported Input Formats

  • ODG (native), SVG, PDF

Supported Output Formats

  • ODG, SVG, PDF, PNG, JPG, GIF, BMP, WMF, EMF

Command-Line Reference

soffice --headless
soffice --headless --convert-to <format> <file>
soffice --draw  # Draw

Python Libraries

pip install ezodf     # ODF handling
pip install odfpy     # ODF manipulation
pip install svgwrite  # SVG generation

Best Practices

  1. Use layers for organization
  2. Create templates for recurring diagrams
  3. Use vector formats for scalability
  4. Name objects for easy reference
  5. Store ODG source files in version control
  6. Test conversions thoroughly
  7. Export to SVG for web use

Troubleshooting

Cannot open socket

killall soffice.bin
soffice --headless --accept="socket,host=localhost,port=8100;urp;"

Quality Issues in PNG Export

soffice --headless --convert-to png:PNG_drawing_Export \
  --filterData='{"Width":2048,"Height":2048}' drawing.odg

Resources

Related Skills

  • writer
  • calc
  • impress
  • base
  • workflow-automation

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Câu hỏi thường gặp

Công cụ hỗ trợ những định dạng file nào?

Hỗ trợ tạo ở định dạng ODG và chuyển đổi đến/từ SVG, PDF, PNG, JPG và các định dạng khác.

Tôi có thể chuyển đổi nhiều file cùng lúc không?

Có, công cụ cho phép chuyển đổi hàng loạt nhiều file.

Có thể tạo bản vẽ kỹ thuật không?

Có, bạn có thể tạo bản vẽ kỹ thuật và sơ đồ mạch bằng công cụ này.

Chi tiết

Mô tả gốc của tác giả

Vector graphics and diagram creation, format conversion (ODG/SVG/PDF) with LibreOffice Draw.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5052
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự