Skip to content
Agentmart
Submit a tool

debug-thread-network

Debug and diagnose Thread mesh networks and OpenThread Border Routers.

Skill by emliunix

IndexedGPL-3.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/emliunix-debug-thread-network

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Debug and diagnose Thread mesh networks and OpenThread Border Routers. Use when troubleshooting Thread connectivity, analyzing Router Advertisements, testing IPv6 reachability to Thread devices, inspecting Thread Network Data, or diagnosing Border Router configuration issues.

Use cases: testing, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/debug-thread-network

What's inside

Skill name
debug-thread-network
Description
Debug and diagnose Thread mesh networks and OpenThread Border Routers. Use when troubleshooting Thread connectivity, analyzing Router Advertisements, testing IPv6 reachability to Thread devices, inspecting Thread Network Data, or diagnosing Border Router configuration issues.
License
GPL-3.0
Instructions
234 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts
  • Instructions call the network

Files (10)

  • SKILL.md
  • otbr-api.md · references/
  • router-advertisements.md · references/
  • thread-addressing.md · references/
  • analyze_ra_packet.sh · scripts/
  • decode_thread_netdata.py · scripts/
  • ipv6_diagnostics.sh · scripts/
  • query_otbr_api.sh · scripts/
  • scan_for_otbr.sh · scripts/
  • test_thread_connectivity.sh · scripts/

SKILL.md (first lines)

# Debug Thread Network

Comprehensive toolkit for debugging Thread mesh networks and OpenThread Border Routers.

## Quick Start

Run the main diagnostic script to test connectivity and gather network information:

```bash
scripts/test_thread_connectivity.sh <border-router-ip>
```

Example:
```bash
scripts/test_thread_connectivity.sh 192.168.50.104
```

## Core Scripts

### 1. Thread Connectivity Test (`scripts/test_thread_connectivity.sh`)

**Purpose**: Comprehensive connectivity test for Thread Border Router

**Usage**:
```bash
scripts/test_thread_connectivity.sh <border-router-ip>
```

**What it tests**:
- ICMP reachability (ping)
- HTTP REST API accessibility
- IPv6 Router Advertisement reception
- Thread network status
- Border Router configuration

**Output**: Summary report with pass/fail status for each test

### 2. IPv6 Diagnostics (`scripts/ipv6_diagnostics.sh`)

**Purpose**: Gather complete IPv6 configuration and routing information

**Usage**:
```bash
scripts/ipv6_diagnostics.sh [interface]
```

**Collects**:
- IPv6 addresses on all interfaces
- IPv6 routing table
- Neighbor Discovery cache
- Router Advertisement prefixes
- Default routers

**Output**: Formatted diagnostic report

### 3. Border Router API Query (`scripts/query_otbr_api.sh`)

**Purpose**: Query OpenThread Border Router REST API endpoints

**Usage**:
```bash
scripts/query_otbr_api.sh <border-router-ip> [port]
```

**Endpoints queried**:
- `/get_properties` - Network properties
- `/node_information` - Node details
- `/topology` - Network topology
- `/diagnostics` - Full diagnostic info
- `/node/dataset/active` - Thread credentials

**Output**: JSON responses from each endpoint

### 4. Thread Network Data Decoder (`scripts/decode_thread_netdata.py`)

**Purpose**: Decode Thread Network Data hex string into human-readable format

**Usage**:
```bash
scripts/decode_thread_netdata.py <netdata-hex>
```

Or pipe from API:
```bash
curl -s http://192.168.50.104/diagnostics | \
  jq -r '.[0].NetworkData' | \
  scripts/decode_thread_netdata.py
```

**Decodes**:
- Prefix TLVs with IPv6 prefixes
- Border Router sub-TLVs with flags
- Has Route sub-TLVs
- Service TLVs

**Output**: Structured TLV analysis with prefix flags

### 5. RA Packet Analyzer (`scripts/analyze_ra_packet.sh`)

**Purpose**: Capture and analyze Router Advertisement packets

**Usage**:
```bash
sudo scripts/analyze_ra_packet.sh <interface>
```

**Captures**:
- Router Advertisement packets
- Prefix Information Options (PIO)
- Route Information Options (RIO)
- Router lifetime and flags

**Output**: Parsed RA packet details

## Common Workflows

### Workflow 1: Initial Border Router Discovery

When you know the network but not the border router IP:

From emliunix/home.conf, GPL-3.0.

More from emliunix/home.conf

Signals

Stars
0
Forks
1
Open issues
3
Last commit (this folder)
Jan 13, 2026 (9 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from emliunix

Cite this page

debug-thread-network skill. Agent Mart. https://agentmart.dev/skills/emliunix-debug-thread-network (last updated 2026-10-24)