Save Pdf Kb logo

Save Pdf Kb

Organization
hraness
save-pdf-kb

Convert a local or public remote PDF into an auditable Markdown knowledge-base bundle with the original document, inferred headings, page provenance, OCR text, image metadata, and local visual assets. Use when the user asks to save, import, archive, extract, or turn a PDF into KB Markdown, especially scanned documents and PDFs containing screenshots, Slack messages, charts, photos, or a mix of native text and images.

Overview

Publisherhraness
Repositoryslopcamera
Skill namesave-pdf-kb
Stars
7
Forks
1
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hraness on GitHub. Read the source before you install it.

Installation

Install the Save Pdf Kb AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hraness/slopcamera/tree/main/.agents/skills/save-pdf-kb
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hraness/slopcamera.git /tmp/slopcamera
mkdir -p .claude/skills
cp -r /tmp/slopcamera/.agents/skills/save-pdf-kb .claude/skills/save-pdf-kb
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Save Pdf Kb in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Save Pdf Kb on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Save Pdf Kb is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Save a PDF to the knowledge base

Use the installed wordcell CLI. Resolve <vault> to the directory containing its authored or managed index.md front door, then set the shell-local KB_ROOT to that path (KB_ROOT=kb from a typical repository root).

Check the local conversion routes, then capture the PDF:

sh
wordcell doctor
wordcell pdf "/absolute/path/to/document.pdf" --output "$KB_ROOT/articles"
wordcell pdf "https://example.com/document.pdf" --output "$KB_ROOT/articles"

Pass a stable slug or replace a prior tool-owned bundle only when needed:

sh
wordcell pdf "/absolute/path/to/document.pdf" --slug ben-leaves-zo --output "$KB_ROOT/articles"
wordcell pdf "/absolute/path/to/document.pdf" --output "$KB_ROOT/articles" --force

The command installs one atomic bundle:

text
<slug>/
  <slug>.md
  capture.json
  source.pdf
  annotations.json  # present after a reviewed annotation pass
  assets/

source.pdf is the byte-identical input. The manifest records its original name, hash, byte count, page count, bounded document metadata, processed-page and block counts, image geometry, OCR status, and warnings without retaining the original absolute path. A reviewed second pass also retains the exact normalized annotation array as annotations.json; the manifest records its path, count, byte count, and SHA-256 so the image interpretation remains reproducible.

Preserve text and visual evidence

Treat native PDF text and image text as two independent extraction surfaces. Native text supplies layout, heading, link, and reading-order evidence. Local OCR supplies candidate text for scans and screenshots. Keep every extracted image as an asset even when its text is converted to Markdown.

For recognizable conversations, review the source image and turn OCR into readable message blocks with available platform, author, channel, and timestamp metadata. Preserve uncertain words explicitly instead of silently repairing them. Read references/review.md before refining screenshot-heavy or mixed-media PDFs.

The first capture supplies stable image IDs and hashes in capture.json. For screenshot-heavy documents, write reviewed interpretations to a JSON array and rerun the capture:

json
[
  {
    "id": "page-5-image-1-0123456789ab",
    "sha256": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
    "kind": "mixed",
    "method": "agent",
    "markdown": "> bg @ Oct 15, 2024 at 4:26 PM\n> Message text",
    "metadata": {
      "platform": "Slack",
      "contentType": "message screenshot",
      "author": "bg",
      "timestamp": "Oct 15, 2024 at 4:26 PM",
      "participants": ["bg"]
    }
  }
]
sh
wordcell pdf "/absolute/path/to/document.pdf" \
  --output "$KB_ROOT/articles" \
  --annotations /tmp/pdf-image-annotations.json \
  --force

Use only IDs and SHA-256 values from the first manifest. The command rejects a stale interpretation if the extracted image changed. Omit metadata fields that are not visible, and use kind: "visual" with an optional alt instead of inventing a transcription for a non-text image. Put only the transcribed body in markdown; the renderer owns the image embed, “Text visible in…” heading, and visible metadata line.

Embed primarily visual images in the Markdown. For text-bearing or mixed images, keep the source image embedded beside the transcription so diagrams, photos, UI state, and spatial meaning remain inspectable. The embed is the source-image reference; do not duplicate it inside an annotation.

Heading inference follows native font, emphasis, spacing, and page geometry. Review semantic hierarchy separately: typography can identify a heading without proving whether it is a peer or a child of the preceding section. Report an ambiguous or incorrect level instead of silently treating the inference as source truth.

Report completeness literally

Use complete only when every page was processed and every extracted image was classified. Preserve partial when a tool, page, image, byte, time, or OCR boundary was reached. A usable native-text extraction does not make unprocessed screenshot pages complete.

Review:

  1. Compare the manifest page count with the PDF.
  2. Review inferred headings and report ambiguous or incorrect hierarchy.
  3. Sample native-text, screenshot, scanned, and visual-only pages.
  4. Confirm every retained asset resolves from the Markdown or manifest.
  5. Check that source-image links accompany OCR-derived text.
  6. Report the output path, status, page and image counts, OCR coverage, and unresolved warnings.

After adding or linking the capture, run the vault's normal refresh and check:

sh
wordcell percolate "<maintained-note-id>" --root "$KB_ROOT" --limit 25 --json
wordcell refresh --root "$KB_ROOT"
wordcell check --root "$KB_ROOT"

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Save Pdf Kb AI skill do?

Convert a local or public remote PDF into an auditable Markdown knowledge-base bundle with the original document, inferred headings, page provenance, OCR text, image metadata, and local visual assets. Use when the user asks to save, import, archive, extract, or turn a PDF into KB Markdown, especially scanned documents and PDFs containing screenshots, Slack messages, charts, photos, or a mix of native text and images.

Why use Save Pdf Kb on TypingMind?

Because you install it once and use it with any model. Save Pdf Kb is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Save Pdf Kb in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hraness/slopcamera/tree/main/.agents/skills/save-pdf-kb. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Save Pdf Kb?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Save Pdf Kb?

As many as you like. As long as a model supports skills, you can use Save Pdf Kb with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Save Pdf Kb AI skill free?

Yes. It is published on GitHub by hraness under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇