claude-switch-models-setup
БесплатноЗапускает вложенные скриптыНе проверенIsolates profiles for multi-provider setup and switching models in separate terminal windows (Kimi, MiniMax, DeepSeek, GLM, StepFun, Anthropic). Use for…
от daymade★ 1 556 звёзд на GitHubОб этом скилле
Claude Code Profiles and Local Skill Activation
Overview
This skill creates an isolated-but-shared profile system for Claude Code CLI. Each profile gets its own .claude.json state file (provider credentials and session history) while sharing skills, projects, hook scripts, agents, and installed plugin state across all profiles — and converging each profile's settings.json (hook registration, marketplaces, env feature flags, permissions, preferences) plus the behavior slice of its .claude.json (e.g. workflowSizeGuideline) from the default profile, so the only intended difference between profiles is the model/provider.
The result: you can open one terminal with Kimi, another with DeepSeek, another with Anthropic — each running as a fully independent Claude Code process, without configuration bleed.
For reducing fixed startup context from preloaded MCP tool schemas, read references/mcp-startup-context.md. It owns same-mode measurement, active-profile discovery, provider compatibility checks, reversible server suppression, and fresh-process acceptance.
How It Works
CLAUDE_CONFIG_DIRtells Claude Code CLI which directory to use as its config root.- Each profile lives in
~/.claude-profiles/<name>/with an isolated.claude.json. - Content directories (
skills/,projects/,hooks/,agents/,settings/) are symlinked back to the main~/.claude/directory so you only maintain one copy. Note this shares hook scripts, not hook registration — registration lives in each profile's ownsettings.json(next bullet). - Config layer —
settings.json: each profile has its ownsettings.json(Claude Code treats it as config-dir-local), so everything stored there — hook registration,extraKnownMarketplaces,enabledPlugins,envfeature flags,permissions, behavior preferences — silently drifts the moment it changes in the default profile (measured 2026-07-18: 9/9 real profiles had zero hook registrations).sync-profile-settings.pyis the converger: registered as a SessionStart hook, it copies every key from the default profile'ssettings.jsoninto every profile's, except identity keys (top-levelmodelandadvisorModel— the latter is Anthropic-model routing a third-party endpoint can't serve; and env vars that carry provider routing or Anthropic-native isolation —ANTHROPIC_*,CLAUDE_CODE_SUBAGENT_MODEL,ENABLE_TOOL_SEARCH,DISABLE_GROWTHBOOK/TELEMETRY/AUTOUPDATER— which the provider settings file deliberately sets differently). Withinenv, convergence is two-way for non-identity keys: main's keys overwrite the profile's, and a non-identity key main no longer carries is deleted from the profile and reported (identity keys are exempt — main never carries them, so their absence is not deletion evidence). Profile-only top-level keys are preserved; nested collections inside a key main also has (e.g.permissions.allow,enabledPlugins) converge wholesale to main's value, and any profile-only nested entries dropped that way are listed (count on write, detail under--check) so the loss is visible rather than silent. This is what makes "everything except the model works in every profile" actually hold.- Scope is every profile, in every invocation. No argument-free,
--all, or--checkrun ever covers a subset: all of~/.claude-profiles/*plus$CLAUDE_CONFIG_DIR, every time. A run prints one line per profile it actually changed and nothing when there is no drift — so drift shows up in the session-start output instead of hiding, and a silent session start means converged. A$CLAUDE_CONFIG_DIRthat is unset, empty, or not a profile directory is skipped, never created. - Exit codes: the argument-free run exits 0 unconditionally — it is a session-start hook and never blocks a session, including when a main file is corrupt (it warns, converges nothing, and exits 0, because a corrupt main reads as empty and converging toward empty would strip hooks from every profile).
--checkexits 1 on drift and 2 on a corrupt main file or a profile it could not read;--allwrites and exits 2 on those same two failures — the difference between them is that--checkwrites nothing, not which failures return 2.--check --allis the same audit as--check. One unreadable profile is reported and skipped — it never cancels convergence for the others.
- Scope is every profile, in every invocation. No argument-free,
- State layer —
.claude.jsonbehavior keys:settings.jsonis not the only per-profile config file. Claude Code also keeps a per-profile state file (the main profile's is~/.claude.json; each third-party profile's is<profile>/.claude.json— asymmetric paths, verified on disk), and a few behavior settings live only there (workflowSizeGuideline, notification/UI preferences). On 2026-08-17workflowSizeGuideline: smallexisted only on the main profile and 10/11 third-party profiles had no copy — a Kimi session fanned one Dynamic Wor
Установить claude-switch-models-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл claude-switch-models-setup?
Isolates profiles for multi-provider setup and switching models in separate terminal windows (Kimi, MiniMax, DeepSeek, GLM, StepFun, Anthropic). Use for provider switching, csk/csd/csg aliases, CLAUDE_CONFIG_DIR, ~/.claude-profiles, profile drift (missing skills/hooks, symlinks, settings), context-window setup ([1m], CLAUDE_CODE_MAX_CONTEXT_TOKENS), or reducing startup context from preloaded MCP tool schemas.
Как установить скилл claude-switch-models-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл claude-switch-models-setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic