Przejdź do treści
Biblioteka skilli
Nauka i badania · Konwersja i formaty

media

/media

Wyciąga tekst z PDF i epub oraz konwertuje audio i wideo do materiałów do nauki, zapisując wyniki w folderze media/out.

Repozytorium
thinkpad ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
04.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 04.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Wyciąga tekst z PDF i epub oraz konwertuje audio i wideo do materiałów do nauki, zapisując wyniki w folderze media/out.

Wyzwalacze z opisu

extract this pdfabsorb this book/pdfconvert this video/audiotranscribe this pdf
Oryginalny opis (EN)

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.

Jak działa

  1. Tools
  2. Dropoff Convention (absorb pipeline)
  3. Output Convention
  4. Flows
  5. Invariants
Sekcje z nagłówków SKILL.md, w oryginale · 43 linii, 301 słów
Podgląd 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)`.
Pliki w paczce (2)
  • SKILL.md 2 KB
  • references/recipes.md 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · rdennler/thinkpad90Apache-2.0
unsady/den100Apache-2.0
PIXARTSeu/Synapse95AGPL-3.0
markusleben/ha-nova90MIT
rdennler/yat90Apache-2.0
tpc-pascal/skillsmith90MIT

Migawka bazy z 13.11.2026 · wersja paczki 3f4f7d32fff3 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100interview-ingest
    Transkrybuje nagrania audio wywiadów i konwertuje dokumenty PDF, przygotowując dane do etapu 1 lub 2 projektu badawczego.
  • 100pdf-extraction
    Wyciąga tekst z PDF-ów przez zdalne API OCR Asta, także ze skanów dokumentów.
  • 100book-to-obsidian
    Wyciąga tekst z EPUB lub PDF, analizuje książkę czterema etapami czytania i zapisuje notatki w folderze w Obsidianie.
  • 100video-transcript-downloader
    Pobiera, transkrybuje, bada, streszcza lub konwertuje źródła wideo i audio: transkrypty, napisy, ekstrakcja audio i pobieranie multimediów.
  • 100study-material
    Wyciąga pełną treść z PDF, dokumentów i obrazów, a potem porządkuje ją w strukturalne materiały HTML do nauki.
  • 100add-source
    Wprowadza nowe źródło, np. PDF, EPUB, nagranie, film albo stronę, do biblioteki Assara: od wyodrębnienia tekstu po indeks i katalog.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.