Document generation
Skill bg-szy/TOP-SKILLS/skills/marketplace/document-generation
全球最大的 Claude Code 技能聚合库 · 收录 3900+ 来自 12+ 来源的技能,提供在线搜索与趋势分析看板 / The world's largest Claude Code skill aggregation hub — 3900+ skills from 12+ sources with online search and trend dashboard
npx -y skills add bg-szy/TOP-SKILLS --skill document-generationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
A powerful skill for generating and processing professional documents (Word, PowerPoint, Excel, PDF).
SKILL.md
1.9 KB, 360 tokens by cl100k_base, as published. Nobody here has run it
Document Generation & Processing Skill
This skill provides comprehensive capabilities for creating, editing, and extracting content from office documents. It is designed to be used by agents requiring document manipulation capabilities.
Capabilities
1. Document Generation
- Word (.docx): Generate professional reports with headings, paragraphs, bullet points, and tables.
- PowerPoint (.pptx): Create slide decks with titles, content, and consistent layouts.
- Excel (.xlsx): Create spreadsheets with data and basic formatting.
- PDF (.pdf): Generate PDF documents from text content.
2. Document Processing
- Content Extraction: Extract text and structure from uploaded PDF, Word, PowerPoint, and Excel files.
- Format Conversion: Convert between compatible formats.
Usage
This skill exposes a set of Python scripts located in the scripts/ directory.
Python API
from app.skills.common.document_skill.scripts.word_generator import WordGenerator
from app.skills.common.document_skill.scripts.ppt_generator import PPTGenerator
from app.skills.common.document_skill.scripts.excel_generator import excel_generator
from app.skills.common.document_skill.scripts.office_processor import OfficeProcessor
# Example: Generate a Word Document
word_gen = WordGenerator(output_dir="path/to/output")
file_path = word_gen.generate(markdown_content, "filename")
# Example: Extract content
processor = OfficeProcessor()
content = processor.process("path/to/file.pdf")
Dependencies
- python-docx
- python-pptx
- openpyxl
- reportlab (for PDF)
- pypdf (for PDF extraction)
Directory Structure
scripts/: Implementation logic.templates/: (Optional) Document templates.