willyd61/nautobot-v2-custom-metrics-old/cln
Claude Code and agent skill by willyd61/nautobot-v2-custom-metrics-old
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Core Lightning (CLN, formerly c-lightning) by Blockstream: lightningd, lightning-cli, plugin architecture (Python pyln-client, Rust cln-plugin, Go glightning), commando, BOLT12 leadership. USE WHEN: integrating with CLN, writing plugins, debugging CLN-specific behaviour, leveraging BOLT12 features.
Install
npx vskill@latest install willyd61/nautobot-v2-custom-metrics-old/clnSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as willyd61/nautobot-v2-custom-metrics-old/cln.
Core Lightning (CLN)
CLN is the second most-deployed Lightning implementation, by Blockstream. Strong focus on protocol leadership (often first to ship BOLT updates).
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 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
getmanifestto declare hooks, methods, options,
notifications.
Lifecycle:
- lightningd spawns plugin.
- Plugin sends
getmanifestreply. - lightningd sends
initwith config. - Plugin handles incoming methods, hooks, notifications.
Python plugin (pyln-client)
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
BOLT12 (CLN's strength)
CLN was first to ship full BOLT12 offer support:
Commando (HTTP-RPC)
Built-in plugin for HTTP access:
Runes are restrictable (similar to macaroon caveat system).
Database
Default SQLite at ~/.lightning/<network>/lightningd.sqlite3. Optional PostgreSQL backend:
Backup
- Periodic
wallet.dat-equivalent: copy SQLite file with lightningd
stopped (or use online backup tool).
- Or PostgreSQL backup tools.
static_backupplugin: simulates SCB-like recovery.- Critical: never restore old database while channels still
active — re-broadcasting an old commitment = funds loss.
Implementation strengths
- Protocol leadership: BOLT12, splice, dual-fund first.
- Plugin ecosystem: many community plugins (e.g.,
clbossfor
liquidity, circular for rebalancing).
- Memory-efficient: typically uses less RAM than LND.
- Plain SQL backend: easier to inspect / migrate.
Common issues
- Plugin crashes can hang lightningd. Use
--important-plugin=only
for critical plugins, others as --plugin=.
- Plugin manifest mismatch (declared hook not implemented) → init
fails.
- PostgreSQL backend with wrong locale → SQL errors at startup.
- Restoring SQLite DB without proper "no concurrent writes" → corrupt.
See also
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.mcp-servers/skill-loader/skills/bitcoin/lightning/cln/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/willyd61/nautobot-v2-custom-metrics-old/cln)