nested-pdf-merger

Use this skill when the task is to merge PDFs from a nested directory tree into a single PDF with hierarchical bookmarks by invoking the external `nestedpdfmerger` CLI. This skill depends on the `nestedpdfmerger` binary being installed and available on PATH.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "nested-pdf-merger" with this command: npx skills add lyutenant/nested-pdf-merger

Nested PDF Merger

This repository wraps the external nestedpdfmerger CLI.

Do not implement PDF merging logic in this repository. Do not modify anything under reference/.

Requirements

This skill requires the nestedpdfmerger command to be installed and available on PATH.

Expected installation command:

pip install nestedpdfmerger

Expected CLI entrypoint:

nestedpdfmerger INPUT_DIR -o OUTPUT.pdf [options]

Alternative module invocation:

python -m nestedpdfmerger INPUT_DIR -o OUTPUT.pdf [options]

When to use

Use this skill when the user wants to:

  • Merge PDF files from a folder tree into one output PDF.
  • Preserve the folder hierarchy as PDF bookmarks.
  • Preview merge order with --dry-run.
  • Exclude directories, change sort order, or disable bookmarks.

Workflow

  1. Confirm the input directory and desired output path.
  2. Prefer --dry-run first when the user wants to validate merge order.
  3. Run the CLI with the smallest set of flags needed.
  4. If the command fails because the binary is missing, tell the user to install it with pip install nestedpdfmerger.

Supported flags

  • -o, --output PATH
  • --sort {natural,alpha,mtime}
  • --reverse
  • --exclude NAME [NAME ...]
  • --exclude-hidden
  • --no-bookmarks
  • --dry-run
  • --strict
  • --verbose
  • --quiet
  • --version

Examples

Preview merge order:

nestedpdfmerger ./reports --dry-run

Merge with explicit output:

nestedpdfmerger ./reports --output merged.pdf

Merge while excluding folders:

nestedpdfmerger ./reports --output merged.pdf --exclude Backup Data

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Tsconfig Validator

Validate and lint tsconfig.json files for common mistakes, conflicting compiler options, strictness gaps, and best practices. Use when asked to lint, validat...

Registry SourceRecently Updated
General

API Diff

Compare two OpenAPI 3.x or Swagger 2.0 specs and generate a changelog of breaking and non-breaking changes. Detect removed endpoints, new required parameters...

Registry SourceRecently Updated
General

Eslint Flat Config Validator

Validate ESLint v9+ flat config files (JSON-exported) for structural correctness, language options, rules configuration, plugin hygiene, file patterns, and b...

Registry SourceRecently Updated
General

Migration Safety Checker

Check database migrations for safety — detect data loss risks, locking operations, backward compatibility issues, and deployment ordering problems across SQL...

Registry SourceRecently Updated