/claude-skills:source-snapshotfrom claude-skills
Fetches external pages, docs, or API results once and stores them as pinned, provenance-stamped snapshots for reproducible offline access by agents. Guides when to snapshot vs. live fetch and which extractor to use.
Ships in claude-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The core move: separate retrieval from consumption. Retrieve once,
deterministically, into a pinned artifact with provenance. Then agents and the LLM read
the artifact, never the live source. Same input → same artifact → same downstream
behavior. Live WebFetch/MCP on every run is the non-determinism you're removing.
| Situation | Do |
|---|---|
| Fact gates a decision and is reused (docs, registry data, schemas, versions) | Snapshot to a pinned artifact, commit it |
| One-off exploration, throwaway lookup | Fetch live (WebFetch, MCP, c7search) — no artifact |
| Value changes the build output if it drifts (IaC generation, pinned deps) | Snapshot + pin a version; refresh on a cadence, never live-per-run |
If you find yourself fetching the same URL/endpoint across runs, that's the signal to snapshot it.
defuddle (the old defuddle-cli
is deprecated, "merged into defuddle"; same parse … --md interface). The producer
resolves a runner automatically (installed defuddle binary → pnpm dlx defuddle →
bunx → npx defuddle) and never pins @latest, so a cached package is reused instead
of re-downloaded. If no prose extractor is available, it falls back to markitdown.
Don't hand-write an npx …@latest call — that forces a reinstall and is blocked
outright in pnpm-enforced environments.<script>/<style>; nav,
sidebar, and footer chrome come through). For a prose article you want the boilerplate
gone, which is exactly what a main-content extractor does. That's the only reason
defuddle is preferred here — not any inability of markitdown to read web pages.markdown-converter skill
(markitdown). Structure — headings, tables, links — is the part you'll cite, so
preserve it rather than flattening to prose.registry-snapshot.json the verifier checks by
key beats a page it matches by string. Prefer the source's cached/offline mode (e.g. a
cached provider schema) over a live call where one exists.args — the
clock is unavailable mid-run, so pass timestamps in).git diff — a snapshot diff is how you
see upstream drift.For Markdown artifacts, a YAML front-matter block:
---
source_url: https://...
retrieved_at: 2026-06-11T00:00:00Z # passed in; do not invent
extractor: markitdown 0.x | defuddle | readability
content_sha256: <hash of the normalized body>
pinned_version: "1.2.3" # for versioned sources (registry, package)
---
For JSON artifacts, the same fields under a top-level "_provenance" key. Provenance is
what makes a snapshot auditable and a citation trustworthy.
make refresh-* target
that re-snapshots and commits. The diff is the changelog.scripts/snapshot.pyA stdlib-only helper that makes the routing above resilient — it detects which extractors are actually installed, picks one by content type, falls back when the preferred is missing, and fails cleanly (exit 1, structured error) when none can handle the type — it never crashes or fabricates.
Run it by its absolute path — it lives in this skill's base directory (announced when the
skill loads, usually ~/.claude/skills/source-snapshot); a bare snapshot.py won't resolve
from the repo you're working in. It's stdlib-only, so uv or python3 both work. Define a
srcsnap function at the start of each command block (a function passes arguments correctly
under bash and zsh — a plain $VAR doesn't word-split in zsh — and shell state doesn't persist
between tool calls, so re-declare it per block):
# uv is the preferred runner; resolve it even when it's not on a bare PATH (non-interactive
# shells often drop ~/.local/bin or the Homebrew bin -> `uv: command not found`):
UV="$(command -v uv || ls "$HOME/.local/bin/uv" "$HOME/.cargo/bin/uv" /opt/homebrew/bin/uv /usr/local/bin/uv 2>/dev/null | head -1)"
srcsnap() { "$UV" run python "$HOME/.claude/skills/source-snapshot/scripts/snapshot.py" "$@"; }
# uv not installed? It's stdlib-only, so plain python3 works too:
# srcsnap() { python3 "$HOME/.claude/skills/source-snapshot/scripts/snapshot.py" "$@"; }
# Decide what would be used, without fetching (deterministic):
srcsnap --format json plan --content-type prose
# Force availability for tests/CI (or to preview a leaner box):
srcsnap --have markitdown plan --content-type prose # -> markitdown (fell back)
srcsnap --have none plan --content-type prose # -> exit 1, clean error
# Extract + write a provenance-stamped artifact:
srcsnap run https://example.com/post --content-type prose --out snapshots/post.md
srcsnap run report.pdf --content-type doc --out snapshots/report.md
Preference: prose → defuddle > readability > markitdown; doc → markitdown.
markitdown is the most reliable fallback (works via uvx 'markitdown[all]' even with no
local install). For defuddle the producer auto-resolves the runner and the verified CLI
shape (defuddle parse {src} --md); you only need an env override for a custom install or
a different prose tool ({src} = source slot):
# Usually unnecessary — the producer already finds defuddle. Override only for a custom path:
export SNAPSHOT_DEFUDDLE_CMD="defuddle parse {src} --md"
export SNAPSHOT_READABILITY_CMD="readable {src}"
Tip — kill the startup friction for good: install defuddle once so it's a PATH binary
and never re-resolves: pnpm add -g defuddle (gives the defuddle command; use the
defuddle package, not the deprecated defuddle-cli). The producer then uses it directly;
no dlx/npx, no per-run download.
Resilience is covered by evals/ (the no-markitdown / no-defuddle matrix) — run
cd evals && uv run python grade.py.
Snapshots are fact-verifier's tier-1 sources: a committed registry-snapshot.json
or cached doc lets it cite snapshot.json:line deterministically and offline, instead of
hitting the network and hoping. Build the retriever once; reuse the artifact across many
agent runs. See docs/agent-fleet-architecture.md.
retrieved_at or a CLI invocation — pass timestamps in; verify commands.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
snapshot, offline, reproducibility, web-fetch, documentation
npx claudepluginhub kevin-burns/claude-skills --plugin claude-skills32 skills in this plugin
/adr-authorWrite or amend an architecture decision record (ADR) that a team will want to read and that names exactly what it decides: the modules, functions, paths or settings, and what must or must never happen. Asks whether the decision deserves a record, interviews briefly, follows the repo's existing ADR format and numbering, shows the draft before writing, and self-checks it (hedged decisions, names missing from the code, status and supersede links). Also amends or supersedes a record when the code turned out to be right. Use for "write an ADR", "record this decision", "document the architecture decision we made", "turn this into a decision record", "supersede ADR 4", "our ADR no longer matches the code", or a one-off exception to an existing ADR. Does not judge code against records, and does not make the decision. General prose and docs are clear-and-human./azadvertizerOffline lookups over AzAdvertizer's published Azure data: Policy, policy initiative and RBAC role metadata with cross-references found nowhere else in one place (which roles a policy uses, which initiatives include a policy, which policies use a role), plus Entra ID roles, API permissions (Microsoft Graph and other first-party apps) and resource types with their latest API versions. Use whenever accurate current facts about an Azure built-in policy, initiative, RBAC or Entra role, Graph permission or resource API version are needed for Azure IaC, governance or landing-zone work./business-planBuild an honest, investor-credible business plan from a founder's idea: full plan, one-page summary and a short investor pitch, as editable Markdown. Use to plan, pitch or pressure-test a venture: "write a business plan for my idea", "is this worth building", size a market, competitor teardown, go-to-market, 3-year financials, "should I raise". Cites sources, computes from the user's assumptions, never invents a number, and ends with a go / no-go / reshape verdict./c7searchLook up current, version-correct documentation and code examples for any library, framework or API through Context7 (the `c7search` CLI) instead of answering from memory. Use whenever the user asks how to use a library, wants a current code example, asks for the current or latest API or signature, or the answer may have changed since the training cutoff, even if they never name Context7./clear-and-humanWrite, review or rewrite prose so it reads like a specific human wrote it, not an AI: docs, READMEs, runbooks, ADRs, PR and commit messages, blog and LinkedIn posts, emails, Slack, video scripts. Use to humanize or de-slop AI text, check whether a draft "sounds like AI", tighten it, or match the user's voice. Neutral and factual; never invents specifics. Persuasive marketing copy is hook-and-human; a CV or LinkedIn profile is cv-and-human./convert-to-webpConvert images (PNG, JPG, etc.) to WebP format. Use when saving screenshots or images for web projects, Hugo sites, or any context where WebP is preferred.Other plugins' skills for the same job