From 4897572347d2e660e3eb5f78d4478ae25cbdb855 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar <3998+srid@users.noreply.github.com> Date: Mon, 10 Nov 2025 13:58:41 -0500 Subject: [PATCH] ae: download first --- .../home/claude-code/skills/article-extractor/SKILL.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/home/claude-code/skills/article-extractor/SKILL.md b/modules/home/claude-code/skills/article-extractor/SKILL.md index b84af04..357d4e6 100644 --- a/modules/home/claude-code/skills/article-extractor/SKILL.md +++ b/modules/home/claude-code/skills/article-extractor/SKILL.md @@ -20,8 +20,11 @@ User wants to: ## Workflow ```bash +# Download HTML +curl -L "$URL" > temp.html + # Extract article -reader "$URL" > temp.txt +reader temp.html > temp.txt # Get title from first line TITLE=$(head -n 1 temp.txt | sed 's/^# //') @@ -32,6 +35,9 @@ FILENAME=$(echo "$TITLE" | tr '/:?"<>|' '-' | cut -c 1-80 | sed 's/ *$//')".txt" # Save mv temp.txt "$FILENAME" +# Clean up +rm temp.html + # Show preview echo "✓ Saved: $FILENAME" head -n 10 "$FILENAME"