Agent skill
lnget
Install this agent skill to your Project
npx add-skill https://github.com/Roasbeef/claude-files/tree/main/skills/lnget
SKILL.md
lnget Skill
Use lnget to fetch resources that require L402 Lightning payments.
When to Use
Use lnget when:
- Fetching resources from L402-protected APIs
- Downloading files behind Lightning paywalls
- Making requests that may require micropayments
Quick Reference
Basic Fetch
# Fetch and print to stdout
lnget https://api.example.com/data
# Save to file
lnget -o output.json https://api.example.com/data
# Quiet mode
lnget -q https://api.example.com/data | jq .
Payment Control
# Set max payment (default: 1000 sats)
lnget --max-cost 500 https://api.example.com/data
# Set max routing fee (default: 10 sats)
lnget --max-fee 5 https://api.example.com/data
# Don't auto-pay (just show 402 response)
lnget --no-pay https://api.example.com/data
Output Formats
# JSON output (default)
lnget https://api.example.com/data
# Human-readable output
lnget --human https://api.example.com/data
Token Management
# List cached tokens
lnget tokens list
# Remove expired/unused token
lnget tokens remove example.com
# Clear all tokens
lnget tokens clear --force
Backend Status
# Check connection status
lnget ln status
# Get node info
lnget ln info
Common Patterns
Fetch JSON API Data
# Fetch and parse JSON
data=$(lnget -q https://api.example.com/data)
echo "$data" | jq '.result'
Download File with Progress
lnget -o file.zip https://api.example.com/file.zip
Resume Partial Download
lnget -c -o large.zip https://api.example.com/large.zip
Check if Token Exists
if lnget tokens show example.com >/dev/null 2>&1; then
echo "Token cached"
fi
Configuration
Config file: ~/.lnget/config.yaml
Key settings:
l402.max_cost_sats: Maximum automatic payment (default: 1000)l402.max_fee_sats: Maximum routing fee (default: 10)ln.mode: Backend type (lnd, lnc, neutrino)output.format: Default output format (json, human)
Exit Codes
- 0: Success
- 1: General error
- 2: Payment exceeded max cost
- 3: Payment failed
- 4: Network error
Notes
- Tokens are cached per-domain automatically
- JSON output is default (for agent consumption)
- Use
--humanfor human-readable output - Configure lnd connection in
~/.lnget/config.yaml
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
slide-creator
Transform written content (blog posts, newsletters, articles) into visual slide deck images. This skill should be used when converting text content into presentation format, creating slide graphics from outlines, or generating visual summaries of written material.
lnd
Run and interact with lnd Lightning Network daemon in Docker. Use for Lightning development, testing payment channels on regtest, managing lnd containers, and calling lnd RPC endpoints (getinfo, connect, open/close channels, pay/receive). Supports bitcoind, btcd, and neutrino backends.
mutation-testing
Validates test suite quality through mutation testing. Generates intelligent code mutations, runs tests to verify they catch the changes, and identifies gaps in test coverage. Use when evaluating test effectiveness, validating newly written tests, or improving test quality for mission-critical code.
roasbeef-prose
Writing style guide for Roasbeef's technical prose. This skill should be used when writing PR descriptions, commit messages, technical documentation, blog posts, or any written content that should match Roasbeef's established voice. Activate when creating PRs, drafting commit messages, writing release notes, or composing technical explanations.
substrate
This skill provides agent mail management via the Subtrate command center. Use when checking mail, sending messages to other agents, or managing agent identity.
property-based-testing
Provides guidance for property-based testing across multiple languages and smart contracts. Use when writing tests, reviewing code with serialization/validation/parsing patterns, designing features, or when property-based testing would provide stronger coverage than example-based tests. For Go code, uses pgregory.net/rapid as the primary PBT framework.
Didn't find tool you were looking for?