/ouroboros-skills:cswapfrom ouroboros-skills
Keep several Claude Code accounts working unattended with claude-swap (cswap) — install it, turn on automatic switching, read its account labels, re-log a lapsed account, and watch it so a dead login is caught days early. Use when setting up cswap, when an account shows "token expired" or "re-login needed", when auto-switch did not switch, or when the user asks why an account stopped working.
Ships in ouroboros-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.
None: SKILL.md is the whole skill.
claude-swap (cswap) rotates Claude Code between several accounts when one nears its usage limit. The point is set-and-forget: it should switch on its own, overnight, with nobody watching. This skill keeps it that way.
uv tool install --force "claude-swap[menubar]" # 1.0.0 or later
cswap menubar --install-service --auto-switch # macOS: start at login, auto-switch on
cswap menubar --service-status # must say running, auto-switch on
Auto-switch is off by default. Before 1.0.0 the only switch was a menu toggle, and a fresh install switched nothing. The menu bar reads that setting only at launch, so rerun --install-service --auto-switch after any reinstall.
Add each account once: sign in to Claude Code as that account, then cswap add.
Label in cswap list or the menu bar | Meaning | Action |
|---|---|---|
| usage percentages | healthy | none |
token expired | the short-lived access token ran out; cswap or Claude Code renews it | none; it clears on the next read (minutes) |
re-login in 5d … | the login itself lapses soon | re-log before then (below) |
re-login needed | the login lapsed or was revoked | re-log now (below) |
Every Claude Code login has a fixed end date, about four weeks after the sign-in (refreshTokenExpiresAt; cswap list --json shows it as loginExpiresAt). Renewing the access token never moves that date; only a fresh login does. Accounts signed in on the same day lapse within a day of each other. So a dead account is usually its scheduled lapse, not a cswap bug: compare the death time with loginExpiresAt before debugging cswap.
cswap add-token registers a long-lived claude setup-token login instead. Check that usage still reads for it before relying on it, because auto-switch is blind to an account whose usage it cannot read.
/logout between accounts. It revokes the login cswap is holding for the other slots.claude auth login --claudeai --email <account email>. It prints an authorize URL and waits for a code on stdin. To feed the code later from an agent, run it as tail -f code.txt | claude auth login … and append the code to code.txt.code.txt).cswap add, then cswap list: the account shows usage again and a new loginExpiresAt.The emailed code expires after 10 minutes.
Run a periodic check (launchd, cron, every 10 minutes) that:
cswap auto --once if the active account is spent (98% or more) while another account is below 90%: auto-switch should have moved it already;loginExpiresAt, and immediately on re-login needed, once per login;cswap call as "unknown, try next time", not as a failure, because cswap is slow on a loaded machine.~/.claude-swap-backup/claude-swap.log. Look for Switched from account, Auto-switch error, invalid_grant.~/.claude-swap-backup/menubar_settings.json (auto_switch_enabled).~/.claude-swap-backup/cache/usage.json (lastError, authDeadStrikes per account).cswap list --json for machine-readable state.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (ourostack/ouroboros-skills) — no native marketplace selected
npx claudepluginhub p/ourostack-ouroboros-skills11 skills in this plugin
/book-fetchSearch for ebooks on libgen, download EPUBs, and optionally deliver them to an e-reader or Calibre library. Infrastructure-agnostic — discovers the user's setup at runtime./designDesign and build production-grade frontend interfaces from scratch. Covers the full workflow from context gathering through visual direction, implementation, and polish. Use when creating new pages, components, or design systems — not just auditing existing UI./dragon-huntRun an adversarial end-to-end bug hunt across product, backend, auth, data, integrations, MCP/agent surfaces, and deployment assumptions. Use when the user wants Codex to find, prove, fix, test, and log every reachable defect before declaring a system ready./frontend-designCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics./linkedin-profileAuthor and publish a complete LinkedIn profile that reads like the operator, not like a model: goal, audience model, verbatim voice capture, fold-first drafting, section-by-section locks (About, Headline, Experience, Featured, Skills, small fields), browser publishing with character-level verification, then a rubric audit loop. Invoke when the user asks to refresh, rewrite, audit, or fix their LinkedIn profile or any section of it. Do NOT invoke for LinkedIn posts/content strategy, or for resumes (different artifact, different rules)./product-clonerClone the look, feel, and behavior of an existing application (especially desktop, Electron, or web apps) by reading its shipped source as ground truth instead of guessing. Use when the user says make X look or behave exactly like Y, clone Typora or Notion or Linear, or pushes back that a parity attempt does not match. Covers locating the source of truth (app bundle CSS and JS, plists, defaults read, beautified minified bundles, the DOM template), pinning the user's active variant, extracting a complete source-grounded spec (visual tokens, DOM and feature inventory, behavior defaults, string inventory), implementing against the spec, and verifying against the reference. Keeps the IP line clear by reading shipped artifacts to extract facts and reimplementing originally.