Skip to content
Back to skills

Document Core

ASecurity

"Open, inspect, authenticate, convert, save, and safely manage

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
documentationapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill document-core --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Document Core?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Document Core
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-document-core/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-document-core)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: document-core
description: "Open, inspect, authenticate, convert, save, and safely manage
  PyMuPDF documents and shared geometry primitives."
disable-model-invocation: true
metadata:
  disco-role: operating
license: AGPL 3.0
---

# Document Core

Use this sub-skill for the core PyMuPDF document lifecycle: open or create a document, inspect page/metadata/outline basics, authenticate protected PDFs, convert supported non-PDF inputs to PDF, choose a safe save mode, or reason about shared geometry primitives.

## Read or run

- [references/api-reference.md](references/api-reference.md) covers verified signatures and core objects.
- [references/workflows.md](references/workflows.md) covers open/save/convert/authenticate patterns.
- [references/troubleshooting.md](references/troubleshooting.md) covers open, password, save, format, corruption, and object-lifetime failures.
- Run [scripts/document_roundtrip_smoke.py](scripts/document_roundtrip_smoke.py) to create, serialize, reopen, and verify a tiny PDF.

## Boundaries

Route text/OCR/tables/RAG to [../text-tables-and-rag/SKILL.md](../text-tables-and-rag/SKILL.md), rendering/images to [../rendering-images-and-graphics/SKILL.md](../rendering-images-and-graphics/SKILL.md), PDF editing/forms/redaction to [../pdf-editing-annotations-forms/SKILL.md](../pdf-editing-annotations-forms/SKILL.md), and CLI/build/test concerns to [../cli-and-maintenance/SKILL.md](../cli-and-maintenance/SKILL.md).

## Default checklist

Use `import pymupdf`; open local paths with `pymupdf.open(path)`, memory with `pymupdf.open(stream=data, filetype="pdf")`, and text-like inputs with an explicit `filetype`. Authenticate when `doc.needs_pass` is true. Prefer full save to a new path unless intentional incremental update is supported. Reacquire pages and child objects after page-tree changes or document close/reopen.

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md1 KB
  • references/troubleshooting.md701 B
  • references/workflows.md815 B
  • scripts/document_roundtrip_smoke.py1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.