Przejdź do treści
Biblioteka skilli
Dokumenty i biuro · Konwersja i formaty

generate-document

/generate-document

Generuje profesjonalne dokumenty w formatach PDF, DOCX, HTML, ODT, EPUB i RTF, na przykład raporty i eksport wyników analizy.

Repozytorium
ai-toolkit ↗
Licencja
MIT
Ostatnia zmiana repozytorium
23.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Generuje profesjonalne dokumenty w formatach PDF, DOCX, HTML, ODT, EPUB i RTF, na przykład raporty i eksport wyników analizy.

Wyzwalacze z opisu

make a PDFgenerate a reportcreate a documentexport to Wordmake a Word docconvert to PDFexport findingscreate documentation
Oryginalny opis (EN)

Generate professional documents in multiple formats (PDF, DOCX, HTML, ODT, EPUB, RTF). Use when the user says "make a PDF", "generate a report", "create a document", "export to Word", "make a Word doc", "convert to PDF", "export findings", "create documentation", or wants to save analysis results as a formatted document.

Jak działa

  1. Prerequisites
  2. Instructions
  3. Pandoc Commands by Format
  4. Markdown Document Template
  5. Output Path Convention
  6. Key Guidelines
Sekcje z nagłówków SKILL.md, w oryginale · 170 linii, 553 słów
Podgląd SKILL.md
---
name: generate-document
description: Generate professional documents in multiple formats (PDF, DOCX, HTML, ODT, EPUB, RTF). Use when the user says "make a PDF", "generate a report", "create a document", "export to Word", "make a Word doc", "convert to PDF", "export findings", "create documentation", or wants to save analysis results as a formatted document.
allowed-tools: Read, Write, Bash(pandoc:*), Bash(which:*), Bash(rm:/tmp/document_*:*), Bash(mkdir:*), Bash(open:*), Bash(xdg-open:*), Glob, Grep
---

# Document Generator

Generate professional documents in multiple formats from markdown content using pandoc.

## Prerequisites

Requires [pandoc](https://pandoc.org/). For PDF output, also requires a LaTeX distribution (e.g., `basictex` on macOS, `texlive-xetex` on Ubuntu/Debian).

## Instructions

1. **Check pandoc availability**: Run `which pandoc`. If not found, inform the user of installation requirements.

2. **Collect content**: Gather content from the conversation (security findings, code reviews, research summaries, meeting notes, etc.) or from files the user points to.

3. **Determine format**: Infer from context or ask the user:

   - "PDF" or "report" -> PDF
   - "Word" or "doc" or "docx" -> DOCX
   - "HTML" or "web" -> HTML
   - Default to PDF if unspecified

4. **Structure the document**: Organize content into well-formatted markdown with YAML frontmatter, sections, and appropriate formatting. See [references/templates.md](references/templates.md) for content-type-specific templates (security reports, code reviews, research summaries).

5. **Write markdown to temp file**: Save content to `/tmp/document_<timestamp>.md`

6. **Convert with pandoc**: Run the appropriate command from the format reference below.

7. **Clean up**: Delete the temporary markdown file after successful conversion.

8. **Report output**: Tell the user the output path and suggest how to open it.

## Pandoc Commands by Format

### PDF (via LaTeX)

```bash
pandoc /tmp/document.md -o ./report.pdf \
  --pdf-engine=xelatex \
  -V geometry:margin=1in \
  -V fontsize=11pt \
  --toc \
  --highlight-style=tango
```

### PDF (via wkhtmltopdf - fallback if no LaTeX)

```bash
pandoc /tmp/document.md -o ./report.pdf \
  --pdf-engine=wkhtmltopdf \
  --css=/tmp/style.css
```

### Word (DOCX)

```bash
pandoc /tmp/document.md -o ./report.docx \
  --toc \
  --highlight-style=tango
```

### HTML (standalone)

```bash
pandoc /tmp/document.md -o ./report.html \
  --standalone \
  --toc \
  --highlight-style=tango \
  --metadata title="Report Title"
```

### OpenDocument (ODT)

```bash
pandoc /tmp/document.md -o ./report.odt \
  --toc
```

### EPUB

```bash
pandoc /tmp/document.md -o ./report.epub \
  --toc \
  --epub-chapter-level=2
```

### RTF

```bash
pandoc /tmp/document.md -o ./report.rtf
```

### Plain Text

```bash
pandoc /tmp/document.md -o ./report.txt \
  --wrap=auto
```

## Markdown Document Template

Structure markdown content following this template. Adapt sections based on content type.

```markdown
---
title: 'Document Title'
subtitle: 'Optional Subtitle'
author: 'Author Name'
date: '2024-01-15'
abstract: |
  Brief summary of the document contents.
  Can span multiple lines.
---

# Executive Summary

High-level overview of findings or content.

# Section 1: Category Name

## Subsection 1.1

Content with **bold**, _italic_, and `inline code`.

### Finding ID-001: Finding Title

**Severity:** Critical | High | Medium | Low | Info
**Location:** `path/to/file.ts:42`

**Description:**
Detailed description of the finding or item.

**Recommendation:**
Actionable steps to address the finding.

---

# Section 2: Data Tables

| Column A | Column B | Column C |
| -------- | -------- | -------- |
| Value 1  | Value 2  | Value 3  |

# Appendix A: References

1. Reference One - <https://example.com>
```

For content-type-specific templates, see [references/templates.md](references/templates.md).

## Output Path Convention

Default output location: `./<descriptive-name>.<ext>` (current working directory).

If the user specifies a custom output directory, run `mkdir -p <directory>` before invoking pandoc.

Use descriptive names derived from content:

- `security-review-myapp-2024-01-15.pdf`
- `code-review-pr-123.docx`
- `research-caching-strategies.html`

## Key Guidelines

- **Format Selection:** Default to PDF for reports; use DOCX for documents requiring edits
- **Page Breaks:** Insert `\newpage` for PDF or use horizontal rules `---` as section breaks
- **Temp Files:** Always clean up `/tmp/document_*.md` files after conversion
- **Sensitive Data:** Never include API keys, passwords, or credentials in documents
- **Error Handling:** If pandoc fails, see [references/troubleshooting.md](references/troubleshooting.md)
Pliki w paczce (3)
  • SKILL.md 5 KB
  • references/templates.md 2 KB
  • references/troubleshooting.md 1 KB

Wersje

W bazie nie ma innych skilli o nazwie generate-document.

Migawka bazy z 28.10.2026 · wersja paczki 3a03fc6c3118 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100wordcraft
    Obsługuje bezgłowy edytor tekstu WordCraft (DOCX, ODT, RTF, ponad 600 poleceń edycji, konwersja formatów i eksport do PDF), uruchamiany na żądanie przez pi-craft.
  • 100document-conversion
    Czyta dokumenty nietekstowe (PDF, Word, Excel, PowerPoint, EPUB, RTF, HTML), konwertując je do Markdown narzędziem MarkItDotNet przez dnx.
  • 96convert-documents-to-markdown
    Zamienia pliki Word, PowerPoint, Excel, PDF, EPUB i CSV na Markdown, gdy treść jest potrzebna do pracy.
  • 100book-to-markdown
    Konwertuje książki techniczne i naukowe z PDF, EPUB, HTML, DOCX, ODT, Markdown lub tekstu do jednego pliku markdown na tytuł bez podziału na strony, porównując kilka formatów jako źródła.
  • 100devexpress-office-file-api-word-processing
    Buduje aplikacje .NET tworzące, czytające, modyfikujące i eksportujące dokumenty Word (.docx, .doc, .rtf, .odt) bez Microsoft Office przez DevExpress Word Processing API: akapity, tabele, style, korespondencja seryjna i śledzenie zmian.
  • 90officeimo-document-operator
    Przeszukuje, streszcza i konwertuje lokalne pliki Office i dokumenty, takie jak DOCX, XLSX, PPTX, PDF, EML czy Markdown.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.