Onboarding
Guide the user to choose which AI-CLI providers appear in the statusline cockpit (Claude + Codex/Antigravity/Copilot/GLM/Droid). Use after install/update, or when the user wants to add, remove, or re-check a provider.From its SKILL.md
npx -y skills add Nadav-Fux/claude-2x-statusline --skill onboardingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 22 stars22 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.6 KB, as published. Nobody here has run it
Statusline Onboarding — Provider Selection
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.
Grouping
- Primary trio (מומלץ / recommended): Claude · Codex · Antigravity.
- Extras: Copilot · GLM · Droid.
Present the trio first, then the extras. Never offer to remove Claude.
Steps
-
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(minusclaude) if present, else the enabled providers underexternal_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). -
AskUserQuestionmulti-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_selectionwritesproviders.selected, mirrors it intoexternal_providers.<p>.enabled(so the Node/Bash engines keep working with no code change), and auto-setstier(multi-clifor 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 NOTok: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-
okprovider, drive the matching card (Hebrew-first, English terms) withAskUserQuestion, then re-runvalidate_providerto confirm:- codex — Codex CLI · דרוש login: "הריצו
codex loginבטרמינל אחר, ואז המשיכו." - antigravity — Antigravity · דרוש login: "הריצו
antigravity-usage login(או פתחו את אפליקציית Antigravity / ה-IDE), ואז המשיכו." - glm — z.ai key: בקשו מהמשתמש את מפתח ה-z.ai (get it at https://z.ai). אל תדפיסו את המפתח. שמירה דרך
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_keyvalidates 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. - copilot — GitHub Copilot: "הריצו
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. - droid — Factory Droid: "התקינו/הפעילו את Factory Droid והתחילו session אחד, ואז המשיכו."
A provider that stays non-
okafter its card is fine — the selection is kept and the statusline shows a dimno data — /statusline-onboardingrow until it authenticates. Never abort the wizard on one failed provider. - codex — Codex CLI · דרוש login: "הריצו
-
Close with: "נשמר. הפעילו מחדש את Claude Code כדי לטעון את ה-cockpit. הריצו
/statusline-onboardingשוב מתי שתרצו כדי להוסיף / להסיר / לחבר מחדש provider."