Tapestry — Knowledge Extraction + Action Planning
Master workflow from the Tapestry skills suite. Takes any source URL, pulls clean
readable text out of it, then converts that into a concrete Ship-Learn-Next action
plan. The point: never just consume content — always end with something shippable.
Note: the upstream repo was renamed to tapestry-skills; this skill corresponds
to its learn-this master skill which the author titles "Tapestry". It orchestrates
three sibling skills: youtube-transcript, article-extractor, ship-learn-next.
When to use
Trigger phrases: "learn-this ", "learn this ", "weave ",
"help me plan ", "extract and plan ", "make this actionable ",
"turn into a plan", "download/get/transcribe this YouTube video",
"extract/save this article without the ads", "summarize this PDF into action steps".
Use it whenever the user hands over a URL (video, article, or PDF) and wants the
content captured AND made actionable.
Workflow
- Detect content type from the URL.
- Extract clean text using the right method.
- Build a Ship-Learn-Next action plan from the extracted text.
- Save both the content file and the plan file, then summarize.
Step 1 — Detect type
- YouTube: URL matches
youtube.com/watch, youtu.be/, youtube.com/shorts, m.youtube.com/watch.
- PDF: URL ends
.pdf, OR curl -sI "$URL" returns Content-Type: application/pdf.
- Article: anything else (default / fallback).
Step 2 — Extract content
YouTube (needs yt-dlp; auto-install via brew install yt-dlp):
- Get title:
yt-dlp --print "%(title)s" "$URL" (sanitize / : ? " out for filename).
- Download captions:
yt-dlp --write-auto-sub --skip-download --sub-langs en --output temp_transcript "$URL".
- Convert the
.en.vtt to clean text with python3: strip WEBVTT/Kind:/Language:/timestamp (-->) lines, strip <...> tags, decode & > <, and dedupe lines (VTT repeats them). Save as <Title>.txt, then rm the temp vtt.
- Fallback if no subs: Whisper (
pip3 install openai-whisper).
Article (prefer reader (npm reader-cli) → else trafilatura (pip) → else curl+HTMLParser fallback):
reader "$URL" (Mozilla Readability), title = first # line.
- or
trafilatura --URL "$URL" --output-format txt --no-comments; title from --json metadata.
- fallback: curl the page, parse with python
HTMLParser keeping only p/article/main, skipping script/style/nav/header/footer/aside/form; title from <title>.
- Save as
<Article Title>.txt (sanitize, cap ~80 chars).
PDF (needs pdftotext from poppler — brew install poppler / apt install poppler-utils):
curl -L -o file.pdf "$URL" then pdftotext file.pdf out.txt → <name>.txt.
Step 3 — Ship-Learn-Next plan
Read the extracted text, then produce a plan (don't ask — do it automatically):
- Extract actionable lessons, not a summary.
- Define one specific 4–8 week quest.
- Rep 1 = shippable THIS week; Reps 2–5 = progressive iterations, each with a
reflection question.
- Framework: SHIP (make something real) → LEARN (honest reflection) → NEXT (plan next rep).
"100 reps beats 100 hours of study."
- Save as
Ship-Learn-Next Plan - <Quest Title>.md.
Step 4 — Present
Report: detected type, content file + word count, plan file, the one-line quest,
Rep 1 goal, and close with the commitment question: "When will you ship Rep 1?"
Gotchas
- Verify the content file is non-empty BEFORE building a plan — failed extraction
must not produce a plan.
- Auth-walled pages / private videos will fail extraction; tell the user plainly.
- Show a preview (first ~10 lines) of extracted text so the user can sanity-check.
- macOS-oriented installs (brew); on Linux swap to apt/pip equivalents.
- Full reference scripts live in the source repo under
learn-this/SKILL.md,
youtube-transcript/, article-extractor/, ship-learn-next/.
1---2name: tapestry-knowledge3description: "Use when the user says learn-this/learn this/weave a URL, or asks to extract, download, save, or 'make actionable' an article, blog post, YouTube video transcript, or PDF — extracts clean text from any source and turns it into a Ship-Learn-Next action plan."4version: 1.0.05license: MIT6tags: [research, content-extraction, youtube-transcript, article-extractor, pdf, ship-learn-next, action-plan, knowledge-capture, learning]7source: https://github.com/michalparkola/tapestry-skills-for-claude-code/tree/main/tapestry8derived_from: awesomeclaude9platforms: [macos]10prerequisites:11 commands: [curl, python3]12metadata:13 source: https://skillmd.com/skills/aashutosh396/tapestry-knowledge14---1516# Tapestry — Knowledge Extraction + Action Planning1718Master workflow from the Tapestry skills suite. Takes any source URL, pulls clean19readable text out of it, then converts that into a concrete Ship-Learn-Next action20plan. The point: never just consume content — always end with something shippable.2122> Note: the upstream repo was renamed to `tapestry-skills`; this skill corresponds23> to its `learn-this` master skill which the author titles "Tapestry". It orchestrates24> three sibling skills: `youtube-transcript`, `article-extractor`, `ship-learn-next`.2526## When to use2728Trigger phrases: "learn-this <URL>", "learn this <URL>", "weave <URL>",29"help me plan <URL>", "extract and plan <URL>", "make this actionable <URL>",30"turn <URL> into a plan", "download/get/transcribe this YouTube video",31"extract/save this article without the ads", "summarize this PDF into action steps".3233Use it whenever the user hands over a URL (video, article, or PDF) and wants the34content captured AND made actionable.3536## Workflow37381. Detect content type from the URL.392. Extract clean text using the right method.403. Build a Ship-Learn-Next action plan from the extracted text.414. Save both the content file and the plan file, then summarize.4243### Step 1 — Detect type4445- YouTube: URL matches `youtube.com/watch`, `youtu.be/`, `youtube.com/shorts`, `m.youtube.com/watch`.46- PDF: URL ends `.pdf`, OR `curl -sI "$URL"` returns `Content-Type: application/pdf`.47- Article: anything else (default / fallback).4849### Step 2 — Extract content5051**YouTube** (needs `yt-dlp`; auto-install via `brew install yt-dlp`):52- Get title: `yt-dlp --print "%(title)s" "$URL"` (sanitize `/ : ? "` out for filename).53- Download captions: `yt-dlp --write-auto-sub --skip-download --sub-langs en --output temp_transcript "$URL"`.54- Convert the `.en.vtt` to clean text with python3: strip `WEBVTT`/`Kind:`/`Language:`/timestamp (`-->`) lines, strip `<...>` tags, decode `& > <`, and dedupe lines (VTT repeats them). Save as `<Title>.txt`, then `rm` the temp vtt.55- Fallback if no subs: Whisper (`pip3 install openai-whisper`).5657**Article** (prefer `reader` (npm `reader-cli`) → else `trafilatura` (pip) → else curl+HTMLParser fallback):58- `reader "$URL"` (Mozilla Readability), title = first `# ` line.59- or `trafilatura --URL "$URL" --output-format txt --no-comments`; title from `--json` metadata.60- fallback: curl the page, parse with python `HTMLParser` keeping only `p/article/main`, skipping `script/style/nav/header/footer/aside/form`; title from `<title>`.61- Save as `<Article Title>.txt` (sanitize, cap ~80 chars).6263**PDF** (needs `pdftotext` from poppler — `brew install poppler` / `apt install poppler-utils`):64- `curl -L -o file.pdf "$URL"` then `pdftotext file.pdf out.txt` → `<name>.txt`.6566### Step 3 — Ship-Learn-Next plan6768Read the extracted text, then produce a plan (don't ask — do it automatically):69- Extract actionable lessons, not a summary.70- Define one specific 4–8 week quest.71- Rep 1 = shippable THIS week; Reps 2–5 = progressive iterations, each with a72 reflection question.73- Framework: SHIP (make something real) → LEARN (honest reflection) → NEXT (plan next rep).74 "100 reps beats 100 hours of study."75- Save as `Ship-Learn-Next Plan - <Quest Title>.md`.7677### Step 4 — Present7879Report: detected type, content file + word count, plan file, the one-line quest,80Rep 1 goal, and close with the commitment question: "When will you ship Rep 1?"8182## Gotchas8384- Verify the content file is non-empty BEFORE building a plan — failed extraction85 must not produce a plan.86- Auth-walled pages / private videos will fail extraction; tell the user plainly.87- Show a preview (first ~10 lines) of extracted text so the user can sanity-check.88- macOS-oriented installs (brew); on Linux swap to apt/pip equivalents.89- Full reference scripts live in the source repo under `learn-this/SKILL.md`,90 `youtube-transcript/`, `article-extractor/`, `ship-learn-next/`.