doc-generator
Generate professional Word documents with formatted text, tables, and layouts using Claude and Anthropic's docx skill
Best use case
doc-generator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Generate professional Word documents with formatted text, tables, and layouts using Claude and Anthropic's docx skill
Teams using doc-generator should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/doc-generator/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How doc-generator Compares
| Feature / Agent | doc-generator | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Generate professional Word documents with formatted text, tables, and layouts using Claude and Anthropic's docx skill
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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:
1. **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
2. **Plan the Document**:
- Outline sections and structure
- Identify formatting requirements
- Determine table layouts
- Plan page breaks and flow
3. **Create with Code Execution**:
```python
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"]
)
```
4. **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
1. **Clear Structure**: Use proper heading hierarchy
2. **Professional Layout**: Consistent spacing and margins
3. **Table Organization**: Clear headers and logical grouping
4. **Visual Hierarchy**: Effective use of bold, colors, and styles
5. **Page Management**: Appropriate breaks and flow
6. **Consistency**: Uniform formatting throughout
7. **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 supportedRelated Skills
fullstack-template-generator
Generates a complete fullstack application template with Python FastAPI backend and React Vite frontend. Includes OpenAI ChatGPT integration, CORS configuration, comprehensive error handling, and a modern Tailwind CSS + shadcn/ui React UI. Use this skill when the user wants to bootstrap a new fullstack web application project with both API backend and web frontend components ready to go.
copilot-instructions-blueprint-generator
Technology-agnostic blueprint generator for creating comprehensive copilot-instructions.md files that guide GitHub Copilot to produce code consistent with project standards, architecture patterns, and exact technology versions by analyzing existing codebase patterns and avoiding assumptions.
claude-md-generator
Automatically generates claude.md files for new folders/modules following hierarchical structure. Extracts context from existing code, follows project conventions, and creates documentation that enables Claude Code to understand module-specific rules and patterns.
checklist-generator
Generate context-aware quality checklists for code review and QA using IEEE 1028 base standards plus LLM contextual additions
card-generator
创建可下载的卡片式宣传网页/海报。当用户需要制作产品介绍卡片、教程卡片、知识科普卡片、小红书风格图文、PPT式滑动展示页时使用。支持多种预设模板(科技风、简约风、渐变风、暗黑风等),生成包含React+SVG的单HTML文件,内置ZIP打包下载功能。
canifi-skill-generator
Self-evolving skill that enables Canifi to create, install, and manage new skills autonomously
Buffer Overflow Payload Generator
Generates a buffer overflow attack payload with a specific stack layout (padding, return address, NOP sled, shellcode) and saves it to a file.
arduino-code-generator
Generate Arduino/embedded C++ code snippets and patterns on demand for UNO/ESP32/RP2040. Use when users request Arduino code for sensors, actuators, communication protocols, state machines, non-blocking timers, data logging, or hardware abstraction. Generates production-ready code with proper memory management, timing patterns, and board-specific optimization. Supports DHT22, BME280, buttons, I2C/SPI, EEPROM, SD cards, WiFi, and common peripherals.
api-documentation-generator
Generate comprehensive, developer-friendly API documentation from code, including endpoints, parameters, examples, and best practices
api-docs-generator
Generate API documentation in OpenAPI/Swagger, Markdown, or Postman Collection formats. Use when documenting REST APIs, GraphQL schemas, or creating client code examples.
ai-code-generator
AI-powered code generation for boilerplate, tests, data, and scaffolding
a11y-annotation-generator
Adds accessibility annotations (ARIA labels, roles, alt text) to make web content accessible. Use when user asks to "add accessibility", "make accessible", "add aria labels", "wcag compliance", or "screen reader support".