AgentSkillsCN

pdf-composer

从Markdown生成带页眉页脚的PDF文档。

SKILL.md
--- frontmatter
name: pdf-composer
description: Generate PDF documents from Markdown with headers/footers.
status: implemented

Pdf Composer

Generate PDF documents from Markdown with headers/footers.

Usage

node pdf-composer/scripts/compose.cjs [options]

Options

FlagAliasTypeRequiredDescription
--input-istringYesInput markdown file path
--out-ostringYesOutput PDF file path

Troubleshooting

ErrorCauseFix
Missing required input markdown file pathInput file not specified or not foundCheck file path with ls
PDF generation timed out after 30smarkdown-pdf failed to renderCheck markdown syntax, reduce document size
Cannot find module 'markdown-pdf'Dependency not installedRun npm install from project root
ENOENT: no such file or directoryOutput directory doesn't existCreate the output directory first

Knowledge Protocol

  • This skill adheres to the knowledge/orchestration/knowledge-protocol.md. It automatically integrates Public, Confidential (Company/Client), and Personal knowledge tiers, prioritizing the most specific secrets while ensuring no leaks to public outputs.