node-connect
できること
このスキルは、AndroidやiOS、macOSのBrigadeアプリがゲートウェイに接続できない理由を調べます。コンパニオンアプリを設定中に、ペアリングや接続のエラーに遭遇している人向けです。
使う場面
- ✓QRコード、セットアップコード、または手動での接続によるBrigadeへの接続が失敗したとき。
- ✓ローカルのWi-Fiでは動くが、リモートのサーバーやtailnetでは動かないとき。
- ✓ペアリング、未承認のデバイス、期限切れのトークンに関するエラーが表示されたとき。
スキルのリンク
https://github.com/spinabot/brigade/blob/main/skills/node-connect/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“AndroidのスマートフォンでBrigadeのQRコードを読み取ると、「pairing required」と表示されます。原因を一緒に調べてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、まずどの経路が当てはまるか(同じマシン、ローカルのWi-Fi、Tailscale、公開URLなど)を判断します。そのうえで、ゲートウェイの設定と保留中のペアリング要求を確認し、設定が不明確な場合は短い質問をします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Node Connect
Goal: find the one real route from node -> gateway, verify Brigade is advertising that route, then fix pairing/auth.
Topology first
Decide which case you are in before proposing fixes:
- same machine / emulator / USB tunnel
- same LAN / local Wi-Fi
- same Tailscale tailnet
- public URL / reverse proxy
Do not mix them.
- Local Wi-Fi problem: do not switch to Tailscale unless remote access is actually needed.
- VPS / remote gateway problem: do not keep debugging
localhostor LAN IPs.
If ambiguous, ask first
If the setup is unclear or the failure report is vague, ask short clarifying questions before diagnosing.
Ask for:
- which route they intend: same machine, same LAN, Tailscale tailnet, or public URL
- whether they used QR/setup code or manual host/port
- the exact app text/status/error, quoted exactly if possible
- whether
brigade devices listshows a pending pairing request
Do not guess from can't connect.
Canonical checks
Prefer brigade qr --json. It uses the same setup-code payload Android scans.
brigade config get gateway.mode
brigade config get gateway.bind
brigade config get gateway.tailscale.mode
brigade config get gateway.remote.url
brigade config get gateway.auth.mode
brigade config get gateway.auth.allowTailscale
brigade config get plugins.entries.device-pair.config.publicUrl
brigade qr --json
brigade devices list
brigade nodes status
If this Brigade instance is pointed at a remote gateway, also run:
brigade qr --remote --json
If Tailscale is part of the story:
tailscale status --json
Read the result, not guesses
brigade qr --json success means:
gatewayUrl: this is the actual endpoint the app should use.urlSource: this tells you which config path won.
Common good sources:
gateway.bind=lan: same Wi-Fi / LAN onlygateway.bind=tailnet: direct tailnet accessgateway.tailscale.mode=serveorgateway.tailscale.mode=funnel: Tailscale routeplugins.entries.device-pair.config.publicUrl: explicit public/reverse-proxy routegateway.remote.url: remote gateway route
Root-cause map
If brigade qr --json says Gateway is only bound to loopback:
- remote node cannot connect yet
- fix the route, then generate a fresh setup code
gateway.bind=autois not enough if the effective QR route is still loopback- same LAN: use
gateway.bind=lan - same tailnet: prefer
gateway.tailscale.mode=serveor usegateway.bind=tailnet - public internet: set a real
plugins.entries.device-pair.config.publicUrlorgateway.remote.url
If gateway.bind=tailnet set, but no tailnet IP was found:
- gateway host is not actually on Tailscale
If qr --remote requires gateway.remote.url:
- remote-mode config is incomplete
If the app says pairing required:
- network route and auth worked
- approve the pending device
brigade devices list
brigade devices approve --latest
If the app says bootstrap token invalid or expired:
- old setup code
- generate a fresh one and rescan
- do this after any URL/auth fix too
If the app says unauthorized:
- wrong token/password, or wrong Tailscale expectation
- for Tailscale Serve,
gateway.auth.allowTailscalemust match the intended flow - otherwise use explicit token/password
Fast heuristics
- Same Wi-Fi setup + gateway advertises
127.0.0.1,localhost, or loopback-only config: wrong. - Remote setup + setup/manual uses private LAN IP: wrong.
- Tailnet setup + gateway advertises LAN IP instead of MagicDNS / tailnet route: wrong.
- Public URL set but QR still advertises something else: inspect
urlSource; config is not what you think. brigade devices listshows pending requests: stop changing network config and approve first.
Fix style
Reply with one concrete diagnosis and one route.
If there is not enough signal yet, ask for setup + exact app text instead of guessing.
Good:
The gateway is still loopback-only, so a node on another network can never reach it. Enable Tailscale Serve, restart the gateway, run brigade qr again, rescan, then approve the pending device pairing.
Bad:
Maybe LAN, maybe Tailscale, maybe port forwarding, maybe public URL.
よくある質問
原因を推測しますか?
いいえ。設定やエラーメッセージが曖昧な場合は、推測せずに質問をします。
なぜ経路が重要なのですか?
ローカルのWi-Fiの問題とリモートのサーバーの問題では必要な対処が異なるため、このスキルは両者を分けて扱います。
最初に何を確認しますか?
ゲートウェイのモード、バインドアドレス、リモートURL、認証の設定を確認し、その後でQRのセットアップデータを確認します。
詳細
作者による元の説明
Diagnose Brigade node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale, or plugins.entries.device-pair.config.publicUrl.
repo: spinabot/brigade
人気
- GitHubのスター
- 11k
- ランキング
- #11728
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
1password
11kエージェントが、1Passwordのコマンドラインツールを設定し、安全にサインインできるようにしたうえで、必要なときに保存された秘密情報を読み取るか、注入できるよう支援します。
apple-reminders
11kエージェントが、ターミナルからAppleのリマインダーを表示、追加、編集、完了、削除できるよう支援します。リストや日付による絞り込みも含みます。
bluebubbles
11kエージェントが、BlueBubblesを通じてiMessageの送信と管理を行えるよう支援します。テキスト、添付ファイル、タップバックのリアクション、編集、グループ設定を含みます。
camsnap
11kエージェントが、すでに設定済みのネットワーク防犯カメラから、スナップショット、短い動画、動きの監視を行えるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。