Document Generator Skill
Generate professional Word documents with rich formatting, tables, styles, and structured content. This skill leverages Anthropic's docx Agent Skill to create Word documents programmatically.
Instructions
When asked to generate a Word document:
Understand Requirements: Parse the request for:
- Document type (report, proposal, minutes, guide)
- Content sections and hierarchy
- Formatting needs (styles, colors, fonts)
- Tables, lists, or structured data
- Branding and visual requirements
Plan the Document:
- Outline sections and structure
- Identify formatting requirements
- Determine table layouts
- Plan page breaks and flow
Create with Code Execution:
import anthropic
client = anthropic.Anthropic()
response = client.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=4096,
tools=[{"type": "code_execution", "name": "bash"}],
messages=[{
"role": "user",
"content": "Create a Word document with [specification]"
}],
container={
"type": "skills",
"skills": [{"type": "anthropic", "skill_id": "docx", "version": "latest"}]
},
betas=["code-execution-2025-08-25", "skills-2025-10-02"]
)
Extract File Reference:
- Locate file_id in response content blocks
- Return file reference for download/integration
Examples
Project Proposal
Input: "Create a project proposal for a mobile app development project"
Output: Professional document with executive summary, scope, timeline, budget, and appendices
Meeting Minutes
Input: "Generate meeting minutes from our Q4 planning session with attendees, agenda, decisions, and action items"
Output: Formatted minutes with clear sections and action item tracking table
API Documentation
Input: "Create API documentation for a REST service with endpoints, parameters, examples, and error codes"
Output: Comprehensive technical documentation with code blocks and tables
Features Supported
- Text Formatting: Bold, italic, underline, strikethrough
- Heading Styles: Multiple heading levels with built-in styles
- Lists: Bullet points, numbered lists, multi-level nesting
- Tables: Complex tables with merged cells and formatting
- Page Breaks: Section separation and flow control
- Images: Embedding images and maintaining aspect ratio
- Margins & Spacing: Professional document layout
- Headers/Footers: Persistent page headers and footers
- Sections: Different formatting for document parts
- Styles: Apply predefined or custom paragraph/character styles
Use Cases
- Business proposals and contracts
- Project reports and case studies
- Meeting minutes and agendas
- Technical documentation and guides
- Training materials and manuals
- Marketing collateral and brochures
- Employee handbooks and policies
- Academic papers and theses
Document Types
Reports
- Executive summaries with findings
- Data-driven analysis with tables
- Recommendations and action plans
Proposals
- Project scope and deliverables
- Timeline and milestones
- Budget and resource requirements
- Risk assessment
Meeting Documentation
- Attendee lists
- Agenda items with discussions
- Action items with owners and dates
- Next meeting details
Technical Documentation
- System architecture overviews
- Integration guides
- API specifications
- Troubleshooting guides
Best Practices
- Clear Structure: Use proper heading hierarchy
- Professional Layout: Consistent spacing and margins
- Table Organization: Clear headers and logical grouping
- Visual Hierarchy: Effective use of bold, colors, and styles
- Page Management: Appropriate breaks and flow
- Consistency: Uniform formatting throughout
- Readability: Appropriate font sizes and spacing
Related Skills
spreadsheet-generator - For data analysis and reporting
pdf-report-generator - For final distribution-ready documents
presentation-builder - For stakeholder presentations
Limitations
- File size limit: ~20MB in code execution environment
- Complex embedded objects require manual adjustment
- Mail merge functionality limited
- Form field creation requires post-processing
- Advanced VBA macros not natively supported
1---2name: doc-generator3description: Generate professional Word documents with formatted text, tables, and layouts using Claude and Anthropic's docx skill4---56# Document Generator Skill78Generate professional Word documents with rich formatting, tables, styles, and structured content. This skill leverages Anthropic's docx Agent Skill to create Word documents programmatically.910## Instructions1112When asked to generate a Word document:13141. **Understand Requirements**: Parse the request for:15 - Document type (report, proposal, minutes, guide)16 - Content sections and hierarchy17 - Formatting needs (styles, colors, fonts)18 - Tables, lists, or structured data19 - Branding and visual requirements20212. **Plan the Document**:22 - Outline sections and structure23 - Identify formatting requirements24 - Determine table layouts25 - Plan page breaks and flow26273. **Create with Code Execution**:28 ```python29 import anthropic30 31 client = anthropic.Anthropic()32 response = client.messages.create(33 model="claude-3-5-sonnet-20241022",34 max_tokens=4096,35 tools=[{"type": "code_execution", "name": "bash"}],36 messages=[{37 "role": "user",38 "content": "Create a Word document with [specification]"39 }],40 container={41 "type": "skills",42 "skills": [{"type": "anthropic", "skill_id": "docx", "version": "latest"}]43 },44 betas=["code-execution-2025-08-25", "skills-2025-10-02"]45 )46 ```47484. **Extract File Reference**:49 - Locate file_id in response content blocks50 - Return file reference for download/integration5152## Examples5354### Project Proposal55**Input**: "Create a project proposal for a mobile app development project"56**Output**: Professional document with executive summary, scope, timeline, budget, and appendices5758### Meeting Minutes59**Input**: "Generate meeting minutes from our Q4 planning session with attendees, agenda, decisions, and action items"60**Output**: Formatted minutes with clear sections and action item tracking table6162### API Documentation63**Input**: "Create API documentation for a REST service with endpoints, parameters, examples, and error codes"64**Output**: Comprehensive technical documentation with code blocks and tables6566## Features Supported6768- **Text Formatting**: Bold, italic, underline, strikethrough69- **Heading Styles**: Multiple heading levels with built-in styles70- **Lists**: Bullet points, numbered lists, multi-level nesting71- **Tables**: Complex tables with merged cells and formatting72- **Page Breaks**: Section separation and flow control73- **Images**: Embedding images and maintaining aspect ratio74- **Margins & Spacing**: Professional document layout75- **Headers/Footers**: Persistent page headers and footers76- **Sections**: Different formatting for document parts77- **Styles**: Apply predefined or custom paragraph/character styles7879## Use Cases8081- Business proposals and contracts82- Project reports and case studies83- Meeting minutes and agendas84- Technical documentation and guides85- Training materials and manuals86- Marketing collateral and brochures87- Employee handbooks and policies88- Academic papers and theses8990## Document Types9192### Reports93- Executive summaries with findings94- Data-driven analysis with tables95- Recommendations and action plans9697### Proposals98- Project scope and deliverables99- Timeline and milestones100- Budget and resource requirements101- Risk assessment102103### Meeting Documentation104- Attendee lists105- Agenda items with discussions106- Action items with owners and dates107- Next meeting details108109### Technical Documentation110- System architecture overviews111- Integration guides112- API specifications113- Troubleshooting guides114115## Best Practices1161171. **Clear Structure**: Use proper heading hierarchy1182. **Professional Layout**: Consistent spacing and margins1193. **Table Organization**: Clear headers and logical grouping1204. **Visual Hierarchy**: Effective use of bold, colors, and styles1215. **Page Management**: Appropriate breaks and flow1226. **Consistency**: Uniform formatting throughout1237. **Readability**: Appropriate font sizes and spacing124125## Related Skills126127- `spreadsheet-generator` - For data analysis and reporting128- `pdf-report-generator` - For final distribution-ready documents129- `presentation-builder` - For stakeholder presentations130131## Limitations132133- File size limit: ~20MB in code execution environment134- Complex embedded objects require manual adjustment135- Mail merge functionality limited136- Form field creation requires post-processing137- Advanced VBA macros not natively supported