document-gen-dual-backend

Featured

Document generation with direct pandoc/ReportLab execution (lightweight default) and optional shell_agent fallback for complex scenarios

Data & Documents 6,332 stars 785 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Document Generation: Dual-Backend Workflow (Unicode-Safe) ## When to Use **Default Approach: Lightweight Direct Execution (Recommended for 90% of tasks)** For most document generation tasks, use direct `write_file` + `run_shell` **without** `shell_agent`: - Generating documents in standard formats (`.docx`, `.pdf`, `.html`) from Markdown - Content is straightforward with minimal special characters - You already know the pandoc/ReportLab commands needed - Quick single-format or multi-format output is needed **Fallback Approach: shell_agent Delegation (For Complex Scenarios Only)** Use `shell_agent` delegation only when: - Automated fallback handling between backends requires complex logic - Dynamic content generation needs programmatic decision-making - You need to capture and analyze error messages for intelligent retry logic ### When shell_agent May Be Useful (Optional) Only consider `shell_agent` delegation for: - Complex error recovery requiring automated backend switching - Dynamic workflows with conditional branching based on generation results ## Core Technique **For simple tasks (default):** Use direct `write_file` + `run_shell` with pandoc or ReportLab (no shell_agent needed) **For complex tasks requiring fallback logic:** Split the workflow into discrete, observable steps with **two PDF generation paths**: **Path A (Pandoc)**: Best for Markdown-to-PDF conversion with rich text formatting **Path B (ReportLab)**: Best for programmatic PDF generation withou...

Details

Author
HKUDS
Repository
HKUDS/OpenSpace
Created
2 months ago
Last Updated
4 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Featured

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of "Word doc", "word document", ".docx", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a "report", "memo", "letter", "template", or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

14,116 Updated today
eigent-ai
Data & Documents Featured

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

459 Updated yesterday
malob
Code & Development Solid

doc-review

Review a single file or all files in a folder for data inconsistencies, reference errors, typos, and unclear terminology using parallel sub-agents

15 Updated today
vladm3105
Data & Documents Solid

pdfkit-generation

Generate professional PDFs with PDFKit in Node.js. Use when creating pitch decks, reports, or styled documents with AGNT branding. Covers large script handling, Unicode-safe characters, and brand design patterns.

270 Updated today
agnt-gg
Data & Documents Featured

minimax-docx

Professional DOCX document creation, editing, and formatting using OpenXML SDK (.NET). Three pipelines: (A) create new documents from scratch, (B) fill/edit content in existing documents, (C) apply template formatting with XSD validation gate-check. MUST use this skill whenever the user wants to produce, modify, or format a Word document — including when they say "write a report", "draft a proposal", "make a contract", "fill in this form", "reformat to match this template", or any task whose final output is a .docx file. Even if the user doesn't mention "docx" explicitly, if the task implies a printable/formal document, use this skill.

358 Updated yesterday
mxyhi