К основному содержанию
скилл CX Codex

pp-archive-is — скилл для Claude Code: что делает и как установить

Ищет копии страниц, обходит пейволлы и отправляет адреса в веб-архивы с автоматической сменой бэкенда. Пригодится агенту для чтения закрытых статей и пакетного сохранения ссылок.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add mvanhorn/printing-press-library --skill pp-archive-is -a claude-code
Открыть на GitHub

Что делает pp-archive-is

Скилл управляет утилитой archive-is-pp-cli и обращается к Wayback Machine и зеркалам архивных сервисов. Главный сценарий — команда read <url>. Она сначала проверяет таймгейты Memento и индексы CDX на наличие готового снимка. Если копия уже есть в базе, утилита не станет делать повторный запрос, поэтому вызов идемпотентен.

Если страница защищена пейволлом, команда get <url> забирает извлечённый текст статьи без лишней разметки. Когда основной бэкенд отдаёт капчу на облачных IP-адресах, утилита автоматически переключается на Wayback Machine. Для длинных списков адресов предусмотрен режим bulk с защитой от превышения лимитов запросов.

Перед запуском обязательна установка бинарника archive-is-pp-cli в системный $PATH. Ключи API не требуются. Но без готового исполняемого файла скилл завершится ошибкой.

Какие задачи решает

  • прочитать текст статьи за пейволлом
  • найти сохранённый снимок страницы перед созданием нового
  • отправить список ссылок на пакетное сохранение с контролем лимитов
  • переключиться на резервный архив при появлении капчи

Примеры запросов агенту

  • Прочитай статью за пейволлом через команду archive-is-pp-cli read <url>
  • Сохрани свежий снимок страницы через archive-is-pp-cli save <url>
  • Собери краткую выжимку закрытого материала через archive-is-pp-cli tldr <url>

Как установить pp-archive-is

1Через Skills CLI (Vercel)

npx skills add mvanhorn/printing-press-library --skill pp-archive-is -a claude-code

2Вручную: положить файлы

~/.claude/skills/pp-archive-is/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/pp-archive-is/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о pp-archive-is

Как установить pp-archive-is в Claude Code?

Выполните команду npx skills add mvanhorn/printing-press-library --skill pp-archive-is -a claude-code. Также убедитесь, что бинарник archive-is-pp-cli предварительно установлен и доступен в переменной $PATH.

Что делает скилл pp-archive-is?

Он автоматизирует поиск и сохранение копий веб-страниц, помогая агенту читать материалы за пейволлами. Утилита проверяет наличие снимков перед отправкой запроса и защищает от сбоев при блокировке бэкенда.

Нужен ли API-ключ для работы скилла?

Ключ API не нужен, так как утилита обращается к публичным архивам напрямую. Главное требование — наличие скомпилированного бинарника в окружении агента.

Исходный текст

SKILL.md · Apache-2.0
---
name: pp-archive-is
description: "Use this skill whenever the user wants to archive a URL, bypass a paywall, look up an existing archive, view a cached version of a webpage, pull article text from archive.today or the Wayback Machine, or batch-archive a list of URLs. archive.today + Wayback Machine CLI with lookup-before-submit, automatic fallback when one backend is down, and agent-friendly output. No API key required. Triggers on phrasings like 'archive this article', 'bypass the paywall on this link', 'grab the cached text', 'save this url to archive.today', 'check if this was already archived', 'bulk archive these 20 URLs'."
author: "Matt Van Horn"
license: "Apache-2.0"
argument-hint: "<command> [args] | install cli|mcp"
allowed-tools: "Read Bash"
metadata:
  openclaw:
    requires:
      bins:
        - archive-is-pp-cli
    install:
      - kind: go
        bins: [archive-is-pp-cli]
        module: github.com/mvanhorn/printing-press-library/library/media-and-entertainment/archive-is/cmd/archive-is-pp-cli
---
<!-- GENERATED FILE — DO NOT EDIT.
     This file is a verbatim mirror of library/media-and-entertainment/archive-is/SKILL.md,
     regenerated post-merge by tools/generate-skills/. Hand-edits here are
     silently overwritten on the next regen. Edit the library/ source instead.
     See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->

# archive.today — Printing Press CLI

## Prerequisites: Install the CLI

This skill drives the `archive-is-pp-cli` binary. **You must verify the CLI is installed before invoking any command from this skill.** If it is missing, install it first:

1. Install via the Printing Press installer. It defaults binaries to `$HOME/.local/bin` on macOS/Linux and `%LOCALAPPDATA%\Programs\PrintingPress\bin` on Windows:
   ```bash
   npx -y @mvanhorn/printing-press-library install archive-is --cli-only
   ```
2. Verify: `archive-is-pp-cli --version`
3. Ensure the reported install directory is on `$PATH` for the agent/runtime that will invoke this skill.

If the `npx` install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

```bash
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/archive-is/cmd/archive-is-pp-cli@latest
```

If `--version` reports "command not found" after install, the runtime cannot see the binary directory on `$PATH`. Do not proceed with skill commands until verification succeeds.

## When to Use This CLI

Reach for this whenever a user wants to archive a URL, read a paywalled article, check whether something was previously archived, or batch-capture a list of URLs for research. Specifically good when:

- A user sends a paywalled link and asks "can you read this" → `read` fetches text via archive
- They want to preserve a URL that might change → `save` forces a fresh capture
- They want historical versions → `history` lists all known snapshots
- They have 20+ URLs to archive → `bulk` runs rate-limited batch archival

Don't reach for this if the URL is trivially scrapeable without archive services (no paywall, robots-allowed, direct HTTP works), or if the user wants the original source rather than a cached version.

## Unique Capabilities

The whole CLI is unique — archive.today has no official API. But within this CLI, certain commands are the differentiators.

### The hero commands

- **`read <url>`** — Find or create an archive for a URL. Looks up existing snapshots first (Memento timegate → CDX fallback); submits a fresh capture only if nothing exists. The "always do the right thing" command.

  _This is how 90% of agent calls should start. It's idempotent — calling it twice on the same URL doesn't double-submit._

- **`get <url> [--raw]` / `tldr <url>`** — Fetch article text, optionally LLM-summarized. Automatic Wayback fallback when archive.today serves a CAPTCHA (which happens daily to cloud IPs).

  _`tldr` pipes the fetched text through a summarization step — useful for agent chains where you want a short take without shipping 20KB of HTML back._

### Durability operations

- **`save <url>`** — Force a fresh capture via `/submit/?url=<x>&anyway=1`. Use when `read` returns an existing snapshot that's too old or missing a paywall update.

- **`history <url>`** — List all known snapshots via Memento timemap parsing. Shows every capture date across both archive.today and Wayback.

- **`bulk [file]`** — Rate-limited batch archiving from a file or stdin. Reads URLs one per line, submits each with backoff, returns a report of successes / failures / pre-existing.

  _`grep -oE 'https?://[^ )]+' notes.md | archive-is-pp-cli bulk -` archives every URL in a markdown file._

- **`request <url>`** — Fire-and-forget submit with optional wait+poll. Useful for long captures where you want to come back later.

### Observability

- **`snapshots newest <url>`** — Just the newest snapshot URL for a target, useful in scripts.

- **`captures`** — List your local capture index (post-sync).

- **`feeds`** — archive.today's global recent-archives feed.

- **`--backend archive-is,wayback`** — Every read/get accepts a backend preference. Defaults to archive-is with Wayback fallback; flip the order for Wayback-primary.

## Command Reference

Archive + retrieve:

- `archive-is-pp-cli read <url>` — Find or create (hero command)
- `archive-is-pp-cli get <url>` — Fetch article text (with Wayback fallback)
- `archive-is-pp-cli tldr <url>` — Fetch + summarize
- `archive-is-pp-cli save <url>` — Force fresh capture
- `archive-is-pp-cli request <url>` — Fire-and-forget submit
- `archive-is-pp-cli request check <url>` — Check whether a submitted request has completed

Listing + history:

- `archive-is-pp-cli history <url>` — All known snapshots
- `archive-is-pp-cli snapshots <url>` — Best known snapshot for a URL
- `archive-is-pp-cli snapshots newest <url>` — Newest snapshot URL
- `archive-is-pp-cli snapshots timemap <url>` — Raw Memento timemap
- `archive-is-pp-cli captures` — Local capture index
- `archive-is-pp-cli feeds` — Global recent feed

Batch:

- `archive-is-pp-cli bulk [file]` — Batch from file or stdin

Local store:

- `archive-is-pp-cli sync` / `export` / `import` / `workflow archive` — Local SQLite ops

Auth + health:

- `archive-is-pp-cli auth` — Config (no API key needed; auth is a no-op)
- `archive-is-pp-cli doctor` — Verify backend reachability

## Recipes

### Read a paywalled article

```bash
archive-is-pp-cli read "https://www.wsj.com/articles/..." --agent
# or: return just the text
archive-is-pp-cli get "https://www.wsj.com/articles/..." --agent
```

`read` returns the archive URL (finding existing or creating new). `get` returns extracted article text by default, falling back to Wayback if archive.today CAPTCHAs; add `--raw` only when you need the archived HTML.

### Preserve a URL before it changes

```bash
archive-is-pp-cli save "https://example.com/important-page" --agent
archive-is-pp-cli history "https://example.com/important-page" --agent  # verify
```

Force capture, then check history to confirm the new snapshot registered.

### Bulk archive a research batch

```bash
grep -oE 'https?://[^ )]+' research-notes.md | archive-is-pp-cli bulk - --agent
# or from a file:
archive-is-pp-cli bulk urls.txt --agent
```

Reads URLs one per line, submits each with exponential backoff, returns per-URL status (archived, pre-existing, failed) as JSON.

### Wayback-preferred for a reliable-read

```bash
archive-is-pp-cli read "https://ft.com/content/xyz" --backend wayback,archive-is --agent
```

Use when the Wayback Machine snapshot is known to be cleaner or archive.today is rate-limiting.

## Auth Setup

**No API key required.** Archive.today and Wayback Machine are both public. The `auth` subcommand exists for consistency but is a no-op — `doctor` reports "Auth: not required" which is the expected state.

Optional env:
- `ARCHIVE_IS_BASE_URL` — override archive.today host (for mirrors)
- `WAYBACK_BASE_URL` — override Wayback Machine host

## Agent Mode

Add `--agent` to any command. Expands to `--json --compact --no-input --no-color --yes --no-prompt`. Every action command also prints structured `next_actions` hints on stderr when called non-interactively — the calling agent sees "tried X, got Y, consider Z" automatically.

Notable flags:
- `--submit-timeout <duration>` — max wait for a fresh submit (default `10m`; `0` = unbounded)
- `--backend archive-is,wayback` — backend preference and fallback order
- `--raw` — return raw HTML from `get` instead of extracted text

### Filtering output

`--select` accepts dotted paths to descend into nested responses; arrays traverse element-wise:

```bash
archive-is-pp-cli <command> --agent --select id,name
archive-is-pp-cli <command> --agent --select items.id,items.owner.name
```

Use this to narrow huge payloads to the fields you actually need — critical for deeply nested API responses.


### Response envelope

Data-layer commands wrap output in `{"meta": {...}, "results": <data>}`. Parse `.results` for data and `.meta.source` to know whether it's `live` or local. The `N results (live)` summary is printed to stderr only when stdout is a TTY; piped/agent consumers see pure JSON on stdout.

## Exit Codes

| Code | Meaning |
|------|---------|
| 0 | Success |
| 2 | Usage error |
| 3 | Not found (no snapshot exists) |
| 5 | API error (archive.today or Wayback down) |
| 7 | Rate limited (too many submits) |

## Installation

```bash
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/archive-is/cmd/archive-is-pp-cli@latest
archive-is-pp-cli doctor
```

### MCP Server

```bash
go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/archive-is/cmd/archive-is-pp-mcp@latest
claude mcp add archive-is-pp-mcp -- archive-is-pp-mcp
```

## Argument Parsing

Given `$ARGUMENTS`:

1. **Empty, `help`, or `--help`** → run `archive-is-pp-cli --help`
2. **`install`** → CLI; **`install mcp`** → MCP
3. **Anything that looks like a URL, or "archive <url>" / "bypass paywall on <url>"** → `read <url> --agent` is the default — it's idempotent and covers the 90% case.
4. **"bulk archive" / "archive these"** → `bulk` from stdin if URLs are pasted, else ask for the file path.

<!-- pr-218-features -->
## Agent Workflow Features

This CLI exposes three shared agent-workflow capabilities patched in from cli-printing-press PR #218.

### Named profiles

Persist a set of flags under a name and reuse them across invocations.

```bash
# Save the current non-default flags as a named profile
archive-is-pp-cli profile save <name>

# Use a profile — overlays its values onto any flag you don't set explicitly
archive-is-pp-cli --profile <name> <command>

# List / inspect / remove
archive-is-pp-cli profile list
archive-is-pp-cli profile show <name>
archive-is-pp-cli profile delete <name> --yes
```

Flag precedence: explicit flag > env var > profile > default.

### --deliver

Route command output to a sink other than stdout. Useful when an agent needs to hand a result to a file, a webhook, or another process without plumbing.

```bash
archive-is-pp-cli <command> --deliver file:/path/to/out.json
archive-is-pp-cli <command> --deliver webhook:https://hooks.example/in
```

File sinks write atomically (tmp + rename). Webhook sinks POST `application/json` (or `application/x-ndjson` when `--compact` is set). Unknown schemes produce a structured refusal listing the supported set.

### feedback

Record in-band feedback about this CLI from the agent side of the loop. Local-only by default; safe to call without configuration.

```bash
archive-is-pp-cli feedback "what surprised you or tripped you up"
archive-is-pp-cli feedback list         # show local entries
archive-is-pp-cli feedback clear --yes  # wipe
```

Entries append to `~/.archive-is-pp-cli/feedback.jsonl` as JSON lines. When `ARCHIVE_IS_FEEDBACK_ENDPOINT` is set and either `--send` is passed or `ARCHIVE_IS_FEEDBACK_AUTO_SEND=true`, the entry is also POSTed upstream (non-blocking — local write always succeeds).

© Matt Van Horn · Apache-2.0 · mvanhorn/printing-press-library

Похожие скиллы

Все скиллы по теме «Браузер и парсинг» →
platform-trust-archive-manage forcedotcom Скилл для работы с Salesforce Archive через Archive Connect API: поиск, восстановление, маскирование и удаление архивных записей. CX Codex +1 5 100установок read-deleted-pages UseOSINT Достаёт удалённый, изменённый или старый контент сайтов через Wayback Machine, archive.today, Common Crawl и Memento. Пригодится, когда страница отдаёт 404 или кто-то переписал текст. CX Codex +1 2 000установок archive davila7 Слэш-команда сохраняет завершённые оркестрации вместе с метриками и выводами, чтобы к ним можно было вернуться позже. 228установок tavily-dynamic-search tavily-ai Скилл для поиска в интернете через Tavily с изоляцией контекста. Сохраняет тяжёлые ответы на диск и отбирает факты локально, чтобы не засорять окно модели. CX Codex +1 13 500установок search brightdata Ищет информацию в вебе через Bright Data CLI. Запускает классический сбор поисковой выдачи Google, Bing и Yandex или семантический поиск страниц с учётом интента. CX Codex +1 7 500установок use-tinyfish tinyfish-io Скилл подключает утилиту TinyFish CLI для поиска в сети, выкачивания страниц в Markdown и управления браузером через субагента. CX Codex +1 3 400установок

Из того же набора27

pp-company-goat Собирает данные о стартапе из SEC Form D, GitHub, Hacker News, Companies House, YC и Wikidata одной командой. Пригодится, когда нужно проверить компанию перед сделкой или наймом. CX Codex +1 796установок pp-contact-goat Поиск контактов, построение цепочек тёплых интро и обогащение профилей через LinkedIn, Happenstance и Deepline прямо из терминала. CX Codex +1 747установок pp-figma Выгружает компактные данные фреймов Figma для кодогенерации, проверяет нерешённые комментарии и находит неиспользуемые компоненты. Пригодится при переносе макетов в код и аудитах дизайн-систем. CX Codex +1 726установок pp-yahoo-finance Получает рыночные данные Yahoo Finance, ведёт локальный портфель SQLite и анализирует опционы. Пригодится для котировок, дивидендов и сводок по списку бумаг. CX Codex +1 648установок pp-linear Управляет задачами Linear из терминала, включая локальный поиск и сводки по циклам. Пригодится для очереди задач, проверки дублей и планирования спринта. CX Codex +1 615установок pp-firecrawl Управляет парсингом, краулингом и извлечением данных через Firecrawl CLI. Запускает поиск, сбор страниц и генерацию файлов LLMs.txt. CX Codex +1 610установок pp-scrape-creators Скилл выгружает посты, комментарии и рекламу с 28 платформ через утилиту scrape-creators-pp-cli. Он считает расход кредитов до запуска и сохраняет данные в локальную SQLite. CX Codex +1 564установок pp-google-search-console Скилл для работы с Google Search Console из терминала: сравнение периодов, быстрые победы, каннибализация запросов и разбор просадок трафика. CX Codex +1 511установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой