lightning-channel-factories – Other skill for AI agents
Technical reference on Lightning Network channel factories, multi-party channels, LSP architectures, and Bitcoin Layer 2 scaling without soft forks. Covers Decker-Wattenhofer, timeout trees, MuSig2 key aggregation, HTLC/PTLC forwarding, and watchtower breach detection.
Install the lightning-channel-factories skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/lightning-channel-factories-dc6c5.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /lightning-channel-factories – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/lightning-channel-factories-dc6c5.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $lightning-channel-factories – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/lightning-channel-factories-dc6c5.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /lightning-channel-factories – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/lightning-channel-factories-dc6c5.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /lightning-channel-factories – then describe the task you want done.
SKILL.md content
Use this skill when
- Building or reviewing Lightning Network channel factory implementations
- Working with multi-party channels, LSP architectures, or Layer 2 scaling
- Needing guidance on Decker-Wattenhofer, timeout trees, MuSig2, HTLC/PTLC, or watchtower patterns
Do not use this skill when
- The task is unrelated to Bitcoin or Lightning Network infrastructure
- You need a different blockchain or Layer 2 outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
The declared community implementation at 8144225309/SuperScalar returned HTTP 404 on 2026-10-14. Do not treat it as a verified production implementation, funded-mainnet deployment, 400-test suite or audited watchtower. The original [SuperScalar proposal](https://delvingbitcoin.org/t/superscalar-laddered-timeout-tree-structured-decker-wattenhofer-factories/1143) is a protocol source, not proof that a similarly named repository implements it correctly.
Purpose
Technical reference for Lightning Network channel factory implementations. Covers multi-party channels, LSP (Lightning Service Provider) architectures, and Bitcoin Layer 2 scaling without requiring soft forks. Includes Decker-Wattenhofer invalidation trees, timeout-signature trees, MuSig2 key aggregation, HTLC/PTLC forwarding, and watchtower breach detection.
Key Topics
- Channel factory implementation in C
- MuSig2 (BIP-327) and Schnorr adaptor signatures
- Encrypted Noise NK transport protocol
- SQLite persistence layer
- Watchtower breach detection
- HTLC/PTLC forwarding
- Regtest, signet, testnet, and mainnet support
- Actual implementation tests, vectors and reproducible exit behavior
References
- SuperScalar project: https://github.com/8144225309/SuperScalar
- Website: https://SuperScalar.win
- Original proposal: https://delvingbitcoin.org/t/superscalar-laddered-timeout-tree-structured-decker-wattenhofer-factories/1143
Example
User request:
> Build or reviewing Lightning Network channel factory implementations.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Review evidence
Distinguish proposal properties from a specific implementation revision. Trace funding ownership, required signers, offline/liveness assumptions, timelock ordering, old-state invalidation, recovery artifacts, fee/bump behavior and unilateral exit under congestion. Define what N measures before stating complexity. Verify HTLC/PTLC and watchtower compatibility with actual protocol versions and test vectors; a claim of no consensus change does not establish deployability or safety. Use an isolated regtest fixture; signing, funding or broadcasting with real funds needs separate explicit authorization.
Related skills
- lightning-factory-explainer – Explain Bitcoin Lightning channel factories and the SuperScalar protocol — scalable…
- linear-claude-skill – Manage Linear issues, projects, and teams
- link-relevance-evaluator – Link Relevance Evaluator. Use when working with source page context and destination page…
- link-source-categorizer – Link Source Categorizer. Use when working with backlink rows with source URLs and…
- link-toxicity-checker – Link Toxicity Checker. Use when working with backlink examples and available evidence.
- linktree-link-hub – Link-in-bio register: label, destination URL, link type, priority order, audience, click…
- lint-and-validate – Run configured lint and type checks, distinguish failures from checks that did not run…
- llm-council – Run Fireworks-hosted open-weight model councils that compare responses and synthesize a…