docgen-guide

docgen-guide is a skill for Claude Code from cyanheads/docgen-mcp-server. It costs 44 tokens per session (621 once invoked), scanned A, original, Apache-2.0.

A guide for inspecting and filling AcroForms, which are fillable PDF forms, then checking and flattening the reviewed result. Flattening turns the filled fields into fixed PDF content that is harder to edit.

In plain words
What is it for?
Use it to list form fields, fill a PDF, review saved values, retrieve generated documents, export related spreadsheets, and prepare a final flattened PDF.
Why use it?
It helps avoid filling the wrong fields, losing values, overlooking required fields, or delivering a form before its contents have been checked.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the docgen-mcp-server plugin — 35 skills, 1 MCP server shipped together

Good fit Use it to list form fields, fill a PDF, review saved values, retrieve generated documents, export related spreadsheets, and prepare a final flattened PDF.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cyanheads/docgen-mcp-server/docgen-guide
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.

Any agent
npx skills add cyanheads/docgen-mcp-server --skill docgen-guide
Clone the repo
git clone --depth 1 https://github.com/cyanheads/docgen-mcp-server

Made for: Claude Code.

Or install docgen-mcp-server, the plugin that ships this one along with the rest of its 35 skills, 1 MCP server.

Wrote 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.

agentmods badge for docgen-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/cyanheads/docgen-mcp-server/docgen-guide/github.svg)](https://agentmods.dev/skills/cyanheads/docgen-mcp-server/docgen-guide)
Your own site
<a href="https://agentmods.dev/skills/cyanheads/docgen-mcp-server/docgen-guide"><img src="https://agentmods.dev/badge/skills/cyanheads/docgen-mcp-server/docgen-guide/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.

agentmods 80×15 button for docgen-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/cyanheads/docgen-mcp-server/docgen-guide"><img src="https://agentmods.dev/badge/skills/cyanheads/docgen-mcp-server/docgen-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 621 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00044 $0.00621
Opus 5.5 $0.00018 $0.00248
Sonnet 5.5 $0.00009 $0.00124
Haiku 4.5 $0.00004 $0.00062

Measured 18d ago against content hash c7b82592b1a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docgen-guide 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 18d 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.

skills/docgen-guide/SKILL.md · 32 lines

How it starts

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

Identifiers

  • Carry the exact names from docgen_list_form_fields into docgen_fill_form, including parent paths. Use labels and widget pages to distinguish fields with similar names.
  • Each docgen_fill_form, docgen_render_pdf, and docgen_export_spreadsheet result has a fresh documentId for docgen_get_document and a resourceUri for reading the artifact. Form inspection and filling take PDF bytes or a supported source URL.

Gates

  • If inspection returns not_a_form, ask for the fillable AcroForm original. Leave signature and button fields to the user.
  • Before calling a fill complete, resolve every unmatched assignment, check that accepted aliases point to the intended fields, and review any checkbox or dropdown notices. A fill can succeed with an omitted required field, an unrecognized checkbox value can leave the box unchecked, and custom dropdown text can make a fixed dropdown editable.
  • Before flattening, compare the saved values with the intended values and check required fields for omissions. Keep an editable copy if further changes are expected.

Core chain

  1. Inspect the original with docgen_list_form_fields. Fill with the reported names and constraints, leaving the result editable. Use booleans for checkbox intent and listed choices when the value must stay within the form's options. If the source URL can change, use the same PDF bytes for inspection and filling.
  2. Reconcile the fill report. For invalid_field_value, correct the reported assignments and retry. For unmatched keys or unintended changes, correct the field map and fill again from the original.
  3. Read the filled PDF's base64 from inlineBase64 or from the blob at resourceUri. Pass that base64 to docgen_list_form_fields and compare the stored values by exact field name. Check the intended checkbox states and selected choices.
  4. If the user needs a flattened copy, pass the reviewed PDF bytes to docgen_fill_form with an empty assignment map and flattening enabled. Deliver this new artifact. Field inspection on the flattened copy returns not_a_form.

Read the full file on GitHub · 32 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. 18d ago First seen · 32 lines · 44 tokens per session scan A c7b82592b1a9

Subscribe to this mod's changes

docgen-guide is a skill published in the GitHub repository cyanheads/docgen-mcp-server (3 stars, last pushed 8d ago), licensed Apache-2.0. It adds 44 tokens to every session and 621 once invoked, about $0.0002 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-11-12.

Related

docgen-guide compared with skills from other repositories

docgen-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docgen-guidecyanheads/docgen-mcp-serverSkill38d agoApache-2.0A44Claude Code
pdf-processingPrefectHQ/fastmcpSkill29ktodayApache-2.0A14Claude Code, Codex
kernelcad-drawingsw1ne/kernelCAD-webSkill36todayMITA69Claude Code, Codex
pubmed-fulltext-accessu9401066/pubmed-search-mcpSkill304d agoApache-2.0A72Claude Code
pdf-asset-extractoru9401066/pubmed-search-mcpSkill304d agoApache-2.0A84Claude Code
fullbleedfullbleed-engine/fullbleed-officialSkill17522d agoMITA118Codex
cvxhrtips/cvxSkill82d agoApache-2.0A87Claude Code, Codex