node-connect
Skill này làm gì
Skill này xử lý sự cố vì sao ứng dụng Brigade trên Android, iOS hoặc macOS không kết nối được với cổng của nó. Skill dành cho người thiết lập ứng dụng đồng hành và gặp lỗi ghép cặp hoặc kết nối.
Khi nào nên dùng
- ✓Khi mã QR, mã thiết lập hoặc kết nối thủ công với Brigade không thành công.
- ✓Khi ứng dụng chạy được trên Wi-Fi cục bộ nhưng không chạy qua máy chủ từ xa hoặc tailnet.
- ✓Khi bạn thấy lỗi về ghép cặp, thiết bị không được ủy quyền hoặc token đã hết hạn.
Liên kết skill
https://github.com/spinabot/brigade/blob/main/skills/node-connect/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Điện thoại Android của tôi báo cần ghép cặp khi tôi quét mã QR của Brigade. Giúp tôi tìm nguyên nhân.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI trước tiên xác định tuyến kết nối phù hợp, như cùng một máy, Wi-Fi cục bộ, Tailscale hoặc URL công khai. Sau đó AI kiểm tra thiết lập cổng và các yêu cầu ghép cặp đang chờ, và hỏi vài câu ngắn nếu thiết lập chưa rõ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Skill có đoán nguyên nhân không?
Không. Skill hỏi thêm khi thiết lập hoặc thông báo lỗi chưa rõ, thay vì đoán.
Vì sao tuyến kết nối quan trọng?
Lỗi Wi-Fi cục bộ và lỗi máy chủ từ xa cần cách sửa khác nhau, nên skill tách riêng chúng.
Skill kiểm tra gì trước tiên?
Skill kiểm tra chế độ cổng, địa chỉ bind, URL từ xa và thiết lập xác thực, rồi đến dữ liệu thiết lập QR.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 11k
- Vị trí xếp hạng
- #11728
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
1password
11kDạy agent của bạn cài đặt công cụ dòng lệnh 1Password và đăng nhập an toàn, sau đó đọc hoặc chèn các bí mật đã lưu khi cần.
apple-reminders
11kCho phép agent của bạn xem, thêm, sửa, hoàn thành và xóa Apple Reminders từ terminal, gồm danh sách và bộ lọc theo ngày.
bluebubbles
11kCho phép agent của bạn gửi và quản lý iMessage qua BlueBubbles, gồm tin nhắn, tệp đính kèm, biểu cảm tapback, chỉnh sửa và cài đặt nhóm.
camsnap
11kCho phép agent của bạn chụp ảnh, quay clip ngắn hoặc theo dõi chuyển động từ các camera an ninh mạng mà bạn đã thiết lập.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.