lightning-splicing
Channel splicing: splice-in (adding capacity) and splice-out (withdrawing) without closing the channel. Replaces "close and reopen" with one splice tx. USE WHEN: increasing/decreasing channel capacity in production, designing dynamic-balance LSP integrations, planning channel lifecycle.
What this skill does
# Lightning Splicing Splicing modifies a channel's funding tx (and capacity) **without** closing the channel. Atomic: previous channel state continues with new funding output. Pre-splicing, capacity changes meant close + reopen, costing two on-chain txs and disrupting payment flow. ## Mechanics A splice transaction: - Spends the **current** channel's funding output. - Adds new inputs (splice-in) or outputs (splice-out). - Creates a new funding output with updated capacity. - Both parties sign. Channel state continues: existing HTLCs, balances, fees all remain. After confirmation, the **new** funding output becomes the channel's anchor, and the next commitment uses the new total. ## Splice-in (adding liquidity) ``` inputs: funding_output (old) # previous channel funding external_input_1, ..., external_input_n # new BTC from on-chain wallet outputs: funding_output_new (capacity = old + added) change (any leftover from external inputs) ``` Use case: top up a channel that's nearly empty without disrupting ongoing payments. ## Splice-out (withdrawing) ``` inputs: funding_output (old) outputs: funding_output_new (capacity = old - withdrawn) withdrawal_output (your on-chain address) ``` Use case: reduce channel capacity, get on-chain funds without closing. ## Combined splice ``` inputs: funding_output (old) add_1, ..., add_n outputs: funding_output_new withdrawal_1, ..., withdrawal_m change ``` Both directions in one tx. ## Protocol (BOLT 2 splice draft) Messages: - `splice_init` — proposing a splice. - `splice_ack` — accepting. - Then standard `tx_*` messages from BOLT 2 dual-funding (re-used): `tx_add_input`, `tx_add_output`, `tx_remove_*`, `tx_complete`. - `tx_signatures` exchange. - New commitment based on new funding output. ## Confirmation After broadcast, both parties watch chain: - Old commitment txs become **invalid** (they spend the now-spent funding output). - Once new funding output has `min_depth` confirmations, the splice is "locked in". - Pre-splice commitments are no longer valid; only new commitments. During confirmation gap, both old and new states are conceptually "live" — payments can flow through, but if the splice tx fails to confirm (RBF'd / reorg'd / dropped), the channel reverts to pre-splice commitments. ## Splice + Lightning at the same time While splice tx is unconfirmed: - Channel can still process HTLCs. - New commitment txs are based on new funding outpoint. - If the splice fails to confirm, in-flight payments must be reconciled via channel_reestablish. ## Implementation status (late 2025) | Implementation | Splice | |----------------|--------| | CLN | Production support | | Eclair | Production support | | LND | Beta / experimental | | LDK | Partial | CLN's `splice` plugin / built-in command: `splicein-init`, `spliceout-init`. ## Use cases - **LSP dynamic capacity**: LSP splices in liquidity to a customer channel on demand without closing. - **Lightning Loop alternatives**: splice-out instead of submarine swap. - **Liquidity rebalance** between two parties without on-chain disruption. ## Common bugs - Mismatched fee assumptions for splice tx → tx stuck in mempool, channel can't reconcile. - Failing to handle RBF on the splice tx → both parties confused about which output is "current". - HTLC in flight at splice time and the splice tx is dropped → HTLC may need retry once reconciliation completes. - Mempool eviction of splice tx → both sides hold pre-splice commitments; old state continues until splice retried. ## See also - [channels/SKILL.md](../channels/SKILL.md) - [bolts/SKILL.md](../bolts/SKILL.md)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.