auth-environments
Sign Claude Code in to a chosen Claude subscription on every linked T3 fleet host (grok-bot, beep-worker, dankserver, tbk-worker, tom-pc-1-wsl). Use when a Claude account hits its weekly limit, when `bun run beep accounts` shows the fleet's account used up, or on `/auth-environments`. Opens each host's OAuth page and a masked KDE code dialog together and verifies the admitted account.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 80
- Forks
- 14
01 前言 Front Matter
- name
- auth-environments
- metadata
- { "status": "active" }
- description
- Sign Claude Code in to a chosen Claude subscription on every linked T3 fleet host (grok-bot, beep-worker, dankserver, tbk-worker, tom-pc-1-wsl). Use when a Claude account hits its weekly limit, when `bun run beep accounts` shows the fleet's account used up, or on `/auth-environments`. Opens each host's OAuth page and a masked KDE code dialog together and verifies the admitted account.
- compatibility
- KDE Plasma with kdialog and Bun on the workstation, plus the canonical fleet SSH wrappers on its PATH.
02 资源文件 2
- 脚本scripts/auth_env.test.ts1.6 KB
- 脚本scripts/auth_env.ts10.7 KB
03 SKILL.md 正文
Auth environments
Moves the Claude Code login on the fleet hosts to an account with quota left. Claude only: it is the one provider with several subscriptions. The script does the SSH, OAuth and code handoff. You pick the account and watch the result.
1. Pick the account
bun run beep accounts # weekly headroom per Claude account
bun .claude/skills/auth-environments/scripts/auth_env.ts status
status lists the account each host is signed in to now. Choose the account
with the most weekly headroom; if it is not obvious, ask the operator with
AskUserQuestion. Leave the local DankStation login alone unless the operator
asks: a local switch is plain claude auth login.
The browser decides the account. The OAuth page admits whichever claude.ai
account the default browser is signed in to; --email is only a hint. Before
the login run, tell the operator which account the browser must hold. If it
holds a different one, they either switch it or pick that account instead.
2. Log in
bun .claude/skills/auth-environments/scripts/auth_env.ts login --email <account>
Run it in the foreground with a long timeout (about 25 minutes); it serializes
hosts. Name the hosts or pass --force to limit or repeat the run. For each
host it:
- opens a 1-hour per-host SSH ControlMaster (socket
cm-auth-<host>) through the host's canonical wrapper. YubiKey hosts need one touch per hour, and the script says when. Initializes the dankserver agent if it is missing; - skips a host already on the account;
- starts
claude auth login --claudeaiin a remote PTY and, the moment the URL appears, opens the browser tab and the masked KDE dialog together (plasma-sensitive-entry pipe helper). The operator authorizes and pastes the code into the dialog, and the code goes only to the remote PTY; - reopens both after a rejected code (three attempts in all) and stops on cancel or timeout;
- re-reads
claude auth statusand prints a summary, flagging any host that landed on a different account than requested.
Announce before the run: "a browser tab and a KDE dialog will open per host; touch the YubiKey when it blinks". Never ask for the code in chat.
3. After
- A host flagged
expected <account>signed in with the browser's account. Fix the browser session and rerun with--force <host>. - Running Claude sessions on a host may hold the old token. New T3 threads and turns pick up the new login.
- Logins last about 30 days (
loginExpiresAt); expect to rerun this skill. - Add a newly linked host to
HOSTSin the script with its canonical wrapper. Never put IPs, tailnet names or environment ids here: the repository is public. The routes are in remote-development-agents.
Verification
bun test ./.claude/skills/auth-environments/scripts/auth_env.test.ts
04 同仓库更多 Skills
alchemy-provider
Bring up a new Alchemy cloud provider (its own `@alchemy.run/<provider>` package under packages/<provider>) end to end — credentials, a distilled SDK, resources, bindings, live tests, and the patch loop that feeds live-test failures back into distilled — or extend an existing provider with a new service, or bring an existing provider up to the bar (gap audit, then waves). Use for "add a <X> provider", "create an alchemy provider for <X>", "port <X> to alchemy", "add <service> to the <X> provider", "bring the <X> provider up to par", or any work that needs a distilled SDK plus Alchemy resources tested against a live API.
alchemy-domain
Build backends with @alchemy.run/domain (domain-driven design on Effect) - turn requirements into aggregates, commands, events, rejections, views, policies, sagas, projections, streams, queries, external systems and Apis; lay them out in a monorepo (domain / server / web packages, kind-suffixed files); test them with stories; host them on Durable Objects (Cloudflare, Rivet or Effect Cluster) with alchemy; and drive them from a foldkit frontend. Use when designing or changing an @alchemy.run/domain model, adding a building block, wiring hosting or a frontend, or reviewing such code.
update-harnesses
Update every agent harness on every fleet host: T3 Code, Codex, Claude Code, Grok Build, Kimi Code, Junie, Cursor Agent and Muse on DankStation, beep-worker, dankserver, tbk-worker, tom-pc-1-wsl and the grok-bot VM, plus the desktop apps (ChatGPT and Claude Desktop on DankStation and grok-bot; Cursor and Kimi Desktop on DankStation). Use on `/update-harnesses`, when a harness is out of date somewhere, or to audit which versions and install methods each host runs.
shadcn 技能来源校验
shadcn
用于 shadcn 技能不可变来源(provenance)的固定装置(fixture)。
QA 库存判定
qa-inventory-judge
暂无简介
律师执业环境配置
practice-onboarding
通过业务门户(practice gateway)为律师的执业配置电脑。当律师要求完成设置、连接其文档、邮件、日历或业务工具,或业务门户报告设置未完成时使用该技能。它会一次一个问题地访谈律师,保存执业档案,然后检查并修复电脑,直至设置完成。