Skip to content
check-lightning logo

/check-lightning

check-lightning

Audit Lightning Network integration. Checks node health, channel balances, peer connectivity, invoice handling, and routing. Use when: reviewing Lightning setup, diagnosing payment failures, or capacity planning. Keywords: lightning, lnd, cln, channels, invoices, bolt11.

SKILL.md

Full skill instructions

/​check-lightning

Audit Lightning integration. Output findings as structured report.

What This Does

  1. Check node sync status
  2. Check channel balances (inbound/​outbound)
  3. Audit peer connectivity
  4. Verify invoice generation
  5. Review payment routing success rate
  6. Check watchtower configuration
  7. Output prioritized findings (P0-P3)

This is a primitive. It only investigates and reports. Use /​log-lightning-issues to create GitHub issues or /​fix-lightning to fix.

Process

1. Node Sync Status (lncli getinfo)

# LND: node info + sync status
lncli --network=testnet getinfo

# CLN alternative
lightning-cli getinfo

2. Channel Balance (inbound/​outbound liquidity)

# Channel balances + local/​remote liquidity
lncli --network=testnet channelbalance
lncli --network=testnet listchannels

# On-chain wallet balance
lncli --network=testnet walletbalance

# CLN alternative
lightning-cli listfunds
lightning-cli listchannels

3. Peer Connectivity

# Peers connected?
lncli --network=testnet listpeers

# CLN alternative
lightning-cli listpeers

4. Invoice Generation

# Create test invoice (bolt11)
lncli --network=testnet addinvoice --amt 1000 --memo "healthcheck"

# List invoices
lncli --network=testnet listinvoices --max_invoices 5

# CLN alternative
lightning-cli invoice 1000 "healthcheck" "healthcheck"
lightning-cli listinvoices

5. Payment Routing Success Rate

# Forwarding history (route success)
lncli --network=testnet fwdinghistory --max_events 50

# Recent payments
lncli --network=testnet listpayments --max_payments 20

# CLN alternative
lightning-cli listforwards
lightning-cli listpays

6. Watchtower Configuration

# Watchtower info (LND)
lncli --network=testnet tower info 2>/​dev/​null || echo "No tower info (watchtower off?)"
lncli --network=testnet listtowers 2>/​dev/​null | head -5

# CLN alternative
lightning-cli listwatchtowers 2>/​dev/​null | head -5

7. Deep Audit

Spawn lightning-auditor agent for comprehensive review:

  • Channel policy sanity (fees, cltv deltas)
  • Route liquidity vs payment sizes
  • Invoice expiry + preimage handling
  • Peer reliability and channel age
  • Backup + recovery posture

Output Format

## Lightning Audit

### P0: Critical (Payment Failures)
- Node not synced - Cannot route or pay
- No inbound liquidity - Invoices cannot be paid
- Watchtower disabled on public node

### P1: Essential (Must Fix)
- Peers disconnected or flapping
- High failure rate in forwarding history
- Invoice generation failing (bolt11 invalid)

### P2: Important (Should Fix)
- Low outbound liquidity - Payments often fail
- Fee policy too high for routes
- No channel backups verified
- No monitoring for stuck HTLCs

### P3: Nice to Have
- Optimize channel mix for inbound capacity
- Add more diverse peers
- Track success rate over time

## Current Status
- Sync: Unknown
- Liquidity: Unknown
- Peers: Unknown
- Invoices: Unknown
- Routing: Unknown
- Watchtower: Unknown

## Summary
- P0: 2 | P1: 3 | P2: 4 | P3: 3
- Recommendation: Fix sync + inbound liquidity before routing work

Priority Mapping

GapPriority
Node not syncedP0
No inbound liquidityP0
Watchtower off on public nodeP0
Peer instabilityP1
Routing failuresP1
Invoice generation brokenP1
Low outbound liquidityP2
Fee policy too highP2
Missing channel backupsP2
Optimization workP3

Related

  • /​log-lightning-issues - Create GitHub issues from findings
  • /​fix-lightning - Fix Lightning issues
  • /​lightning - Full Lightning lifecycle management
  • /​check-bitcoin - Bitcoin on-chain audit
  • /​check-btcpay - BTCPay Server audit
  • /​check-payments - Multi-provider payment audit

More Finance & Trading skills

ponytail-debt logo
Finance & Trading

ponytail-debt

Harvest every `ponytail:` comment in the codebase into a debt ledger, so the deliberate shortcuts and deferrals ponytail leaves behind get tracked instead of rotting into "later means never". One-shot report, changes nothing.

155.5K 27.9K
View
stripe-integration logo
Finance & Trading

stripe-integration

Stripe payment processing with checkout sessions, subscriptions, webhooks, and customer management.

40.2K 12.9K
View

Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow analysis, and scenario planning for early-stage startups. Use this skill when creating financial projections, calculating burn rate or runway, modeling fundraising scenarios, or preparing investor-r...

40.2K 12K
View
stock-analysis logo
Finance & Trading

stock-analysis

Stock and cryptocurrency analysis with portfolio management and multi-dimensional scoring.

46 11.9K
View
coinglass logo
Finance & Trading

coinglass

Real-time crypto derivatives positioning, whale tracking, liquidations, and institutional ETF flows across 37 specialized tools.

27 11.5K
View

Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.

40.2K 10.5K
View

Finance AI tools

C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Finalle.ai logo
Finance

Finalle.ai

Stay Ahead with Finalle.ai: The Ultimate Financial News and Tools Platform

Free
View

AI-powered Pine Script code generator for TradingView

Paid
View
TradeUI logo
Finance

TradeUI

Empower your investment strategies with AI signals, option flow data, and advanced chart patterns.

Paid
View
D
Finance

Danelfin

Danelfin review covering its AI stock and ETF scores, rankings, portfolio tools, current pricing, strengths, risks, and alternatives for investors.

Freemium
View
E
Finance

Ellisense

A software for comprehensive market sentiment analysis.

Paid
View

'Stock Correlations' App by Freshly.ai: Reveal Stock Patterns and Trends

Free
View