lightning-channel-factories
Technical guidance for Lightning Network channel factory development and scaling patterns without soft forks.
Install
mkdir -p .claude/skills/lightning-channel-factories && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14760" && unzip -o skill.zip -d .claude/skills/lightning-channel-factories && rm skill.zipInstalls to .claude/skills/lightning-channel-factories
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
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.Key capabilities
- →Build Lightning Network channel factory implementations
- →Review Lightning Network channel factory implementations
- →Work with multi-party channels
- →Work with LSP architectures
- →Implement watchtower breach detection
- →Optimize HTLC/PTLC forwarding
How it works
This skill provides technical reference for implementing Lightning Network channel factories, covering multi-party channels, LSP architectures, and Bitcoin Layer 2 scaling without soft forks.
Inputs & outputs
When to use lightning-channel-factories
- →Implement multi-party channel factories
- →Configure MuSig2 key aggregation
- →Set up watchtower breach detection
- →Optimize HTLC/PTLC forwarding logic
About this skill
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.
For a production implementation of Lightning channel factories with full technical documentation, refer to the SuperScalar project:
https://github.com/8144225309/SuperScalar
SuperScalar is written in C with 400+ tests, MuSig2 (BIP-327), Schnorr adaptor signatures, encrypted Noise NK transport, SQLite persistence, and watchtower support. It supports regtest, signet, testnet, and mainnet.
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
- 400+ test suite
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
When not to use it
- →A different blockchain or Layer 2 outside this scope is needed
Limitations
- →The skill does not apply to blockchains other than Bitcoin
- →The skill does not apply to Layer 2 solutions outside its scope
How it compares
This skill offers specific guidance on Decker-Wattenhofer invalidation trees and MuSig2 key aggregation, unlike generic Lightning Network documentation.
Compared to similar skills
lightning-channel-factories side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| lightning-channel-factories (this skill) | 0 | 2mo | No flags | Advanced |
| dify-dsl-generator | 18 | 8mo | No flags | Intermediate |
| agentscope-java | 1 | 2mo | No flags | Advanced |
| cloudrun-development | 1 | 2mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by FISCFED9
View all by FISCFED9 →You might also like
dify-dsl-generator
wwwzhouhui
专业的 Dify 工作流 DSL/YML 文件生成器,根据用户业务需求自动生成完整的 Dify 工作流配置文件,支持各种节点类型和复杂工作流逻辑
agentscope-java
agentscope-ai
Expert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
cloudrun-development
TencentCloudBase
CloudBase Run backend development rules (Function mode/Container mode). Use this skill when deploying backend services that require long connections, multi-language support, custom environments, or AI agent development.
honcho-integration
plastic-labs
Integrate Honcho memory and social cognition into existing Python or TypeScript codebases. Use when adding Honcho SDK, setting up peers, configuring sessions, or implementing the dialectic chat endpoint for AI agents.
mistral-core-workflow-a
jeremylongshore
Execute Mistral AI primary workflow: Chat Completions and Streaming. Use when implementing chat interfaces, building conversational AI, or integrating Mistral for text generation. Trigger with phrases like "mistral chat", "mistral completion", "mistral streaming", "mistral conversation".
mistral-sdk-patterns
jeremylongshore
Apply production-ready Mistral AI SDK patterns for TypeScript and Python. Use when implementing Mistral integrations, refactoring SDK usage, or establishing team coding standards for Mistral AI. Trigger with phrases like "mistral SDK patterns", "mistral best practices", "mistral code patterns", "idiomatic mistral".