# Send HackerNews Extract to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "hn-extract",
    "name": "HackerNews Extract",
    "source": "tencent",
    "type": "skill",
    "category": "内容创作",
    "sourceUrl": "https://clawhub.ai/guoqiao/hn-extract",
    "canonicalUrl": "https://clawhub.ai/guoqiao/hn-extract",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/hn-extract",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=hn-extract",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "hn-extract.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "hn-extract",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T20:13:32.808Z",
      "expiresAt": "2026-05-06T20:13:32.808Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=hn-extract",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=hn-extract",
        "contentDisposition": "attachment; filename=\"hn-extract-0.1.5.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "hn-extract"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/hn-extract"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/hn-extract",
    "downloadUrl": "https://openagent3.xyz/downloads/hn-extract",
    "agentUrl": "https://openagent3.xyz/skills/hn-extract/agent",
    "manifestUrl": "https://openagent3.xyz/skills/hn-extract/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/hn-extract/agent.md"
  }
}
```
## Documentation

### HackerNews Extract

Extract a HackerNews post (article + comments) into single clean Markdown for quick reading or LLM input.

see Examples

### What it does

Accepts an HackerNews id or url
Download the linked article HTML, cleans and formats it.
Fetches the Hacknews post metadata and comments.
Outputs a readable combined markdown file with original article, threaded comments, and key metadata.

### Requirements

uv installed and in PATH.

### Install

No install beyond having uv.
Dependencies will be installed automatically by uv into to a dedicated venv when run this script.

### Usage Workflow (Mandatory for Agents)

When an agent is asked to extract a HackerNews post:

Run the script with an output path: uv run --script ${baseDir}/hn-extract.py <input> -o /tmp/hn-<id>.md.
Send ONE combined message: Upload the file and ask the question in the same tool call. Use the message tool (action=send, filePath="/tmp/hn-<id>.md", message="Extraction complete. Do you want me to summarize it?").
Do not output the full text or a summary directly in the chat unless specifically requested.

### Usage

# 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"

Omit -o to print to stdout.
Directories for -o are created automatically.

### Notes

Retries are enabled for HTTP fetches.
Comments are indented by thread depth.
Sites requires authentication or blocks scraping may still fail.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: guoqiao
- Version: 0.1.5
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T20:13:32.808Z
- Expires at: 2026-05-06T20:13:32.808Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/hn-extract)
- [Send to Agent page](https://openagent3.xyz/skills/hn-extract/agent)
- [JSON manifest](https://openagent3.xyz/skills/hn-extract/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/hn-extract/agent.md)
- [Download page](https://openagent3.xyz/downloads/hn-extract)