connectivity-triage
Skill này làm gì
Công cụ này giúp tìm ra lý do internet trên máy Mac của bạn hoặc một ứng dụng cụ thể không hoạt động. Nó dùng các công cụ đơn giản để kiểm tra xem vấn đề nằm ở mạng nội bộ, DNS (dịch vụ chuyển tên website thành địa chỉ IP), đường truyền tới website, hay bản thân website.
Khi nào nên dùng
- ✓Khi một website hoặc ứng dụng không tải được.
- ✓Khi internet chậm hoặc hay bị rớt.
- ✓Khi bạn không chắc vấn đề nằm ở máy tính hay ở internet.
Liên kết skill
https://github.com/wshobson/agents/blob/main/plugins/incident-response/skills/connectivity-triage/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
“Internet của tôi chậm và website X không tải được.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ chạy các lệnh kiểm tra từng phần của kết nối, như mạng nội bộ, phân giải tên miền và đường đi tới đích. Nó thu thập thông tin mà không thay đổi bất kỳ thiết lập nào.
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.
Connectivity Triage
Localize an active connectivity failure without changing network configuration. Collect the smallest useful evidence set, distinguish observations from inference, and stop when the fault domain is clear enough for the next safe action.
When to Use This Skill
Use this workflow when a macOS endpoint has an active symptom such as:
- an API, website, or MCP service timing out or disconnecting;
- DNS lookup failures or inconsistent name resolution;
- packet loss, latency, or unstable interactive traffic;
- an application that appears offline while other traffic works;
- uncertainty about whether the problem is local, upstream, or at the service.
This is a diagnostic workflow, not a remediation workflow. Do not change interface state, DNS settings, VPN/firewall configuration, or remote service state while establishing the fault domain.
Fast Decision Flow
Work from the symptom toward the narrowest discriminating check:
symptom
-> local link / LAN evidence
-> DNS configuration and resolution
-> destination reachability
-> path quality
-> application / service timing
-> fault-domain assessment
Stop early when the evidence is already sufficient. Do not run every probe mechanically.
1. Define the symptom
Record the affected application or process, destination hostname or URL, when the failure started, whether it is continuous or intermittent, and whether unrelated destinations still work.
If the symptom is application-specific, preserve the exact hostname or URL the application uses. Testing an unrelated public site can establish general connectivity but cannot prove the affected service is healthy.
2. Check local-link / LAN evidence
When available, run a bounded networkQuality sample for a broad responsiveness and throughput signal. If networkQuality is unavailable, continue; it is optional.
If a known local gateway or same-LAN target is available, compare a short bounded ping sample to that local target with a short sample to the remote destination. Do not invent a gateway address. If no local target is known, leave the LAN segment unproven and continue.
Useful pattern:
ping -c 5 <known-local-target>
ping -c 5 <destination>
3. Separate DNS configuration from DNS behavior
Inspect the system resolver state, especially when VPNs, split DNS, or scoped resolvers may be involved:
scutil --dns
Then test the destination name directly with a bounded DNS query:
dig +time=2 +tries=1 <hostname>
Treat these as different evidence. scutil --dns shows resolver configuration; dig shows query behavior. A successful lookup does not prove the returned endpoint is reachable.
4. Test reachability and path quality
Use a short ping sample when ICMP is a useful signal:
ping -c 5 <destination>
If the hostname resolves, test the returned address separately only when doing so helps distinguish DNS behavior from path failure. If resolution currently fails, use an address only when it was previously observed from trustworthy incident evidence; otherwise leave address-level reachability unknown.
Use a bounded numeric traceroute when path visibility would reduce uncertainty:
traceroute -n -q 1 -m 20 <destination>
A silent or changing hop is an observation, not proof that the hop is broken. Routers may filter or rate-limit traceroute traffic while forwarding application traffic normally.
5. Inspect the affected application's live network activity
When the problem is process-specific, use a bounded nettop capture rather than watching indefinitely:
nettop -n -L 3 -p <process-name-or-pid>
Use it to confirm whether the process is opening connections, which endpoints it is using, and whether traffic is flowing. Lack of visible activity may mean the application never attempted the connection; it does not by itself identify why.
6. Time the application path
For HTTP(S), use curl phase timing against the actual affected endpoint when a safe read-only request is available. Confirm the incident-supplied endpoint is a complete http:// or https:// URL, preserve its original scheme, and pass the URL as one quoted argument rather than interpolating arbitrary incident text into the shell command:
curl -sS -o /dev/null \
-w 'dns=%{time_namelookup} connect=%{time_connect} tls=%{time_appconnect} ttfb=%{time_starttransfer} total=%{time_total}\n' \
…
Câu hỏi thường gặp
Công cụ này có thay đổi thiết lập mạng của tôi không?
Không, quy trình này chỉ dùng để chẩn đoán và thu thập thông tin. Nó không thay đổi cấu hình mạng, DNS hay VPN nào.
“Fault domains” là gì?
Đó là các nguyên nhân tiềm ẩn của vấn đề, như mạng nội bộ, DNS, đường đi tới máy chủ, hoặc chính máy chủ hoặc ứng dụng.
Sau khi dùng công cụ này tôi nên làm gì?
Công cụ giúp xác định nguyên nhân có khả năng nhất. Với thông tin này, bạn có thể thực hiện bước an toàn tiếp theo, như liên hệ nhà cung cấp internet hoặc bộ phận hỗ trợ của ứng dụng.
Chi tiết
Mô tả gốc của tác giả
Use this skill when debugging active macOS connectivity failures, when an API or MCP service times out or disconnects, when DNS resolution is failing or inconsistent, or when video calls or other interactive traffic show packet loss or latency. Isolate local-LAN, DNS, upstream-path, and remote-service/application fault domains with built-in, non-destructive tools.
repo: wshobson/agents
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6708
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
screen-reader-testing
41kGiúp agent của bạn kiểm thử website bằng trình đọc màn hình để đảm bảo chúng có thể truy cập được.
wcag-audit-patterns
41kGiúp agent của bạn kiểm toán website về khả năng truy cập và sửa các vấn đề theo hướng dẫn WCAG.
multi-reviewer-patterns
41kCho phép agent của bạn điều phối các đợt rà soát mã song song, loại bỏ phát hiện trùng lặp và tổng hợp báo cáo.
parallel-debugging
41kCho phép agent gỡ lỗi các vấn đề phức tạp bằng cách điều tra song song và phân tích nguyên nhân gốc.
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.