docforge

A workflow for creating business PDFs through DocForge, a document-generation service. It checks available templates and their data rules, creates a document, previews and validates it, and exports the result.

In plain words
What is it for?
Producing template-based business documents, checking required fields, reviewing layout, fixing compile problems, and exporting finished PDFs.
Why use it?
It reduces formatting and validation mistakes when generating PDFs from structured information.

Skill for Claude CodeCodexCursor

Install

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.

agentmods
npx agentmods add skills/precisionutilityguild/docforge/docforge
Any agent
npx skills add PrecisionUtilityGuild/docforge --skill docforge
Clone the repo
git clone --depth 1 https://github.com/PrecisionUtilityGuild/docforge

Made for: Claude Code, Codex, Cursor.

Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 656 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.00656
Opus 5 $0.00013 $0.00328
Sonnet 5 $0.00005 $0.00131
Haiku 4.5 $0.00003 $0.00066

Measured yesterday against content hash 3803af35c114, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docforge 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 yesterday.

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.

.cursor/skills/docforge/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DocForge Agent Skill

Rules

  1. Never generate raw Typst unless the user explicitly requests advanced mode.
  2. Always follow: docforge_list_templatesdocforge_get_template_schemadocforge_create_document.
  3. Treat JSON data as the contract; validate against schema before calling create.
  4. Use LaTeX only for math fragments in designated schema fields (equations[].latex in research_report).
  5. Always docforge_preview_document before final delivery.
  6. Always docforge_lint_document before docforge_export_document.
  7. On compile failure: read agent_action and suggested_repairs, call docforge_repair_document, then recompile. Do not freestyle Typst fixes.
  8. After compile, call docforge_visual_qa_document for layout issues lint may miss.
  9. Use docforge_generate_template_scaffold + docforge_register_custom_template for custom templates.
  10. When data is incomplete, ask for missing required fields — do not invent summary/risks without labeling assumptions.

Workflow

list_templates → get_template_schema → create_document → compile_document
→ repair_document (if suggested_repairs) → compile_document
→ save_document_version (before major edits) → lint_document → preview_document
→ export_document → destroy_document (optional cleanup)

Templates

Template Use case
executive_memo Leadership/board memo
sales_proposal Client proposal from discovery
research_report Analytical report with citations appendix
incident_report Post-incident from transcript
kpi_report Board KPI update from CSV + notes
postmortem Blameless incident review
project_status Weekly status with RAG indicators
decision_record ADR-style decision documentation
meeting_brief Pre-meeting context doc
invoice Line-item invoice with computed totals
contract_summary Contract clause summary

MCP resources

  • docforge://templates — catalog (built-in + marketplace)
  • docforge://marketplace — community templates only
  • docforge://templates/{id}/readme — agent README
  • docforge://templates/{id}/sample — sample JSON

Read the full file on GitHub · 67 lines

Changes

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.

  1. yesterday First seen · 67 lines · 25 tokens per session scan A 3803af35c114

Subscribe to this mod's changes

docforge is a skill published in the GitHub repository PrecisionUtilityGuild/docforge (1 stars, last pushed 1mo ago), licensed MIT. It adds 25 tokens to every session and 656 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

fin-paper-convert

Compile LaTeX to PDF and convert to target journal format.

csmar432/finai-research · 12 tokens

prfaq

This skill should be used when the user asks to "write a PR/FAQ", "prfaq", "working backwards", "product discovery", "evaluate a product idea", "press release FAQ", "test product value", "revise prfaq", "update prfaq", "add research to prfaq", "add FAQs", "run a meeting", "review meeting", "hive meeting", "autonomous…

punt-labs/prfaq · 140 tokens

docuqueue

Generate PDFs, fill forms, and manage documents using DocuQueue. Use when the user asks to "create a PDF", "generate a document", "fill a form", "make an invoice", "create a contract", "build a certificate", "create a proposal", or mentions DocuQueue, document generation, PDF creation, or form filling. Not for…

docuqueue/docuqueue-mcp · 96 tokens

predict-intelligence

Predict intelligence skill for AI agents. Generates professional PDF reports with probability-ranked predictions, D3 visualizations, and Polymarket consensus signals. Covers geopolitics, finance, tech, elections, and any predicting question. Use when user asks about event predictions, probability predicts, "when will…

AnyGenIO/anygen-selected-skills · 74 tokens

beautiful-pdf-mcp

You are an editor-typesetter. Your job is to produce PDFs that look professionally designed, not machine-generated. That means: correct fonts, correct spacing, correct page rhythm.

Kreminskaya/beautiful-pdf-mcp · 0 tokens

docuqueue

Skill "docuqueue" from docuqueue/docuqueue-mcp, covering docuqueue document generation, available mcp tools, workflow, example prompts and constraints.

docuqueue/docuqueue-mcp · 0 tokens