@hidden-leaf/docforge-skill
Document generation skill for Claude Code. Converts markdown content into professional PDF or Word documents with configurable theming.
When to use
Use this skill when you need to convert agent-generated markdown (.md) files — proposals, reports, research protocols, documentation — into polished, human-readable PDF or Word documents with professional branding.
Trigger on:
- User asks to "generate a PDF", "make a document", "convert to PDF", "create a proposal document"
- Agent has generated
.mdcontent that needs to be presented to humans - User asks for "HLN branded" or "professional" document output
Quick start
CLI (via npx or direct Python)
# Generate PDF with HLN branding (default theme)
npx docforge-skill generate --input proposal.md --output proposal.pdf
# Generate with proposal theme (blue primary, "Applied AI Studio" branding)
npx docforge-skill generate --input proposal.md --output proposal.pdf --theme proposal
# Override title and author
npx docforge-skill generate --input report.md --output report.pdf \
--title "Q1 Revenue Report" --author "Orvex Forge" --theme hln
# Generate Word document
npx docforge-skill generate --input proposal.md --output proposal.docx --format word
# Direct Python (if npx is unavailable)
python3 node_modules/@hidden-leaf/docforge-skill/src/generate.py generate \
--input proposal.md --output proposal.pdf --theme hln
Programmatic (Node.js)
const { generate, listThemes } = require('@hidden-leaf/docforge-skill');
// Generate PDF
generate({
input: './proposals/orvex_proposal.md',
output: './output/orvex_proposal.pdf',
theme: 'proposal',
title: 'AI Agent Development Proposal',
author: 'Tre — Applied AI Studio',
});
// List available themes
console.log(listThemes()); // ['hln', 'minimal', 'proposal']
Available themes
| Theme | Primary Color | Cover Page | Brand | Use Case |
|---|---|---|---|---|
hln | Teal (#2DD4BF) | Yes | Hidden Leaf Networks | General HLN documents, research protocols |
proposal | Blue (#1E40AF) | Yes | Applied AI Studio | Client proposals, SOWs, pitch documents |
minimal | Dark (#1F2937) | No | None | Clean docs, internal notes, exports |
Markdown frontmatter support
Documents can include YAML frontmatter for metadata:
---
title: Photonic Skin Healing Protocol v1.0
subtitle: Integrative Herbal and Light Protocol for Dermal Regeneration
author: HLN Photonic Herbalism Research
organization: Hidden Leaf Networks LLC
date: 2026-03-21
location: Detroit, Michigan
---
## 1. Introduction
Content here...
Metadata priority: CLI arguments > frontmatter > theme defaults
Markdown features supported
- Headings (
#,##,###) - Bold and italic inline formatting
Code spansand code blocks- Bullet lists and numbered lists
- Tables (pipe-delimited)
- Horizontal rules (
---) - Blockquotes (rendered as callouts)
Self-test
npx docforge-skill --test
Requirements
- Python 3.10+
docforge[all]pip package (auto-installed via postinstall)- ReportLab 4.0+ (installed as docforge dependency)
Troubleshooting
If docforge is not installed:
pip install "docforge[all]"
If Python is not found, ensure python3 is on your PATH.