Skip to content
Back to skills

Media

ASecurity

PDF/epub text extraction and audio/video conversion for study material. Triggers on "extract this pdf", "absorb this book/pdf", "convert this video/audio", "transcribe this pdf". Outputs land in media/out/; absorbed sources also get ontology graph nodes.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
ai-agentsgoshellnodeapi

Works with

  • terminal
  • api

Security analysis

A100/100

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

Scanned November 7, 2026

npx -y skills add rdennler/thinkpad --skill media --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Media?

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

Security grade badge for Media
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rdennler-media/badge)](https://www.skillsdirectory.com/skills/rdennler-media)

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: media
description: PDF/epub text extraction and audio/video conversion for study material. Triggers on "extract this pdf", "absorb this book/pdf", "convert this video/audio", "transcribe this pdf". Outputs land in media/out/; absorbed sources also get ontology graph nodes.
metadata:
  api: 1
  kind: infra
  mode: infra
  terminal: allowed
  triggers: ["extract this pdf", "absorb this book", "convert this video", "convert this audio"]
  reads: ["media/<env>/"]
  writes: ["media/out/", "memory/ontology/graph.jsonl"]
  requires: ["bin:pdftotext", "bin:ffmpeg"]
  graph_reads: []
  graph_writes: ["Resource", "Concept", "Person"]
---

# tp:media — PDF Extraction & A/V Conversion

Turns source material (PDF, epub, audio, video) into text or a different format so a learning env can use it.

**Terminal:** infra skill, so shell commands are fine here. The learning-session terminal rule does not apply while this skill runs.

## Tools

| Job | Tool |
|---|---|
| PDF → text | `pdftotext -layout in.pdf out.txt` (poppler) |
| PDF page → PNG | `pdftoppm -png -r 150 -f N -l N in.pdf out` |
| A/V convert, trim, extract audio | `ffmpeg` (native) |

Run `<tool> --help` before the first use in a session; flags differ between versions.

## Dropoff Convention (absorb pipeline)

Source files land in `media/<env>/`. Absorbing a source means:

1. Extract to `media/out/<source-stem>/`.
2. Through `tp:memory`, create one `Resource` node (`part_of` the env), plus a `Concept` node per chapter or topic (`part_of` the env, its `refs` property naming the extract section). Link the Resource `about` each Concept.

Env scoping lives in the graph relations, so one env never sees another env's resources.

## Output Convention

- Outputs go to `media/out/` unless the user names a destination.
- Name outputs after the source: `<stem>.txt`, `<stem>-p<NN>.png`, `<stem>.<newext>`.
- Never overwrite silently. Suffix `-2`, `-3`, or ask.

## Flows

1. **Extract a PDF:** extract text. Report the page count and any pages that came back empty (likely scanned images). Render those pages to PNG and flag them rather than pretending the text is complete.
2. **Convert A/V:** use a native ffmpeg one-liner. Report the exact command, output path and size. Recipes: `references/recipes.md`.
3. **Absorb a book:** extract, then log to the graph as above.

## Invariants

- Report the command you ran and where output landed, one line each.
- The shell may be fish: use `(cmd)` for substitution, not `$(cmd)`.

Files in this skill

  • SKILL.md2.4 KB
  • references/recipes.md1.1 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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