# HN mention radar — a replayable Reelier skill

Hacker News mention search for "reelier" via the Algolia HN API — read-only radar sweep

A real, read-only Reelier skill against a live public API — no account, no keys, no writes. Every replay proves: The Algolia HN search API answers with a well-formed hits array.

- Steps: 1 · Assertions: 2 · Effect: read (counts parsed from the file, never hand-typed)
- Endpoints: https://hn.algolia.com/api/v1/search?query=reelier
- Canonical file: https://raw.githubusercontent.com/seldonframe/reelier/main/examples/portfolio/hn-mention-radar.skill.md
- HTML page: https://www.reelier.com/skills/hn-mention-radar

## What this checks

One step: an HTTP GET to the Algolia Hacker News search API with query "reelier". Two assertions: the API answered 200 and hits is an array.

Zero hits is a perfectly healthy replay — the assertion is that the search API answered with a well-formed result set, not that anyone is talking about you this week. The bound mentions count (json.nbHits) is the number worth watching over time.

## The skill file (verbatim)

```markdown
---
name: hn-mention-radar
description: Hacker News mention search for "reelier" via the Algolia HN API — read-only radar sweep
---

<!-- synced from seldonframe/reelier examples/portfolio — edit there -->

# HN mention radar

Inputs: (none — this file replays green as-is; see the personalization note)

<!--
  Personalization: swap the literal `reelier` in the query string for your
  own project name (the portfolio README's "Point these at YOUR project"
  section has the one-command version). The skill grammar has no
  default-value syntax for {{var}} holes — an unbound {{var}} is an explicit
  error, never a guessed fallback — so this file ships with a literal that
  works with zero flags.

  Endpoint verified live on 2026-07-21: 200, `hits` is an array.
-->

Zero hits is a perfectly healthy replay — the assertion is that the search
API answered with a well-formed hits array, not that anyone is talking about
you this week. The receipt's bound `mentions` count is the number worth
watching over time.

## Steps

### Step 1 — Search HN for mentions
- intent: Search Hacker News (Algolia API) for mentions of reelier and confirm a well-formed result set
- action: http.get {"url": "https://hn.algolia.com/api/v1/search?query=reelier"}
- assert: status == 200
- assert: json.hits is array
- bind: mentions = json.nbHits
- effect: read
```

## Run it yourself

`reelier run` takes a local file, so fetch the canonical copy first (or clone the repo). The replay writes its receipt to `.reelier/runs/`.

```sh
curl -fsSL https://raw.githubusercontent.com/seldonframe/reelier/main/examples/portfolio/hn-mention-radar.skill.md -o hn-mention-radar.skill.md
npx -y reelier@latest run hn-mention-radar.skill.md

# or from a clone:
git clone https://github.com/seldonframe/reelier
cd reelier && npx -y reelier@latest run examples/portfolio/hn-mention-radar.skill.md
```

## Seed receipt — 2026-07-21

Replayed for real with the published CLI (resolved to reelier@0.12.1) on 2026-07-21; the run record confirms passed: true and 0 LLM tokens (input + output). Verbatim output:

```
✓ Step 1 — Search HN for mentions [passed] 411ms

PASSED: 1/1 steps ok, 0 failed, 411ms total
```

Standing audit log: a GitHub Action replays all five portfolio skills every 6 hours (plus on demand) — https://github.com/seldonframe/reelier/actions/workflows/portfolio-replay.yml. A failing endpoint produces an honestly failing receipt, never a retried-until-green one.

## Point it at your project

Swap the literal `reelier` in the query string for your own project name. The skill grammar has no default-value syntax for {{var}} holes — an unbound {{var}} is an explicit error, never a guessed fallback — so this file ships with literals that replay green with zero flags.

```sh
sed 's/reelier/YOUR-PROJECT/g' hn-mention-radar.skill.md > my-mention-radar.skill.md \
  && npx -y reelier@latest run my-mention-radar.skill.md
```

---

Reelier — agents make claims, Reelier writes receipts. AGPL-3.0.
Portfolio index: https://www.reelier.com/skills (twin: https://www.reelier.com/skills.md) · Replay ledger: https://www.reelier.com/replays · Machine-readable summary: https://www.reelier.com/llms.txt
