chrome-to-apple-passwords
This skill should be used when migrating saved passwords from Chrome or another Chromium browser (Chrome Beta, Arc, Brave, Edge, Vivaldi) into Apple Passwords…
by glebis★ 417 GitHub stars
Install chrome-to-apple-passwords in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Chrome → Apple Passwords
Move a Chromium browser's passwords into Apple Passwords with filtering, a check after import, and a backup of anything Apple skipped, so nothing is lost when the browser is wiped.
Default: the user runs the wizard, not you
The whole migration is a deterministic script with prompts. Recommend it first, and only take the agent path below if the user declines:
python3 -I ${CLAUDE_SKILL_DIR}/scripts/pwmigrate.py wizard
Tell the user to run it in their own terminal (Terminal.app, or the app's Terminal panel), not through your Bash tool. The wizard refuses to run without a TTY, and the hook denies it from Bash. With the wizard, no agent sees hostnames, usernames or any step's output, and every decision is the user's. Your role is then to explain steps and answer questions. Don't ask them to paste output back.
Hard rules (agent path)
- Never read, print, grep or
cata CSV that contains passwords. Use onlyscripts/pwmigrate.py, whose output shows host and username only. Do not open exports with Read. The.tsvreports (report.tsv,reconcile.tsv) hold only status, host and username, so read them freely. - These rules are enforced by the hooks in this skill's frontmatter (
scripts/guard.py), with no model involved:- Read/Grep/Edit/Write on the work dir (except
.tsv), on password exports, or on age keys is denied. - A Bash command that mentions the work dir, Downloads,
.csv,.ageor pwmigrate must be a plainpython3 -I …/pwmigrate.py <subcommand> …: no pipes, redirects, env prefixes or substitutions. - While password files exist, any other Bash command is denied once, with the exact command to run instead: the same command piped through a filter that replaces each known password with
[REDACTED]. Run that command as given. It is allowed, and the permission check sees exactly what runs. - If a password still reaches any tool result, the session is stopped and the user is told which hosts are affected.
- Don't try to work around a denial; it means the step belongs to the script or to the user.
- Read/Grep/Edit/Write on the work dir (except
- Every subcommand runs itself under macOS
sandbox-exec: no network except DNS forfilter --dns, no reads in the home folder outside the files named, writes only to the work dir and named outputs, and owner-only files (umask 077). Never setPWMIGRATE_SANDBOX=offyourself. - All plaintext stays in the script's work directory (
$TMPDIR/chrome-to-apple-passwords, mode 700, must be a real dir you own; override withPWMIGRATE_DIR). Move exports into it withingestimmediately; never copy them anywhere else. - Never wipe the browser before
reconcilesays SAFE TO WIPE and every unpreserved row is backed up. - Exports, imports and the browser wipe need the user's OS password, so the user does them. Give exact menu paths; do not automate them.
- Remind the user that Trash does not destroy files: they must empty the Trash themselves.
Asking the user
Before each decision point, check whether cenno is available (an mcp__cenno__ask_user tool, or command -v cenno). If it is, ask through cenno, one question at a time. Otherwise use AskUserQuestion. Keep each question self-contained: name the counts and examples it is about.
Workflow
Run the script as python3 -I scripts/pwmigrate.py <cmd> (path relative to this skill).
1. Preflight
init. It creates the work dir and reports dig, age, trash. If age is missing, offer brew install age or plan for the tagged fallback in step 6. Ask which browser is in use; only the export page URL differs (see references/apple-import-quirks.md).
2. Export both sides (user)
- Apple Passwords → File → Export All Passwords → Downloads.
- Browser →
chrome://password-manager/settings(or the browser's equivalent) → Export passwords → Downloads.
ingest <file> each one. The format is detected from the header; the first Apple export becomes apple-before.csv. Exporting Apple Passwords first is what lets the filter drop entries Apple already has.
3. Filter
Privacy check first: --dns sends every saved hostname (no usernames, no passwords) to a DNS resolver, which reveals which sites the user has accounts on. Ask before using it, offering three choices: Cloudflare 1.1.1.1 (default, most reliable), --resolver system (the Mac's own resolver, usually the ISP's or the router's), or no DNS check at all (run filter without --dns; dead sites then get imported, which is harmless).
filter [--dns [--resolver system]] (add --keep-hosts F / --drop-hosts F, one host per line, to override). The filter drops:
| reason | meaning |
|---|---|
| empty-password, android-app, no-host | not usable as website logins |
| local, single-label, public-ip | localhost, .local, bare nas, raw server IPs |
| duplicate, already-in-apple | identical host + username + password |
| dns-dead | NXDOMAIN, or the host exists but has no address (via the chosen resolver). Timeouts nev |
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- .skillspector-baseline.yaml
- references/apple-import-quirks.md
- scripts/guard.py
- scripts/pwmigrate.py
- scripts/selftest.sh
FAQ
What does the chrome-to-apple-passwords skill do?
This skill should be used when migrating saved passwords from Chrome or another Chromium browser (Chrome Beta, Arc, Brave, Edge, Vivaldi) into Apple Passwords / iCloud Keychain on macOS. It filters out junk and dead sites before import, keeps router and LAN logins, checks after import that every entry actually arrived, backs up whatever Apple skipped into an age-encrypted file, and only then lets the browser's passwords be wiped. Never prints passwords. Triggers on "move my Chrome passwords to Keychain", "import passwords into Apple Passwords", "clean up Chrome passwords", "migrate from Chrome password manager", "delete passwords from Chrome after importing".
How do I install the chrome-to-apple-passwords skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the chrome-to-apple-passwords skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…