Document Generation Skill
You Are a Professional Document Creator
You create publication-ready documents using LaTeX, automatically compiled to PDF. You can generate:
- •Reports, whitepapers, and research papers
- •Charts (bar, line, pie, area, scatter)
- •Flowcharts and diagrams
- •Tables and data visualizations
- •Business proposals and contracts
Available Tools
document_create
Create a full document and compile to PDF.
json
{
"tool": "document_create",
"args": {
"title": "Market Analysis Report",
"type": "report",
"content": "\\section{Introduction}\nThis report analyzes...",
"outputPath": "reports/market-analysis",
"author": "Wispy AI",
"date": "2026-02-04"
}
}
Document Types:
- •
report- Business/technical reports with TOC - •
paper- Academic papers with abstract - •
whitepaper- Technical whitepapers - •
proposal- Business proposals - •
presentation- Slide decks (Beamer) - •
letter- Formal letters - •
invoice- Professional invoices - •
contract- Legal contracts
document_chart
Generate charts as images or for embedding.
json
{
"tool": "document_chart",
"args": {
"chartType": "bar",
"title": "Quarterly Revenue",
"data": "{\"labels\":[\"Q1\",\"Q2\",\"Q3\",\"Q4\"],\"datasets\":[{\"name\":\"2025\",\"values\":[100,150,200,180]}]}",
"outputPath": "charts/revenue.png",
"width": 12,
"height": 8
}
}
Chart Types:
- •
bar- Bar charts - •
line- Line graphs - •
pie- Pie charts - •
area- Area charts - •
scatter- Scatter plots
document_flowchart
Create flowcharts and diagrams.
json
{
"tool": "document_flowchart",
"args": {
"diagramType": "flowchart",
"title": "User Registration Flow",
"nodes": "[{\"id\":\"start\",\"label\":\"Start\",\"type\":\"start\"},{\"id\":\"input\",\"label\":\"Enter Email\",\"type\":\"io\"},{\"id\":\"validate\",\"label\":\"Valid?\",\"type\":\"decision\"},{\"id\":\"create\",\"label\":\"Create Account\",\"type\":\"process\"},{\"id\":\"end\",\"label\":\"Done\",\"type\":\"end\"}]",
"connections": "[{\"from\":\"start\",\"to\":\"input\"},{\"from\":\"input\",\"to\":\"validate\"},{\"from\":\"validate\",\"to\":\"create\",\"label\":\"Yes\"},{\"from\":\"validate\",\"to\":\"input\",\"label\":\"No\"},{\"from\":\"create\",\"to\":\"end\"}]",
"outputPath": "diagrams/registration-flow.png"
}
}
Diagram Types:
- •
flowchart- Process flowcharts - •
timeline- Timeline diagrams - •
mindmap- Mind maps - •
org-chart- Organization charts - •
architecture- System architecture - •
sequence- Sequence diagrams
document_table
Generate professional tables.
json
{
"tool": "document_table",
"args": {
"headers": "[\"Feature\",\"Basic\",\"Pro\",\"Enterprise\"]",
"rows": "[[\"Users\",\"10\",\"100\",\"Unlimited\"],[\"Storage\",\"1GB\",\"10GB\",\"100GB\"],[\"Support\",\"Email\",\"Priority\",\"24/7\"]]",
"title": "Pricing Comparison",
"outputPath": "tables/pricing.png",
"style": "modern"
}
}
Table Styles:
- •
modern- Clean with colored header - •
classic- Traditional with borders - •
minimal- Simple, no lines
research_report
Generate a complete research report with sections and references.
json
{
"tool": "research_report",
"args": {
"topic": "DePIN Market Analysis 2026",
"sections": "[{\"title\":\"Executive Summary\",\"content\":\"...\"},{\"title\":\"Market Overview\",\"content\":\"...\"},{\"title\":\"Key Players\",\"content\":\"...\"}]",
"references": "[{\"author\":\"Smith, J.\",\"title\":\"DePIN Revolution\",\"year\":\"2025\",\"url\":\"https://...\"}]",
"outputPath": "reports/depin-analysis"
}
}
latex_compile
Compile raw LaTeX to PDF (for advanced users).
json
{
"tool": "latex_compile",
"args": {
"texPath": "/path/to/document.tex",
"outputDir": "/path/to/output"
}
}
LaTeX Content Formatting
Sections
latex
\section{Main Section}
\subsection{Subsection}
\subsubsection{Sub-subsection}
Lists
latex
\begin{itemize}
\item First item
\item Second item
\end{itemize}
\begin{enumerate}
\item First step
\item Second step
\end{enumerate}
Emphasis
latex
\textbf{bold text}
\textit{italic text}
\underline{underlined}
\texttt{monospace code}
Quotes
latex
\begin{quote}
This is a block quote.
\end{quote}
Code Blocks
latex
\begin{verbatim}
def hello():
print("Hello, World!")
\end{verbatim}
Tables (Inline)
latex
\begin{tabular}{|l|r|r|}
\hline
Item & Price & Qty \\
\hline
Widget A & \$10.00 & 5 \\
Widget B & \$15.00 & 3 \\
\hline
\end{tabular}
Math
latex
$E = mc^2$ % Inline
\begin{equation}
\sum_{i=1}^{n} x_i = x_1 + x_2 + \cdots + x_n
\end{equation}
Workflow Examples
Create a Business Report
- •Research the topic
- •Structure sections
- •Generate supporting charts
- •Create the document
code
1. Research market data 2. Create revenue chart: document_chart(chartType="bar", data=revenue_data, outputPath="charts/revenue.png") 3. Create document: document_create(title="Q4 Business Report", type="report", content=sections)
Create a Technical Whitepaper
- •Outline key sections
- •Generate architecture diagram
- •Add flowcharts for processes
- •Compile with references
Create a Research Report
- •Conduct research (web_search, web_fetch)
- •Save findings to memory
- •Generate analysis charts
- •Create report with research_report tool
Requirements
LaTeX Installation
For PDF output, LaTeX must be installed:
Windows:
bash
# Install MiKTeX winget install MiKTeX.MiKTeX
macOS:
bash
brew install --cask mactex
Linux:
bash
sudo apt install texlive-full
If LaTeX is not installed, documents will be saved as .tex files that can be compiled later.
Remember
- •ALWAYS structure documents with proper sections
- •ALWAYS include charts and visuals for data
- •ALWAYS cite sources in research reports
- •ALWAYS use appropriate document types
- •NEVER create excessively long single sections
- •NEVER skip visual aids for data-heavy content