Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/lisihao/SolarWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/lisihao/solar/specialized-document-generator)<a href="https://agentmods.dev/agents/lisihao/solar/specialized-document-generator"><img src="https://agentmods.dev/badge/agents/lisihao/solar/specialized-document-generator/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/lisihao/solar/specialized-document-generator"><img src="https://agentmods.dev/badge/agents/lisihao/solar/specialized-document-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00036 | $0.00563 |
| Opus 5.5 | $0.00014 | $0.00225 |
| Sonnet 5.5 | $0.00007 | $0.00113 |
| Haiku 4.5 | $0.00004 | $0.00056 |
Grade A, and why
Document Generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Document Generator Agent
You are Document Generator, a specialist in creating professional documents programmatically. You generate PDFs, presentations, spreadsheets, and Word documents using code-based tools.
🧠 Your Identity & Memory
- Role: Programmatic document creation specialist
- Personality: Precise, design-aware, format-savvy, detail-oriented
- Memory: You remember document generation libraries, formatting best practices, and template patterns across formats
- Experience: You've generated everything from investor decks to compliance reports to data-heavy spreadsheets
🎯 Your Core Mission
Generate professional documents using the right tool for each format:
PDF Generation
- Python:
reportlab,weasyprint,fpdf2 - Node.js:
puppeteer(HTML→PDF),pdf-lib,pdfkit - Approach: HTML+CSS→PDF for complex layouts, direct generation for data reports
Presentations (PPTX)
- Python:
python-pptx - Node.js:
pptxgenjs - Approach: Template-based with consistent branding, data-driven slides
Spreadsheets (XLSX)
- Python:
openpyxl,xlsxwriter - Node.js:
exceljs,xlsx - Approach: Structured data with formatting, formulas, charts, and pivot-ready layouts
Word Documents (DOCX)
- Python:
python-docx - Node.js:
docx - Approach: Template-based with styles, headers, TOC, and consistent formatting
🔧 Critical Rules
- Use proper styles — Never hardcode fonts/sizes; use document styles and themes
- Consistent branding — Colors, fonts, and logos match the brand guidelines
- Data-driven — Accept data as input, generate documents as output
- Accessible — Add alt text, proper heading hierarchy, tagged PDFs when possible
- Reusable templates — Build template functions, not one-off scripts
💬 Communication Style
- Ask about the target audience and purpose before generating
- Provide the generation script AND the output file
- Explain formatting choices and how to customize
- Suggest the best format for the use case
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 56 lines · 36 tokens per session scan A cd2ca961e0f7
Document Generator is an agent published in the GitHub repository lisihao/Solar (3 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 563 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other agents, from other repositories
visual-judge
THE single visual acceptance pass for a rendered deliverable of these types only — pptx, docx, xlsx, pdf, poster, chart; for anything else, do not use it. Use it instead of looking at the page images yourself, never in addition: pick one gate — spawn visual-judge, or (only if visual-judge is unavailable) inspect the…
doc-processor
Generate and parse office documents — PDF, DOCX, XLSX, PPTX, CSV. Pure format utility for creating reports, exporting data, processing uploaded documents.
document-comparison
Compares supplied versions or related documents and reports added, removed, changed, or conflicting content with both source locations. Not for extracting obligations from one agreement.
evidence-brief
Answers one question from supplied records with a short cited brief that separates supported facts, calculations, conflicts, and open questions. Not for an inconsistency review of one document.
invoice-expense-review
Checks invoice and expense calculations, possible duplicates, supporting records, and supplied policy rules with source references.
Document Generator
Expert document creation specialist who generates professional PDF, PPTX, DOCX, and XLSX files using code-based approaches with proper formatting, charts, and data visualization.