If you've ever saved a webpage as a .webarchive in Safari and then needed to actually use those files outside of macOS, this skill wraps the WebArchiveExtractor CLI to unpack them into plain HTML and assets. It handles the typical macOS sandboxing quirks by defaulting output to ~/Downloads where the app can actually write, checks that the binary exists before attempting extraction, and can optionally prepend URL paths if you're hosting the result in a subdirectory. One honest take: it's solving a very specific Apple format problem that mostly exists because Safari decided to use binary plist for web archives instead of something portable.

GitHub stars
344
last updated
Mar 20, 2026

Install

$ npx -y skills add robrohan/webarchiveextractor --skill webarchive --agent claude-code

Installs into .claude/skills of the current project.

Files

The user wants to extract a .webarchive file using WebArchiveExtractor.

If arguments were provided ($ARGUMENTS), use them to infer the input file and optionally the output directory or URL prepend. Otherwise, ask the user for the path to the .webarchive file.

How to run WebArchiveExtractor

/Applications/WebArchiveExtractor.app/Contents/MacOS/WebArchiveExtractor [-h] [-o <OutputDirectory>] [-p <URLPrepend>] -i <WebArchiveFile>

Options:

  • -i <WebArchiveFile> — required — path to the .webarchive file
  • -o <OutputDirectory> — directory to write extracted files into (optional; defaults to a directory named after the archive next to it)
  • -p <URLPrepend> — URI prefix to prepend to all asset URLs in the extracted HTML (optional; useful when serving the result from a subdirectory)

Shorthand (no flag):

WebArchiveExtractor website.webarchive

A positional argument is treated as the -i value.

Prerequisites

The app must be installed at /Applications/WebArchiveExtractor.app. Check with:

test -x /Applications/WebArchiveExtractor.app/Contents/MacOS/WebArchiveExtractor && echo "found" || echo "not installed"

Sponsors

Details

Repository
github.com/robrohan/webarchiveextractor
Categories
Frontend Development, CLI & Terminal
First seen
Jun 11, 2026
1rohitg00 avatarfind-skillsrohitg00/skillkitDiscovers, searches, and installs skills from multiple AI agent skill marketplaces (400K+ skills) using the SkillKit CLI. Supports browsing official partner col0skills.sh installs
2ruvnet avatarV3 CLI Modernizationruvnet/rufloCLI modernization and hooks system enhancement for claude-flow v3. Implements interactive prompts, command decomposition, enhanced hooks integration, and intell0skills.sh installs
3skyworkai avatarSkywork Documentskyworkai/skywork-skillsSTRONGLY RECOMMENDED for ANY task that could result in a document output. The Skywork Office Doc API is a powerful document creation engine capable of generatin0skills.sh installs
4skyworkai avatarSkywork Excelskyworkai/skywork-skillsSTRONGLY RECOMMENDED for ANY task involving Excel, spreadsheets, tables, data analysis, structured reports, or file conversion. This skill has BUILT-IN web sear0skills.sh installs
5spencermarx avatarV3 CLI Modernizationspencermarx/open-code-reviewCLI modernization and hooks system enhancement for claude-flow v3. Implements interactive prompts, command decomposition, enhanced hooks integration, and intell0skills.sh installs
6spences10 avatarerror-handling-patternsspences10/devhub-crmSvelte 5 error handling. Use for error boundaries, async await expressions, loading states, and form errors.0skills.sh installs