document-figures

Community

Turn documents into sourced diagrams and figures.

Authordobachi
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It extracts visual figures from PDFs, Office files, and web pages with provenance, and it creates Mermaid-first structural diagrams when suitable figures are missing.

Core Features & Use Cases

  • Figure extraction with provenance: Pulls embedded images and/or renders page/slide visuals while preserving source reference information.
  • Caption recovery and integrity: Recovers captions and alt-text when possible, explicitly flags reconstructed captions, and outputs a Figure Ledger for auditability.
  • Mermaid-first figure creation: Generates deterministic Mermaid diagrams for sequential, decision, state, entity-relationship, and other structural claims using an information test so diagrams aren’t just decorated bullets.
  • Ledger chaining for document summarization: Produces artifacts that can chain into document-summary via linked Claim Ledger IDs.

Example use case: You have a Claim Ledger describing evidence-by-figure claims from a PDF report; this Skill extracts the relevant figures with page/slide provenance, recovers captions, filters out decorative noise, and emits FIGURES.md plus manifest.json so downstream summarization can cite each figure.

Quick Start

Use the document-figures skill to extract figures from 'report.pdf' and produce a Figure Ledger that links each extracted figure to the matching claims in your Claim Ledger.

Dependency Matrix

Required Modules

puppeteerpoppler-utilsxmllintlibxml2unzip

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: document-figures
Download link: https://github.com/dobachi/claude-skills-marketplace/archive/main.zip#document-figures

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.