Development

fix-lightning - Claude MCP Skill

Run /check-lightning, then fix the highest priority Lightning issue. Creates one fix per invocation. Invoke again for next issue. Use /log-lightning-issues to create issues without fixing.

SEO Guide: Enhance your AI agent with the fix-lightning tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to run /check-lightning, then fix the highest priority lightning issue. creates one fix per invocation.... Download and configure this skill to unlock new capabilities for your AI workflow.

🌟1 stars • 1 forks
📥0 downloads

Documentation

SKILL.md
# /fix-lightning

Fix the highest priority Lightning issue.

## What This Does

1. Invoke `/check-lightning` to audit Lightning health
2. Identify highest priority issue
3. Fix that one issue
4. Verify the fix
5. Report what was done

**This is a fixer.** It fixes one issue at a time. Run again for next issue. Use `/lightning` for full lifecycle.

## Process

### 1. Run Primitive

Invoke `/check-lightning` skill to get prioritized findings.

### 2. Fix Priority Order

Fix in this order:
1. **P0**: Node not synced, watchtower not configured
2. **P1**: Peer connectivity issues
3. **P2**: Low inbound liquidity, channel rebalancing needed
4. **P3**: Advanced routing/fees

### 3. Execute Fix

**Node not synced (P0):**
Confirm chain sync:
```bash
lncli getinfo
bitcoin-cli getblockchaininfo
```

If `synced_to_chain=false`, restart LND after backend is healthy:
```bash
sudo systemctl restart lnd
```

**Watchtower not configured (P0):**
Enable watchtower client and add a tower:
```bash
# lnd.conf
wtclient.active=1

lncli wtclient add --tower_addr=host:9911
```

**Peer connectivity issues (P1):**
Reconnect to peer:
```bash
lncli listpeers
lncli disconnect <pubkey>
lncli connect <pubkey>@host:port
```

**Low inbound liquidity (P2):**
Open a channel with pushed sats to create inbound:
```bash
lncli openchannel --node_key=<pubkey> --local_amt=1000000 --push_amt=200000
```

**Channel rebalancing needed (P2):**
Move balance from outgoing-heavy to incoming-heavy channel:
```bash
lncli listchannels
lncli rebalancechannel --from_chan_id=<from> --to_chan_id=<to> --amount=50000
```

### 4. Verify

After fix:
```bash
lncli getinfo
lncli listchannels
lncli listpeers
```

### 5. Report

```
Fixed: [P0] Node not synced

Updated: lnd service
- Restarted after chain backend healthy
- Confirmed synced_to_chain=true

Verified: lncli getinfo → synced_to_chain=true

Next highest priority: [P0] Watchtower not configured
Run /fix-lightning again to continue.
```

## Branching

Before making changes:
```bash
git checkout -b fix/lightning-$(date +%Y%m%d)
```

## Single-Issue Focus

Lightning is sensitive. Fix one thing at a time:
- Test each change thoroughly
- Easy to rollback specific fixes
- Clear audit trail for ops

Run `/fix-lightning` repeatedly to work through the backlog.

## Related

- `/check-lightning` - The primitive (audit only)
- `/log-lightning-issues` - Create issues without fixing
- `/lightning` - Full Lightning lifecycle

Signals

Avg rating0.0
Reviews0
Favorites0

Information

Repository
phrazzld/claude-config
Author
phrazzld
Last Sync
3/2/2026
Repo Updated
3/1/2026
Created
1/28/2026

Reviews (0)

No reviews yet. Be the first to review this skill!

Related Skills

browser-use

Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.

23280

cloud

Documentation reference for using Browser Use Cloud — the hosted API and SDK for browser automation. Use this skill whenever the user needs help with the Cloud REST API (v2 or v3), browser-use-sdk (Python or TypeScript), X-Browser-Use-API-Key authentication, cloud sessions, browser profiles, profile sync, CDP WebSocket connections, stealth browsers, residential proxies, CAPTCHA handling, webhooks, workspaces, skills marketplace, liveUrl streaming, pricing, or integration patterns (chat UI, subagent, adding browser tools to existing agents). Also trigger for questions about n8n/Make/Zapier integration, Playwright/ Puppeteer/Selenium on cloud infrastructure, or 1Password vault integration. Do NOT use this for the open-source Python library (Agent, Browser, Tools config) — use the open-source skill instead.

23280

agent-builder

Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI system" (2) want to understand agent architecture, agentic patterns, or autonomous AI (3) need help with capabilities, subagents, planning, or skill mechanisms (4) ask about Claude Code, Cursor, or similar agent internals (5) want to build agents for business, research, creative, or operational tasks Keywords: agent, assistant, autonomous, workflow, tool use, multi-step, orchestration

14877

writing-plans

Use when you have a spec or requirements for a multi-step task, before touching code

13220

Related Guides