← All one-liners·#008·synthesis·llm cli·beginner

Wikipedia article → 5-year-old explanation

Hand any topic to Wikipedia, then to claude with an ELI5 framing. Zero-setup tutoring.

Setup
  • → claude /login OR export ANTHROPIC_API_KEY=sk-…
Cost per run
<$0.01
The one-liner
$ curl -s "https://en.wikipedia.org/api/rest_v1/page/summary/Homotopy_type_theory" \
  | jq -r '.extract' \
  | claude -p "Re-explain this for a curious 12-year-old. 4 sentences max."
What each stage does
  1. [01] curlcurl … /page/summary/Homotopy_type_theory
    Wikipedia REST summary.
  2. [02] jqjq -r '.extract'
    Pull the lead paragraph as raw text.
  3. [03] claudeclaude -p "Re-explain …"
    Headless prompt. The Wikipedia lead is the context; the prompt directs the rewrite.
Expected output (sample)
Imagine you have two pieces of string. If you can wiggle one until it looks exactly like the other without cutting it, they're 'the same' in a useful way. Homotopy type theory is a kind of math that takes this 'shape-stretching' idea seriously, and uses it to talk about whether two ideas in math are actually the same idea wearing different costumes...
Caveats & tips
  • Article paths use underscores. URL-encode special characters.