/claude-2x-statusline:onboardingfrom claude-2x-statusline
Guides users through selecting which AI-CLI providers (Codex, Antigravity, Copilot, GLM, Droid) appear in the statusline, with auth detection and validation.
Ships in claude-2x-statusline. 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.
Pick WHICH providers show in the statusline. claude is always implicit (the
Claude rate-limit line); external providers are everything else. Additive and
re-runnable — the single command to add / remove / re-check a provider.
Present the trio first, then the extras. Never offer to remove Claude.
Read ~/.claude/statusline-config.json. If missing → tell the user the
install is incomplete, point to /statusline-init, stop.
Determine the current selection to pre-check: providers.selected (minus
claude) if present, else the enabled providers under external_providers.
Detect existing auth (read-only, cache-preferring, never prompts):
python3 -c "import sys, os, json; sys.path.insert(0, os.path.expanduser('~/.claude/cc-2x-statusline/lib')); from onboarding import detect_all_auth; p=os.path.expanduser('~/.claude/statusline-config.json'); cfg=json.load(open(p)) if os.path.exists(p) else {}; print(json.dumps(detect_all_auth(cfg)))"
Statuses: ok (detected) · missing (needs auth) · unknown (probe errored).
AskUserQuestion multi-select — trio first (label them "מומלץ"), extras after.
Apply atomically (build ['claude', <chosen in shown order>...]):
python3 -c "import sys, os; sys.path.insert(0, os.path.expanduser('~/.claude/cc-2x-statusline/lib')); from onboarding import apply_selection; apply_selection(os.path.expanduser('~/.claude/statusline-config.json'), ['claude','codex','antigravity'])"
apply_selection writes providers.selected, mirrors it into
external_providers.<p>.enabled (so the Node/Bash engines keep working with
no code change), and auto-sets tier (multi-cli for 2+ providers).
Auth stage (Phase 2). For each selected provider, confirm it actually
authenticates with a bounded probe (validate_provider → ok/unauth/
missing/unknown). Only card the providers that are NOT ok:
python3 -c "import sys, os, json; sys.path.insert(0, os.path.expanduser('~/.claude/cc-2x-statusline/lib')); from onboarding import validate_provider; p=os.path.expanduser('~/.claude/statusline-config.json'); cfg=json.load(open(p)) if os.path.exists(p) else {}; print(validate_provider('codex', cfg))"
For each non-ok provider, drive the matching card (Hebrew-first, English
terms) with AskUserQuestion, then re-run validate_provider to confirm:
codex login בטרמינל אחר, ואז המשיכו."antigravity-usage login (או פתחו את אפליקציית Antigravity / ה-IDE), ואז המשיכו."store_glm_key היא ברירת המחדל המומלצת כי hook/render processes בדרך כלל לא טוענים shell rc files, ולכן ZAI_API_KEY/ZHIPU_API_KEY עלולים לא להופיע בזמן רינדור. העבירו את המפתח דרך משתנה סביבה זמני (לא בתוך ה--c) והריצו:
ZAI_KEY='PASTE_THE_KEY' python3 -c "import sys, os; sys.path.insert(0, os.path.expanduser('~/.claude/cc-2x-statusline/lib')); from onboarding import store_glm_key; err=store_glm_key(os.path.expanduser('~/.claude/statusline-config.json'), os.environ.get('ZAI_KEY','')); print(err or 'OK — key validated, saved to the OS keychain, plaintext removed from config')"
store_glm_key validates the key first; on failure it prints an error and
stores nothing (retry or skip). On success the key lives only in the
keychain/secret store — never in the config file or chat. Resolution order:
OS keychain / secret store → ZAI_API_KEY → ZHIPU_API_KEY →
external_providers.glm.api_key (legacy/plaintext) →
~/.codex/providers.env.gh auth login, ואז בחרו מצב: individual לרוב המשתמשים, או org לבריכת ארגון." במצב individual לא צריך לשמור token או cap; במצב org בקשו org slug ו-cap חודשי חיובי, ושמרו אותם ב-external_providers.copilot.org וב-external_providers.copilot.cap יחד עם mode: "org" (אפשר גם pool להצגה). אם validate_provider('copilot', cfg) מחזיר missing, חסר gh או שחסרים org/cap למצב org.A provider that stays non-ok after its card is fine — the selection is kept
and the statusline shows a dim no data — /statusline-onboarding row until it
authenticates. Never abort the wizard on one failed provider.
Close with: "נשמר. הפעילו מחדש את Claude Code כדי לטעון את ה-cockpit. הריצו
/statusline-onboarding שוב מתי שתרצו כדי להוסיף / להסיר / לחבר מחדש provider."
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nadav-fux/claude-2x-statusline --plugin claude-2x-statusline5 skills in this plugin
/fullSwitch to Full TierSwitch statusline to full tier with dashboard. Use when user says 'statusline full', 'full statusline', 'statusline dashboard', 'show rate limits', or 'full mode'./minimalSwitch to Minimal TierSwitch statusline to minimal tier. Use when user says 'statusline minimal', 'basic statusline', 'simple statusline', or 'minimal mode'./setupStatusline SetupSet up the claude-2x-statusline. Use when user says 'statusline setup', 'install statusline', 'configure statusline', or 'set up status line'.Other plugins' skills for the same job