[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72W2TE2PA165N0Y3P9TXJZ2":3,"skill-same:01M72W2TE2PA165N0Y3P9TXJZ2":43},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M72W2TE2PA165N0Y3P9TXJZ2","onboard",null,"libz-renlab-ai\u002FMatrix-Viki","libz-renlab-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F277592717?v=4","01M71ENHYC54KKYC8Q3KDYG8S2","01M72W199DPMZF71MDAXQMVEY2",1,"MIT","https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai\u002FMatrix-Viki\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fonboard\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: onboard\ndescription: Remote bootstrap of a new colleague's Mac via SSH — installs Homebrew, Node, and `@anthropic-ai\u002Fclaude-code`, then completes interactive `claude login` over a tmux session whose OAuth URL the human relays to the colleague. Manually invoked via \u002Fonboard only (frontmatter pins `disable-model-invocation: true`), so it never auto-triggers from chat. Use when a teammate needs Claude Code stood up on their Mac and the operator has Tailscale SSH access plus a sudo password the teammate shared out-of-band.\ndisable-model-invocation: true\n---\n\n```\n   you (CC main)\n        |\n        | SSH (ed25519, no password) over Tailscale\n        v\n   colleague's Mac (macOS, IT-provisioned proxy already working)\n        |\n        +-- 1. assert preconditions: ssh ok, curl google ok, sudo via stdin ok\n        |\n        +-- 2. probe state (one shot): brew? node? claude? claude_auth? arch? macos?\n        |\n        +-- 3. reconcile diff only: install what's missing, leave what's already there\n        |\n        +-- 4. claude login (tmux on remote; OAuth opens in colleague's browser)\n        |\n        v\n   verify: brew --version, node --version, claude --version, claude auth status\n        |\n        v\n   tell operator: done. message colleague to use it. remind colleague to rotate sudo pw.\n```\n\n# \u002Fonboard — remote Claude Code bootstrap over SSH\n\nThis skill turns a single SSH-reachable colleague Mac into a working `claude` installation, with the operator (you) supervising from local Claude Code. The skill is invoked manually only — it never auto-triggers, because the failure modes (typing into the wrong machine, leaking sudo, breaking IT's proxy) are too expensive for ambient invocation.\n\n## Inputs the operator must provide\n\nWhen `\u002Fonboard` fires, three pieces of context are required. Ask the operator for any that aren't already in the message.\n\n- `SSH_TARGET`: the SSH destination, e.g. `alice@alice-mbp.tail-scale.ts.net`. This is what every command will tunnel through.\n- `$REMOTE_SUDO_PW`: the colleague's account password, exported as an environment variable in the operator's shell **before** `\u002Fonboard` runs. Reference it as `\"$REMOTE_SUDO_PW\"` in commands; never echo, log, or paste its literal value into the conversation. If it's not exported, stop and ask the operator to export it — do not request the password be typed into chat.\n- `COLLEAGUE_NAME`: human-readable name, used only for the final hand-off message (e.g. \"tell Alice she can run `claude` now\").\n\nWhy required up-front: the reconcile loop is non-interactive once it starts. Pausing mid-install to ask for context guarantees that the operator's attention has already drifted somewhere else, which means a sudo prompt could sit waiting and the colleague's OAuth URL could expire.\n\n## Preconditions — three assertions before any work\n\nRun all three before touching anything. If any fails, stop and report exactly which one and what came back. Do not try to fix the failure yourself — these are IT's responsibility, not the skill's.\n\n```bash\n# 1. SSH key auth works (no password prompt)\nssh -o BatchMode=yes \"$SSH_TARGET\" 'echo ok'\n# expect: ok\n\n# 2. Outbound proxy is working — the colleague can reach the public internet\nssh \"$SSH_TARGET\" 'curl -sf -m 5 https:\u002F\u002Fwww.google.com -o \u002Fdev\u002Fnull && echo ok'\n# expect: ok\n\n# 3. sudo via stdin works (no tty, no logged password)\necho \"$REMOTE_SUDO_PW\" | ssh \"$SSH_TARGET\" 'sudo -S -p \"\" whoami'\n# expect: root\n```\n\nWhy these three and only these three: the entire skill assumes them. SSH gives you a shell, the proxy lets `brew` and `npm` reach their CDNs, and `sudo -S` lets `brew install` finish on systems where it asks for a password. If any of these is broken at the start, every subsequent step will hang or fail in confusing ways.\n\nWhy you must not \"fix\" them: the proxy in particular is configured by the colleague's IT team. Touching it from inside a remote SSH session is a fast way to lock the colleague out of their own working network. Stop and tell the operator who needs to be paged.\n\n## State probe — one SSH call, JSON out\n\nOnce preconditions pass, gather the entire current state in **one** SSH round-trip. Multiple SSH calls are slow and racy.\n\n```bash\nssh \"$SSH_TARGET\" 'bash -s' \u003C\u003C'PROBE'\nset -u\nhave() { command -v \"$1\" >\u002Fdev\u002Fnull 2>&1 && echo true || echo false; }\nver() { command -v \"$1\" >\u002Fdev\u002Fnull 2>&1 && \"$1\" --version 2>&1 | head -n1 || echo \"\"; }\nauth() {\n  command -v claude >\u002Fdev\u002Fnull 2>&1 \\\n    && (claude auth status 2>&1 | grep -qi \"logged in\\|authenticated\" && echo true || echo false) \\\n    || echo false\n}\nproxy() { curl -sf -m 5 https:\u002F\u002Fwww.google.com -o \u002Fdev\u002Fnull && echo true || echo false; }\ncat \u003C\u003CEOF\n{\n  \"arch\": \"$(uname -m)\",\n  \"macos\": \"$(sw_vers -productVersion 2>\u002Fdev\u002Fnull)\",\n  \"brew_present\": $(have brew),\n  \"brew_version\": \"$(ver brew)\",\n  \"node_present\": $(have node),\n  \"node_version\": \"$(ver node)\",\n  \"claude_present\": $(have claude),\n  \"claude_version\": \"$(ver claude)\",\n  \"claude_authenticated\": $(auth),\n  \"proxy_works\": $(proxy)\n}\nEOF\nPROBE\n```\n\nParse the JSON. The next steps are pure diff against the target — nothing else.\n\n## Reconcile target\n\nThe machine is \"done\" when all four of these are true:\n\n- `brew --version` succeeds (Homebrew installed; arm64 path is `\u002Fopt\u002Fhomebrew\u002Fbin\u002Fbrew`, x86_64 path is `\u002Fusr\u002Flocal\u002Fbin\u002Fbrew`)\n- `node --version` succeeds (any reasonable install method — `brew install node`, `nvm`, `fnm`. Pick the simplest available; for a fresh Mac that's `brew install node`)\n- `claude --version` succeeds (`@anthropic-ai\u002Fclaude-code` installed globally via npm)\n- `claude auth status` reports an authenticated session\n\nAnything outside this list is **out of scope** for v1: dotfiles, git config, IDE setup, MCP servers, custom plugins, shell rc tweaks beyond what brew itself adds. Other onboarding skills will layer on top later. Keeping this skill tight is the whole point — it must run end-to-end every time without becoming a god-skill.\n\n## Reconcile, not orchestrate — the working principles\n\nThe skill is intentionally declarative. Restate these to yourself before each run; they're how the skill stays robust to interruptions.\n\n### 1. The machine is the source of truth, not a state file\n\nThere is no `state\u002Fcurrent-session.json`, no `progress.lock`, no resumable journal. Each run probes fresh, computes a diff, and applies only the missing pieces. If the operator restarts CC, if SSH drops, if the colleague closes the laptop lid — re-running `\u002Fonboard` recovers cleanly. Persistent local state would lie about what's actually on the remote.\n\n### 2. One-shot context bundles\n\nEvery state read is one SSH call returning structured output. Don't loop `ssh ... brew --version`, `ssh ... node --version`, `ssh ... claude --version` — that's three round-trips for information that fits in one. The probe script above is the canonical example; extend it rather than splitting it.\n\n### 3. Crime-scene dumps on failure\n\nWhen any command exits non-zero, immediately capture command, stdout, stderr, exit code, and `SSH_TARGET` (no secrets!) to `\u002Ftmp\u002Fonboard-last-fail.json` on the operator's local machine, then stop and ask the human. Do not silently retry. The next `\u002Fonboard` run reads this file first and tells the operator what was unresolved last time.\n\n```json\n{\n  \"when\": \"2026-05-09T14:32:11Z\",\n  \"ssh_target\": \"alice@alice-mbp.tail-scale.ts.net\",\n  \"command\": \"echo \\\"$REMOTE_SUDO_PW\\\" | ssh ... 'sudo -S -p \\\"\\\" brew install node'\",\n  \"exit_code\": 1,\n  \"stdout\": \"...\",\n  \"stderr\": \"Error: ...\",\n  \"phase\": \"install_node\"\n}\n```\n\nWhy dump rather than retry: most failures here are environmental (proxy hiccup, brew formula update mid-flight, npm registry blip) and the operator wants to see the message before deciding whether to retry, switch tactics, or escalate to IT. Silent retry hides signal.\n\n### 4. sudo discipline — non-negotiable\n\nEvery sudo invocation looks like this and only this:\n\n```bash\necho \"$REMOTE_SUDO_PW\" | ssh \"$SSH_TARGET\" 'sudo -S -p \"\" \u003Ccommand>'\n```\n\n- Stdin, not argv (`ps` would leak argv to other users on the colleague's box).\n- Never write the password to disk on either machine.\n- Never edit `\u002Fetc\u002Fsudoers*` to add NOPASSWD — the password approach is good enough and reversible.\n- Never paste the literal password into the chat, log, or commit.\n\n### 5. Decide, don't survey\n\nThe skill makes choices. When there's a fork (e.g. \"node via brew vs nvm\"), pick the simpler one (brew), state the choice in one line, and proceed. Pausing to ask the operator about every default is how a 10-minute job becomes an hour. The operator is supervising from another window and would rather see a finished outcome than a multiple-choice quiz.\n\nIf a decision genuinely deserves human input — destructive, irreversible, or scope-changing — that's what the crime-scene dump and \"stop and ask\" pattern is for. Don't conflate the two.\n\n## The `claude login` flow — the one interactive ritual\n\n`claude login` opens an OAuth browser flow. The browser opens on the **colleague's** Mac (because that's where the user agent is logged into Anthropic's auth provider), not on the operator's. The skill bridges the gap with a tmux session.\n\n```bash\n# 1. Kill any stale `cclogin` session from a prior failed run, then start fresh.\n#    Without this, a stuck session breaks the \"re-run \u002Fonboard recovers cleanly\"\n#    invariant — `tmux new` would silently fail because the name is already taken.\nssh \"$SSH_TARGET\" 'tmux kill-session -t cclogin 2>\u002Fdev\u002Fnull || true'\nssh \"$SSH_TARGET\" 'tmux new -d -s cclogin \"claude login\"'\n\n# 2. Poll the tmux pane for the OAuth URL (typically appears within a few seconds)\nfor i in $(seq 1 30); do\n  pane=$(ssh \"$SSH_TARGET\" 'tmux capture-pane -t cclogin -p 2>\u002Fdev\u002Fnull')\n  url=$(echo \"$pane\" | grep -oE 'https:\u002F\u002F[^[:space:]]+claude\\.ai\u002Foauth\u002F[^[:space:]]+' | head -n1)\n  if [ -n \"$url\" ]; then\n    echo \"OAUTH_URL=$url\"\n    break\n  fi\n  sleep 1\ndone\n```\n\n3. Print the URL into the chat with the operator. Tell the operator literally: \"Send this URL to \u003CCOLLEAGUE_NAME> and ask them to open it in their own Mac's browser, complete login, then tell you 'done'.\"\n\n4. Wait for the operator to confirm the colleague finished. Don't poll the OAuth URL — only the colleague's browser can complete it.\n\n5. Once the operator says \"done\", verify on the remote:\n\n```bash\nssh \"$SSH_TARGET\" 'tmux capture-pane -t cclogin -p' | grep -i 'logged in\\|success\\|authenticated'\nssh \"$SSH_TARGET\" 'tmux kill-session -t cclogin 2>\u002Fdev\u002Fnull || true'\nssh \"$SSH_TARGET\" 'claude auth status'\n# expect: indicates authenticated session\n```\n\n6. If after 10 minutes there's still no success marker in the tmux pane, dump the pane contents to the crime-scene file and ask the operator. The OAuth URL has its own server-side timeout (~15 min); a fresh `\u002Fonboard` will mint a new one cleanly.\n\n## Hard rules — the blacklist\n\nThese are forbidden inside `\u002Fonboard`, regardless of how reasonable they sound in the moment:\n\n- No `rm -rf` outside `\u002Ftmp\u002F`. The colleague's home directory is sacred.\n- No `dscl . -delete`, no `diskutil`, no writes under `\u002FSystem` or `\u002FLibrary\u002FLaunchDaemons`.\n- No edits to `\u002Fetc\u002Fsudoers*`, `\u002Fetc\u002Fhosts`, system network preferences, or system proxy settings. The IT-provisioned proxy must not be \"improved\" from inside this skill.\n- No persisting `$REMOTE_SUDO_PW` to any file, on any machine, in any form.\n- No \"fixing\" anything that broke and was IT's responsibility (proxy, MDM, certificate trust). Stop and ask.\n- No scope creep beyond v1 (dotfiles, IDE plugins, MCP servers, shell themes). They're separate skills.\n\nIf a step seems to require any of the above, stop. The skill is wrong; the situation isn't.\n\n## Completion ritual\n\nOnce `claude auth status` confirms a session, the skill ends with three explicit actions, in this order:\n\n1. Re-run the state probe and paste its JSON output into the chat. The operator should see all four target booleans flip to `true`. This is the receipt.\n2. Tell the operator: \"Tell `\u003CCOLLEAGUE_NAME>` they can now run `claude` on their Mac.\"\n3. Tell the operator: \"Remind `\u003CCOLLEAGUE_NAME>` to rotate their account password — the sudo password we just used was shared over WeChat in plaintext.\"\n\nStep 3 is the one that gets forgotten. The skill must always emit it; it's a security action, not a courtesy.\n\n## What `\u002Fonboard` is not\n\nA short list of things the skill explicitly punts on, in case the operator wonders:\n\n- Not a TeamBrain-specific bootstrap. This skill installs `claude` and that's it. Project setup happens after.\n- Not a remote shell. Don't use `\u002Fonboard` to run arbitrary commands on the colleague's Mac. Open a regular SSH session for that.\n- Not idempotent across machines — it's idempotent against **the same** machine. Running it on a second target requires re-exporting `$REMOTE_SUDO_PW` and re-checking preconditions for the new host.\n- Not a replacement for the colleague reading any internal \"first day at the company\" doc. The skill installs a tool; the human still onboards.\n","```\n   you (CC main)\n        |\n        | SSH (ed25519, no password) over Tailscale\n        v\n   colleague's Mac (macOS, IT-provisioned proxy already working)\n        |\n        +-- 1. assert preconditions: ssh ok, curl google ok, sudo via stdin ok\n        |\n        +-- 2. probe state (one shot): brew? node? claude? claude_auth? arch? macos?\n        |\n        +-- 3. reconcile diff only: install what's missing, leave what's already there\n        |\n        +-- 4. claude login (tmux on remote; OAuth opens in colleague's browser)\n        |\n        v\n   verify: brew --version, node --version, claude --version, claude auth status\n        |\n        v\n   tell operator: done. message colleague to use it. remind colleague to rotate sudo pw.\n```\n\n# \u002Fonboard — remote Claude Code bootstrap over SSH\n\nThis skill turns a single SSH-reachable colleague Mac into a working `claude` installation, with the operator (you) supervising from local Claude Code. The skill is invoked manually only — it never auto-triggers, because the failure modes (typing into the wrong machine, leaking sudo, breaking IT's proxy) are too expensive for ambient invocation.\n\n## Inputs the operator must provide\n\nWhen `\u002Fonboard` fires, three pieces of context are required. Ask the operator for any that aren't already in the message.\n\n- `SSH_TARGET`: the SSH destination, e.g. `alice@alice-mbp.tail-scale.ts.net`. This is what every command will tunnel through.\n- `$REMOTE_SUDO_PW`: the colleague's account password, exported as an environment variable in the operator's shell **before** `\u002Fonboard` runs. Reference it as `\"$REMOTE_SUDO_PW\"` in commands; never echo, log, or paste its literal value into the conversation. If it's not exported, stop and ask the operator to export it — do not request the password be typed into chat.\n- `COLLEAGUE_NAME`: human-readable name, used only for the final hand-off message (e.g. \"tell Alice she can run `claude` now\").\n\nWhy required up-front: the reconcile loop is non-interactive once it starts. Pausing mid-install to ask for context guarantees that the operator's attention has already drifted somewhere else, which means a sudo prompt could sit waiting and the colleague's OAuth URL could expire.\n\n## Preconditions — three assertions before any work\n\nRun all three before touching anything. If any fails, stop and report exactly which one and what came back. Do not try to fix the failure yourself — these are IT's responsibility, not the skill's.\n\n```bash\n# 1. SSH key auth works (no password prompt)\nssh -o BatchMode=yes \"$SSH_TARGET\" 'echo ok'\n# expect: ok\n\n# 2. Outbound proxy is working — the colleague can reach the public internet\nssh \"$SSH_TARGET\" 'curl -sf -m 5 https:\u002F\u002Fwww.google.com -o \u002Fdev\u002Fnull && echo ok'\n# expect: ok\n\n# 3. sudo via stdin works (no tty, no logged password)\necho \"$REMOTE_SUDO_PW\" | ssh \"$SSH_TARGET\" 'sudo -S -p \"\" whoami'\n# expect: root\n```\n\nWhy these three and only these three: the entire skill assumes them. SSH gives you a shell, the proxy lets `brew` and `npm` reach their CDNs, and `sudo -S` lets `brew install` finish on systems where it asks for a password. If any of these is broken at the start, every subsequent step will hang or fail in confusing ways.\n\nWhy you must not \"fix\" them: the proxy in particular is configured by the colleague's IT team. Touching it from inside a remote SSH session is a fast way to lock the colleague out of their own working network. Stop and tell the operator who needs to be paged.\n\n## State probe — one SSH call, JSON out\n\nOnce preconditions pass, gather the entire current state in **one** SSH round-trip. Multiple SSH calls are slow and racy.\n\n```bash\nssh \"$SSH_TARGET\" 'bash -s' \u003C\u003C'PROBE'\nset -u\nhave() { command -v \"$1\" >\u002Fdev\u002Fnull 2>&1 && echo true || echo false; }\nver() { command -v \"$1\" >\u002Fdev\u002Fnull 2>&1 && \"$1\" --version 2>&1 | head -n1 || echo \"\"; }\nauth() {\n  command -v claude >\u002Fdev\u002Fnull 2>&1 \\\n    && (claude auth status 2>&1 | grep -qi \"logged in\\|authenticated\" && echo true || echo false) \\\n    || echo false\n}\nproxy() { curl -sf -m 5 https:\u002F\u002Fwww.google.com -o \u002Fdev\u002Fnull && echo true || echo false; }\ncat \u003C\u003CEOF\n{\n  \"arch\": \"$(uname -m)\",\n  \"macos\": \"$(sw_vers -productVersion 2>\u002Fdev\u002Fnull)\",\n  \"brew_present\": $(have brew),\n  \"brew_version\": \"$(ver brew)\",\n  \"node_present\": $(have node),\n  \"node_version\": \"$(ver node)\",\n  \"claude_present\": $(have claude),\n  \"claude_version\": \"$(ver claude)\",\n  \"claude_authenticated\": $(auth),\n  \"proxy_works\": $(proxy)\n}\nEOF\nPROBE\n```\n\nParse the JSON. The next steps are pure diff against the target — nothing else.\n\n## Reconcile target\n\nThe machine is \"done\" when all four of these are true:\n\n- `brew --version` succeeds (Homebrew installed; arm64 path is `\u002Fopt\u002Fhomebrew\u002Fbin\u002Fbrew`, x86_64 path is `\u002Fusr\u002Flocal\u002Fbin\u002Fbrew`)\n- `node --version` succeeds (any reasonable install method — `brew install node`, `nvm`, `fnm`. Pick the simplest available; for a fresh Mac that's `brew install node`)\n- `claude --version` succeeds (`@anthropic-ai\u002Fclaude-code` installed globally via npm)\n- `claude auth status` reports an authenticated session\n\nAnything outside this list is **out of scope** for v1: dotfiles, git config, IDE setup, MCP servers, custom plugins, shell rc tweaks beyond what brew itself adds. Other onboarding skills will layer on top later. Keeping this skill tight is the whole point — it must run end-to-end every time without becoming a god-skill.\n\n## Reconcile, not orchestrate — the working principles\n\nThe skill is intentionally declarative. Restate these to yourself before each run; they're how the skill stays robust to interruptions.\n\n### 1. The machine is the source of truth, not a state file\n\nThere is no `state\u002Fcurrent-session.json`, no `progress.lock`, no resumable journal. Each run probes fresh, computes a diff, and applies only the missing pieces. If the operator restarts CC, if SSH drops, if the colleague closes the laptop lid — re-running `\u002Fonboard` recovers cleanly. Persistent local state would lie about what's actually on the remote.\n\n### 2. One-shot context bundles\n\nEvery state read is one SSH call returning structured output. Don't loop `ssh ... brew --version`, `ssh ... node --version`, `ssh ... claude --version` — that's three round-trips for information that fits in one. The probe script above is the canonical example; extend it rather than splitting it.\n\n### 3. Crime-scene dumps on failure\n\nWhen any command exits non-zero, immediately capture command, stdout, stderr, exit code, and `SSH_TARGET` (no secrets!) to `\u002Ftmp\u002Fonboard-last-fail.json` on the operator's local machine, then stop and ask the human. Do not silently retry. The next `\u002Fonboard` run reads this file first and tells the operator what was unresolved last time.\n\n```json\n{\n  \"when\": \"2026-05-09T14:32:11Z\",\n  \"ssh_target\": \"alice@alice-mbp.tail-scale.ts.net\",\n  \"command\": \"echo \\\"$REMOTE_SUDO_PW\\\" | ssh ... 'sudo -S -p \\\"\\\" brew install node'\",\n  \"exit_code\": 1,\n  \"stdout\": \"...\",\n  \"stderr\": \"Error: ...\",\n  \"phase\": \"install_node\"\n}\n```\n\nWhy dump rather than retry: most failures here are environmental (proxy hiccup, brew formula update mid-flight, npm registry blip) and the operator wants to see the message before deciding whether to retry, switch tactics, or escalate to IT. Silent retry hides signal.\n\n### 4. sudo discipline — non-negotiable\n\nEvery sudo invocation looks like this and only this:\n\n```bash\necho \"$REMOTE_SUDO_PW\" | ssh \"$SSH_TARGET\" 'sudo -S -p \"\" \u003Ccommand>'\n```\n\n- Stdin, not argv (`ps` would leak argv to other users on the colleague's box).\n- Never write the password to disk on either machine.\n- Never edit `\u002Fetc\u002Fsudoers*` to add NOPASSWD — the password approach is good enough and reversible.\n- Never paste the literal password into the chat, log, or commit.\n\n### 5. Decide, don't survey\n\nThe skill makes choices. When there's a fork (e.g. \"node via brew vs nvm\"), pick the simpler one (brew), state the choice in one line, and proceed. Pausing to ask the operator about every default is how a 10-minute job becomes an hour. The operator is supervising from another window and would rather see a finished outcome than a multiple-choice quiz.\n\nIf a decision genuinely deserves human input — destructive, irreversible, or scope-changing — that's what the crime-scene dump and \"stop and ask\" pattern is for. Don't conflate the two.\n\n## The `claude login` flow — the one interactive ritual\n\n`claude login` opens an OAuth browser flow. The browser opens on the **colleague's** Mac (because that's where the user agent is logged into Anthropic's auth provider), not on the operator's. The skill bridges the gap with a tmux session.\n\n```bash\n# 1. Kill any stale `cclogin` session from a prior failed run, then start fresh.\n#    Without this, a stuck session breaks the \"re-run \u002Fonboard recovers cleanly\"\n#    invariant — `tmux new` would silently fail because the name is already taken.\nssh \"$SSH_TARGET\" 'tmux kill-session -t cclogin 2>\u002Fdev\u002Fnull || true'\nssh \"$SSH_TARGET\" 'tmux new -d -s cclogin \"claude login\"'\n\n# 2. Poll the tmux pane for the OAuth URL (typically appears within a few seconds)\nfor i in $(seq 1 30); do\n  pane=$(ssh \"$SSH_TARGET\" 'tmux capture-pane -t cclogin -p 2>\u002Fdev\u002Fnull')\n  url=$(echo \"$pane\" | grep -oE 'https:\u002F\u002F[^[:space:]]+claude\\.ai\u002Foauth\u002F[^[:space:]]+' | head -n1)\n  if [ -n \"$url\" ]; then\n    echo \"OAUTH_URL=$url\"\n    break\n  fi\n  sleep 1\ndone\n```\n\n3. Print the URL into the chat with the operator. Tell the operator literally: \"Send this URL to \u003CCOLLEAGUE_NAME> and ask them to open it in their own Mac's browser, complete login, then tell you 'done'.\"\n\n4. Wait for the operator to confirm the colleague finished. Don't poll the OAuth URL — only the colleague's browser can complete it.\n\n5. Once the operator says \"done\", verify on the remote:\n\n```bash\nssh \"$SSH_TARGET\" 'tmux capture-pane -t cclogin -p' | grep -i 'logged in\\|success\\|authenticated'\nssh \"$SSH_TARGET\" 'tmux kill-session -t cclogin 2>\u002Fdev\u002Fnull || true'\nssh \"$SSH_TARGET\" 'claude auth status'\n# expect: indicates authenticated session\n```\n\n6. If after 10 minutes there's still no success marker in the tmux pane, dump the pane contents to the crime-scene file and ask the operator. The OAuth URL has its own server-side timeout (~15 min); a fresh `\u002Fonboard` will mint a new one cleanly.\n\n## Hard rules — the blacklist\n\nThese are forbidden inside `\u002Fonboard`, regardless of how reasonable they sound in the moment:\n\n- No `rm -rf` outside `\u002Ftmp\u002F`. The colleague's home directory is sacred.\n- No `dscl . -delete`, no `diskutil`, no writes under `\u002FSystem` or `\u002FLibrary\u002FLaunchDaemons`.\n- No edits to `\u002Fetc\u002Fsudoers*`, `\u002Fetc\u002Fhosts`, system network preferences, or system proxy settings. The IT-provisioned proxy must not be \"improved\" from inside this skill.\n- No persisting `$REMOTE_SUDO_PW` to any file, on any machine, in any form.\n- No \"fixing\" anything that broke and was IT's responsibility (proxy, MDM, certificate trust). Stop and ask.\n- No scope creep beyond v1 (dotfiles, IDE plugins, MCP servers, shell themes). They're separate skills.\n\nIf a step seems to require any of the above, stop. The skill is wrong; the situation isn't.\n\n## Completion ritual\n\nOnce `claude auth status` confirms a session, the skill ends with three explicit actions, in this order:\n\n1. Re-run the state probe and paste its JSON output into the chat. The operator should see all four target booleans flip to `true`. This is the receipt.\n2. Tell the operator: \"Tell `\u003CCOLLEAGUE_NAME>` they can now run `claude` on their Mac.\"\n3. Tell the operator: \"Remind `\u003CCOLLEAGUE_NAME>` to rotate their account password — the sudo password we just used was shared over WeChat in plaintext.\"\n\nStep 3 is the one that gets forgotten. The skill must always emit it; it's a security action, not a courtesy.\n\n## What `\u002Fonboard` is not\n\nA short list of things the skill explicitly punts on, in case the operator wonders:\n\n- Not a TeamBrain-specific bootstrap. This skill installs `claude` and that's it. Project setup happens after.\n- Not a remote shell. Don't use `\u002Fonboard` to run arbitrary commands on the colleague's Mac. Open a regular SSH session for that.\n- Not idempotent across machines — it's idempotent against **the same** machine. Running it on a second target requires re-exporting `$REMOTE_SUDO_PW` and re-checking preconditions for the new host.\n- Not a replacement for the colleague reading any internal \"first day at the company\" doc. The skill installs a tool; the human still onboards.\n",{},"main","2ff5f3d80eff5adb8e7166cfb1182707e8098af2",".claude\u002Fskills\u002Fonboard",0,"https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai\u002FMatrix-Viki","https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai","2026-05-20 13:23:26",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add libz-renlab-ai\u002FMatrix-Viki --skill onboard",{"tool":35,"command":36},"bunx","bunx skills add libz-renlab-ai\u002FMatrix-Viki --skill onboard",{"tool":38,"command":39},"pnpm","pnpm dlx skills add libz-renlab-ai\u002FMatrix-Viki --skill onboard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai\u002FMatrix-Viki\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fonboard\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":17},"01M72W66NEM357BYZZ2KQWKMK5","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai\u002FMatrix-Viki\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":17},"01M72W64QAPK9T1R0PQAA5FVGP","triage","Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.","https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai\u002FMatrix-Viki\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":17},"01M72W62GXS5BKZ9HDKWGT8R9C","to-prd","Turn the current conversation context into a PRD and publish it to the project issue tracker. Use when user wants to create a PRD from the current context.","https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai\u002FMatrix-Viki\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fto-prd\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":17},"01M72W60EP8VC16C50PXYXJC5D","to-issues","Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.","https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai\u002FMatrix-Viki\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Fto-issues\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":17},"01M72W5V80MPEMH126EPFRMYM5","reverification","By-hand only — DO NOT auto-trigger. When the user types \u002Freverification (or asks\nfor \"reverify this\", \"independent verification\", \"LLM-uncheatable check\",\n\"第三方再验证\", \"用 repo 之外的方法验证\"), re-verify recently-completed work\nusing verification methods that **existed before this repo existed** and that an\nLLM agent cannot fabricate. Pick 3-5 verifications from a 10-family menu\n(hardware \u002F cryptographic \u002F blockchain \u002F external real-system \u002F mathematical \u002F\ntemporal \u002F content authenticity \u002F physical \u002F network \u002F third-party trust),\ndispatch them via real tools that capture raw evidence, and report PASS \u002F FAIL \u002F\nINCONCLUSIVE based ONLY on captured evidence — never on internal reasoning.\nRefuse to fall back on TeamBrain's bespoke verifiers (judge harness, fastprobe,\n\u002Freview, feature-verification gates) because those did NOT exist before the repo.","https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai\u002FMatrix-Viki\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Freverification\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":8,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":17},"01M72W5RB0B7C5YWPMYQFQBTFP","repo-issues-status","TeamBrain 仓库**全量 issue 全景**报告（all-scope only）。仅当用户问\"status of all issues\" \u002F \"show me all issues\" \u002F \"what issues are open\" \u002F \"all open issues\" \u002F \"issue 状态（全景）\" \u002F \"所有 issue 状态\" \u002F \"issue 全景\" \u002F \"仓库 issue 概览\" \u002F \"还有哪些 open issue\" 这类**仓库级、多 issue、概览类**问题时触发。**不要在以下情况触发**：(a) 用户问单个 issue 的状态（\"what's the status of issue","https:\u002F\u002Fgithub.com\u002Flibz-renlab-ai\u002FMatrix-Viki\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002Frepo-issues-status\u002FSKILL.md",[],[]]