用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnalbertini14-glitch/openclaw-skills --skill lnbits命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | lnbits |
| description | Manage LNbits Lightning Wallet (Balance, Pay, Invoice) |
| homepage | https://lnbits.com |
| metadata | {"clawdbot":{"emoji":"⚡","requires":{"bins":["python3"],"pip":["qrcode[pil]"],"env":["LNBITS_API_KEY","LNBITS_BASE_URL"]},"primaryEnv":"LNBITS_API_KEY"}} |
Enable the assistant to safely and effectively manage an LNbits Lightning Network wallet.
balance before pay to prevent errors.payment_request text for copying, and (b) output MEDIA: followed by the qr_file path on ONE line. NEVER skip this.If the user does not have an LNbits wallet, you can create one for them on the demo server.
python3 {baseDir}/scripts/lnbits_cli.py create --name "My Wallet"
Action:
adminkey and base_url to stdout (visible in the terminal).adminkey or any secret from the output in your chat response. The user sees the command output in their terminal; that is the only place the key should appear."A new wallet was created. The command output above contains your adminkey and base_url. Copy those values from the terminal and add them to your configuration or
.envasLNBITS_API_KEYandLNBITS_BASE_URL. Do not paste the adminkey here or in any chat."
Get the current wallet balance in Satoshis.
python3 {baseDir}/scripts/lnbits_cli.py balance
Generate a Bolt11 invoice to receive funds. QR code is always included by default.
# Invoice with QR code (default)
python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza"
# Invoice without QR code
python3 {baseDir}/scripts/lnbits_cli.py invoice --amount 1000 --memo "Pizza" --no-qr
⚠️ MANDATORY RESPONSE FORMAT: When generating an invoice, your response MUST include:
payment_request string so user can copy itMEDIA: followed by the qr_file path on ONE lineEXACT FORMAT (follow precisely):
Here is your 100 sat invoice:
lnbc1u1p5abc123...
MEDIA:./clawd/.lnbits_qr/invoice_xxx.png
CRITICAL: The MEDIA: and file path MUST be on the SAME LINE. This sends the QR code image to the user.
Convert any Bolt11 string to a QR code image file.
python3 {baseDir}/scripts/lnbits_cli.py qr <bolt11_string>
Returns: {"qr_file": "./.lnbits_qr/invoice_xxx.png", "bolt11": "..."}
⚠️ REQUIRES CONFIRMATION: Decode first, verify balance, ask user, then execute.
# Step 1: Decode to verify amount/memo
python3 {baseDir}/scripts/lnbits_cli.py decode <bolt11_string>
# Step 2: Pay (Only after user CONFIRMS)
python3 {baseDir}/scripts/lnbits_cli.py pay <bolt11_string>
If the CLI returns a JSON error (e.g., {"error": "Insufficient funds"}), summarize it clearly for the user. Do not show raw stack traces.