dev-document

dev-document is a skill for Claude Code from christopherlouet/claude-base. It costs 94 tokens per session (1,464 once invoked), scanned A, original, MIT.

A guide to creating PDF, Word, Excel, and PowerPoint files from code. It covers common tools and examples for each format.

In plain words
What is it for?
Use it for reports, invoices, specifications, spreadsheets, presentations, and other generated office documents.
Why use it?
It removes the need to work out separately how to produce different office file types from source content or data.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it for reports, invoices, specifications, spreadsheets, presentations, and other generated office documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/christopherlouet/claude-base/dev-document
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 christopherlouet/claude-base --skill dev-document
Clone the repo
git clone --depth 1 https://github.com/christopherlouet/claude-base

Made for: Claude Code.

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 dev-document

README.md
[![agentmods](https://agentmods.dev/badge/skills/christopherlouet/claude-base/dev-document/github.svg)](https://agentmods.dev/skills/christopherlouet/claude-base/dev-document)
Your own site
<a href="https://agentmods.dev/skills/christopherlouet/claude-base/dev-document"><img src="https://agentmods.dev/badge/skills/christopherlouet/claude-base/dev-document/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 dev-document

Your own site · 80×15
<a href="https://agentmods.dev/skills/christopherlouet/claude-base/dev-document"><img src="https://agentmods.dev/badge/skills/christopherlouet/claude-base/dev-document.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,464 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.00094 $0.01464
Opus 5.5 $0.00038 $0.00586
Sonnet 5.5 $0.00019 $0.00293
Haiku 4.5 $0.00009 $0.00146

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

Security

Grade A, and why

dev-document 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 16d 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.

.claude/skills/dev-document/SKILL.md · 201 lines

How it starts

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

Document Generation

Goal

Write the code that makes an application produce documents — PDF, DOCX, XLSX, PPTX — with the right library for the stack.

Not this skill: when the deliverable is a file Claude writes, reads or edits itself (a memo, a filled-in form, a reviewed contract with tracked changes), Anthropic's own skills do it far better: anthropics/skills — docx, pdf, xlsx, pptx (reading and editing existing files, tracked changes, form filling, OCR). They ship under Anthropic's own terms (not open source): install or point to them, never copy them.

Supported formats

Format Extension Recommended tool Usage
PDF .pdf puppeteer / Playwright, WeasyPrint, pandoc Reports, invoices, formal docs
Word .docx docx (npm), python-docx Editable documents, specifications
Excel .xlsx exceljs, openpyxl Tabular data, numeric reports
PowerPoint .pptx pptxgenjs, python-pptx Presentations, pitch decks

Instructions per format

PDF - Generation from HTML/Markdown

# Option 1: Puppeteer (Node.js)
npm install puppeteer

# Option 2: WeasyPrint (Python, HTML/CSS -> PDF, no browser)
pip install weasyprint
weasyprint input.html output.pdf

# Option 3: pandoc (Markdown -> PDF, needs a PDF engine such as weasyprint or a LaTeX install)
pandoc input.md -o output.pdf --pdf-engine=weasyprint
// Puppeteer - HTML to PDF
import puppeteer from 'puppeteer';

async function generatePDF(htmlContent: string, outputPath: string) {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.setContent(htmlContent, { waitUntil: 'networkidle0' });
  await page.pdf({
    path: outputPath,
    format: 'A4',
    margin: { top: '20mm', right: '15mm', bottom: '20mm', left: '15mm' },
    printBackground: true,
  });
  await browser.close();
}

Read the full file on GitHub · 201 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. 16d ago Changed · +3 lines · +46 tokens per session 19829e063e7d
  2. 22d ago Changed · -2 lines de8f69fa082b
  3. 23d ago Changed · -6 lines 921e3558636c
  4. 24d ago Changed · -1 lines dd20020e134a
  5. 1mo ago First seen · 207 lines · 48 tokens per session scan A 47a56536c88f

Subscribe to this mod's changes

dev-document is a skill published in the GitHub repository christopherlouet/claude-base (5 stars, last pushed 2d ago), licensed MIT. It adds 94 tokens to every session and 1,464 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

document-skills

Professional document creation, editing, and analysis for Office formats (docx, pdf, pptx, xlsx). Use when working with Word documents, PDFs, PowerPoint presentations, or Excel spreadsheets.

travisjneuman/.claude · 44 tokens

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and…

travisjneuman/.claude · 92 tokens

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from…

travisjneuman/.claude · 206 tokens

Google Sheets

Read, write, and manage Google Sheets spreadsheets.

outworked/outworked · 12 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

Shoko-official/Claude-Science-System-Prompts · 123 tokens

chat-complex-documents

Chat with and search your complex documents — ask questions, extract tables and fields, and get answers grounded in the source. Connects the hosted Unstructured Transform MCP server to parse, structure, and enrich PDFs, Word/Excel/PowerPoint, images, scanned files, emails, and 60+ other formats into clean, AI-ready…

vellum-ai/vellum-assistant · 90 tokens