Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

lightning-cln

БесплатноБез исполняемых скриптовНе проверен

Core Lightning (CLN, formerly c-lightning) by Blockstream: lightningd, lightning-cli, plugin architecture (Python pyln-client, Rust cln-plugin, Go…

claude-dev-suiteот claude-dev-suite★ 51 звезда на GitHub

Об этом скилле

Core Lightning (CLN)

CLN is the second most-deployed Lightning implementation, by Blockstream. Strong focus on protocol leadership (often first to ship BOLT updates).

Versioning and releases

CalVer since v22.11 (November 2022): vYY.MM majors, vYY.MM.N point releases, vYY.MMrcN candidates. There is no semver "1.0".

Release line as of September 2026:

  • v26.06 "Quantum-Resistant Lightning Channel" (2026-06-02) is the current major; v26.06.7 (2026-08-28) is the current point release.
  • v26.04 "Negative Routing Fees" (2026-04-20).
  • v25.12 "Boltz's Seamless Upgrade Experience" (2025-12-04).
  • v25.09 "Hot Wallet Guardian" (2025-09-02).

Pin a release tag, not a branch. rc builds are for signet/regtest.

Security releases and embargoes

CLN will ship signed binaries before it publishes the source. v26.06.7 (2026-08-28) was an emergency security release whose source was withheld under a 14-day embargo; the embargo lifted and the source was published 2026-09-11. Operators were expected to upgrade on the binary, before they could read the diff.

  • Practical consequence: an upgrade process that can only build from source cannot patch during an embargo. Keep a binary-install path.
  • Verify what you install — every release carries a signed manifest:
    sha256sum -c SHA256SUMS-v26.06.7 --ignore-missing
    gpg --verify SHA256SUMS-v26.06.7.asc SHA256SUMS-v26.06.7
    
  • Docker tags are not automatically trustworthy across a security release. Between 2026-08-28 and 2026-09-01 the v26.06.7 and latest images reported the new version but did not contain the fixes — CI had built them from a placeholder tag. Pin by digest and re-check:
    docker image inspect elementsproject/lightningd:v26.06.7 \
      --format '{{index .RepoDigests 0}}'
    
  • The v26.06.7 notes explicitly attribute the rising volume and pace of vulnerability reports to increasingly capable AI models being pointed at open-source code. Budget for more frequent security point releases.

connect is the trust boundary, not fundchannel

Concrete example, disclosed by Erick Cestari (write-up posted to Delving Bitcoin 2026-08-27) and reported in Bitcoin Optech #421 (2026-09-04): a peer that merely completed the BOLT8 handshake — no channel, no funds at stake — could flood ping messages asking for the largest legal pong reply (BOLT1 caps byteslen at 65531) while never reading its own TCP socket. connectd applied no backpressure to locally-handled messages, so the outgoing queue grew until the node was OOM-killed — one connection was enough against a 2GB-RAM test node. query_channel_range over a maximal block range is the same bug by another route, so rate-limiting ping alone was never the fix. Fixed by PR #8525, the last change in v25.09 (2025-09-02); releases before that are vulnerable.

Treat every peer that can complete a handshake as hostile, and rate-limit or firewall inbound 9735 if the node does not need public inbound.

Components

  • lightningd — daemon.
  • lightning-cli — CLI client.
  • Plugins — extend functionality (Python, Rust, Go, JS, anything that speaks JSON-RPC over stdin/stdout).
  • commando — built-in plugin for HTTP-RPC access (CLN's macaroon equivalent).

Configuration

~/.lightning/config or per-network ~/.lightning/<network>/config:

network=bitcoin
bitcoin-rpcuser=...
bitcoin-rpcpassword=...
bitcoin-rpcport=8332
alias=mynode
rgb=ff0000
log-level=info
fee-base=1000
fee-per-satoshi=1
log-file=/var/log/lightningd.log
plugin=/path/to/plugin.py

Network selection: --network=bitcoin|testnet|signet|regtest.

Plugin architecture

CLN plugins are executable files that:

  • Read JSON-RPC messages on stdin.
  • Write responses on stdout.
  • Implement getmanifest to declare hooks, methods, options, notifications.

Lifecycle:

  1. lightningd spawns plugin.
  2. Plugin sends getmanifest reply.
  3. lightningd sends init with config.
  4. Plugin handles incoming methods, hooks, notifications.

Python plugin (pyln-client)

from pyln.client import Plugin
plugin = Plugin()

@plugin.method("hello")
def hello(name):
    return {"message": f"Hello {name}"}

@plugin.subscribe("invoice_payment")
def on_payment(invoice_payment, **kwargs):
    print(f"Got payment: {invoice_payment}")

plugin.run()

Hooks (intercept and modify)

  • htlc_accepted — examine incoming HTLC, decide forward/fail/resolve.
  • peer_connected — accept/reject incoming connections.
  • db_write — augment DB writes.
  • commitment_revocation — capture commitment revocations.

Notifications (read-only events)

  • channel_opened, channel_state_changed.
  • invoice_payment, invoice_creation.
  • forward_event, sendpay_success, sendpay_failure.

RPC API

lightning-cli <method> <args>. JSON-RPC over Unix socket (~/.lightning/<network>/lightning-rpc).

Common commands

lightning-cli getinfo
lightning-cli newaddr p2tr
lightning-cli c
Полный SKILL.md на GitHub

Установить lightning-cln в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob

FAQ

Что делает скилл lightning-cln?

Core Lightning (CLN, formerly c-lightning) by Blockstream: lightningd, lightning-cli, plugin architecture (Python pyln-client, Rust cln-plugin, Go glightning), commando, BOLT12 leadership, xpay/askrene payments. USE WHEN: integrating with CLN, writing plugins, debugging CLN-specific behaviour, leveraging BOLT12 features, migrating payments from pay to xpay.

Как установить скилл lightning-cln?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл lightning-cln запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить lightning-cln с