Install
openclaw skills install hn-extractExtract a HackerNews post (article + comments) into single clean Markdown for quick reading or LLM input.
openclaw skills install hn-extractExtract a HackerNews post (article + comments) into single clean Markdown for quick reading or LLM input.
see Examples
uv installed and in PATH.No install beyond having uv.
Dependencies will be installed automatically by uv into to a dedicated venv when run this script.
When an agent is asked to extract a HackerNews post:
uv run --script ${baseDir}/hn-extract.py <input> -o /tmp/hn-<id>.md.message tool (action=send, filePath="/tmp/hn-<id>.md", message="Extraction complete. Do you want me to summarize it?").# run as uv script
uv run --script ${baseDir}/hn-extract.py <hn-id|hn-url|path/to/item.json> [-o path/to/output.md]
# Examples
uv run --script ${baseDir}/hn-extract.py 46861313 -o /tmp/output.md
uv run --script ${baseDir}/hn-extract.py "https://news.ycombinator.com/item?id=46861313"
-o to print to stdout.-o are created automatically.