agentleFS
KrishP147KrishP147/skills/switch/SKILL.md

switch

Skill37 starsChanged 47 days agoMITView on GitHub

Move this conversation to another Claude account (the previous one, or one by name), or set up, add, remove, rename and list accounts.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If it says Python was not found or python3: command not found (on Windows python3 is often a Microsoft Store stub), run this instead, and …

    line 27
  2. Very specific:

    Only on the user's explicit yes in their next message, run the same command with --yes in place of --dry-run:

    line 34
  3. Distinctive:

    Only on the user's explicit yes in their next message:

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pick the branch by the first word of $ARGUMENTS and run only its commands with the Bash tool, exactly as written, no text before the first one.

setup [name] (first-time setup; name is the account you're on, default main): two steps, never one.

  1. Show the changes, then ask "Write these changes? (yes/no)" and stop until the user answers:

    "${CLAUDE_SWITCH_PYTHON:-python3}" "${CLAUDE_SKILL_DIR}/scripts/claude_switch.py" $ARGUMENTS --dry-run

    If it says Python was not found or python3: command not found (on Windows python3 is often a Microsoft Store stub), run this instead, and use python in step 2 too:

    python "${CLAUDE_SKILL_DIR}/scripts/claude_switch.py" $ARGUMENTS --dry-run

    everything is up to date or a refusal (a bad name, a name or dir already taken) ends it here: show the output as is.

  2. Only on the user's explicit yes in their next message, run the same command with --yes in place of --dry-run:

    "${CLAUDE_SWITCH_PYTHON:-python3}" "${CLAUDE_SKILL_DIR}/scripts/claude_switch.py" $ARGUMENTS --yes

    Then tell the user: open a new terminal and start Claude with claude (or claude-<name>); /switch works in sessions started that way. Anything but yes: say nothing was changed and stop.

add <name> [--dir DIR]:

"${CLAUDE_SWITCH_PYTHON:-python3}" "${CLAUDE_SKILL_DIR}/scripts/claude_switch.py" $ARGUMENTS --session "${CLAUDE_SESSION_ID}"

Show its output as is. switching to '<name>' means the launcher ends this session and reopens it on the new account, which asks for a login; add nothing.

rename <old> <new>, list or theme <name> [theme]:

"${CLAUDE_SWITCH_PYTHON:-python3}" "${CLAUDE_SKILL_DIR}/scripts/claude_switch.py" $ARGUMENTS

Show its output as is.

remove <name> [--delete-dir]: two steps, never one.

  1. Show the plan, then ask "Remove as above? (yes/no)" and stop until the user answers:

    "${CLAUDE_SWITCH_PYTHON:-python3}" "${CLAUDE_SKILL_DIR}/scripts/claude_switch.py" $ARGUMENTS --dry-run

    A refusal (the account you're on, the last or first account, an overlapping dir) ends it here.

  2. Only on the user's explicit yes in their next message:

    "${CLAUDE_SWITCH_PYTHON:-python3}" "${CLAUDE_SKILL_DIR}/scripts/claude_switch.py" $ARGUMENTS --yes

    Anything but yes: say nothing was changed and stop.

Anything else (empty or an account name): run this and show its output as is.

"${CLAUDE_SWITCH_PYTHON:-python3}" "${CLAUDE_SKILL_DIR}/scripts/claude_switch.py" request $ARGUMENTS --session "${CLAUDE_SESSION_ID}"
  • Ends with switching to '<name>' → the launcher ends this session and resumes it on that account. Add nothing.
  • Anything else (unknown name with the account list, already on that account, not started by the launcher with setup steps, python not found) → nothing was switched; show the output as is. Python not found means the session wasn't started by the launcher: suggest /switch setup.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.