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"