# node connectivity summary

> Report num_peers, active and inactive channels, and a short peer sample.

node connectivity summary is a paid AI agent skill on Agensi by agent-bitcoin, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [agent-bitcoin](https://www.agensi.io/creators/agent-bitcoin)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/node-connectivity-summary
- Tags: api, bitcoin, lightning-network, lnd, devops

## About this skill

Connectivity issues on a Lightning node often lead to failed payments and routing bottlenecks. This skill audits an LND node to report peer health, channel status, and graph synchronization.

### What it does
- **Health check** reports basic node info including `num_peers` and graph synchronization status.
- **Channel auditing** separates active from inactive channels to identify connectivity gaps.
- **Peer sampling** extracts a snapshot of up to five connected peers with their aliases or public keys.
- **State safety** reads connection data without altering peer lists or channel states.

### How it works
1. **Initialize client** using the `agent-bitcoin` SDK to attempt a connection to the LND instance.
2. **Retrieve info** by calling `getinfo` to check for wallet locks and basic node stats.
3. **Execute shell commands** via `docker exec` to pull the full peer list from `lncli`.
4. **Format summary** by filtering the raw data into a scannable report of peers and channel counts.

### Frameworks & tools
Built for LND nodes using the `agent-bitcoin` SDK. It interacts with `lncli` within Docker containers and supports both `regtest` and `mainnet` environments.

### Why this beats prompting it yourself
Writing manual scripts to parse `lncli` JSON output is tedious and prone to error when handling locked wallets. This skill handles the environment flags and data filtering automatically, ensuring you only see relevant connectivity metrics without leaking sensitive node secrets.

### Use cases
- Verify node health before initiating large multi-hop payments.
- Monitor channel uptime to identify unstable peers.
- Check graph synchronization status on new node deployments.
- Audit peer aliases to ensure high-quality routing connections.

### Known limitations
Requires an unlocked LND node and specific Docker container naming. No support for modifying peer connections or channel states.

## Requires

- Python 3.10+
- agent-bitcoin package
- unlocked LND node

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the node connectivity summary skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does the Node Connectivity Summary skill improve my Lightning Network operations?

This skill automates the auditing of your LND node's health by parsing complex lncli data into a readable summary, helping you quickly identify inactive channels and routing bottlenecks that cause failed payments.

### Which AI agent frameworks and node configurations are compatible with this skill?

The skill is designed for LND nodes running in Docker environments and utilizes the agent-bitcoin SDK, making it compatible with any AI agent framework that supports this SDK.

### Can this skill be used to automatically open or close channels based on the report?

No, this is a read-only auditing tool designed for state safety; it reports on peer health and channel status without the ability to open, close, or modify your existing connections.

### Are there any specific technical requirements for my LND setup to use this skill?

The node must be unlocked and accessible via a Docker container, as the skill executes commands through the container's shell to retrieve real-time peer aliases and graph data.

### How does this skill handle data privacy and sensitive node information?

Unlike manual prompting, this skill automatically handles environment flags and filters out sensitive node secrets, ensuring you get a clean, actionable report even if your wallet is locked or the environment is complex.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
